/frameworks/base/services/tests/PackageManagerServiceTests/host/test-apps/OverlayActor/src/com/android/server/pm/test/overlay/actor/ |
D | OverlayableVisibilityTest.kt | 34 private val packageManager = context.packageManager constant in com.android.server.pm.test.overlay.actor.OverlayableVisibilityTest 38 assertThat(packageManager.getApplicationInfo(TARGET_PACKAGE, 0)).isNotNull() in verifyVisible() 39 assertThat(packageManager.getApplicationInfo(OVERLAY_PACKAGE, 0)).isNotNull() in verifyVisible() 45 packageManager.getApplicationInfo(TARGET_PACKAGE, 0) in verifyNotVisible() 48 packageManager.getApplicationInfo(OVERLAY_PACKAGE, 0) in verifyNotVisible()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/models/recommendation/ |
D | SmartspaceMediaData.kt | 72 val packageManager = context.packageManager in getAppName() constant 73 packageManager.getLaunchIntentForPackage(packageName)?.let { in getAppName() 74 val launchActivity = it.resolveActivityInfo(packageManager, 0) in getAppName() 75 return launchActivity.loadLabel(packageManager) in getAppName() 84 val applicationInfo = packageManager.getApplicationInfo(packageName, /* flags= */ 0) in getAppName() 85 packageManager.getApplicationLabel(applicationInfo) in getAppName()
|
/frameworks/base/core/java/android/accessibilityservice/ |
D | AccessibilityShortcutInfo.java | 120 final PackageManager packageManager = context.getPackageManager(); in AccessibilityShortcutInfo() local 125 packageManager, META_DATA)) { in AccessibilityShortcutInfo() 143 final Resources resources = packageManager.getResourcesForApplication( in AccessibilityShortcutInfo() 205 public String loadSummary(@NonNull PackageManager packageManager) { in loadSummary() argument 206 return loadResourceString(packageManager, mActivityInfo, mSummaryResId); in loadSummary() 215 public String loadIntro(@NonNull PackageManager packageManager) { in loadIntro() argument 216 return loadResourceString(packageManager, mActivityInfo, mIntroResId); in loadIntro() 225 public String loadDescription(@NonNull PackageManager packageManager) { in loadDescription() argument 226 return loadResourceString(packageManager, mActivityInfo, mDescriptionResId); in loadDescription() 266 public String loadHtmlDescription(@NonNull PackageManager packageManager) { in loadHtmlDescription() argument [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | ControlsRequestReceiverTest.kt | 53 private lateinit var packageManager: PackageManager variable in com.android.systemui.controls.management.ControlsRequestReceiverTest 68 mContext.setMockPackageManager(packageManager) in setUp() 69 `when`(packageManager.hasSystemFeature(PackageManager.FEATURE_CONTROLS)).thenReturn(true) in setUp() 84 `when`(packageManager.getPackageUid(anyString(), anyInt())) in testPackageVerification_nonExistentPackage() 92 `when`(packageManager.getPackageUid(anyString(), anyInt())).thenReturn(12345) in testPackageVerification_uidNotInForeground() 101 `when`(packageManager.getPackageUid(anyString(), anyInt())).thenReturn(12345) in testPackageVerification_OK() 111 `when`(packageManager.getPackageUid(eq(componentName.packageName), anyInt())) in testOnReceive_packageNotVerified_nameNotFound() 121 `when`(packageManager.getPackageUid(eq(componentName.packageName), anyInt())) in testOnReceive_packageNotVerified_notForeground() 133 `when`(packageManager.getPackageUid(eq(componentName.packageName), anyInt())) in testOnReceive_OK() 151 `when`(packageManager.hasSystemFeature(PackageManager.FEATURE_CONTROLS)).thenReturn(false) in testFeatureDisabled_activityNotStarted()
|
D | ControlsListingControllerImplTest.kt | 88 private lateinit var packageManager: PackageManager variable in com.android.systemui.controls.management.ControlsListingControllerImplTest 113 `when`(packageManager.getComponentEnabledSetting(any())) in setUp() 115 mContext.setMockPackageManager(packageManager) in setUp() 368 `when`(packageManager.getComponentEnabledSetting(eq(activityName))) in testActivityEnabled_correctPanel() 394 `when`(packageManager.getComponentEnabledSetting(eq(activityName))) in testActivityDefaultEnabled_correctPanel() 421 `when`(packageManager.getComponentEnabledSetting(eq(activityName))) in testActivityDefaultDisabled_nullPanel() 449 `when`(packageManager.getComponentEnabledSetting(eq(activityName))) in testActivityDefaultEnabled_flagDisabled_nullPanel() 476 `when`(packageManager.getComponentEnabledSetting(eq(activityName))) in testActivityDifferentPackage_nullPanel() 506 `when`(packageManager.getComponentEnabledSetting(eq(activityName))) in testPackageNotPreferred_nullPanel() 537 `when`(packageManager.getComponentEnabledSetting(eq(activityName))) in testPackageNotPreferred_allowAllApps_correctPanel() [all …]
|
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/ |
D | BatteryConsumerInfoHelper.java | 46 PackageManager packageManager) { in makeBatteryConsumerInfo() argument 55 return makeBatteryConsumerInfo(consumer, packageManager); in makeBatteryConsumerInfo() 69 UidBatteryConsumer uidBatteryConsumer, PackageManager packageManager) { in makeBatteryConsumerInfo() argument 80 String[] packages = packageManager.getPackagesForUid(uid); in makeBatteryConsumerInfo() 96 packageManager.getApplicationInfo(primaryPackageName, 0); in makeBatteryConsumerInfo() 97 info.label = applicationInfo.loadLabel(packageManager); in makeBatteryConsumerInfo() 129 packageManager.getApplicationInfo(SYSTEM_SERVER_PACKAGE_NAME, 0); in makeBatteryConsumerInfo()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | WorkLockActivityTest.kt | 52 private val packageManager: PackageManager = mock() constant in com.android.systemui.keyguard.WorkLockActivityTest 63 packageManager: PackageManager, 64 ) : WorkLockActivity(broadcastDispatcher, userManager, packageManager) { 80 packageManager = packageManager in setUp() 88 packageManager.getApplicationInfoAsUser( in testGetBadgedIcon() 95 whenever(packageManager.getApplicationIcon(ArgumentMatchers.eq(info))).thenReturn(drawable) in testGetBadgedIcon()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PackageBasedTokenUtil.java | 46 PackageManager packageManager = context.getPackageManager(); in generateToken() local 47 String token = generatePackageBasedToken(packageManager, packageName); in generateToken() 51 packageManager.getInstalledPackages(PackageManager.GET_META_DATA); in generateToken() 59 String otherToken = generatePackageBasedToken(packageManager, otherPackageName); in generateToken() 70 PackageManager packageManager, String packageName) { in generatePackageBasedToken() argument 76 signatures = packageManager.getPackageInfo( in generatePackageBasedToken()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/data/ |
D | RecentTaskLabelLoader.kt | 36 private val packageManager: PackageManager in loadLabel() constant in com.android.systemui.mediaprojection.appselector.data.ActivityTaskManagerLabelLoader 46 packageManager.getApplicationInfo( in loadLabel() 50 val label = packageManager.getApplicationLabel(appInfo) in loadLabel() 51 return@withContext packageManager.getUserBadgedLabel(label, userHandle) in loadLabel()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | TargetSdkResolverTest.kt | 53 private val packageManager: PackageManager = mock() constant in com.android.systemui.statusbar.notification.collection.TargetSdkResolverTest 62 mContext.setMockPackageManager(packageManager) in setUp() 83 verifyZeroInteractions(packageManager) in resolveFromNotificationExtras() 90 whenever(packageManager.getApplicationInfo(anyString(), anyInt())) in resolveFromPackageManager() 96 verify(packageManager).getApplicationInfo(eq(PACKAGE), anyInt()) in resolveFromPackageManager() 103 whenever(packageManager.getApplicationInfo(anyString(), anyInt())) in resolveFromPackageManager_andPackageManagerCrashes() 109 verify(packageManager).getApplicationInfo(eq(PACKAGE), anyInt()) in resolveFromPackageManager_andPackageManagerCrashes()
|
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/ |
D | Utils.java | 62 final PackageManager packageManager = context.getPackageManager(); in getApplicationLabel() local 64 final ApplicationInfo appInfo = packageManager.getApplicationInfoAsUser( in getApplicationLabel() 67 return packageManager.getApplicationLabel(appInfo); in getApplicationLabel() 72 final PackageManager packageManager = context.getPackageManager(); in getApplicationIcon() local 73 return packageManager.getApplicationIcon(packageName); in getApplicationIcon() 128 final PackageManager packageManager = context.getPackageManager(); in getApplicationInfo() local 130 final ApplicationInfo appInfo = packageManager.getApplicationInfoAsUser( in getApplicationInfo()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/enterprise/ |
D | ManagedDeviceActionDisabledByAdminController.java | 89 PackageManager packageManager = context.getPackageManager(); in canLaunchHelpPageInPreferredOrCurrentUser() local 91 packageManager, url, preferredUserHandle, mResolveActivityChecker) in canLaunchHelpPageInPreferredOrCurrentUser() 96 packageManager, url, context.getUser(), mResolveActivityChecker); in canLaunchHelpPageInPreferredOrCurrentUser() 106 PackageManager packageManager = context.getPackageManager(); in setupLearnMoreButtonToLaunchHelpPage() local 108 packageManager, url, preferredUserHandle, mResolveActivityChecker) in setupLearnMoreButtonToLaunchHelpPage() 113 packageManager, url, context.getUser(), mResolveActivityChecker)) { in setupLearnMoreButtonToLaunchHelpPage()
|
D | ActionDisabledLearnMoreButtonLauncher.java | 39 (packageManager, url, userHandle) -> packageManager.resolveActivityAsUser( 46 PackageManager packageManager, String url, UserHandle userHandle); in canResolveActivityAsUser() argument 126 PackageManager packageManager, in canLaunchHelpPage() argument 130 return resolveActivityChecker.canResolveActivityAsUser(packageManager, url, userHandle); in canLaunchHelpPage()
|
/frameworks/base/core/java/android/content/pm/ |
D | InstantAppInfo.java | 93 public @NonNull CharSequence loadLabel(@NonNull PackageManager packageManager) { in loadLabel() argument 95 return mApplicationInfo.loadLabel(packageManager); in loadLabel() 104 public @NonNull Drawable loadIcon(@NonNull PackageManager packageManager) { in loadIcon() argument 106 return mApplicationInfo.loadIcon(packageManager); in loadIcon() 108 return packageManager.getInstantAppIcon(mPackageName); in loadIcon()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/common/ |
D | MediaTttUtils.kt | 57 val packageManager = context.packageManager in getIconInfoFromPackageName() constant 60 packageManager in getIconInfoFromPackageName() 65 .loadLabel(packageManager) in getIconInfoFromPackageName() 81 MediaTttIcon.Loaded(packageManager.getApplicationIcon(appPackageName)), in getIconInfoFromPackageName()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | WorkProfileMessageController.kt | 42 private val packageManager: PackageManager, constant in com.android.systemui.screenshot.WorkProfileMessageController 58 packageManager.getActivityInfo( in onScreenshotTaken() 62 val icon = packageManager.getActivityIcon(fileManager) in onScreenshotTaken() 63 badgedIcon = packageManager.getUserBadgedIcon(icon, userHandle) in onScreenshotTaken() 64 label = info.loadLabel(packageManager) in onScreenshotTaken()
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | SmsApplication.java | 252 PackageManager packageManager = context.getPackageManager(); in getApplicationCollectionInternal() local 260 List<ResolveInfo> smsReceivers = packageManager.queryBroadcastReceiversAsUser(intent, in getApplicationCollectionInternal() 287 List<ResolveInfo> mmsReceivers = packageManager.queryBroadcastReceiversAsUser(intent, in getApplicationCollectionInternal() 308 List<ResolveInfo> respondServices = packageManager.queryIntentServicesAsUser(intent, in getApplicationCollectionInternal() 329 List<ResolveInfo> sendToActivities = packageManager.queryIntentActivitiesAsUser(intent, in getApplicationCollectionInternal() 347 packageManager.queryBroadcastReceiversAsUser(intent, in getApplicationCollectionInternal() 374 packageManager.queryBroadcastReceiversAsUser(intent, in getApplicationCollectionInternal() 401 packageManager.queryBroadcastReceiversAsUser(intent, in getApplicationCollectionInternal() 540 PackageManager packageManager = context.getPackageManager(); in defaultSmsAppChanged() local 546 assignExclusiveSmsPermissionsToSystemApp(context, packageManager, appOps, in defaultSmsAppChanged() [all …]
|
D | CellBroadcastUtils.java | 39 PackageManager packageManager = context.getPackageManager(); in getDefaultCellBroadcastReceiverPackageName() local 40 ResolveInfo resolveInfo = packageManager.resolveActivity( in getDefaultCellBroadcastReceiverPackageName() 56 if (TextUtils.isEmpty(packageName) || packageManager.checkPermission( in getDefaultCellBroadcastReceiverPackageName()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/ |
D | NoteTaskInfoResolverTest.kt | 45 @Mock lateinit var packageManager: PackageManager variable in com.android.systemui.notetask.NoteTaskInfoResolverTest 53 underTest = NoteTaskInfoResolver(context, roleManager, packageManager) in setUp() 63 packageManager.getApplicationInfoAsUser( in resolveInfo_shouldReturnInfo() 84 packageManager.getApplicationInfoAsUser( in resolveInfo_packageManagerThrowsException_shouldReturnInfoWithZeroUid()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/ |
D | FlickerTestBase.kt | 45 val packageManager: PackageManager = instrumentation.context.packageManager constant in com.android.wm.shell.flicker.FlickerTestBase 47 packageManager.run { in <lambda>()
|
/frameworks/base/packages/SettingsLib/Utils/src/com/android/settingslib/utils/applications/ |
D | AppUtils.java | 36 PackageManager packageManager, String packageName) { in getApplicationLabel() argument 39 packageManager.getApplicationInfo( in getApplicationLabel() 43 return appInfo.loadLabel(packageManager); in getApplicationLabel()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | SoftRestrictedPermissionPolicy.java | 259 PackageManager packageManager = context.getPackageManager(); 260 String[] packageNames = packageManager.getPackagesForUid(uid); 268 applicationInfo = packageManager.getApplicationInfoAsUser(packageName, 0, user); 280 PackageManager packageManager = context.getPackageManager(); 281 String[] packageNames = packageManager.getPackagesForUid(uid); 287 if (packageManager.checkPermission(WRITE_MEDIA_STORAGE, packageName)
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/fsi/ |
D | FsiChromeRepoTest.kt | 60 @Mock lateinit var packageManager: PackageManager in <lambda>() variable in com.android.systemui.statusbar.notification.fsi.FsiChromeRepoTest 81 whenever(packageManager.getApplicationIcon(anyString())).thenReturn(appIcon) in <lambda>() 82 whenever(packageManager.getApplicationIcon(any(ApplicationInfo::class.java))) in <lambda>() 84 whenever(packageManager.getApplicationLabel(any())).thenReturn(appName) in <lambda>() 85 mContext.setMockPackageManager(packageManager) in <lambda>() 90 packageManager, in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/util/ |
D | MediaDataUtils.java | 45 final PackageManager packageManager = context.getPackageManager(); in getAppLabel() local 48 applicationInfo = packageManager.getApplicationInfo(packageName, 0); in getAppLabel() 54 ? packageManager.getApplicationLabel(applicationInfo) in getAppLabel()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/data/ |
D | IconLoaderLibAppIconLoaderTest.kt | 47 private val packageManager: PackageManager = mock() constant in com.android.systemui.mediaprojection.appselector.data.IconLoaderLibAppIconLoaderTest 55 packageManager = packageManager, 74 whenever(activityInfo.loadIcon(packageManager)).thenReturn(rawIcon) in givenIcon()
|