/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
D | WatchdogRollbackLoggerTest.java | 78 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/ |
D | CrashRecoveryHelper.java | 104 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/ |
D | StagedInstallInternalTest.java | 134 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/ |
D | SecurityStateTest.java | 84 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/ |
D | DataConverter.kt | 67 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/ |
D | ShortcutManagerTest5.java | 78 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/ |
D | CredentialKtx.kt | 366 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()
|
D | PackageManagerKtx.kt | 26 val pkgInfo = this.getPackageInfo(appPackageName, PackageManager.PackageInfoFlags.of(0)) in PackageManager()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutLauncher.java | 242 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()
|
D | ShortcutPackage.java | 852 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/ |
D | UserBackupManagerServiceTest.java | 186 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/ |
D | PermissionHelperTest.java | 87 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/ |
D | ExportedComponentTest.kt | 41 .map { context.packageManager.getPackageInfo(it, PackageManager.GET_RECEIVERS) } in verifyNoExportedReceivers()
|
/frameworks/base/tests/SharedLibrary/lib/src/com/google/android/test/shared_library/ |
D | SharedLibraryMain.java | 45 pi = context.getPackageManager().getPackageInfo(LIBRARY_PACKAGE, 0); in getVersion()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | PartialConversationInfoTest.java | 122 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/ |
D | SmsApplicationTest.java | 249 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/ |
D | UserPackage.java | 95 public PackageInfo getPackageInfo() { in getPackageInfo() method in UserPackage
|
/frameworks/base/services/companion/java/com/android/server/companion/utils/ |
D | PackageUtils.java | 78 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/ |
D | WatchdogRollbackLogger.java | 68 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/ |
D | UserBackupManagerServiceTest.java | 576 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/ |
D | DefaultPermissionGrantPolicy.java | 317 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/ |
D | PackageBasedTokenUtil.java | 76 signatures = packageManager.getPackageInfo( in generatePackageBasedToken()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SecurityStateManagerService.java | 78 return mPackageManager.getPackageInfo(packageName, 0 /* flags */).versionName; in getSpl()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmTestBase.java | 144 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/ |
D | AppIntegrityManagerServiceImplTest.java | 527 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()
|