/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/packagemanager/src/android/os/ |
D | PackageManagerPerfTest.java | 72 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testCheckPermissionExists() 91 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testCheckPermissionDoesntExist() 110 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testQueryIntentActivities() 129 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetPackageInfo() 147 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetApplicationInfo() 165 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetActivityInfo() 183 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetInstalledPackages()
|
/frameworks/base/core/java/android/service/quickaccesswallet/ |
D | QuickAccessWalletServiceInfo.java | 105 context.getPackageManager().queryIntentServices(intent, in getWalletServiceInfo() 124 PackageManager pm = context.getPackageManager(); in parseTileServiceMetadata() 165 PackageManager pm = context.getPackageManager(); in parseServiceMetadata() 242 Drawable drawable = mServiceInfo.loadLogo(context.getPackageManager()); in getWalletLogo() 246 return mServiceInfo.loadIcon(context.getPackageManager()); in getWalletLogo() 259 return mServiceInfo.loadLabel(context.getPackageManager()); in getShortcutShortLabel() 267 return mServiceInfo.loadLabel(context.getPackageManager()); in getShortcutLongLabel() 272 return mServiceInfo.loadLabel(context.getPackageManager()); in getServiceLabel()
|
/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/telephony/common/com/android/internal/telephony/ |
D | CarrierAppUtils.java | 143 PackageManager packageManager = context.getPackageManager(); in disableCarrierAppsUntilPrivileged() 184 .getPackageManager().getApplicationEnabledSetting(packageName); in disableCarrierAppsUntilPrivileged() 196 .getPackageManager() in disableCarrierAppsUntilPrivileged() 200 .getPackageManager() in disableCarrierAppsUntilPrivileged() 212 .getPackageManager() in disableCarrierAppsUntilPrivileged() 232 .getPackageManager() in disableCarrierAppsUntilPrivileged() 237 .getPackageManager() in disableCarrierAppsUntilPrivileged() 257 .getPackageManager() in disableCarrierAppsUntilPrivileged() 277 .getPackageManager() in disableCarrierAppsUntilPrivileged() 299 .getPackageManager() in disableCarrierAppsUntilPrivileged() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/ |
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/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageUtil.java | 58 return context.getPackageManager().getPackageArchiveInfo(sourceFile.getAbsolutePath(), in getPackageInfo() 99 final PackageManager pm = pContext.getPackageManager(); in initSnippetForInstalledApp() 102 icon = pContext.getPackageManager().getUserBadgedIcon(icon, user); in initSnippetForInstalledApp() 162 icon = pContext.getPackageManager().getDefaultActivityIcon(); in getAppSnippet() 179 PackageManager pm = context.getPackageManager(); in getMaxTargetSdkVersionForUid()
|
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 | DeviceUtils.java | 30 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH); in isWear() 34 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE); in isAuto()
|
D | InstallInstalling.java | 88 getPackageManager().installExistingPackage(appInfo.packageName); in onCreate() 108 getPackageManager().getPackageInstaller().abandonSession(mSessionId); in onCreate() 176 mSessionId = getPackageManager().getPackageInstaller().createSession(params); in onCreate() 224 PackageInstaller installer = getPackageManager().getPackageInstaller(); in onResume() 301 session = getPackageManager().getPackageInstaller().openSession(mSessionId); in doInBackground() 375 getPackageManager().getPackageInstaller().abandonSession(mSessionId); in onPostExecute()
|
D | InstallSuccess.java | 71 PackageManager pm = getPackageManager(); in onCreate() 81 mLaunchIntent = getPackageManager().getLaunchIntentForPackage(mAppPackageName); in onCreate() 115 List<ResolveInfo> list = getPackageManager().queryIntentActivities(mLaunchIntent, in bindUi()
|
D | InstallStart.java | 56 mPackageManager = getPackageManager(); in onCreate() 71 PackageInstaller packageInstaller = getPackageManager().getPackageInstaller(); in onCreate() 176 return getPackageManager().getApplicationInfo(callingPackage, 0); in getSourceInfo() 223 final ProviderInfo downloadProviderPackage = getPackageManager().resolveContentProvider( in isSystemDownloadsProvider()
|
/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()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | SoftRestrictedPermissionPolicy.java | 86 PackageManager pm = context.getPackageManager(); in getMinimumTargetSDK() 137 PackageManager pm = context.getPackageManager(); in forPermission() 237 final int flags = context.getPackageManager().getPermissionFlags(permission, in forPermission() 259 PackageManager packageManager = context.getPackageManager(); 280 PackageManager packageManager = context.getPackageManager();
|
/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/core/java/com/android/internal/accessibility/dialog/ |
D | AccessibilityActivityTarget.java | 43 shortcutInfo.getActivityInfo().loadLabel(context.getPackageManager()), in AccessibilityActivityTarget() 44 shortcutInfo.getActivityInfo().loadIcon(context.getPackageManager()), in AccessibilityActivityTarget()
|
D | AccessibilityServiceTarget.java | 45 serviceInfo.getResolveInfo().loadLabel(context.getPackageManager()), in AccessibilityServiceTarget() 46 serviceInfo.getResolveInfo().loadIcon(context.getPackageManager()), in AccessibilityServiceTarget()
|
/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 | 41 mPackageManager = context.getPackageManager(); in PackageManagerAdapter() 42 mIPackageManager = AppGlobals.getPackageManager(); in PackageManagerAdapter()
|
/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()
|
/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/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverWrapperActivity.java | 102 public PackageManager getPackageManager() { in getPackageManager() method in ResolverWrapperActivity 104 return sOverrides.createPackageManager.apply(super.getPackageManager()); in getPackageManager() 106 return super.getPackageManager(); in getPackageManager()
|
/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/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | ActivityTile.java | 59 final PackageManager pm = context.getApplicationContext().getPackageManager(); in getComponentInfo() 76 final PackageManager pm = context.getPackageManager(); in getComponentLabel()
|