/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierAppUtilsTest.java | 94 Mockito.when(mPackageManager.getApplicationInfo("com.example.missing.app", in testDisableCarrierAppsUntilPrivileged_MissingApp() 118 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_NonSystemApp() 148 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser() 175 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled() 201 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Enabled() 225 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedApp() 256 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_MissingAssociated_Default() 294 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_Default() 302 Mockito.when(mPackageManager.getApplicationInfo(ASSOCIATED_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_Default() 335 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedAssociated_DisabledUntilUsed() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/ |
D | OverrideValidatorImplTest.java | 96 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_debugBuildAnyChangeDebugApp_allowOverride() 140 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_debugBuildAnyChangeReleaseApp_allowOverride() 181 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_betaBuildTargetSdkChangeDebugApp_allowOverride() 212 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_betaBuildEnabledChangeDebugApp_allowOverride() 231 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_betaBuildDisabledChangeDebugApp_allowOverride() 254 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_betaBuildAnyChangeReleaseApp_rejectOverride() 292 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_finalBuildTargetSdkChangeDebugAppOptin_allowOverride() 312 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_finalBuildTargetSdkChangeDebugAppOptout_rejectOverride() 337 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_finalBuildEnabledChangeDebugApp_rejectOverride() 355 when(mPackageManager.getApplicationInfo(eq(PACKAGE_NAME), anyInt())) in getOverrideAllowedState_finalBuildDisabledChangeDebugApp_allowOverride() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageItemInfo.java | 211 CharSequence label = pm.getText(packageName, labelRes, getApplicationInfo()); in loadUnsafeLabel() 262 return pm.loadItemIcon(this, getApplicationInfo()); in loadIcon() 279 return pm.loadUnbadgedItemIcon(this, getApplicationInfo()); in loadUnbadgedIcon() 295 Drawable dr = pm.getDrawable(packageName, banner, getApplicationInfo()); in loadBanner() 346 Drawable d = pm.getDrawable(packageName, logo, getApplicationInfo()); in loadLogo() 386 return pm.getXml(packageName, resid, getApplicationInfo()); in loadXmlMetaData() 475 protected ApplicationInfo getApplicationInfo() { in getApplicationInfo() method in PackageItemInfo
|
/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/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/services/core/java/com/android/server/wm/ |
D | AlertWindowNotification.java | 106 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/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/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/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/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/services/core/java/com/android/server/compat/ |
D | PlatformCompat.java | 89 ApplicationInfo appInfo = getApplicationInfo(packageName, userId); in reportChangeByPackageName() 119 ApplicationInfo appInfo = getApplicationInfo(packageName, userId); in isChangeEnabledByPackageName() 289 private ApplicationInfo getApplicationInfo(String packageName, int userId) { in getApplicationInfo() method in PlatformCompat
|
/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/am/ |
D | CoreSettingsObserverTest.java | 88 when(mContext.getApplicationInfo()).thenReturn(originalContext.getApplicationInfo()); in setUp()
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbDeviceConnection.java | 258 if (mContext.getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.P in bulkTransfer() 310 mContext.getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.O); in requestWait()
|
D | UsbRequest.java | 196 if (mConnection.getContext().getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.P in queue() 262 if (mConnection.getContext().getApplicationInfo().targetSdkVersion in queue()
|
/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/tests/testables/src/android/testing/ |
D | ViewUtils.java | 35 view.getContext().getApplicationInfo().flags &= in attachView()
|
/frameworks/base/core/java/android/view/ |
D | InputEventCompatProcessor.java | 41 mTargetSdkVersion = context.getApplicationInfo().targetSdkVersion; in InputEventCompatProcessor()
|
/frameworks/multidex/library/src/androidx/multidex/ |
D | MultiDex.java | 106 ApplicationInfo applicationInfo = getApplicationInfo(context); in install() 153 ApplicationInfo instrumentationInfo = getApplicationInfo(instrumentationContext); in installInstrumentation() 160 ApplicationInfo applicationInfo = getApplicationInfo(targetContext); in installInstrumentation() 305 private static ApplicationInfo getApplicationInfo(Context context) { in getApplicationInfo() method in MultiDex 315 return context.getApplicationInfo(); in getApplicationInfo()
|
/frameworks/base/wifi/java/android/net/wifi/aware/ |
D | WifiAwareUtils.java | 95 if (context.getPackageManager().getApplicationInfo(context.getOpPackageName(), 0) in isLegacyVersion()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | UidDetailProvider.java | 158 final ApplicationInfo info = ipm.getApplicationInfo(packageNames[0], in buildUidDetail() 171 final ApplicationInfo appInfo = ipm.getApplicationInfo(packageName, in buildUidDetail()
|