/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | ComponentTest.java | 51 private PackageManager mPackageManager; field in ComponentTest 108 mPackageManager = mContext.getPackageManager(); in setUp() 132 mPackageManager.setComponentEnabledSetting(DISABLED_ACTIVITY_COMPONENTNAME, in testResolveDisabledActivity() 136 final ResolveInfo info = mPackageManager.resolveActivity(mDisabledActivityIntent, 0); in testResolveDisabledActivity() 139 final ResolveInfo info2 = mPackageManager.resolveActivity( in testResolveDisabledActivity() 148 mPackageManager.setComponentEnabledSetting(ENABLED_ACTIVITY_COMPONENTNAME, in testResolveEnabledActivity() 152 final ResolveInfo info = mPackageManager.resolveActivity(mEnabledActivityIntent, 0); in testResolveEnabledActivity() 161 mPackageManager.setComponentEnabledSetting(DISABLED_ACTIVITY_COMPONENTNAME, in testQueryDisabledActivity() 166 mPackageManager.queryIntentActivities(mDisabledActivityIntent, 0); in testQueryDisabledActivity() 170 mPackageManager.queryIntentActivities(mDisabledActivityIntent, in testQueryDisabledActivity() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierAppUtilsTest.java | 35 @Mock private IPackageManager mPackageManager; field in CarrierAppUtilsTest 49 CarrierAppUtils.disableCarrierAppsUntilPrivileged(CALLING_PACKAGE, mPackageManager, in testDisableCarrierAppsUntilPrivileged_EmptyList() 51 Mockito.verifyNoMoreInteractions(mPackageManager, mTelephonyManager); in testDisableCarrierAppsUntilPrivileged_EmptyList() 56 Mockito.when(mPackageManager.getApplicationInfo("com.example.missing.app", in testDisableCarrierAppsUntilPrivileged_MissingApp() 58 CarrierAppUtils.disableCarrierAppsUntilPrivileged(CALLING_PACKAGE, mPackageManager, in testDisableCarrierAppsUntilPrivileged_MissingApp() 60 Mockito.verify(mPackageManager, Mockito.never()).setApplicationEnabledSetting( in testDisableCarrierAppsUntilPrivileged_MissingApp() 63 Mockito.verify(mPackageManager, Mockito.never()) in testDisableCarrierAppsUntilPrivileged_MissingApp() 72 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_NonSystemApp() 74 CarrierAppUtils.disableCarrierAppsUntilPrivileged(CALLING_PACKAGE, mPackageManager, in testDisableCarrierAppsUntilPrivileged_NonSystemApp() 76 Mockito.verify(mPackageManager, Mockito.never()).setApplicationEnabledSetting( in testDisableCarrierAppsUntilPrivileged_NonSystemApp() [all …]
|
/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/packages/StatementService/src/com/android/statementservice/ |
D | IntentFilterVerificationReceiver.java | 169 private final PackageManager mPackageManager; field in IntentFilterVerificationReceiver.IsAssociatedResultReceiver 175 mPackageManager = packageManager; in IsAssociatedResultReceiver() 182 mPackageManager.verifyIntentFilter(mVerificationId, in onReceiveResult() 186 mPackageManager.verifyIntentFilter(mVerificationId, in onReceiveResult() 191 sendErrorToPackageManager(mPackageManager, mVerificationId); in onReceiveResult()
|
/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/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 | 64 private final IPackageManager mPackageManager = IPackageManager.Stub field in UiAutomationConnection 243 mPackageManager.grantRuntimePermission(packageName, permission, userId); in grantRuntimePermission() 259 mPackageManager.revokeRuntimePermission(packageName, permission, userId); in revokeRuntimePermission()
|
D | ContextImpl.java | 156 private PackageManager mPackageManager; field in ContextImpl 209 if (mPackageManager != null) { in getPackageManager() 210 return mPackageManager; in getPackageManager() 216 return (mPackageManager = new ApplicationPackageManager(this, pm)); in getPackageManager()
|
/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 | 153 private PackageManager mPackageManager; field in SystemServer 369 mPackageManager = mSystemContext.getPackageManager(); in startBootstrapServices() 702 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_ETHERNET) || in startOtherServices() 703 mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST)) { in startOtherServices() 840 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_MIDI)) { in startOtherServices() 845 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST) in startOtherServices() 846 || mPackageManager.hasSystemFeature( in startOtherServices() 867 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_BACKUP)) { in startOtherServices() 871 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_APP_WIDGETS)) { in startOtherServices() 875 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_VOICE_RECOGNIZERS)) { in startOtherServices() [all …]
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncQueue.java | 47 private final PackageManager mPackageManager; field in SyncQueue 55 mPackageManager = packageManager; in SyncQueue() 88 mPackageManager.getServiceInfo(info.service, 0); in addPendingOperations() 268 sb.append(operation.dump(mPackageManager, false)).append("\n"); in dump()
|
/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() 595 return mPackageManager.getHomeActivities(new ArrayList<ResolveInfo>()); in getPreferredHomeComponent()
|
D | BackupManagerService.java | 243 private PackageManager mPackageManager; field in BackupManagerService 965 mPackageManager = context.getPackageManager(); in BackupManagerService() 1095 List<ResolveInfo> hosts = mPackageManager.queryIntentServicesAsUser( in BackupManagerService() 1233 mPackageManager.getPackageInfo(pkg, 0); in initPackageTracking() 1281 PackageManagerBackupAgent.getStorableApplications(mPackageManager); in readFullBackupSchedule() 1312 PackageInfo pkg = mPackageManager.getPackageInfo(pkgName, 0); in readFullBackupSchedule() 1838 PackageInfo app = mPackageManager.getPackageInfo(pkgName, 0); 1878 PackageInfo app = mPackageManager.getPackageInfo(packageName, 0); 1956 List<ResolveInfo> hosts = mPackageManager.queryIntentServicesAsUser( in checkForTransportAndBind() 1970 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/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/midi/java/com/android/server/midi/ |
D | MidiService.java | 96 private final PackageManager mPackageManager; field in MidiService 544 mPackageManager = context.getPackageManager(); in MidiService() 548 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentServices(intent, in MidiService() 562 info = mPackageManager.getPackageInfo(MidiManager.BLUETOOTH_MIDI_SERVICE_PACKAGE, 0); in MidiService() 799 info = mPackageManager.getPackageInfo(packageName, in addPackageDeviceServers() 819 parser = serviceInfo.loadXmlMetaData(mPackageManager, in addPackageDeviceServer() 918 ApplicationInfo appInfo = mPackageManager.getApplicationInfo( in addPackageDeviceServer()
|
/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()
|
D | LocationManagerService.java | 156 private PackageManager mPackageManager; field in LocationManagerService 245 mPackageManager = mContext.getPackageManager(); in systemRunning() 282 mPackageManager.addOnPermissionsChangeListener(permissionListener); in systemRunning() 1556 String[] packages = mPackageManager.getPackagesForUid(uid); in checkPackageName() 2091 String[] packageNames = mPackageManager.getPackagesForUid(uid); in doesUidHavePackage()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SubscriptionInfoUpdater.java | 104 private IPackageManager mPackageManager; field in SubscriptionInfoUpdater 115 mPackageManager = IPackageManager.Stub.asInterface(ServiceManager.getService("package")); in SubscriptionInfoUpdater() 139 mPackageManager, TelephonyManager.getDefault(), mCurrentlyActiveUserId); in initializeCarrierApps() 164 mPackageManager, TelephonyManager.getDefault(), mCurrentlyActiveUserId); in initializeCarrierApps() local 454 mPackageManager, TelephonyManager.getDefault(), mCurrentlyActiveUserId); in handleSimLoaded() local
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbSettingsManager.java | 82 private final PackageManager mPackageManager; field in UsbSettingsManager 509 mPackageManager = mUserContext.getPackageManager(); in UsbSettingsManager() 667 parser = ai.loadXmlMetaData(mPackageManager, metaDataName); in packageMatchesLocked() 700 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentActivities(intent, in getDeviceMatchesLocked() 715 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentActivities(intent, in getAccessoryMatchesLocked() 921 parser = aInfo.loadXmlMetaData(mPackageManager, metaDataName); in handlePackageUpdateLocked() 957 info = mPackageManager.getPackageInfo(packageName, in handlePackageUpdate() 1029 ApplicationInfo aInfo = mPackageManager.getApplicationInfo(packageName, 0); in requestPermissionDialog()
|
/frameworks/base/core/java/android/app/backup/ |
D | FullBackup.java | 209 final PackageManager mPackageManager; field in FullBackup.BackupScheme 258 mPackageManager = context.getPackageManager(); in BackupScheme() 327 parser = mPackageManager in maybeParseBackupSchemeLocked()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeContext.java | 152 private PackageManager mPackageManager; field in BridgeContext 910 if (mPackageManager == null) { in getPackageManager() 911 mPackageManager = new BridgePackageManager(); in getPackageManager() 913 return mPackageManager; in getPackageManager()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 125 private final PackageManager mPackageManager; field in AccountManagerService 270 mPackageManager = packageManager; in AccountManagerService() 472 final boolean packageExists = mPackageManager.getPackagesForUid(uid) != null; in purgeOldGrants() 1867 callerOwnedPackageNames = Arrays.asList(mPackageManager.getPackagesForUid(callerUid)); in getAuthToken() 2020 PackageInfo pkgInfo = mPackageManager.getPackageInfo( in calculatePackageSignatureDigest() 3814 final int sigChk = mPackageManager.checkSignatures(serviceInfo.uid, callingUid); in getTypesForCaller() 3861 packages = mPackageManager.getPackagesForUid(callingUid); in isSystemUid() 3868 PackageInfo packageInfo = mPackageManager.getPackageInfo(name, 0 /* flags */); in isSystemUid() 4056 String[] packages = mPackageManager.getPackagesForUid(callingUid); in filterSharedAccounts() 4075 PackageInfo pi = mPackageManager.getPackageInfo(callingPackage, 0); in filterSharedAccounts() [all …]
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProvider.java | 211 private volatile PackageManager mPackageManager; field in SettingsProvider 217 mPackageManager = getContext().getPackageManager(); in onCreate() 1058 return mPackageManager.getPackageInfo(getCallingPackage(), 0); in getCallingPackageInfoOrThrow()
|