/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | ComponentTest.java | 52 private PackageManager mPackageManager; field in ComponentTest 109 mPackageManager = mContext.getPackageManager(); in setUp() 133 mPackageManager.setComponentEnabledSetting(DISABLED_ACTIVITY_COMPONENTNAME, in testResolveDisabledActivity() 137 final ResolveInfo info = mPackageManager.resolveActivity(mDisabledActivityIntent, 0); in testResolveDisabledActivity() 140 final ResolveInfo info2 = mPackageManager.resolveActivity( in testResolveDisabledActivity() 149 mPackageManager.setComponentEnabledSetting(ENABLED_ACTIVITY_COMPONENTNAME, in testResolveEnabledActivity() 153 final ResolveInfo info = mPackageManager.resolveActivity(mEnabledActivityIntent, 0); in testResolveEnabledActivity() 162 mPackageManager.setComponentEnabledSetting(DISABLED_ACTIVITY_COMPONENTNAME, in testQueryDisabledActivity() 167 mPackageManager.queryIntentActivities(mDisabledActivityIntent, 0); in testQueryDisabledActivity() 171 mPackageManager.queryIntentActivities(mDisabledActivityIntent, in testQueryDisabledActivity() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierAppUtilsTest.java | 37 @Mock private IPackageManager mPackageManager; field in CarrierAppUtilsTest 52 CarrierAppUtils.disableCarrierAppsUntilPrivileged(CALLING_PACKAGE, mPackageManager, in testDisableCarrierAppsUntilPrivileged_EmptyList() 54 Mockito.verifyNoMoreInteractions(mPackageManager, mTelephonyManager); in testDisableCarrierAppsUntilPrivileged_EmptyList() 60 Mockito.when(mPackageManager.getApplicationInfo("com.example.missing.app", in testDisableCarrierAppsUntilPrivileged_MissingApp() 62 CarrierAppUtils.disableCarrierAppsUntilPrivileged(CALLING_PACKAGE, mPackageManager, in testDisableCarrierAppsUntilPrivileged_MissingApp() 64 Mockito.verify(mPackageManager, Mockito.never()).setApplicationEnabledSetting( in testDisableCarrierAppsUntilPrivileged_MissingApp() 67 Mockito.verify(mPackageManager, Mockito.never()) in testDisableCarrierAppsUntilPrivileged_MissingApp() 77 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_NonSystemApp() 79 CarrierAppUtils.disableCarrierAppsUntilPrivileged(CALLING_PACKAGE, mPackageManager, in testDisableCarrierAppsUntilPrivileged_NonSystemApp() 81 Mockito.verify(mPackageManager, Mockito.never()).setApplicationEnabledSetting( in testDisableCarrierAppsUntilPrivileged_NonSystemApp() [all …]
|
D | ContextFixture.java | 171 return mPackageManager; in getPackageManager() 449 private final PackageManager mPackageManager = mock(PackageManager.class); field in ContextFixture 479 }).when(mPackageManager).queryIntentServices((Intent) any(), anyInt()); in ContextFixture() 488 }).when(mPackageManager).queryIntentServicesAsUser((Intent) any(), anyInt(), anyInt()); in ContextFixture()
|
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/ |
D | AppCompatibility.java | 55 private PackageManager mPackageManager; field in AppCompatibility 72 mPackageManager = mContext.getPackageManager(); in setUp() 73 Assert.assertNotNull("Missing Package Manager", mPackageManager); in setUp() 148 PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0); in getProcessName() 174 intent = mPackageManager.getLeanbackLaunchIntentForPackage(packageName); in getLaunchIntentForPackage() 176 intent = mPackageManager.getLaunchIntentForPackage(packageName); in getLaunchIntentForPackage()
|
/frameworks/base/core/java/android/content/pm/ |
D | AppsQueryHelper.java | 59 private final IPackageManager mPackageManager; field in AppsQueryHelper 63 mPackageManager = packageManager; in AppsQueryHelper() 171 return mPackageManager.getInstalledApplications(PackageManager.GET_UNINSTALLED_PACKAGES in getAllApps() 181 return mPackageManager.queryIntentActivities(intent, null, in queryIntentActivitiesAsUser() 193 return mPackageManager.queryIntentServices(intent, null, in queryIntentServicesAsUser() 205 return mPackageManager.getPackagesHoldingPermissions(new String[]{perm}, 0, in getPackagesHoldingPermission()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
D | RecentLocationApps.java | 49 private final PackageManager mPackageManager; field in RecentLocationApps 54 mPackageManager = context.getPackageManager(); in RecentLocationApps() 149 Drawable appIcon = mPackageManager.getApplicationIcon(appInfo); in getRequestFromOps() 150 Drawable icon = mPackageManager.getUserBadgedIcon(appIcon, userHandle); in getRequestFromOps() 151 CharSequence appLabel = mPackageManager.getApplicationLabel(appInfo); in getRequestFromOps() 152 CharSequence badgedAppLabel = mPackageManager.getUserBadgedLabel(appLabel, userHandle); in getRequestFromOps()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | RemoteDisplayProviderWatcher.java | 52 private final PackageManager mPackageManager; field in RemoteDisplayProviderWatcher 64 mPackageManager = context.getPackageManager(); in RemoteDisplayProviderWatcher() 117 for (ResolveInfo resolveInfo : mPackageManager.queryIntentServicesAsUser( in scanPackages() 176 if (mPackageManager.checkPermission(Manifest.permission.CAPTURE_VIDEO_OUTPUT, in hasCaptureVideoPermission() 180 if (mPackageManager.checkPermission(Manifest.permission.CAPTURE_SECURE_VIDEO_OUTPUT, in hasCaptureVideoPermission()
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/ |
D | IntentFilterVerificationReceiver.java | 186 private final PackageManager mPackageManager; field in IntentFilterVerificationReceiver.IsAssociatedResultReceiver 192 mPackageManager = packageManager; in IsAssociatedResultReceiver() 199 mPackageManager.verifyIntentFilter(mVerificationId, in onReceiveResult() 203 mPackageManager.verifyIntentFilter(mVerificationId, in onReceiveResult() 208 sendErrorToPackageManager(mPackageManager, mVerificationId); in onReceiveResult()
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvRemoteProviderWatcher.java | 50 private final PackageManager mPackageManager; field in TvRemoteProviderWatcher 62 mPackageManager = context.getPackageManager(); in TvRemoteProviderWatcher() 112 for (ResolveInfo resolveInfo : mPackageManager.queryIntentServicesAsUser( in scanPackages() 181 if ((mPackageManager.checkPermission(Manifest.permission.TV_VIRTUAL_REMOTE_CONTROLLER, in hasNecessaryPermissions()
|
/frameworks/base/core/java/android/app/ |
D | LauncherActivity.java | 59 PackageManager mPackageManager; field in LauncherActivity 342 mPackageManager = getPackageManager(); in onCreate() 344 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in onCreate() 362 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in onCreate() 444 return mPackageManager.queryIntentActivities(queryIntent, /* no flags */ 0); in onQueryPackageManager() 451 Collections.sort(results, new ResolveInfo.DisplayNameComparator(mPackageManager)); in onSortResultList() 466 result.add(new ListItem(mPackageManager, resolveInfo, null)); in makeListItems()
|
D | UiAutomationConnection.java | 66 private final IPackageManager mPackageManager = IPackageManager.Stub field in UiAutomationConnection 248 mPackageManager.grantRuntimePermission(packageName, permission, userId); in grantRuntimePermission() 264 mPackageManager.revokeRuntimePermission(packageName, permission, userId); in revokeRuntimePermission()
|
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
D | RegisteredMediaRouteProviderWatcher.java | 42 private final PackageManager mPackageManager; field in RegisteredMediaRouteProviderWatcher 52 mPackageManager = context.getPackageManager(); in RegisteredMediaRouteProviderWatcher() 97 for (ResolveInfo resolveInfo : mPackageManager.queryIntentServices(intent, 0)) { in scanPackages()
|
/frameworks/base/services/java/com/android/server/ |
D | SystemServer.java | 193 private PackageManager mPackageManager; field in SystemServer 451 mPackageManager = mSystemContext.getPackageManager(); in startBootstrapServices() 835 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_ETHERNET) || in startOtherServices() 836 mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST)) { in startOtherServices() 961 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_MIDI)) { in startOtherServices() 966 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST) in startOtherServices() 967 || mPackageManager.hasSystemFeature( in startOtherServices() 1006 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_BACKUP)) { in startOtherServices() 1010 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_APP_WIDGETS) in startOtherServices() 1015 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_VOICE_RECOGNIZERS)) { in startOtherServices() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | PackageManagerBackupAgent.java | 78 private PackageManager mPackageManager; field in PackageManagerBackupAgent 122 mPackageManager = packageMgr; in init() 134 mAllPackages = getStorableApplications(mPackageManager); in evaluateStorablePackages() 204 homeInfo = mPackageManager.getPackageInfo(home.getPackageName(), in onBackup() 206 homeInstaller = mPackageManager.getInstallerPackageName(home.getPackageName()); in onBackup() 272 info = mPackageManager.getPackageInfo(packName, in onBackup() 578 return mPackageManager.getHomeActivities(new ArrayList<ResolveInfo>()); in getPreferredHomeComponent()
|
D | BackupManagerService.java | 265 private PackageManager mPackageManager; field in BackupManagerService 1065 mPackageManager = context.getPackageManager(); in BackupManagerService() 1202 List<ResolveInfo> hosts = mPackageManager.queryIntentServicesAsUser( in BackupManagerService() 1340 mPackageManager.getPackageInfo(pkg, 0); in initPackageTracking() 1388 PackageManagerBackupAgent.getStorableApplications(mPackageManager); in readFullBackupSchedule() 1419 PackageInfo pkg = mPackageManager.getPackageInfo(pkgName, 0); in readFullBackupSchedule() 1945 PackageInfo app = mPackageManager.getPackageInfo(pkgName, 0); 1987 PackageInfo app = mPackageManager.getPackageInfo(packageName, 0); 2077 List<ResolveInfo> hosts = mPackageManager.queryIntentServicesAsUser( in checkForTransportAndBind() 2091 PackageInfo packInfo = mPackageManager.getPackageInfo(info.packageName, 0); in tryBindTransport() [all …]
|
/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/ |
D | ProcessErrorsTest.java | 48 protected PackageManager mPackageManager; field in ProcessErrorsTest 74 mPackageManager = getContext().getPackageManager(); in setUp() 79 assertNotNull(mPackageManager); in testSetUpConditions() 99 for (ResolveInfo app : getLauncherActivities(mPackageManager)) { in testRunAllActivities()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | PermissionMonitor.java | 62 private final PackageManager mPackageManager; field in PermissionMonitor 75 mPackageManager = context.getPackageManager(); in PermissionMonitor() 116 List<PackageInfo> apps = mPackageManager.getInstalledPackages(GET_PERMISSIONS); in startMonitoring() 236 PackageInfo app = mPackageManager.getPackageInfo(appName, GET_PERMISSIONS); in onAppAdded()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/ |
D | AppRestrictionsHelper.java | 53 private final PackageManager mPackageManager; field in AppRestrictionsHelper 65 mPackageManager = context.getPackageManager(); in AppRestrictionsHelper() 154 final PackageManager pm = mPackageManager; in fetchAndMergeApps() 293 final PackageManager pm = mPackageManager; in addSystemApps() 331 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0); in isSystemPackage()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/search/ |
D | SearchablesTest.java | 231 protected PackageManager mPackageManager; field in SearchablesTest.MyMockContext 240 mPackageManager = packageManager; in MyMockContext() 256 return mPackageManager; in getPackageManager()
|
/frameworks/base/services/core/java/com/android/server/ |
D | MmsServiceBroker.java | 74 private volatile PackageManager mPackageManager = null; field in MmsServiceBroker 304 if (mPackageManager == null) { in getPackageManager() 305 mPackageManager = mContext.getPackageManager(); in getPackageManager() 307 return mPackageManager; in getPackageManager()
|
/frameworks/base/services/midi/java/com/android/server/midi/ |
D | MidiService.java | 105 private final PackageManager mPackageManager; field in MidiService 567 mPackageManager = context.getPackageManager(); in MidiService() 576 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentServices(intent, in onUnlockUser() 590 info = mPackageManager.getPackageInfo(MidiManager.BLUETOOTH_MIDI_SERVICE_PACKAGE, 0); in onUnlockUser() 848 info = mPackageManager.getPackageInfo(packageName, in addPackageDeviceServers() 868 parser = serviceInfo.loadXmlMetaData(mPackageManager, in addPackageDeviceServer() 967 ApplicationInfo appInfo = mPackageManager.getApplicationInfo( in addPackageDeviceServer()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbSettingsManager.java | 80 private final PackageManager mPackageManager; field in UsbSettingsManager 509 mPackageManager = mUserContext.getPackageManager(); in UsbSettingsManager() 675 parser = ai.loadXmlMetaData(mPackageManager, metaDataName); in packageMatchesLocked() 708 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentActivities(intent, in getDeviceMatchesLocked() 723 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentActivities(intent, in getAccessoryMatchesLocked() 741 if (MtpNotificationManager.shouldShowNotification(mPackageManager, device)) { in deviceAttached() 938 parser = aInfo.loadXmlMetaData(mPackageManager, metaDataName); in handlePackageUpdateLocked() 974 info = mPackageManager.getPackageInfo(packageName, in handlePackageUpdate() 1046 ApplicationInfo aInfo = mPackageManager.getApplicationInfo(packageName, 0); in requestPermissionDialog()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SubscriptionInfoUpdater.java | 109 private IPackageManager mPackageManager; field in SubscriptionInfoUpdater 123 mPackageManager = IPackageManager.Stub.asInterface(ServiceManager.getService("package")); in SubscriptionInfoUpdater() 149 mPackageManager, TelephonyManager.getDefault(), mCurrentlyActiveUserId); in initializeCarrierApps() 174 mPackageManager, TelephonyManager.getDefault(), mCurrentlyActiveUserId); in initializeCarrierApps() local 484 mPackageManager, TelephonyManager.getDefault(), mCurrentlyActiveUserId); in handleSimLoaded() local
|
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/ |
D | VpnTest.java | 88 @Mock private PackageManager mPackageManager; field in VpnTest 95 when(mContext.getPackageManager()).thenReturn(mPackageManager); in setUp() 306 }).when(mPackageManager).getPackageUidAsUser(anyString(), anyInt()); in setMockedPackages()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsService.java | 129 PackageManager mPackageManager; field in UsageStatsService 166 mPackageManager = getContext().getPackageManager(); in onStart() 333 List<PackageInfo> packages = mPackageManager.getInstalledPackagesAsUser( in initializeDefaultsForSystemApps() 469 List<PackageInfo> packages = mPackageManager.getInstalledPackagesAsUser( in checkIdleStates() 513 final int uid = mPackageManager.getPackageUidAsUser(packageName, in notifyBatteryStats() 646 PackageInfo pi = mPackageManager.getPackageInfoAsUser( in reportContentProviderUsage() 779 ApplicationInfo ai = mPackageManager.getApplicationInfo(packageName, in getAppId()
|