Home
last modified time | relevance | path

Searched refs:mPackageInfo (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/android/webkit/
DUserPackage.java35 private final PackageInfo mPackageInfo; field in UserPackage
39 this.mPackageInfo = packageInfo; in UserPackage()
67 if (mPackageInfo == null) return false; in isEnabledPackage()
68 return mPackageInfo.applicationInfo.enabled; in isEnabledPackage()
75 if (mPackageInfo == null) return false; in isInstalledPackage()
76 return (((mPackageInfo.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) != 0) in isInstalledPackage()
77 && ((mPackageInfo.applicationInfo.privateFlags in isInstalledPackage()
94 return mPackageInfo; in getPackageInfo()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackageItem.java41 private final ShortcutPackageInfo mPackageInfo; field in ShortcutPackageItem
51 mPackageInfo = Preconditions.checkNotNull(packageInfo); in ShortcutPackageItem()
85 return mPackageInfo; in getPackageInfo()
89 if (mPackageInfo.isShadow()) { in refreshPackageSignatureAndSave()
93 mPackageInfo.refreshSignature(s, this); in refreshPackageSignatureAndSave()
98 if (!mPackageInfo.isShadow()) { in attemptToRestoreIfNeededAndSave()
110 if (!mPackageInfo.hasSignatures()) { in attemptToRestoreIfNeededAndSave()
117 if (!mPackageInfo.canRestoreTo(s, pi)) { in attemptToRestoreIfNeededAndSave()
134 mPackageInfo.setShadow(false); in attemptToRestoreIfNeededAndSave()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexManagerTests.java82 existingPackages.put(mUser0, Arrays.asList(mFooUser0.mPackageInfo, mBarUser0.mPackageInfo)); in setup()
83 existingPackages.put(mUser1, Arrays.asList(mBarUser1.mPackageInfo)); in setup()
219 mDexManager.notifyPackageInstalled(newPackage.mPackageInfo, mUser0); in testNotifyPackageInstallUsedByOther()
260 mBarUser0.mPackageInfo.applicationInfo.sourceDir, in testNotifyPackageUpdated()
261 mBarUser0.mPackageInfo.applicationInfo.splitSourceDirs); in testNotifyPackageUpdated()
283 mBarUser0.mPackageInfo.applicationInfo.sourceDir, in testNotifyPackageUpdatedCodeLocations()
284 mBarUser0.mPackageInfo.applicationInfo.splitSourceDirs); in testNotifyPackageUpdatedCodeLocations()
389 mDexManager.notifyDexLoad(testData.mPackageInfo.applicationInfo, dexPaths, in notifyDexLoad()
394 return mDexManager.getPackageUseInfo(testData.mPackageInfo.packageName); in getPackageUseInfo()
417 private final PackageInfo mPackageInfo; field in DexManagerTests.TestData
[all …]
/frameworks/base/core/java/android/app/
DContextImpl.java162 final @NonNull LoadedApk mPackageInfo; field in ContextImpl
253 return (mPackageInfo != null) ? in getApplicationContext()
254 mPackageInfo.getApplication() : mMainThread.getApplication(); in getApplicationContext()
298 …return mClassLoader != null ? mClassLoader : (mPackageInfo != null ? mPackageInfo.getClassLoader()… in getClassLoader()
303 if (mPackageInfo != null) { in getPackageName()
304 return mPackageInfo.getPackageName(); in getPackageName()
325 if (mPackageInfo != null) { in getApplicationInfo()
326 return mPackageInfo.getApplicationInfo(); in getApplicationInfo()
333 if (mPackageInfo != null) { in getPackageResourcePath()
334 return mPackageInfo.getResDir(); in getPackageResourcePath()
[all …]
DApplication.java190 mLoadedApk = ContextImpl.getImpl(context).mPackageInfo; in attach()
DActivityThread.java2140 getSystemContext().mPackageInfo.getClassLoader()); in getPackageInfo()
6410 this, getSystemContext().mPackageInfo); in attach()
6411 mInitialApplication = context.mPackageInfo.makeApplication(true, null); in attach()
DApplicationPackageManager.java1368 mContext.mPackageInfo); in getResourcesForApplication()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyTest.java168 protected PackageInfo mPackageInfo; field in TelephonyTest
485 doReturn(mPackageInfo).when(mPackageManager).getPackageInfo(eq(TAG), anyInt()); in setupMockPackagePermissionChecks()
486 doReturn(mPackageInfo).when(mPackageManager).getPackageInfoAsUser( in setupMockPackagePermissionChecks()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java128 private PackageInfo mPackageInfo; field in AccountManagerServiceTest
144 mPackageInfo = new PackageInfo(); in setUp()
145 mPackageInfo.signatures = new Signature[1]; in setUp()
146 mPackageInfo.signatures[0] = new Signature(new byte[] {'a', 'b', 'c', 'd'}); in setUp()
147 mPackageInfo.applicationInfo = new ApplicationInfo(); in setUp()
148 mPackageInfo.applicationInfo.privateFlags = ApplicationInfo.PRIVATE_FLAG_PRIVILEGED; in setUp()
149 when(mMockPackageManager.getPackageInfo(anyString(), anyInt())).thenReturn(mPackageInfo); in setUp()