Home
last modified time | relevance | path

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

12345678910

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierAppUtilsTest.java84 Mockito.when(mPackageManager.getApplicationInfo("com.example.missing.app", in testDisableCarrierAppsUntilPrivileged_MissingApp()
102 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_NonSystemApp()
126 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_DisabledUser()
146 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Disabled()
166 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Enabled()
186 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedApp()
210 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_MissingAssociated_Default()
241 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_Default()
248 Mockito.when(mPackageManager.getApplicationInfo(ASSOCIATED_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_Associated_Default()
276 Mockito.when(mPackageManager.getApplicationInfo(CARRIER_APP, in testDisableCarrierAppsUntilPrivileged_HasPrivileges_UpdatedAssociated_DisabledUntilUsed()
[all …]
/frameworks/base/core/java/android/content/pm/
DPackageItemInfo.java138 CharSequence label = pm.getText(packageName, labelRes, getApplicationInfo()); in loadLabel()
224 return pm.loadItemIcon(this, getApplicationInfo()); in loadIcon()
241 return pm.loadUnbadgedItemIcon(this, getApplicationInfo()); in loadUnbadgedIcon()
257 Drawable dr = pm.getDrawable(packageName, banner, getApplicationInfo()); in loadBanner()
308 Drawable d = pm.getDrawable(packageName, logo, getApplicationInfo()); in loadLogo()
348 return pm.getXml(packageName, resid, getApplicationInfo()); in loadXmlMetaData()
419 protected ApplicationInfo getApplicationInfo() { in getApplicationInfo() method in PackageItemInfo
DLauncherActivityInfo.java136 public ApplicationInfo getApplicationInfo() { in getApplicationInfo() method in LauncherActivityInfo
/frameworks/support/wear/src/android/support/wear/utils/
DMetadataConstants.java138 ApplicationInfo appInfo = context.getPackageManager().getApplicationInfo( in isStandalone()
158 ApplicationInfo appInfo = context.getPackageManager().getApplicationInfo( in isNotificationBridgingEnabled()
181 ApplicationInfo appInfo = context.getPackageManager().getApplicationInfo( in getPreviewDrawableResourceId()
/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.java101 final ApplicationInfo aInfo = getApplicationInfo(pm, mPackageName); in onPostNotification()
159 private ApplicationInfo getApplicationInfo(PackageManager pm, String packageName) { in getApplicationInfo() method in AlertWindowNotification
161 return pm.getApplicationInfo(packageName, 0); in getApplicationInfo()
/frameworks/base/core/java/com/android/internal/view/
DActionBarPolicy.java74 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion; in hasEmbeddedTabs()
105 return mContext.getApplicationInfo().targetSdkVersion < in enableHomeButtonByDefault()
/frameworks/base/core/java/android/os/
DGraphicsEnvironment.java51 ApplicationInfo ai = context.getApplicationInfo(); in chooseDriver()
58 driverInfo = context.getPackageManager().getApplicationInfo(driverPackageName, in chooseDriver()
DDropBoxManager.java286 && mContext.getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.N) { in addText()
307 && mContext.getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.N) { in addData()
/frameworks/support/compat/java/android/support/v4/content/
DContextCompat.java166 final String dataDir = context.getApplicationInfo().dataDir; in getDataDir()
451 ApplicationInfo appInfo = context.getApplicationInfo(); in getNoBackupFilesDir()
475 ApplicationInfo appInfo = context.getApplicationInfo(); in getCodeCacheDir()
/frameworks/multidex/library/src/android/support/multidex/
DMultiDex.java106 ApplicationInfo applicationInfo = getApplicationInfo(context); in install()
152 ApplicationInfo instrumentationInfo = getApplicationInfo(instrumentationContext); in installInstrumentation()
159 ApplicationInfo applicationInfo = getApplicationInfo(targetContext); in installInstrumentation()
254 private static ApplicationInfo getApplicationInfo(Context context) { in getApplicationInfo() method in MultiDex
264 return context.getApplicationInfo(); in getApplicationInfo()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DStatusBar.java59 (context.getApplicationInfo().flags & ApplicationInfo.FLAG_SUPPORTS_RTL) != 0, in StatusBar()
60 context.getApplicationInfo().targetSdkVersion); in StatusBar()
DThemePreviewNavigationBar.java47 (context.getApplicationInfo().flags & ApplicationInfo.FLAG_SUPPORTS_RTL) != 0, in ThemePreviewNavigationBar()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DCoreSettingsObserverTest.java98 when(mContext.getApplicationInfo()).thenReturn(originalContext.getApplicationInfo()); in setUp()
DAppErrorDialogTest.java69 data.proc = new ProcessRecord(null, mContext.getApplicationInfo(), "name", 12345); in testCreateWorks()
/frameworks/base/services/core/java/com/android/server/am/
DCompatModePackages.java174 ai = AppGlobals.getPackageManager().getApplicationInfo(packageName, 0, 0); in handlePackageAddedLocked()
294 ai = AppGlobals.getPackageManager().getApplicationInfo(packageName, 0, 0); in getPackageScreenCompatModeLocked()
306 ai = AppGlobals.getPackageManager().getApplicationInfo(packageName, 0, 0); in setPackageScreenCompatModeLocked()
427 ai = pm.getApplicationInfo(pkg, 0, 0); in saveCompatModes()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest5.java91 ApplicationInfo ai = mShortcutService.getApplicationInfo( in testGetApplicationInfo()
95 ai = mShortcutService.getApplicationInfo( in testGetApplicationInfo()
/frameworks/base/tests/testables/src/android/testing/
DViewUtils.java36 view.getContext().getApplicationInfo().flags &= in attachView()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/utils/
DResourceHelper.java42 context.getPackageManager().getApplicationInfo(packageName, 0); in getThemeColor()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DUidDetailProvider.java153 final ApplicationInfo info = ipm.getApplicationInfo(packageNames[0], in buildUidDetail()
166 final ApplicationInfo appInfo = ipm.getApplicationInfo(packageName, in buildUidDetail()
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/
DLayoutInsetsTest.java56 getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.JELLY_BEAN; in onCreate()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java171 mRealTestContext.getPackageManager().getApplicationInfo( in setUpPackageManagerForFakeAdmin()
184 doReturn(ai).when(mServices.ipackageManager).getApplicationInfo( in setUpPackageManagerForFakeAdmin()
/frameworks/base/core/java/android/app/
DContextImpl.java284 getOuterContext().getApplicationInfo().targetSdkVersion); in getTheme()
326 public ApplicationInfo getApplicationInfo() { in getApplicationInfo() method in ContextImpl
328 return mPackageInfo.getApplicationInfo(); in getApplicationInfo()
354 if (mPackageInfo.getApplicationInfo().targetSdkVersion < in getSharedPreferences()
383 if (getApplicationInfo().targetSdkVersion >= android.os.Build.VERSION_CODES.O) { in getSharedPreferences()
397 getApplicationInfo().targetSdkVersion < android.os.Build.VERSION_CODES.HONEYCOMB) { in getSharedPreferences()
1463 if (getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.LOLLIPOP) { in validateServiceIntent()
1613 && mPackageInfo.getApplicationInfo().targetSdkVersion in bindServiceCommon()
1997 pi.getApplicationInfo().sharedLibraryFiles, in createResources()
2067 if (!mPackageInfo.getApplicationInfo().requestsIsolatedSplitLoading()) { in createContextForSplit()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DAppRestrictionsHelper.java114 ApplicationInfo info = mIPm.getApplicationInfo(packageName, in applyUserAppState()
138 ApplicationInfo info = mIPm.getApplicationInfo(packageName, 0, userId); in applyUserAppState()
352 return mIPm.getApplicationInfo(packageName, flags, user.getIdentifier()); in getAppInfoForUser()
/frameworks/base/core/java/android/security/net/config/
DManifestConfigSource.java42 ApplicationInfo info = context.getApplicationInfo(); in ManifestConfigSource()

12345678910