/frameworks/base/services/tests/PackageManagerServiceTests/host/test-apps/OverlayActor/src/com/android/server/pm/test/overlay/actor/ |
D | OverlayableVisibilityTest.kt | 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/services/tests/servicestests/src/com/android/server/compat/ |
D | CompatConfigTest.java | 98 when(mPackageManager.getApplicationInfo(anyString(), anyInt())) in setUp() 182 when(mPackageManager.getApplicationInfo(eq("com.some.package"), anyInt())) in testPackageOverrideEnabled() 200 when(mPackageManager.getApplicationInfo(eq("com.some.package"), anyInt())) in testPackageOverrideDisabled() 218 when(mPackageManager.getApplicationInfo(eq("com.some.package"), anyInt())) in testPackageOverrideUnknownPackage() 256 when(packageManager.getApplicationInfo(eq("com.some.package"), anyInt())) in testPreventAddOverride() 284 when(packageManager.getApplicationInfo(eq("com.some.package"), anyInt())) in testInstallerCanAddOverrides() 326 when(packageManager.getApplicationInfo(eq(packageName1), anyInt())) in testInstallerCanAddOverridesForMultiplePackages() 328 when(packageManager.getApplicationInfo(eq(packageName2), anyInt())) in testInstallerCanAddOverridesForMultiplePackages() 369 when(packageManager.getApplicationInfo(eq("com.some.package"), anyInt())) in testPreventInstallerSetNonOverridable() 404 when(packageManager.getApplicationInfo(eq("com.some.package"), anyInt())) in testCanAddOverridesForUnknownChangeIdOnDebugBuild() [all …]
|
D | OverrideValidatorImplTest.java | 104 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride() 148 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_debugBuildAnyChangeReleaseApp_allowOverride() 189 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_betaBuildTargetSdkChangeDebugApp_allowOverride() 220 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_betaBuildEnabledChangeDebugApp_allowOverride() 239 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_betaBuildDisabledChangeDebugApp_allowOverride() 262 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_betaBuildAnyChangeReleaseApp_rejectOverride() 301 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_finalBuildTargetSdkChangeDebugAppOptin_allowOverride() 325 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_finalBuildTargetSdkChangeDebugAppOptout_rejectOverride() 347 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_targetSdkChangeGreaterThanOsVersion_rejectOverride() 366 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_finalBuildEnabledChangeDebugApp_rejectOverride() [all …]
|
D | PlatformCompatTest.java | 78 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in setUp() 201 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in testListenerCalledOnSetOverrides() 216 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in testListenerNotCalledOnWrongPackage() 230 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in testListenerCalledOnSetOverridesTwoListeners() 258 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in testListenerCalledOnSetOverridesForTest() 272 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in testListenerCalledOnSetOverridesForTestTwoListeners() 300 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in testListenerCalledOnClearOverrides() 322 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in testListenerCalledOnClearOverridesMultipleOverrides() 344 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in testListenerCalledOnClearOverrideExists() 365 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in testListenerCalledOnClearOverrideDoesntExist()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierAppUtilsTest.java | 122 Mockito.when(mPackageManager.getApplicationInfo("com.example.missing.app", in testDisableCarrierAppsUntilPrivileged_MissingApp() 146 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_NonSystemApp() 177 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 203 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled() 228 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Enabled() 251 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedApp() 281 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_MissingAssociated_Default() 317 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_Default() 325 Mockito.when(mPackageManager.getApplicationInfo(ASSOCIATED_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_Default() 356 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedAssociated_DisabledUntilUsed() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowProcessControllerMapTests.java | 65 mAtm, mAtm.mContext.getApplicationInfo(), "fakepid1fakeuid1", FAKE_UID1, in setUp() 69 mAtm, mAtm.mContext.getApplicationInfo(), "fakepid1fakeuid2", FAKE_UID2, in setUp() 73 mAtm, mAtm.mContext.getApplicationInfo(), "fakepid2fakeuid1", FAKE_UID1, in setUp() 77 mAtm, mAtm.mContext.getApplicationInfo(), "fakepid3fakeuid1", FAKE_UID1, in setUp() 81 mAtm, mAtm.mContext.getApplicationInfo(), "fakepid4fakeuid2", FAKE_UID2, in setUp()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageItemInfo.java | 222 CharSequence label = pm.getText(packageName, labelRes, getApplicationInfo()); in loadUnsafeLabel() 273 return pm.loadItemIcon(this, getApplicationInfo()); in loadIcon() 290 return pm.loadUnbadgedItemIcon(this, getApplicationInfo()); in loadUnbadgedIcon() 306 Drawable dr = pm.getDrawable(packageName, banner, getApplicationInfo()); in loadBanner() 357 Drawable d = pm.getDrawable(packageName, logo, getApplicationInfo()); in loadLogo() 397 return pm.getXml(packageName, resid, getApplicationInfo()); in loadXmlMetaData() 486 protected ApplicationInfo getApplicationInfo() { in getApplicationInfo() method in PackageItemInfo
|
/frameworks/layoutlib/bridge/src/android/widget/ |
D | RemoteViews_Delegate.java | 27 public static ApplicationInfo getApplicationInfo(String packageName, int userId) { in getApplicationInfo() method in RemoteViews_Delegate 28 return getCurrentContext().getApplicationInfo(); in getApplicationInfo()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | TargetSdkResolverTest.kt | 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 | 88 final ApplicationInfo appInfo = getApplicationInfo(context, packageName, userId); in getVendorHeaderIcon() 101 final ApplicationInfo appInfo = getApplicationInfo(context, packageName, userId); in getVendorHeaderName() 113 final ApplicationInfo appInfo = getApplicationInfo(context, packageName, userId); in hasVendorIcon() 126 private static @NonNull ApplicationInfo getApplicationInfo(@NonNull Context context, in getApplicationInfo() method in Utils
|
/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/ |
D | PlatformCompatPermissionsTest.java | 84 mPlatformCompat.reportChange(1, mPackageManager.getApplicationInfo(packageName, 0)); in reportChange_noLogCompatChangePermission_throwsSecurityException() 93 mPlatformCompat.reportChange(1, mPackageManager.getApplicationInfo(packageName, 0)); in reportChange_logCompatChangePermission_noThrow() 136 mPlatformCompat.isChangeEnabled(1, mPackageManager.getApplicationInfo(packageName, 0)); in isChangeEnabled_noReadCompatConfigPermission_throwsSecurityException() 146 mPlatformCompat.isChangeEnabled(1, mPackageManager.getApplicationInfo(packageName, 0)); in isChangeEnabled_noLogCompatChangeConfigPermission_throwsSecurityException() 155 mPlatformCompat.isChangeEnabled(1, mPackageManager.getApplicationInfo(packageName, 0)); in isChangeEnabled_readAndLogCompatChangeConfigPermission_noThrow()
|
/frameworks/base/tests/SharedLibrary/lib/src/com/google/android/test/shared_library/ |
D | VersionDialog.java | 52 activity.getApplicationInfo().loadLabel(activity.getPackageManager()), in onCreateDialog() 53 context.getApplicationInfo().loadLabel(context.getPackageManager()))); in onCreateDialog()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SlicePermissionActivity.java | 69 CharSequence app1 = BidiFormatter.getInstance().unicodeWrap(pm.getApplicationInfo( in onCreate() 73 CharSequence app2 = BidiFormatter.getInstance().unicodeWrap(pm.getApplicationInfo( in onCreate() 130 return getPackageManager().getApplicationInfo(pkg, 0).uid; in getUid()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerNative.java | 114 ApplicationInfo appInfo = snapshot.getApplicationInfo(packageName, in getInstallerForPackage() 151 .getApplicationInfo(packageName, 0, callingUser); in isPackageDebuggable() 166 ApplicationInfo appInfo = snapshot.getApplicationInfo(packageNames[i], 0, callingUser); in isAudioPlaybackCaptureAllowed() 175 ApplicationInfo appInfo = mPm.snapshotComputer().getApplicationInfo(packageName, in getLocationFlags()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locales/ |
D | SystemAppUpdateTrackerTest.java | 147 .when(mMockPackageManager).getApplicationInfo(eq(DEFAULT_PACKAGE_NAME_1), any()); in testInit_loadsCorrectly() 164 .when(mMockPackageManager).getApplicationInfo(eq(DEFAULT_PACKAGE_NAME_1), any()); in testOnPackageUpdatedFinished_systemAppFirstUpdate_writesToFile() 182 .when(mMockPackageManager).getApplicationInfo(eq(DEFAULT_PACKAGE_NAME_1), any()); in testOnPackageUpdatedFinished_systemAppSecondUpdate_doesNothing() 212 .when(mMockPackageManager).getApplicationInfo(eq(DEFAULT_PACKAGE_NAME_2), any()); in testOnPackageUpdatedFinished_notSystemApp_doesNothing() 230 .when(mMockPackageManager).getApplicationInfo(eq(DEFAULT_PACKAGE_NAME_1), any()); in testOnPackageUpdatedFinished_noInstaller_doesNothing()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 82 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion; in hasEmbeddedTabs() 114 return mContext.getApplicationInfo().targetSdkVersion < in enableHomeButtonByDefault()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AlertWindowNotification.java | 103 final ApplicationInfo aInfo = getApplicationInfo(pm, mPackageName); in onPostNotification() 171 private ApplicationInfo getApplicationInfo(PackageManager pm, String packageName) { in getApplicationInfo() method in AlertWindowNotification 173 return pm.getApplicationInfo(packageName, 0); in getApplicationInfo()
|
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/ |
D | BatteryConsumerInfoHelper.java | 96 packageManager.getApplicationInfo(primaryPackageName, 0); in makeBatteryConsumerInfo() 129 packageManager.getApplicationInfo(SYSTEM_SERVER_PACKAGE_NAME, 0); in makeBatteryConsumerInfo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | BackupEligibilityRulesTest.java | 223 ApplicationInfo applicationInfo = getApplicationInfo(Process.FIRST_APPLICATION_UID, in appIsEligibleForBackup_backupNotAllowedAndInMigration_returnsTrue() 236 ApplicationInfo applicationInfo = getApplicationInfo(Process.SYSTEM_UID, in appIsEligibleForBackup_backupNotAllowedForSystemAppAndInMigration_returnsFalse() 249 ApplicationInfo applicationInfo = getApplicationInfo(Process.FIRST_APPLICATION_UID, in appIsEligibleForBackup_adbBackupNotAllowed_returnsFalseForAdbBackup() 266 ApplicationInfo applicationInfo = getApplicationInfo(Process.FIRST_APPLICATION_UID, in appIsEligibleForBackup_adbBackupAllowed_returnsTrueForAdbBackup() 283 ApplicationInfo applicationInfo = getApplicationInfo(Process.FIRST_APPLICATION_UID, in appIsEligibleForBackup_debuggableNonPrivilegedApp_returnsTrueForAdbBackup() 297 ApplicationInfo applicationInfo = getApplicationInfo(Process.FIRST_APPLICATION_UID, in appIsEligibleForBackup_allowBackupTrueBeforeS_returnsTrueForAdbBackup() 311 ApplicationInfo applicationInfo = getApplicationInfo(Process.FIRST_APPLICATION_UID, in appIsEligibleForBackup_allowBackupFalseBeforeS_returnsFalseForAdbBackup() 800 private static ApplicationInfo getApplicationInfo(int appUid, int flags, in getApplicationInfo() method in BackupEligibilityRulesTest
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | StatusBar.java | 63 (context.getApplicationInfo().flags & ApplicationInfo.FLAG_SUPPORTS_RTL) != 0, in StatusBar() 64 context.getApplicationInfo().targetSdkVersion); in StatusBar()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | HeavyWeightSwitcherActivity.java | 104 ApplicationInfo info = getPackageManager().getApplicationInfo( in setIconAndText() 118 ApplicationInfo info = getPackageManager().getApplicationInfo( in setIconAndText()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | ViewUtils.java | 35 view.getContext().getApplicationInfo().flags &= in attachView()
|
/frameworks/base/services/core/java/com/android/server/compat/ |
D | PlatformCompat.java | 105 ApplicationInfo appInfo = getApplicationInfo(packageName, userId); in reportChangeByPackageName() 131 ApplicationInfo appInfo = getApplicationInfo(packageName, userId); in isChangeEnabledByPackageName() 385 private ApplicationInfo getApplicationInfo(String packageName, int userId) { in getApplicationInfo() method in PlatformCompat 386 return LocalServices.getService(PackageManagerInternal.class).getApplicationInfo( in getApplicationInfo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest5.java | 96 ApplicationInfo ai = mShortcutService.getApplicationInfo( in testGetApplicationInfo() 100 ai = mShortcutService.getApplicationInfo( in testGetApplicationInfo()
|
/frameworks/base/core/java/android/view/ |
D | InputEventCompatProcessor.java | 41 mTargetSdkVersion = context.getApplicationInfo().targetSdkVersion; in InputEventCompatProcessor()
|