/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | MetaDataTest.java | 62 XmlResourceParser xml = ci.loadXmlMetaData(mContext.getPackageManager(), in checkMetaData() 103 ActivityInfo ai = mContext.getPackageManager().getActivityInfo( in testActivityWithData() 108 ai = mContext.getPackageManager().getActivityInfo(cn, 0); in testActivityWithData() 116 ActivityInfo ai = mContext.getPackageManager().getReceiverInfo( in testReceiverWithData() 121 ai = mContext.getPackageManager().getReceiverInfo(cn, 0); in testReceiverWithData() 129 ServiceInfo si = mContext.getPackageManager().getServiceInfo( in testServiceWithData() 134 si = mContext.getPackageManager().getServiceInfo(cn, 0); in testServiceWithData() 142 ProviderInfo pi = mContext.getPackageManager().resolveContentProvider( in testProviderWithData() 147 pi = mContext.getPackageManager().resolveContentProvider( in testProviderWithData() 157 PermissionInfo pi = mContext.getPackageManager().getPermissionInfo( in testPermissionWithData() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | PackageManagerPerfTest.java | 49 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testCheckPermissionExists() 60 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testCheckPermissionDoesntExist() 71 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testQueryIntentActivities() 82 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testGetPackageInfo() 93 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testGetApplicationInfo() 104 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testGetActivityInfo()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsWrapper.java | 96 return AppGlobals.getPackageManager().checkUidPermission( in getOverrideWifiConfigPermission() 108 return AppGlobals.getPackageManager().checkUidPermission( in getChangeWifiConfigPermission() 120 return AppGlobals.getPackageManager().checkUidPermission( in getAccessWifiStatePermission() 132 return AppGlobals.getPackageManager().checkUidPermission( in getLocalMacAddressPermission()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | LaunchWarningWindow.java | 46 icon.setImageDrawable(next.info.applicationInfo.loadIcon(context.getPackageManager())); in LaunchWarningWindow() 49 next.info.applicationInfo.loadLabel(context.getPackageManager()).toString())); in LaunchWarningWindow() 51 icon.setImageDrawable(cur.info.applicationInfo.loadIcon(context.getPackageManager())); in LaunchWarningWindow() 54 cur.info.applicationInfo.loadLabel(context.getPackageManager()).toString())); in LaunchWarningWindow()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageUtil.java | 58 parser.setCallback(new PackageParser.CallbackImpl(context.getPackageManager())); in getPackageInfo() 100 final PackageManager pm = pContext.getPackageManager(); in initSnippetForInstalledApp() 103 icon = pContext.getPackageManager().getUserBadgedIcon(icon, user); in initSnippetForInstalledApp() 158 icon = pContext.getPackageManager().getDefaultActivityIcon(); in getAppSnippet() 175 PackageManager pm = context.getPackageManager(); in getMaxTargetSdkVersionForUid()
|
D | InstallInstalling.java | 89 getPackageManager().installExistingPackage(appInfo.packageName); in onCreate() 108 getPackageManager().getPackageInstaller().abandonSession(mSessionId); in onCreate() 170 mSessionId = getPackageManager().getPackageInstaller().createSession(params); in onCreate() 215 getPackageManager().getPackageInstaller().registerSessionCallback(mSessionCallback); in onStart() 224 PackageInstaller installer = getPackageManager().getPackageInstaller(); in onResume() 257 getPackageManager().getPackageInstaller().unregisterSessionCallback(mSessionCallback); in onStop() 340 session = getPackageManager().getPackageInstaller().openSession(mSessionId); in doInBackground() 410 getPackageManager().getPackageInstaller().abandonSession(mSessionId); in onPostExecute()
|
D | PackageInstalledNotificationUtils.java | 73 installerAppInfo = context.getPackageManager().getApplicationInfo(installerPackage, in PackageInstalledNotificationUtils() 80 installedAppInfo = context.getPackageManager().getApplicationInfo(installedPackage, in PackageInstalledNotificationUtils() 108 CharSequence label = appInfo.loadSafeLabel(context.getPackageManager(), in getAppLabel() 172 PackageManager pm = context.getPackageManager(); in getAppNotificationColor() 190 ResolveInfo result = context.getPackageManager().resolveActivity(i, 0); in resolveIntent() 233 Intent intent = mContext.getPackageManager().getLaunchIntentForPackage(mInstalledPackage); in getInstalledAppLaunchIntent() 255 Intent intent = mContext.getPackageManager().getLaunchIntentForPackage(mInstallerPackage); in getInstallerEntranceIntent()
|
D | InstallStart.java | 53 mIPackageManager = AppGlobals.getPackageManager(); in onCreate() 66 PackageInstaller packageInstaller = getPackageManager().getPackageInstaller(); in onCreate() 146 if (uid == getPackageManager().getPackageUid(packageName, 0)) { in declaresAppOpPermission() 165 return getPackageManager().getApplicationInfo(callingPackage, 0); in getSourceInfo() 216 final ProviderInfo downloadProviderPackage = getPackageManager().resolveContentProvider( in isSystemDownloadsProvider()
|
D | DeviceUtils.java | 30 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH); in isWear() 34 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE); in isAuto()
|
D | InstallSuccess.java | 62 PackageManager pm = getPackageManager(); in onCreate() 87 Intent launchIntent = getPackageManager().getLaunchIntentForPackage( in onCreate() 91 List<ResolveInfo> list = getPackageManager().queryIntentActivities(launchIntent, in onCreate()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | HeavyWeightSwitcherActivity.java | 104 ApplicationInfo info = getPackageManager().getApplicationInfo( in setIconAndText() 106 appName = info.loadLabel(getPackageManager()); in setIconAndText() 107 appIcon = info.loadIcon(getPackageManager()); in setIconAndText() 118 ApplicationInfo info = getPackageManager().getApplicationInfo( in setIconAndText() 120 otherAppName = info.loadLabel(getPackageManager()); in setIconAndText()
|
D | HarmfulAppWarningActivity.java | 63 applicationInfo = getPackageManager().getApplicationInfo(mPackageName, 0 /*flags*/); in onCreate() 86 .setText(applicationInfo.loadSafeLabel(getPackageManager(), in createView() 99 getPackageManager().deletePackage(mPackageName, null /*observer*/, 0 /*flags*/); in onClick() 104 getPackageManager().setHarmfulAppWarning(mPackageName, null /*warning*/); in onClick()
|
D | IntentForwarderActivity.java | 292 return AppGlobals.getPackageManager(); in getIPackageManager() 301 public PackageManager getPackageManager() { in getPackageManager() method in IntentForwarderActivity.InjectorImpl 302 return IntentForwarderActivity.this.getPackageManager(); in getPackageManager() 307 return getPackageManager().resolveActivityAsUser(intent, flags, userId); in resolveActivityAsUser() 321 PackageManager getPackageManager(); in getPackageManager() method
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverWrapperActivity.java | 60 public PackageManager getPackageManager() { in getPackageManager() method in ResolverWrapperActivity 62 return sOverrides.createPackageManager.apply(super.getPackageManager()); in getPackageManager() 64 return super.getPackageManager(); in getPackageManager()
|
D | ChooserWrapperActivity.java | 81 public PackageManager getPackageManager() { in getPackageManager() method in ChooserWrapperActivity 83 return sOverrides.createPackageManager.apply(super.getPackageManager()); in getPackageManager() 85 return super.getPackageManager(); in getPackageManager()
|
/frameworks/base/services/core/java/com/android/server/policy/role/ |
D | LegacyRoleResolutionPolicy.java | 79 } else if (mContext.getPackageManager().isDeviceUpgrading()) { in getRoleHolders() 100 } else if (mContext.getPackageManager().isDeviceUpgrading()) { in getRoleHolders() 117 } else if (mContext.getPackageManager().isDeviceUpgrading()) { in getRoleHolders() 127 PackageManager packageManager = mContext.getPackageManager(); in getRoleHolders()
|
/frameworks/base/core/java/android/app/ |
D | AppGlobals.java | 50 public static IPackageManager getPackageManager() { in getPackageManager() method in AppGlobals 51 return ActivityThread.getPackageManager(); in getPackageManager()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | DefaultPermissionGrantPolicy.java | 325 List<PackageInfo> packages = mContext.getPackageManager().getInstalledPackagesAsUser( in grantPermissionsToSysComponentsAndPrivApps() 673 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH, 0)) { in grantDefaultSystemHandlerPermissions() 724 mContext.getPackageManager().getSystemTextClassifierPackageName(); in grantDefaultSystemHandlerPermissions() 733 mContext.getPackageManager().getAttentionServicePackageName(); in grantDefaultSystemHandlerPermissions() 746 mContext.getPackageManager().getSystemCaptionsServicePackageName(); in grantDefaultSystemHandlerPermissions() 778 mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH, 0); in grantDefaultPermissionsToDefaultSystemDialerApp() 900 ResolveInfo handler = mContext.getPackageManager().resolveActivityAsUser( in getDefaultSystemHandlerActivityPackage() 918 List<ResolveInfo> handlers = mContext.getPackageManager().queryIntentServicesAsUser( in getDefaultSystemHandlerServicePackage() 943 ResolveInfo homeActivity = mContext.getPackageManager().resolveActivityAsUser( in getHeadlessSyncAdapterPackages() 958 ProviderInfo provider = mContext.getPackageManager().resolveContentProviderAsUser( in getDefaultProviderAuthorityPackage() [all …]
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/ |
D | IntentFilterVerificationReceiver.java | 101 sendErrorToPackageManager(context.getPackageManager(), verificationId); in onReceive() 120 sendErrorToPackageManager(context.getPackageManager(), verificationId); in onReceive() 128 sendErrorToPackageManager(context.getPackageManager(), verificationId); in onReceive() 133 new Handler(), context.getPackageManager(), verificationId)); in onReceive()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | PackageManagerAdapter.java | 41 mPackageManager = context.getPackageManager(); in PackageManagerAdapter() 42 mIPackageManager = AppGlobals.getPackageManager(); in PackageManagerAdapter()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | SetPersistentVrThreadTest.java | 88 if (!mActivity.getPackageManager().hasSystemFeature( in testSetPersistentVrThreadAPISuccess() 125 if (!mActivity.getPackageManager().hasSystemFeature( in testSetPersistentVrThreadAPIFailure() 138 if (!mActivity.getPackageManager().hasSystemFeature( in testSetVrThreadAPIFailsInPersistentMode()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsPermissions.java | 92 && callingUid == mContext.getPackageManager().getPackageUid( in enforceCallerIsImsAppOrCarrierApp() 190 != mContext.getPackageManager().getPackageUid(packageName, 0)) { in packageNameMatchesCallingUid() 192 + mContext.getPackageManager().getPackageUid(packageName, 0) in packageNameMatchesCallingUid()
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | AndroidPackageInfoFetcher.java | 75 PackageInfo packageInfo = mContext.getPackageManager().getPackageInfo( in getStatements() 87 mContext.getPackageManager().getResourcesForApplication(packageName) in getStatements()
|
/frameworks/base/services/core/java/com/android/server/utils/ |
D | AppInstallerUtil.java | 28 ResolveInfo result = context.getPackageManager().resolveActivity(i, 0); in resolveIntent() 40 context.getPackageManager().getInstallerPackageName(packageName); in getInstallerPackageName()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | SoftRestrictedPermissionPolicy.java | 90 PackageManager pm = context.getPackageManager(); in getMinimumTargetSDK() 140 PackageManager pm = context.getPackageManager(); in forPermission() 217 final int flags = context.getPackageManager().getPermissionFlags(permission, in forPermission()
|