/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/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | DeviceUtils.java | 24 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_LEANBACK); in isTelevision() 28 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH); in isWear() 32 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE); in isAuto()
|
D | PackageInstalledNotificationUtils.java | 74 installerAppInfo = context.getPackageManager().getApplicationInfo(installerPackage, in PackageInstalledNotificationUtils() 81 installedAppInfo = context.getPackageManager().getApplicationInfo(installedPackage, in PackageInstalledNotificationUtils() 109 CharSequence label = appInfo.loadSafeLabel(context.getPackageManager(), in getAppLabel() 173 PackageManager pm = context.getPackageManager(); in getAppNotificationColor() 191 ResolveInfo result = context.getPackageManager().resolveActivity(i, 0); in resolveIntent() 234 Intent intent = mContext.getPackageManager().getLaunchIntentForPackage(mInstalledPackage); in getInstalledAppLaunchIntent() 256 Intent intent = mContext.getPackageManager().getLaunchIntentForPackage(mInstallerPackage); in getInstallerEntranceIntent()
|
D | InstallInstalling.java | 86 getPackageManager().installExistingPackage(appInfo.packageName); in onCreate() 114 getPackageManager().getPackageInstaller().abandonSession(mSessionId); in onCreate() 151 getPackageManager().getPackageInstaller().openSession( in onCreate() 202 PackageInstaller installer = getPackageManager().getPackageInstaller(); in onResume() 289 return getPackageManager().getPackageInstaller().openSession(mSessionId); in doInBackground() 329 getPackageManager().getPackageInstaller().abandonSession(mSessionId); in onPostExecute()
|
D | UnarchiveActivity.java | 97 PackageManager pm = getPackageManager(); in onCreate() 130 requestedPermissions = getPackageManager() in getRequestedPermissions() 141 getPackageManager().getPackageInstaller().requestUnarchive(mPackageName, mIntentSender); in startUnarchive() 163 String[] packagesForUid = getPackageManager().getPackagesForUid(sourceUid); in getPackageNameForUid()
|
D | PackageUtil.java | 88 return context.getPackageManager().getPackageArchiveInfo(filePath, flags); in getPackageInfo() 128 final PackageManager pm = pContext.getPackageManager(); in initSnippetForInstalledApp() 131 icon = pContext.getPackageManager().getUserBadgedIcon(icon, user); in initSnippetForInstalledApp() 239 PackageManager pm = pContext.getPackageManager(); in getAppSnippet() 277 icon = pContext.getPackageManager().getDefaultActivityIcon(); in getAppSnippet() 304 PackageManager pm = context.getPackageManager(); in getMaxTargetSdkVersionForUid()
|
D | InstallSuccess.java | 73 mLaunchIntent = getPackageManager().getLaunchIntentForPackage(mAppPackageName); in onCreate() 114 List<ResolveInfo> list = getPackageManager().queryIntentActivities(mLaunchIntent, in bindUi() 142 return getPackageManager().getComponentEnabledSetting(intent.getComponent()) in isLauncherActivityEnabled()
|
D | PackageInstalledReceiver.java | 37 if (!context.getPackageManager().shouldShowNewAppInstalledNotification()) { in onReceive() 68 context.getPackageManager().getInstallSourceInfo(packageName); in onReceive()
|
/frameworks/base/apct-tests/perftests/packagemanager/src/android/os/ |
D | PackageManagerPerfTest.java | 81 mPackageInstaller = mContext.getPackageManager().getPackageInstaller(); in PackageManagerPerfTest() 117 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetAppMetadata() 135 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testCheckPermissionExists() 154 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testCheckPermissionDoesntExist() 173 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testQueryIntentActivities() 192 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetPackageInfo() 210 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetApplicationInfo() 228 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetActivityInfo() 246 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetInstalledPackages()
|
/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/SettingsLib/AvatarPicker/src/ |
D | PhotoCapabilityUtils.java | 36 return context.getPackageManager().queryIntentActivities( in canTakePhoto() 51 context.getPackageManager().queryIntentActivities(intent, 0).size() > 0; in canChoosePhoto() 66 context.getPackageManager().queryIntentActivities(intent, 0).size() > 0; in canCropPhoto()
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | CarrierAppUtils.java | 144 PackageManager packageManager = context.getPackageManager(); in disableCarrierAppsUntilPrivileged() 185 .getPackageManager().getApplicationEnabledSetting(packageName); in disableCarrierAppsUntilPrivileged() 197 .getPackageManager() in disableCarrierAppsUntilPrivileged() 201 .getPackageManager() in disableCarrierAppsUntilPrivileged() 213 .getPackageManager() in disableCarrierAppsUntilPrivileged() 233 .getPackageManager() in disableCarrierAppsUntilPrivileged() 238 .getPackageManager() in disableCarrierAppsUntilPrivileged() 266 .getPackageManager() in disableCarrierAppsUntilPrivileged() 288 .getPackageManager() in disableCarrierAppsUntilPrivileged() 310 .getPackageManager() in disableCarrierAppsUntilPrivileged() [all …]
|
/frameworks/base/core/java/android/service/quickaccesswallet/ |
D | QuickAccessWalletServiceInfo.java | 135 context.getPackageManager().queryIntentServices(intent, in getWalletServiceInfo() 154 PackageManager pm = context.getPackageManager(); in parseTileServiceMetadata() 195 PackageManager pm = context.getPackageManager(); in parseServiceMetadata() 272 Drawable drawable = mServiceInfo.loadLogo(context.getPackageManager()); in getWalletLogo() 276 return mServiceInfo.loadIcon(context.getPackageManager()); in getWalletLogo() 289 return mServiceInfo.loadLabel(context.getPackageManager()); in getShortcutShortLabel() 297 return mServiceInfo.loadLabel(context.getPackageManager()); in getShortcutLongLabel() 302 return mServiceInfo.loadLabel(context.getPackageManager()); in getServiceLabel()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | HeavyWeightSwitcherActivity.java | 105 ApplicationInfo info = getPackageManager().getApplicationInfo( in setIconAndText() 107 appName = info.loadLabel(getPackageManager()); in setIconAndText() 108 appIcon = info.loadIcon(getPackageManager()); in setIconAndText() 119 ApplicationInfo info = getPackageManager().getApplicationInfo( in setIconAndText() 121 otherAppName = info.loadLabel(getPackageManager()); in setIconAndText()
|
D | HarmfulAppWarningActivity.java | 68 applicationInfo = getPackageManager().getApplicationInfo(mPackageName, 0 /*flags*/); in onCreate() 91 .setText(applicationInfo.loadSafeLabel(getPackageManager(), in createView() 104 getPackageManager().deletePackage(mPackageName, null /*observer*/, 0 /*flags*/); in onClick() 109 getPackageManager().setHarmfulAppWarning(mPackageName, null /*warning*/); in onClick()
|
/frameworks/base/core/tests/packagemonitortests/src/com/android/internal/content/ |
D | PackageMonitorVisibilityTest.java | 62 context.getPackageManager().registerPackageMonitorCallback(callback, 0); in testPackageMonitorCallbackMultipleRegisterThrowsException() 64 () -> context.getPackageManager().registerPackageMonitorCallback(callback, 0)); in testPackageMonitorCallbackMultipleRegisterThrowsException() 66 context.getPackageManager().unregisterPackageMonitorCallback(callback); in testPackageMonitorCallbackMultipleRegisterThrowsException() 83 int expectedUid = context.getPackageManager().getPackageUid(TEAT_APK_PACKAGE_NAME, in testPackageMonitorPackageVisible()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | SoftRestrictedPermissionPolicy.java | 85 PackageManager pm = context.getPackageManager(); in getMinimumTargetSDK() 136 PackageManager pm = context.getPackageManager(); in forPermission() 236 final int flags = context.getPackageManager().getPermissionFlags(permission, in forPermission() 258 PackageManager packageManager = context.getPackageManager(); 279 PackageManager packageManager = context.getPackageManager();
|
/frameworks/base/services/core/java/com/android/server/crashrecovery/ |
D | CrashRecoveryHelper.java | 70 PackageManager pm = mContext.getPackageManager(); in isModule() 99 final PackageManager pm = mContext.getPackageManager(); in getVersionedPackage() 118 PackageManager pm = mContext.getPackageManager(); in getPackageInfo()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
D | BiometricNotificationDialogFactoryTest.java | 91 assumeTrue(getContext().getPackageManager() in testFingerprintReEnrollDialog_onRemovalSucceeded() 117 assumeTrue(getContext().getPackageManager() in testFingerprintReEnrollDialog_onRemovalError() 141 assumeTrue(getContext().getPackageManager() in testFingerprintReEnrollDialog_forced() 154 assumeTrue(getContext().getPackageManager() in testFaceReEnrollDialog_onRemovalSucceeded() 180 assumeTrue(getContext().getPackageManager() in testFaceReEnrollDialog_onRemovalError()
|
/frameworks/base/core/java/android/app/ |
D | AppGlobals.java | 51 public static IPackageManager getPackageManager() { in getPackageManager() method in AppGlobals 52 return ActivityThread.getPackageManager(); in getPackageManager()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/rollback/ |
D | RollbackPackageHealthObserverTest.java | 235 when(mMockContext.getPackageManager()).thenReturn(mMockPackageManager); in testMayObservePackage_forPersistentApp() 248 when(mMockContext.getPackageManager()).thenReturn(mMockPackageManager); in testMayObservePackage_forNonPersistentApp() 276 when(mMockContext.getPackageManager()).thenReturn(mMockPackageManager); in healthCheckFailed_impactLevelLow_onePackage() 307 when(mMockContext.getPackageManager()).thenReturn(mMockPackageManager); in healthCheckFailed_impactLevelHigh_onePackage() 338 when(mMockContext.getPackageManager()).thenReturn(mMockPackageManager); in healthCheckFailed_impactLevelManualOnly_onePackage() 377 when(mMockContext.getPackageManager()).thenReturn(mMockPackageManager); in healthCheckFailed_impactLevelLowAndHigh_onePackage() 408 when(mMockContext.getPackageManager()).thenReturn(mMockPackageManager); in execute_impactLevelLow_nativeCrash_rollback() 452 when(mMockContext.getPackageManager()).thenReturn(mMockPackageManager); in execute_impactLevelLow_rollbackFailedPackage() 497 when(mMockContext.getPackageManager()).thenReturn(mMockPackageManager); in execute_impactLevelLow_rollbackAll() 543 when(mMockContext.getPackageManager()).thenReturn(mMockPackageManager); in execute_impactLevelLowAndHigh_rollbackLow() [all …]
|
/frameworks/base/packages/overlays/tests/src/com/android/theme/icon/ |
D | IconPackOverlayTest.java | 153 targetResources = mContext.getPackageManager() in containsAllOverlayedIcons() 163 info = mContext.getPackageManager().getApplicationInfo(overlayPackage, 0); in containsAllOverlayedIcons() 186 targetRes = mContext.getPackageManager().getResourcesForApplication(targetPkg); in hasEqualVectorDrawableAttributes() 196 info = mContext.getPackageManager().getApplicationInfo(overlayPkg, 0); in hasEqualVectorDrawableAttributes() 203 overlayRes = mContext.getPackageManager().getResourcesForApplication(overlayPkg); in hasEqualVectorDrawableAttributes()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | PackageManagerAdapter.java | 44 mPackageManager = context.getPackageManager(); in PackageManagerAdapter() 45 mIPackageManager = AppGlobals.getPackageManager(); in PackageManagerAdapter()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationShellCommand.java | 155 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in handleIsAdasGnssLocationEnabled() 177 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in handleSetAdasGnssLocationEnabled() 201 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in handleSetAutomotiveGnssSuspended() 211 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in handleIsAutomotiveGnssSuspended() 381 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in onHelp()
|
/frameworks/base/apct-tests/perftests/core/src/android/content/pm/ |
D | PackageManagerBenchmark.java | 53 context.getPackageManager().getResourcesForApplicationAsUser(context.getPackageName(), in getResourcesForApplication_byStarAsUser() 65 context.createContextAsUser(UserHandle.SYSTEM, /* flags */ 0).getPackageManager() in getResourcesApplication_byCreateContextAsUser()
|