Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DSensitiveContentProtectionManagerServiceContentTest.java67 private final PackageInfo mPackageInfo = field in SensitiveContentProtectionManagerServiceContentTest
109 mPackageInfo.getWindowToken(), mPackageInfo.getPkg(), mPackageInfo.getUid(), true); in testExemptedRecorderPackageForScreenCapture()
117 mPackageInfo.getWindowToken(), mPackageInfo.getPkg(), mPackageInfo.getUid(), true); in testBlockAppWindowForScreenCapture()
120 assertThat(mPackageInfoCaptor.getValue()).containsExactly(mPackageInfo); in testBlockAppWindowForScreenCapture()
127 mPackageInfo.getWindowToken(), mPackageInfo.getPkg(), mPackageInfo.getUid(), false); in testUnblockAppWindowForScreenCapture()
129 assertThat(mPackageInfoCaptor.getValue()).containsExactly(mPackageInfo); in testUnblockAppWindowForScreenCapture()
136 mPackageInfo.getWindowToken(), mPackageInfo.getPkg(), mPackageInfo.getUid(), true); in testAppWindowIsUnblockedBeforeScreenCapture()
144 mPackageInfo.getWindowToken(), mPackageInfo.getPkg(), mPackageInfo.getUid(), true); in testAppWindowsAreUnblockedOnScreenCaptureEnd()
159 mPackageInfo.getWindowToken(), mPackageInfo.getPkg(), mPackageInfo.getUid(), true); in testAutofillServicePackageExemption()
168 mPackageInfo.getWindowToken(), mPackageInfo.getPkg(), mPackageInfo.getUid(), true); in testDeveloperOptionDisableFeature()
/frameworks/base/core/java/android/webkit/
DUserPackage.java35 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/opt/car/services/updatableServices/tests/src/com/android/server/wm/
DCarDisplayCompatScaleProviderUpdatableTest.java105 private PackageInfo mPackageInfo; field in CarDisplayCompatScaleProviderUpdatableTest
172 mPackageInfo.activities = activities; in hasMedataData_notDisplayCompat_returnsTrue()
174 any(int.class))).thenReturn(mPackageInfo); in hasMedataData_notDisplayCompat_returnsTrue()
190 mPackageInfo.activities = activities; in hasMedataDataDisplayCompat_requiredTrue_returnsTrue()
192 any(int.class))).thenReturn(mPackageInfo); in hasMedataDataDisplayCompat_requiredTrue_returnsTrue()
210 mPackageInfo.reqFeatures = features; in hasFeatureAutomotive_requiredTrue_returnsFalse()
212 any(int.class))).thenReturn(mPackageInfo); in hasFeatureAutomotive_requiredTrue_returnsFalse()
222 mPackageInfo.reqFeatures = features; in hasFeatureAutomotive_requiredFalse_returnsFalse()
224 any(int.class))).thenReturn(mPackageInfo); in hasFeatureAutomotive_requiredFalse_returnsFalse()
231 mPackageInfo.activities = null; in hasNoActivities_returnsFalse()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/
DWatchdogRollbackLoggerTest.java52 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/
DShortcutPackageItem.java51 private final ShortcutPackageInfo mPackageInfo; field in ShortcutPackageItem
66 mPackageInfo = Objects.requireNonNull(packageInfo); in ShortcutPackageItem()
101 return mPackageInfo; in getPackageInfo()
105 if (mPackageInfo.isShadow()) { in refreshPackageSignatureAndSave()
109 mPackageInfo.refreshSignature(s, this); in refreshPackageSignatureAndSave()
114 if (!mPackageInfo.isShadow()) { in attemptToRestoreIfNeededAndSave()
128 if (!mPackageInfo.hasSignatures()) { in attemptToRestoreIfNeededAndSave()
135 restoreBlockReason = mPackageInfo.canRestoreTo(s, pi, canRestoreAnyVersion()); in attemptToRestoreIfNeededAndSave()
148 mPackageInfo.setShadow(false); in attemptToRestoreIfNeededAndSave()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/dex/
DDexManagerTests.java167 existingPackages.put(mUser0, Arrays.asList(mFooUser0.mPackageInfo, mBarUser0.mPackageInfo)); in setup()
168 existingPackages.put(mUser1, Arrays.asList(mBarUser1.mPackageInfo)); in setup()
363 mDexManager.notifyPackageInstalled(newPackage.mPackageInfo, mUser0); in testNotifyPackageInstallUsedByOther()
403 mBarUser0.mPackageInfo.applicationInfo.sourceDir, in testNotifyPackageUpdated()
404 mBarUser0.mPackageInfo.applicationInfo.splitSourceDirs); in testNotifyPackageUpdated()
436 mBarUser0.mPackageInfo.applicationInfo.sourceDir, in testNotifyPackageUpdatedCodeLocations()
437 mBarUser0.mPackageInfo.applicationInfo.splitSourceDirs); in testNotifyPackageUpdatedCodeLocations()
889 mDexManager.notifyDexLoadInternal(testData.mPackageInfo.applicationInfo, dexPathMapping, in notifyDexLoad()
979 private final PackageInfo mPackageInfo; field in DexManagerTests.TestData
985 mPackageInfo = getMockPackageInfo(packageName, userId); in TestData()
[all …]
/frameworks/base/core/java/android/app/
DContextImpl.java224 final @NonNull LoadedApk mPackageInfo; field in ContextImpl
477 return (mPackageInfo != null) ? in getApplicationContext()
478 mPackageInfo.getApplication() : mMainThread.getApplication(); in getApplicationContext()
522 …return mClassLoader != null ? mClassLoader : (mPackageInfo != null ? mPackageInfo.getClassLoader()… in getClassLoader()
527 if (mPackageInfo != null) { in getPackageName()
528 return mPackageInfo.getPackageName(); in getPackageName()
565 if (mPackageInfo != null) { in getApplicationInfo()
566 return mPackageInfo.getApplicationInfo(); in getApplicationInfo()
573 if (mPackageInfo != null) { in getPackageResourcePath()
574 return mPackageInfo.getResDir(); in getPackageResourcePath()
[all …]
DApplication.java347 mLoadedApk = ContextImpl.getImpl(context).mPackageInfo; in attach()
DInstrumentation.java1463 if (apk == null) apk = mThread.getSystemContext().mPackageInfo; in getFactory()
DActivityThread.java2965 getSystemContext().mPackageInfo.getClassLoader()); in getPackageInfo()
4195 activityContext.mPackageInfo.makeApplicationInner( in createBaseContextForSandboxActivity()
8278 packageInfo = getSystemContext().mPackageInfo; in installProvider()
8428 this, getSystemContext().mPackageInfo); in attach()
8429 mInitialApplication = context.mPackageInfo.makeApplicationInner(true, null); in attach()
DApplicationPackageManager.java2105 mContext.mPackageInfo, configuration); in getResourcesForApplication()
/frameworks/base/tests/UsbManagerTests/src/com/android/server/usbtest/
DUsbProfileGroupSettingsManagerTest.java154 PackageInfo mPackageInfo = new PackageInfo(); in setupDefaultConfiguration() local
155 mPackageInfo.packageName = TEST_PACKAGE_NAME; in setupDefaultConfiguration()
156 mPackageInfo.applicationInfo = Mockito.mock(ApplicationInfo.class); in setupDefaultConfiguration()
157 when(mPackageManager.getPackageInfo(TEST_PACKAGE_NAME, 0)).thenReturn(mPackageInfo); in setupDefaultConfiguration()
161 .thenReturn(List.of(mPackageInfo)); in setupDefaultConfiguration()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DPeopleBackupFollowUpJobTest.java79 private PackageInfo mPackageInfo; field in PeopleBackupFollowUpJobTest
102 .thenReturn(mPackageInfo); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java137 private PackageInfo mPackageInfo; field in AccountManagerServiceTest
155 mPackageInfo = new PackageInfo(); in setUp()
156 mPackageInfo.signatures = new Signature[1]; in setUp()
157 mPackageInfo.signatures[0] = new Signature(new byte[] {'a', 'b', 'c', 'd'}); in setUp()
158 mPackageInfo.applicationInfo = new ApplicationInfo(); in setUp()
159 mPackageInfo.applicationInfo.privateFlags = ApplicationInfo.PRIVATE_FLAG_PRIVILEGED; in setUp()
160 when(mMockPackageManager.getPackageInfo(anyString(), anyInt())).thenReturn(mPackageInfo); in setUp()
162 anyString(), anyInt(), anyInt())).thenReturn(mPackageInfo); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java736 private final PackageInfo mPackageInfo = mock(PackageInfo.class); field in ContextFixture
775 doReturn(mPackageInfo).when(mPackageManager).getPackageInfo(nullable(String.class), in ContextFixture()
DTelephonyTest.java243 protected PackageInfo mPackageInfo; field in TelephonyTest
530 mPackageInfo = Mockito.mock(PackageInfo.class); in setUp()
1117 doReturn(mPackageInfo).when(mPackageManager).getPackageInfo(eq(TAG), anyInt()); in setupMockPackagePermissionChecks()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt64881 Landroid/webkit/UserPackage;->mPackageInfo:Landroid/content/pm/PackageInfo;