/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierAppUtilsTest.java | 113 Mockito.when(mPackageManager.getApplicationInfo("com.example.missing.app", in testDisableCarrierAppsUntilPrivileged_MissingApp() 137 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_NonSystemApp() 168 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 194 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled() 219 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Enabled() 242 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedApp() 272 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_MissingAssociated_Default() 308 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_Default() 316 Mockito.when(mPackageManager.getApplicationInfo(ASSOCIATED_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_Default() 347 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 | 63 mService, mService.mContext.getApplicationInfo(), "fakepid1fakeuid1", FAKE_UID1, in setUp() 67 mService, mService.mContext.getApplicationInfo(), "fakepid1fakeuid2", FAKE_UID2, in setUp() 71 mService, mService.mContext.getApplicationInfo(), "fakepid2fakeuid1", FAKE_UID1, in setUp() 75 mService, mService.mContext.getApplicationInfo(), "fakepid3fakeuid1", FAKE_UID1, in setUp() 79 mService, mService.mContext.getApplicationInfo(), "fakepid4fakeuid2", FAKE_UID2, in setUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | OverrideValidatorImplTest.java | 97 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride() 141 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_debugBuildAnyChangeReleaseApp_allowOverride() 182 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_betaBuildTargetSdkChangeDebugApp_allowOverride() 213 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_betaBuildEnabledChangeDebugApp_allowOverride() 232 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_betaBuildDisabledChangeDebugApp_allowOverride() 255 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_betaBuildAnyChangeReleaseApp_rejectOverride() 294 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_finalBuildTargetSdkChangeDebugAppOptin_allowOverride() 318 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_finalBuildTargetSdkChangeDebugAppOptout_rejectOverride() 339 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_finalBuildEnabledChangeDebugApp_rejectOverride() 357 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_finalBuildDisabledChangeDebugApp_allowOverride() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageItemInfo.java | 220 CharSequence label = pm.getText(packageName, labelRes, getApplicationInfo()); in loadUnsafeLabel() 271 return pm.loadItemIcon(this, getApplicationInfo()); in loadIcon() 288 return pm.loadUnbadgedItemIcon(this, getApplicationInfo()); in loadUnbadgedIcon() 304 Drawable dr = pm.getDrawable(packageName, banner, getApplicationInfo()); in loadBanner() 355 Drawable d = pm.getDrawable(packageName, logo, getApplicationInfo()); in loadLogo() 395 return pm.getXml(packageName, resid, getApplicationInfo()); in loadXmlMetaData() 484 protected ApplicationInfo getApplicationInfo() { in getApplicationInfo() method in PackageItemInfo
|
/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/ |
D | PlatformCompatPermissionsTest.java | 83 mPlatformCompat.reportChange(1, mPackageManager.getApplicationInfo(packageName, 0)); in reportChange_noLogCompatChangePermission_throwsSecurityException() 92 mPlatformCompat.reportChange(1, mPackageManager.getApplicationInfo(packageName, 0)); in reportChange_logCompatChangePermission_noThrow() 135 mPlatformCompat.isChangeEnabled(1, mPackageManager.getApplicationInfo(packageName, 0)); in isChangeEnabled_noReadCompatConfigPermission_throwsSecurityException() 145 mPlatformCompat.isChangeEnabled(1, mPackageManager.getApplicationInfo(packageName, 0)); in isChangeEnabled_noLogCompatChangeConfigPermission_throwsSecurityException() 154 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/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 | 105 final ApplicationInfo aInfo = getApplicationInfo(pm, mPackageName); in onPostNotification() 172 private ApplicationInfo getApplicationInfo(PackageManager pm, String packageName) { in getApplicationInfo() method in AlertWindowNotification 174 return pm.getApplicationInfo(packageName, 0); in getApplicationInfo()
|
D | CompatModePackages.java | 176 ai = AppGlobals.getPackageManager().getApplicationInfo(packageName, 0, 0); in handlePackageAddedLocked() 250 ai = AppGlobals.getPackageManager().getApplicationInfo(packageName, 0, 0); in getPackageScreenCompatModeLocked() 262 ai = AppGlobals.getPackageManager().getApplicationInfo(packageName, 0, 0); in setPackageScreenCompatModeLocked() 384 ai = pm.getApplicationInfo(pkg, 0, 0); in saveCompatModes()
|
/frameworks/base/services/core/java/com/android/server/compat/ |
D | PlatformCompat.java | 89 ApplicationInfo appInfo = getApplicationInfo(packageName, userId); in reportChangeByPackageName() 126 ApplicationInfo appInfo = getApplicationInfo(packageName, userId); in isChangeEnabledByPackageName() 296 private ApplicationInfo getApplicationInfo(String packageName, int userId) { in getApplicationInfo() method in PlatformCompat 297 return LocalServices.getService(PackageManagerInternal.class).getApplicationInfo( in getApplicationInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SlicePermissionActivity.java | 57 CharSequence app1 = BidiFormatter.getInstance().unicodeWrap(pm.getApplicationInfo( in onCreate() 61 CharSequence app2 = BidiFormatter.getInstance().unicodeWrap(pm.getApplicationInfo( in onCreate()
|
/frameworks/base/core/java/android/os/ |
D | DropBoxManager.java | 301 && mContext.getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.N) { in addText() 322 && mContext.getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.N) { in addData() 380 if (mContext.getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.P) { in getNextEntry()
|
/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()
|
D | ThemePreviewNavigationBar.java | 47 (context.getApplicationInfo().flags & ApplicationInfo.FLAG_SUPPORTS_RTL) != 0, in ThemePreviewNavigationBar()
|
/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/core/tests/coretests/src/android/app/ |
D | NotificationTest.java | 227 mContext.getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.P; in messagingStyle_isGroupConversation() 243 mContext.getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.P; in messagingStyle_isGroupConversation_noConversationTitle() 260 mContext.getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.O; in messagingStyle_isGroupConversation_withConversationTitle_legacy() 277 mContext.getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.O; in messagingStyle_isGroupConversation_withoutConversationTitle_legacy()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest5.java | 93 ApplicationInfo ai = mShortcutService.getApplicationInfo( in testGetApplicationInfo() 97 ai = mShortcutService.getApplicationInfo( in testGetApplicationInfo()
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbDeviceConnection.java | 287 if (mContext.getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.P in bulkTransfer() 339 mContext.getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.O); in requestWait()
|
D | UsbRequest.java | 197 if (mConnection.getContext().getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.P in queue() 263 if (mConnection.getContext().getApplicationInfo().targetSdkVersion in queue()
|
/frameworks/base/core/java/android/view/ |
D | InputEventCompatProcessor.java | 41 mTargetSdkVersion = context.getApplicationInfo().targetSdkVersion; in InputEventCompatProcessor()
|
/frameworks/base/wifi/java/android/net/wifi/aware/ |
D | WifiAwareUtils.java | 95 if (context.getPackageManager().getApplicationInfo(context.getOpPackageName(), 0) in isLegacyVersion()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | CoreSettingsObserverTest.java | 93 when(mContext.getApplicationInfo()).thenReturn(originalContext.getApplicationInfo()); in setUp()
|
/frameworks/base/startop/apps/test/src/ |
D | SystemServerBenchmarks.java | 79 pm.getApplicationInfo(packageName, 0); in initializeBenchmarks() 86 ApplicationInfo app = pm.getApplicationInfo(packageName, 0); in initializeBenchmarks()
|
/frameworks/base/packages/SettingsLib/Utils/src/com/android/settingslib/utils/applications/ |
D | AppUtils.java | 36 packageManager.getApplicationInfo( in getApplicationLabel()
|