Home
last modified time | relevance | path

Searched refs:mPackageManager (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/content/pm/
DComponentTest.java51 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/
DCarrierAppUtilsTest.java35 @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/
DAppCompatibility.java55 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/
DIntentFilterVerificationReceiver.java169 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/
DRemoteDisplayProviderWatcher.java52 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/
DLauncherActivity.java59 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()
DUiAutomationConnection.java64 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()
DContextImpl.java156 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/
DRegisteredMediaRouteProviderWatcher.java42 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/
DSystemServer.java153 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/
DSyncQueue.java47 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/
DPackageManagerBackupAgent.java78 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()
DBackupManagerService.java243 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/
DProcessErrorsTest.java48 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/
DPermissionMonitor.java62 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/
DSearchablesTest.java231 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/
DMidiService.java96 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/
DMmsServiceBroker.java74 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()
DLocationManagerService.java156 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/
DSubscriptionInfoUpdater.java104 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/
DUsbSettingsManager.java82 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/
DFullBackup.java209 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/
DBridgeContext.java152 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/
DAccountManagerService.java125 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/
DSettingsProvider.java211 private volatile PackageManager mPackageManager; field in SettingsProvider
217 mPackageManager = getContext().getPackageManager(); in onCreate()
1058 return mPackageManager.getPackageInfo(getCallingPackage(), 0); in getCallingPackageInfoOrThrow()

12