Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierAppUtilsTest.java94 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/
DOverrideValidatorImplTest.java96 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/
DPackageItemInfo.java211 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/
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/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/services/core/java/com/android/server/wm/
DAlertWindowNotification.java106 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/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/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/base/core/java/com/android/internal/app/
DHeavyWeightSwitcherActivity.java104 ApplicationInfo info = getPackageManager().getApplicationInfo( in setIconAndText()
118 ApplicationInfo info = getPackageManager().getApplicationInfo( in setIconAndText()
/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/services/core/java/com/android/server/compat/
DPlatformCompat.java89 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/
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/am/
DCoreSettingsObserverTest.java88 when(mContext.getApplicationInfo()).thenReturn(originalContext.getApplicationInfo()); in setUp()
/frameworks/base/core/java/android/hardware/usb/
DUsbDeviceConnection.java258 if (mContext.getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.P in bulkTransfer()
310 mContext.getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.O); in requestWait()
DUsbRequest.java196 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/
DShortcutManagerTest5.java93 ApplicationInfo ai = mShortcutService.getApplicationInfo( in testGetApplicationInfo()
97 ai = mShortcutService.getApplicationInfo( in testGetApplicationInfo()
/frameworks/base/tests/testables/src/android/testing/
DViewUtils.java35 view.getContext().getApplicationInfo().flags &= in attachView()
/frameworks/base/core/java/android/view/
DInputEventCompatProcessor.java41 mTargetSdkVersion = context.getApplicationInfo().targetSdkVersion; in InputEventCompatProcessor()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDex.java106 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/
DWifiAwareUtils.java95 if (context.getPackageManager().getApplicationInfo(context.getOpPackageName(), 0) in isLegacyVersion()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DUidDetailProvider.java158 final ApplicationInfo info = ipm.getApplicationInfo(packageNames[0], in buildUidDetail()
171 final ApplicationInfo appInfo = ipm.getApplicationInfo(packageName, in buildUidDetail()

12345678910>>...12