Home
last modified time | relevance | path

Searched refs:getApplicationInfo (Results 1 – 25 of 323) sorted by relevance

12345678910>>...13

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierAppUtilsTest.java113 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/
DWindowProcessControllerMapTests.java63 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/
DOverrideValidatorImplTest.java97 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/
DPackageItemInfo.java220 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/
DPlatformCompatPermissionsTest.java83 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/
DVersionDialog.java52 activity.getApplicationInfo().loadLabel(activity.getPackageManager()), in onCreateDialog()
53 context.getApplicationInfo().loadLabel(context.getPackageManager()))); in onCreateDialog()
/frameworks/base/core/java/com/android/internal/view/
DActionBarPolicy.java82 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion; in hasEmbeddedTabs()
114 return mContext.getApplicationInfo().targetSdkVersion < in enableHomeButtonByDefault()
/frameworks/base/services/core/java/com/android/server/wm/
DAlertWindowNotification.java105 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()
DCompatModePackages.java176 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/
DPlatformCompat.java89 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/
DSlicePermissionActivity.java57 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/
DDropBoxManager.java301 && 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/
DStatusBar.java63 (context.getApplicationInfo().flags & ApplicationInfo.FLAG_SUPPORTS_RTL) != 0, in StatusBar()
64 context.getApplicationInfo().targetSdkVersion); in StatusBar()
DThemePreviewNavigationBar.java47 (context.getApplicationInfo().flags & ApplicationInfo.FLAG_SUPPORTS_RTL) != 0, in ThemePreviewNavigationBar()
/frameworks/base/core/java/com/android/internal/app/
DHeavyWeightSwitcherActivity.java104 ApplicationInfo info = getPackageManager().getApplicationInfo( in setIconAndText()
118 ApplicationInfo info = getPackageManager().getApplicationInfo( in setIconAndText()
/frameworks/base/tests/testables/src/android/testing/
DViewUtils.java35 view.getContext().getApplicationInfo().flags &= in attachView()
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationTest.java227 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/
DShortcutManagerTest5.java93 ApplicationInfo ai = mShortcutService.getApplicationInfo( in testGetApplicationInfo()
97 ai = mShortcutService.getApplicationInfo( in testGetApplicationInfo()
/frameworks/base/core/java/android/hardware/usb/
DUsbDeviceConnection.java287 if (mContext.getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.P in bulkTransfer()
339 mContext.getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.O); in requestWait()
DUsbRequest.java197 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/
DInputEventCompatProcessor.java41 mTargetSdkVersion = context.getApplicationInfo().targetSdkVersion; in InputEventCompatProcessor()
/frameworks/base/wifi/java/android/net/wifi/aware/
DWifiAwareUtils.java95 if (context.getPackageManager().getApplicationInfo(context.getOpPackageName(), 0) in isLegacyVersion()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DCoreSettingsObserverTest.java93 when(mContext.getApplicationInfo()).thenReturn(originalContext.getApplicationInfo()); in setUp()
/frameworks/base/startop/apps/test/src/
DSystemServerBenchmarks.java79 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/
DAppUtils.java36 packageManager.getApplicationInfo( in getApplicationLabel()

12345678910>>...13