Add filter to getInstalledModules for showing installed modules only

Additionally, the function now accepts PackageManager.MATCH_ALL flag for
returning all ModuleInfos.

Bug: 131929295
Test: Manual testing. Run the following commands
      $ adb shell pm get-moduleinfo
      $ adb shell pm get-installed-moduleinfo
      Observed that they are different.

Change-Id: I37cfb7d717664c6183695348e1b0f11e4ddff0cf
2 files changed