/frameworks/base/core/java/android/webkit/ |
D | UserPackage.java | 35 private final PackageInfo mPackageInfo; field in UserPackage 41 this.mPackageInfo = packageInfo; in UserPackage() 69 if (mPackageInfo == null) return false; in isEnabledPackage() 70 return mPackageInfo.applicationInfo.enabled; in isEnabledPackage() 77 if (mPackageInfo == null) return false; in isInstalledPackage() 78 return (((mPackageInfo.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) != 0) in isInstalledPackage() 79 && ((mPackageInfo.applicationInfo.privateFlags in isInstalledPackage() 96 return mPackageInfo; in getPackageInfo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
D | WatchdogRollbackLoggerTest.java | 52 private PackageInfo mPackageInfo; field in WatchdogRollbackLoggerTest 70 mPackageInfo = new PackageInfo(); in setUp() 78 when(mMockPm.getPackageInfo(anyString(), anyInt())).thenReturn(mPackageInfo); in testLogPackageHasNoMetadata() 92 when(mMockPm.getPackageInfo(anyString(), anyInt())).thenReturn(mPackageInfo); in testLogPackageParentKeyIsNull() 96 mPackageInfo.applicationInfo = mApplicationInfo; in testLogPackageParentKeyIsNull() 112 mPackageInfo.applicationInfo = mApplicationInfo; in testLogPackageHasParentKey() 113 mPackageInfo.setLongVersionCode(12345L); in testLogPackageHasParentKey() 114 when(mMockPm.getPackageInfo(anyString(), anyInt())).thenReturn(mPackageInfo); in testLogPackageHasParentKey() 132 mPackageInfo.applicationInfo = mApplicationInfo; in testLogPackageNameNotFound() 133 when(mMockPm.getPackageInfo(anyString(), anyInt())).thenReturn(mPackageInfo); in testLogPackageNameNotFound() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutPackageItem.java | 48 private final ShortcutPackageInfo mPackageInfo; field in ShortcutPackageItem 58 mPackageInfo = Objects.requireNonNull(packageInfo); in ShortcutPackageItem() 92 return mPackageInfo; in getPackageInfo() 96 if (mPackageInfo.isShadow()) { in refreshPackageSignatureAndSave() 100 mPackageInfo.refreshSignature(s, this); in refreshPackageSignatureAndSave() 105 if (!mPackageInfo.isShadow()) { in attemptToRestoreIfNeededAndSave() 119 if (!mPackageInfo.hasSignatures()) { in attemptToRestoreIfNeededAndSave() 126 restoreBlockReason = mPackageInfo.canRestoreTo(s, pi, canRestoreAnyVersion()); in attemptToRestoreIfNeededAndSave() 139 mPackageInfo.setShadow(false); in attemptToRestoreIfNeededAndSave()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/transport/ |
D | DelegatingTransportTest.java | 48 @Mock private PackageInfo mPackageInfo; field in DelegatingTransportTest 169 when(mBackupTransport.performBackup(mPackageInfo, mFd, mFlags)).thenReturn(exp); in testPerformBackup() 171 int ret = mDelegatingTransport.performBackup(mPackageInfo, mFd, mFlags); in testPerformBackup() 174 verify(mBackupTransport, times(1)).performBackup(mPackageInfo, mFd, mFlags); in testPerformBackup() 181 when(mBackupTransport.clearBackupData(mPackageInfo)).thenReturn(exp); in testClearBackupData() 183 int ret = mDelegatingTransport.clearBackupData(mPackageInfo); in testClearBackupData() 186 verify(mBackupTransport, times(1)).clearBackupData(mPackageInfo); in testClearBackupData() 229 PackageInfo[] packageInfos = {mPackageInfo}; in testStartRestore() 286 when(mBackupTransport.performFullBackup(mPackageInfo, mFd, mFlags)).thenReturn(exp); in testPerformFullBackup() 288 int ret = mDelegatingTransport.performFullBackup(mPackageInfo, mFd, mFlags); in testPerformFullBackup() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/dex/ |
D | DexManagerTests.java | 168 existingPackages.put(mUser0, Arrays.asList(mFooUser0.mPackageInfo, mBarUser0.mPackageInfo)); in setup() 169 existingPackages.put(mUser1, Arrays.asList(mBarUser1.mPackageInfo)); in setup() 364 mDexManager.notifyPackageInstalled(newPackage.mPackageInfo, mUser0); in testNotifyPackageInstallUsedByOther() 404 mBarUser0.mPackageInfo.applicationInfo.sourceDir, in testNotifyPackageUpdated() 405 mBarUser0.mPackageInfo.applicationInfo.splitSourceDirs); in testNotifyPackageUpdated() 437 mBarUser0.mPackageInfo.applicationInfo.sourceDir, in testNotifyPackageUpdatedCodeLocations() 438 mBarUser0.mPackageInfo.applicationInfo.splitSourceDirs); in testNotifyPackageUpdatedCodeLocations() 885 mDexManager.notifyDexLoadInternal(testData.mPackageInfo.applicationInfo, dexPathMapping, in notifyDexLoad() 976 private final PackageInfo mPackageInfo; field in DexManagerTests.TestData 982 mPackageInfo = getMockPackageInfo(packageName, userId); in TestData() [all …]
|
/frameworks/base/core/java/android/app/ |
D | ContextImpl.java | 214 final @NonNull LoadedApk mPackageInfo; field in ContextImpl 408 return (mPackageInfo != null) ? in getApplicationContext() 409 mPackageInfo.getApplication() : mMainThread.getApplication(); in getApplicationContext() 453 …return mClassLoader != null ? mClassLoader : (mPackageInfo != null ? mPackageInfo.getClassLoader()… in getClassLoader() 458 if (mPackageInfo != null) { in getPackageName() 459 return mPackageInfo.getPackageName(); in getPackageName() 496 if (mPackageInfo != null) { in getApplicationInfo() 497 return mPackageInfo.getApplicationInfo(); in getApplicationInfo() 504 if (mPackageInfo != null) { in getPackageResourcePath() 505 return mPackageInfo.getResDir(); in getPackageResourcePath() [all …]
|
D | Application.java | 332 mLoadedApk = ContextImpl.getImpl(context).mPackageInfo; in attach()
|
D | Instrumentation.java | 1288 if (apk == null) apk = mThread.getSystemContext().mPackageInfo; in getFactory()
|
D | ActivityThread.java | 2527 getSystemContext().mPackageInfo.getClassLoader()); in getPackageInfo() 7411 packageInfo = getSystemContext().mPackageInfo; in installProvider() 7558 this, getSystemContext().mPackageInfo); in attach() 7559 mInitialApplication = context.mPackageInfo.makeApplication(true, null); in attach()
|
D | ApplicationPackageManager.java | 1755 mContext.mPackageInfo, configuration); in getResourcesForApplication()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/ |
D | PeopleBackupFollowUpJobTest.java | 79 private PackageInfo mPackageInfo; field in PeopleBackupFollowUpJobTest 102 .thenReturn(mPackageInfo); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/ |
D | PeopleBackupHelperTest.java | 101 private PackageInfo mPackageInfo; field in PeopleBackupHelperTest 117 .thenReturn(mPackageInfo); in setUp()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ContextFixture.java | 671 private final PackageInfo mPackageInfo = mock(PackageInfo.class); field in ContextFixture 711 doReturn(mPackageInfo).when(mPackageManager).getPackageInfo(nullable(String.class), in ContextFixture()
|
D | TelephonyTest.java | 254 protected PackageInfo mPackageInfo; field in TelephonyTest 843 doReturn(mPackageInfo).when(mPackageManager).getPackageInfo(eq(TAG), anyInt()); in setupMockPackagePermissionChecks()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountManagerServiceTest.java | 127 private PackageInfo mPackageInfo; field in AccountManagerServiceTest 143 mPackageInfo = new PackageInfo(); in setUp() 144 mPackageInfo.signatures = new Signature[1]; in setUp() 145 mPackageInfo.signatures[0] = new Signature(new byte[] {'a', 'b', 'c', 'd'}); in setUp() 146 mPackageInfo.applicationInfo = new ApplicationInfo(); in setUp() 147 mPackageInfo.applicationInfo.privateFlags = ApplicationInfo.PRIVATE_FLAG_PRIVILEGED; in setUp() 148 when(mMockPackageManager.getPackageInfo(anyString(), anyInt())).thenReturn(mPackageInfo); in setUp()
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 68847 Landroid/webkit/UserPackage;->mPackageInfo:Landroid/content/pm/PackageInfo;
|