Home
last modified time | relevance | path

Searched refs:mPackageManager (Results 1 – 20 of 20) 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()
134 PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0); in getProcessName()
151 boolean isleanback = !mPackageManager.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN) in launchActivity()
152 && !mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY); in launchActivity()
159 intent = mPackageManager.getLeanbackLaunchIntentForPackage(packageName); in launchActivity()
161 intent = mPackageManager.getLaunchIntentForPackage(packageName); in launchActivity()
/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()
DContextImpl.java240 private PackageManager mPackageManager; field in ContextImpl
793 if (mPackageManager != null) { in getPackageManager()
794 return mPackageManager; in getPackageManager()
800 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/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()
590 return mPackageManager.getHomeActivities(new ArrayList<ResolveInfo>()); in getPreferredHomeComponent()
DBackupManagerService.java251 private PackageManager mPackageManager; field in BackupManagerService
939 mPackageManager = context.getPackageManager(); in BackupManagerService()
1069 List<ResolveInfo> hosts = mPackageManager.queryIntentServicesAsUser( in BackupManagerService()
1206 info = mPackageManager.getPackageInfo(pkg, 0); in initPackageTracking()
1288 PackageManagerBackupAgent.getStorableApplications(mPackageManager); in readFullBackupSchedule()
1731 PackageInfo app = mPackageManager.getPackageInfo(pkgName, 0);
1769 PackageInfo app = mPackageManager.getPackageInfo(packageName, 0);
1845 List<ResolveInfo> hosts = mPackageManager.queryIntentServicesAsUser( in checkForTransportAndBind()
1857 PackageInfo packInfo = mPackageManager.getPackageInfo(info.packageName, 0); in tryBindTransport()
1977 List<PackageInfo> packages = mPackageManager.getInstalledPackages(flags); in allAgentPackages()
[all …]
/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/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/java/com/android/server/
DSystemServer.java155 private PackageManager mPackageManager; field in SystemServer
351 mPackageManager = mSystemContext.getPackageManager(); in startBootstrapServices()
672 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_ETHERNET)) { in startOtherServices()
810 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST) in startOtherServices()
811 || mPackageManager.hasSystemFeature( in startOtherServices()
834 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_BACKUP)) { in startOtherServices()
838 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_APP_WIDGETS)) { in startOtherServices()
842 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_VOICE_RECOGNIZERS)) { in startOtherServices()
909 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_PRINTING)) { in startOtherServices()
917 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_HDMI_CEC)) { in startOtherServices()
[all …]
/frameworks/base/services/core/java/com/android/server/
DMmsServiceBroker.java68 private volatile PackageManager mPackageManager = null; field in MmsServiceBroker
191 if (mPackageManager == null) { in getPackageManager()
192 mPackageManager = mContext.getPackageManager(); in getPackageManager()
194 return mPackageManager; in getPackageManager()
DLocationManagerService.java154 private PackageManager mPackageManager; field in LocationManagerService
229 mPackageManager = mContext.getPackageManager(); in systemRunning()
1515 String[] packages = mPackageManager.getPackagesForUid(uid); in checkPackageName()
2021 String[] packageNames = mPackageManager.getPackagesForUid(uid); in doesUidHavePackage()
/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/usb/java/com/android/server/usb/
DUsbSettingsManager.java81 private final PackageManager mPackageManager; field in UsbSettingsManager
508 mPackageManager = mUserContext.getPackageManager(); in UsbSettingsManager()
666 parser = ai.loadXmlMetaData(mPackageManager, metaDataName); in packageMatchesLocked()
699 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentActivities(intent, in getDeviceMatchesLocked()
714 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentActivities(intent, in getAccessoryMatchesLocked()
920 parser = aInfo.loadXmlMetaData(mPackageManager, metaDataName); in handlePackageUpdateLocked()
956 info = mPackageManager.getPackageInfo(packageName, in handlePackageUpdate()
1028 ApplicationInfo aInfo = mPackageManager.getApplicationInfo(packageName, 0); in requestPermissionDialog()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java117 private final PackageManager mPackageManager; field in AccountManagerService
253 mPackageManager = packageManager; in AccountManagerService()
346 final boolean packageExists = mPackageManager.getPackagesForUid(uid) != null; in purgeOldGrants()
3086 (mPackageManager.checkSignatures(serviceInfo.uid, callingUid) in hasAuthenticatorUid()
3303 String[] packages = mPackageManager.getPackagesForUid(callingUid); in filterSharedAccounts()
3322 PackageInfo pi = mPackageManager.getPackageInfo(callingPackage, 0); in filterSharedAccounts()
3329 PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0); in filterSharedAccounts()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java178 private final IPackageManager mPackageManager; field in AppWidgetServiceImpl
197 mPackageManager = AppGlobals.getPackageManager(); in AppWidgetServiceImpl()
2181 pkgInfo = mPackageManager.getPackageInfo(packageName, 0, userId); in getUidForPackage()
2217 return mPackageManager.queryIntentReceivers(intent, in queryIntentReceivers()
3044 ServiceInfo serviceInfo = mPackageManager.getServiceInfo(componentName, in enforceServiceExistsAndRequiresBindRemoteViewsPermission()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java175 private final PackageManager mPackageManager; field in AccessibilityManagerService
228 mPackageManager = mContext.getPackageManager(); in AccessibilityManagerService()
946 List<ResolveInfo> installedServices = mPackageManager.queryIntentServicesAsUser( in readInstalledAccessibilityServiceLocked()