Home
last modified time | relevance | path

Searched refs:getPackageInfo (Results 1 – 25 of 180) sorted by relevance

12345678

/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/
DWatchdogRollbackLoggerTest.java78 when(mMockPm.getPackageInfo(anyString(), anyInt())).thenReturn(mPackageInfo); in testLogPackageHasNoMetadata()
82 verify(mMockPm, times(1)).getPackageInfo( in testLogPackageHasNoMetadata()
92 when(mMockPm.getPackageInfo(anyString(), anyInt())).thenReturn(mPackageInfo); in testLogPackageParentKeyIsNull()
100 verify(mMockPm, times(1)).getPackageInfo( in testLogPackageParentKeyIsNull()
114 when(mMockPm.getPackageInfo(anyString(), anyInt())).thenReturn(mPackageInfo); in testLogPackageHasParentKey()
119 verify(mMockPm, times(1)).getPackageInfo( in testLogPackageHasParentKey()
133 when(mMockPm.getPackageInfo(anyString(), anyInt())).thenReturn(mPackageInfo); in testLogPackageNameNotFound()
134 when(mMockPm.getPackageInfo(same(LOGGING_PARENT_VALUE), anyInt())).thenThrow( in testLogPackageNameNotFound()
139 verify(mMockPm, times(1)).getPackageInfo( in testLogPackageNameNotFound()
156 when(mMockPm.getPackageInfo(same(failingPackage), anyInt())).thenReturn(packageInfo); in testApexdLoggingCallsWithParents()
[all …]
/frameworks/base/services/core/java/com/android/server/crashrecovery/
DCrashRecoveryHelper.java104 final long versionCode = getPackageInfo(packageName).getLongVersionCode(); in getVersionedPackage()
116 private PackageInfo getPackageInfo(String packageName) in getPackageInfo() method in CrashRecoveryHelper
124 return pm.getPackageInfo(packageName, PackageManager.MATCH_ANY_USER); in getPackageInfo()
126 return pm.getPackageInfo(packageName, PackageManager.MATCH_APEX); in getPackageInfo()
/frameworks/base/tests/StagedInstallTest/app/src/com/android/tests/stagedinstallinternal/
DStagedInstallInternalTest.java134 info = pm.getPackageInfo(TestApp.A, in testUpdateSystemApp_InstallV2()
139 info = pm.getPackageInfo(TestApp.A, PackageManager.PackageInfoFlags.of(0)); in testUpdateSystemApp_InstallV2()
147 info = pm.getPackageInfo(TestApp.A, in testUpdateSystemApp_InstallV2()
152 info = pm.getPackageInfo(TestApp.A, PackageManager.PackageInfoFlags.of(0)); in testUpdateSystemApp_InstallV2()
165 info = pm.getPackageInfo(TestApp.A, in testUpdateSystemApp_PostInstallV2()
170 info = pm.getPackageInfo(TestApp.A, PackageManager.PackageInfoFlags.of(0)); in testUpdateSystemApp_PostInstallV2()
448 PackageInfo apex = pm.getPackageInfo("test.apex.rebootless", PackageManager.MATCH_APEX); in testRebootlessUpdates()
462 PackageInfo apex = pm.getPackageInfo("test.apex.rebootless", PackageManager.MATCH_APEX); in testRebootlessUpdates()
471 PackageInfo apex = pm.getPackageInfo("test.apex.rebootless", in testRebootlessUpdates()
486 PackageInfo apex = pm.getPackageInfo("test.apex.rebootless", PackageManager.MATCH_APEX); in testRebootlessUpdates()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DSecurityStateTest.java84 when(mMockPackageManager.getPackageInfo(anyString(), anyInt())) in setUp()
88 when(mMockPackageManager.getPackageInfo(DEFAULT_MODULE_METADATA_PROVIDER, 0)) in setUp()
92 when(mMockPackageManager.getPackageInfo(DEFAULT_SECURITY_STATE_PACKAGE, 0)) in setUp()
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/
DDataConverter.kt67 getPackageInfo(pm, appPackageName) in <lambda>()
69 pm.getPackageInfo(appPackageName, PackageManager.PackageInfoFlags.of(0)) in <lambda>()
94 getPackageInfo(pm, providerFlattenedComponentName) in getServiceLabelAndIcon()
96 pm.getPackageInfo( in getServiceLabelAndIcon()
125 getPackageInfo(pm, providerFlattenedComponentName) in getServiceLabelAndIcon()
127 pm.getPackageInfo( in getServiceLabelAndIcon()
155 private fun getPackageInfo( in getPackageInfo() method
161 return pm.getPackageInfo( in getPackageInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest5.java78 PackageInfo pi = mShortcutService.getPackageInfo( in testGetPackageInfo()
84 pi = mShortcutService.getPackageInfo( in testGetPackageInfo()
90 pi = mShortcutService.getPackageInfo( in testGetPackageInfo()
/frameworks/base/packages/CredentialManager/shared/src/com/android/credentialmanager/ktx/
DCredentialKtx.kt366 getPackageInfo(pm, providerFlattenedComponentName) in getServiceLabelAndIcon()
368 pm.getPackageInfo( in getServiceLabelAndIcon()
397 getPackageInfo(pm, providerFlattenedComponentName) in getServiceLabelAndIcon()
399 pm.getPackageInfo( in getServiceLabelAndIcon()
427 private fun getPackageInfo( in getPackageInfo() method
433 return pm.getPackageInfo( in getPackageInfo()
DPackageManagerKtx.kt26 val pkgInfo = this.getPackageInfo(appPackageName, PackageManager.PackageInfoFlags.of(0)) in PackageManager()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutLauncher.java242 getPackageInfo().updateFromPackageInfo(pi); in ensurePackageInfo()
251 if (forBackup && !getPackageInfo().isBackupAllowed()) { in saveToXml()
267 getPackageInfo().saveToXml(mShortcutUser.mService, out, forBackup); in saveToXml()
360 ret.getPackageInfo().loadFromXml(parser, fromBackup); in loadFromXml()
406 getPackageInfo().dump(pw, prefix + " "); in dump()
DShortcutPackage.java852 if (getPackageInfo().isShadow()) { in findAll()
1113 pi = mShortcutUser.mService.getPackageInfo( in rescanPackageIfNeeded()
1130 if ((getPackageInfo().getVersionCode() == pi.getLongVersionCode()) in rescanPackageIfNeeded()
1131 && (getPackageInfo().getLastUpdateTime() == pi.lastUpdateTime) in rescanPackageIfNeeded()
1171 getPackageInfo().getVersionCode(), pi.getLongVersionCode())); in rescanPackageIfNeeded()
1173 getPackageInfo().updateFromPackageInfo(pi); in rescanPackageIfNeeded()
1175 final long newVersionCode = getPackageInfo().getVersionCode(); in rescanPackageIfNeeded()
1184 if (getPackageInfo().getBackupSourceVersionCode() > newVersionCode) { in rescanPackageIfNeeded()
1190 getPackageInfo().getBackupSourceVersionCode())); in rescanPackageIfNeeded()
1737 getPackageInfo().dump(pw, prefix + " "); in dump()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DUserBackupManagerServiceTest.java186 getPackageInfo(TEST_PACKAGE)); in getRequestBackupParams_appIsEligibleForFullBackup()
202 getPackageInfo(TEST_PACKAGE)); in getRequestBackupParams_appIsEligibleForKeyValueBackup()
218 getPackageInfo(TEST_PACKAGE)); in getRequestBackupParams_appIsNotEligibleForBackup()
287 PackageInfo packageInfo = getPackageInfo(TEST_PACKAGE); in testReportDelayedRestoreResult_sendsLogsToMonitor()
306 private static PackageInfo getPackageInfo(String packageName) { in getPackageInfo() method in UserBackupManagerServiceTest
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPermissionHelperTest.java87 when(mPackageManager.getPackageInfo(anyString(), anyLong(), anyInt())) in setUp()
151 when(mPackageManager.getPackageInfo(packageName, GET_PERMISSIONS, 0)).thenReturn(info); in testHasRequestedPermission_otherPermission()
166 when(mPackageManager.getPackageInfo(packageName, GET_PERMISSIONS, 0)).thenReturn(info); in testHasRequestedPermission_noPermissions()
182 when(mPackageManager.getPackageInfo(packageName, GET_PERMISSIONS, 0)).thenReturn(info); in testHasRequestedPermission_singlePermissions()
198 when(mPackageManager.getPackageInfo(packageName, GET_PERMISSIONS, 0)).thenReturn(info); in testHasRequestedPermission_twoPermissions()
377 when(mPackageManager.getPackageInfo(anyString(), anyLong(), anyInt())) in testSetNotificationPermission_doesntRequestNotChanged()
/frameworks/base/services/tests/PackageManager/packageinstaller/src/com/android/packageinstaller/test/
DExportedComponentTest.kt41 .map { context.packageManager.getPackageInfo(it, PackageManager.GET_RECEIVERS) } in verifyNoExportedReceivers()
/frameworks/base/tests/SharedLibrary/lib/src/com/google/android/test/shared_library/
DSharedLibraryMain.java45 pi = context.getPackageManager().getPackageInfo(LIBRARY_PACKAGE, 0); in getVersion()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DPartialConversationInfoTest.java122 when(mMockPackageManager.getPackageInfo(eq(TEST_PACKAGE_NAME), anyInt())) in setUp()
130 when(mMockPackageManager.getPackageInfo(eq(TEST_SYSTEM_PACKAGE_NAME), anyInt())) in setUp()
132 when(mMockPackageManager.getPackageInfo(eq("android"), anyInt())) in setUp()
/frameworks/base/tests/TelephonyCommonTests/src/com/android/internal/telephony/tests/
DSmsApplicationTest.java249 when(mPackageManager.getPackageInfo(eq(SmsApplication.PHONE_PACKAGE_NAME), anyInt())) in setupPackageInfosForCoreApps()
256 when(mPackageManager.getPackageInfo(eq(SmsApplication.MMS_SERVICE_PACKAGE_NAME), anyInt())) in setupPackageInfosForCoreApps()
263 when(mPackageManager.getPackageInfo(matches(".*android.bluetooth.services"), anyInt())) in setupPackageInfosForCoreApps()
270 when(mPackageManager.getPackageInfo( in setupPackageInfosForCoreApps()
/frameworks/base/core/java/android/webkit/
DUserPackage.java95 public PackageInfo getPackageInfo() { in getPackageInfo() method in UserPackage
/frameworks/base/services/companion/java/com/android/server/companion/utils/
DPackageUtils.java78 public static PackageInfo getPackageInfo(@NonNull Context context, in getPackageInfo() method in PackageUtils
102 PackageInfo packageInfo = getPackageInfo(context, userId, packageName);
/frameworks/base/services/core/java/com/android/server/rollback/
DWatchdogRollbackLogger.java68 ApplicationInfo ai = packageManager.getPackageInfo(packageName, flags).applicationInfo; in getLoggingParentName()
97 .getPackageInfo(logPackageName, 0 /* flags */).getLongVersionCode()); in getLogPackage()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DUserBackupManagerServiceTest.java576 PackageInfo packageInfo = getPackageInfo(transportPackage); in setUpForUpdateTransportAttributes()
1218 List<PackageInfo> packages = Arrays.asList(getPackageInfo(USER_FACING_PACKAGE), in testFilterUserFacingPackages_shouldSkipUserFacing_filtersUserFacing()
1219 getPackageInfo(PACKAGE_1)); in testFilterUserFacingPackages_shouldSkipUserFacing_filtersUserFacing()
1234 List<PackageInfo> packages = Arrays.asList(getPackageInfo(USER_FACING_PACKAGE), in testFilterUserFacingPackages_shouldNotSkipUserFacing_doesNotFilterUserFacing()
1235 getPackageInfo(PACKAGE_1)); in testFilterUserFacingPackages_shouldNotSkipUserFacing_doesNotFilterUserFacing()
1269 private PackageInfo getPackageInfo(String packageName) { in getPackageInfo() method in UserBackupManagerServiceTest
1279 PackageInfo packageInfo = getPackageInfo(packageName); in registerPackages()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DDefaultPermissionGrantPolicy.java317 public @Nullable PackageInfo getPackageInfo(@NonNull String pkg) {
323 return mContext.getPackageManager().getPackageInfo(pkg,
538 grantPermissionsToPackage(pm, pm.getPackageInfo(packageName), in grantPermissionsToPackage()
1220 final int flags = pm.getPermissionFlags(permission, pm.getPackageInfo(packageName), in revokeRuntimePermissions()
1285 String[] requestedByNonSystemPackage = pm.getPackageInfo(pkg.packageName) in grantRuntimePermissions()
1454 PackageInfo pkg = pm.getPackageInfo(packageName); in grantDefaultPermissionExceptions()
1574 PackageInfo packageInfo = pm.getPackageInfo(packageName); in parseExceptions()
1673 abstract @Nullable PackageInfo getPackageInfo(@NonNull String pkg); in getPackageInfo() method in DefaultPermissionGrantPolicy.PackageManagerWrapper
1676 PackageInfo pi = getPackageInfo(pkg); in getSystemPackageInfo()
1719 return isSystemPackage(getPackageInfo(packageName)); in isSystemPackage()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPackageBasedTokenUtil.java76 signatures = packageManager.getPackageInfo( in generatePackageBasedToken()
/frameworks/base/services/core/java/com/android/server/
DSecurityStateManagerService.java78 return mPackageManager.getPackageInfo(packageName, 0 /* flags */).versionName; in getSpl()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java144 mRealTestContext.getPackageManager().getPackageInfo( in markPackageAsInstalled()
152 doReturn(pi).when(mServices.ipackageManager).getPackageInfo(packageName, 0, userId); in markPackageAsInstalled()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
DAppIntegrityManagerServiceImplTest.java527 mRealContext.getPackageManager().getPackageInfo(TEST_FRAMEWORK_PACKAGE, 0); in makeUsSystemApp()
535 .getPackageInfo(eq(TEST_FRAMEWORK_PACKAGE), anyInt()); in makeUsSystemApp()
543 .getPackageInfo( in makeVerificationIntent()
545 doReturn(packageInfo).when(mSpyPackageManager).getPackageInfo(eq(INSTALLER), anyInt()); in makeVerificationIntent()

12345678