Home
last modified time | relevance | path

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

/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/base/tests/Compatibility/src/com/android/compatibilitytest/
DAppCompatibility.java52 private PackageManager mPackageManager; field in AppCompatibility
69 mPackageManager = mContext.getPackageManager(); in setUp()
70 Assert.assertNotNull("Missing Package Manager", mPackageManager); in setUp()
142 Intent intent = mPackageManager.getLaunchIntentForPackage(packageName); in launchActivity()
199 PackageInfo packageInfo = mPackageManager.getPackageInfo(packageName, 0); in processStillUp()
/frameworks/base/services/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/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/testing/app-tests/AppLaunchTest/src/com/android/applaunchtest/
DAppLaunchTest.java49 private PackageManager mPackageManager; field in AppLaunchTest
65 mPackageManager = mContext.getPackageManager(); in setUp()
67 assertNotNull("failed to get package manager", mPackageManager); in setUp()
85 ResolveInfo app = getLauncherActivity(mPackageName, mPackageManager); in testLaunchActivity()
/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/core/java/android/app/
DLauncherActivity.java59 PackageManager mPackageManager; field in LauncherActivity
342 mPackageManager = getPackageManager(); in onCreate()
440 return mPackageManager.queryIntentActivities(queryIntent, /* no flags */ 0); in onQueryPackageManager()
447 Collections.sort(results, new ResolveInfo.DisplayNameComparator(mPackageManager)); in onSortResultList()
462 result.add(new ListItem(mPackageManager, resolveInfo, null)); in makeListItems()
DContextImpl.java209 private PackageManager mPackageManager; field in ContextImpl
626 if (mPackageManager != null) { in getPackageManager()
627 return mPackageManager; in getPackageManager()
633 return (mPackageManager = new ApplicationPackageManager(this, pm)); in getPackageManager()
/frameworks/base/services/java/com/android/server/content/
DSyncQueue.java48 private final PackageManager mPackageManager; field in SyncQueue
56 mPackageManager = packageManager; in SyncQueue()
225 sb.append(operation.dump(mPackageManager, false)).append("\n"); in dump()
/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/java/com/android/server/
DPackageManagerBackupAgent.java62 private PackageManager mPackageManager; field in PackageManagerBackupAgent
86 mPackageManager = packageMgr; in PackageManagerBackupAgent()
170 info = mPackageManager.getPackageInfo(packName, in onBackup()
DBackupManagerService.java206 private PackageManager mPackageManager; field in BackupManagerService
782 mPackageManager = context.getPackageManager(); in BackupManagerService()
914 List<ResolveInfo> hosts = mPackageManager.queryIntentServicesAsUser( in BackupManagerService()
929 PackageInfo packInfo = mPackageManager.getPackageInfo(info.packageName, 0); in BackupManagerService()
1076 info = mPackageManager.getPackageInfo(pkg, 0); in initPackageTracking()
1652 List<PackageInfo> packages = mPackageManager.getInstalledPackages(flags); in allAgentPackages()
1664 app = mPackageManager.getApplicationInfo(pkg.packageName, in allAgentPackages()
1821 PackageInfo info = mPackageManager.getPackageInfo(packageName, 0); in clearApplicationDataSynchronous()
2084 mPackageManager, allAgentPackages()); in beginBackup()
2141 mCurrentPackage = mPackageManager.getPackageInfo(request.packageName, in invokeNextAgent()
[all …]
DAppWidgetService.java57 PackageManager mPackageManager; field in AppWidgetService
DLocationManagerService.java142 private PackageManager mPackageManager; field in LocationManagerService
211 mPackageManager = mContext.getPackageManager(); in systemRunning()
1400 String[] packages = mPackageManager.getPackagesForUid(uid); in checkPackageName()
1849 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(packageName, 0); in doesPackageHaveUid()
/frameworks/base/services/java/com/android/server/usb/
DUsbSettingsManager.java79 private final PackageManager mPackageManager; field in UsbSettingsManager
391 mPackageManager = mUserContext.getPackageManager(); in UsbSettingsManager()
546 parser = ai.loadXmlMetaData(mPackageManager, metaDataName); in packageMatchesLocked()
579 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentActivities(intent, in getDeviceMatchesLocked()
594 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentActivities(intent, in getAccessoryMatchesLocked()
792 parser = aInfo.loadXmlMetaData(mPackageManager, metaDataName); in handlePackageUpdateLocked()
828 info = mPackageManager.getPackageInfo(packageName, in handlePackageUpdate()
900 ApplicationInfo aInfo = mPackageManager.getApplicationInfo(packageName, 0); in requestPermissionDialog()
/frameworks/base/services/java/com/android/server/accounts/
DAccountManagerService.java115 private final PackageManager mPackageManager; field in AccountManagerService
236 mPackageManager = packageManager; in AccountManagerService()
325 final boolean packageExists = mPackageManager.getPackagesForUid(uid) != null; in purgeOldGrants()
2699 (mPackageManager.checkSignatures(serviceInfo.uid, callingUid) in hasAuthenticatorUid()
2903 String[] packages = mPackageManager.getPackagesForUid(callingUid); in filterSharedAccounts()
2922 PackageInfo pi = mPackageManager.getPackageInfo(callingPackage, 0); in filterSharedAccounts()
2929 PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0); in filterSharedAccounts()
/frameworks/base/services/java/com/android/server/accessibility/
DAccessibilityManagerService.java165 private final PackageManager mPackageManager; field in AccessibilityManagerService
221 mPackageManager = mContext.getPackageManager(); in AccessibilityManagerService()
912 List<ResolveInfo> installedServices = mPackageManager.queryIntentServicesAsUser( in readInstalledAccessibilityServiceLocked()