/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/ |
D | Version.java | 48 return getPackageInfo(context).versionCode; in getVersionCode() 52 return getPackageInfo(context).versionName.split(" "); in getVersionNameStrings() 55 static PackageInfo getPackageInfo(Context context) { in getPackageInfo() method in Version 58 return packageManager.getPackageInfo(context.getPackageName(), 0); in getPackageInfo()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | Version.java | 33 return getPackageInfo(context).versionName; in getVersionName() 37 return getPackageInfo(context).versionCode; in getVersionCode() 40 static PackageInfo getPackageInfo(Context context) { in getPackageInfo() method in Version 43 return packageManager.getPackageInfo(context.getPackageName(), 0); in getPackageInfo()
|
/cts/hostsidetests/appsecurity/test-apps/PackageAccessApp/src/com/android/cts/packageaccessapp/ |
D | PackageAccessTest.java | 52 PackageInfo pi = pm.getPackageInfo(TINY_PKG, 0); in testPackageAccess_inUser() 63 PackageInfo pi = pm.getPackageInfo(TINY_PKG, PackageManager.MATCH_UNINSTALLED_PACKAGES); in testPackageAccess_inUserUninstalled() 74 PackageInfo pi = pm.getPackageInfo(TINY_PKG, 0); in testPackageAccess_notInOtherUser() 85 PackageInfo pi = pm.getPackageInfo(TINY_PKG, PackageManager.MATCH_UNINSTALLED_PACKAGES); in testPackageAccess_notInOtherUserUninstalled()
|
/cts/tests/tests/uidmigration/src/android/uidmigration/cts/ |
D | SharedUserMigrationTest.kt | 76 pkgInfo = mPm.getPackageInfo(Const.INSTALL_TEST_PKG, FLAG_ZERO) in testNewInstallOnly() 88 pkgInfo = mPm.getPackageInfo(Const.INSTALL_TEST_PKG, FLAG_ZERO) in testNewInstallOnly() 92 val newPkgInfo = mPm.getPackageInfo(Const.INSTALL_TEST_PKG, FLAG_ZERO) in testNewInstallOnly() 105 var pkgInfo = mPm.getPackageInfo(Const.INSTALL_TEST_PKG, FLAG_ZERO) in testBestEffort() 119 pkgInfo = mPm.getPackageInfo(Const.INSTALL_TEST_PKG, FLAG_ZERO) in testBestEffort()
|
/cts/hostsidetests/backup/RestoreAnyVersion/src/ |
D | RestoreAnyVersionTest.java | 71 PackageInfo packageInfo = mContext.getPackageManager().getPackageInfo( in checkAppVersionIsNew() 90 PackageInfo packageInfo = mContext.getPackageManager().getPackageInfo( in checkAppVersionIsOld() 106 .getPackageInfo(mContext.getPackageName(), 0).versionCode); in saveAppVersionCodeToSharedPreference()
|
/cts/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/ |
D | V3RotationTest.java | 185 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNATURES); in testGetSignaturesShowsOld() 197 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNING_CERTIFICATES); in testGetSigningCertificatesShowsAll() 228 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNING_CERTIFICATES); in testGetApkContentsSignersShowsCurrent() 240 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNING_CERTIFICATES); in testGetApkContentsSignersShowsMultipleSigners() 262 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNING_CERTIFICATES); in testGetSigningCertificateHistoryReturnsSignersInOrder() 326 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNING_CERTIFICATES); in testUsingOriginalSigner() 340 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNING_CERTIFICATES); in testUsingRotatedSigner()
|
/cts/hostsidetests/packagemanager/packagesetting/app/src/com/android/tests/packagesetting/app/ |
D | PackageSettingDeviceTest.java | 39 .getPackageManager().getPackageInfo(packageName, 0); in testCodePathMatchesExpected() 52 PackageInfo pi = packageManager.getPackageInfo(packageName, in testFirstInstallTimeMatchesExpected()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | AttributionTest.java | 53 PackageInfo packageInfo = sContext.getPackageManager().getPackageInfo(PACKAGE_NAME, in dontGetAttributions() 61 PackageInfo packageInfo = sContext.getPackageManager().getPackageInfo(PACKAGE_NAME, in getAttributionsAndVerify()
|
D | PackageInstallerArchiveTest.java | 186 PackageInfo packageInfo = getPackageInfo(); in archiveApp_dataIsKept() 233 ApplicationInfo applicationInfo = mPackageManager.getPackageInfo(PACKAGE_NAME, in archiveApp_getApplicationIcon() 254 ApplicationInfo applicationInfo = mPackageManager.getPackageInfo(PACKAGE_NAME, in archiveApp_getApplicationIcon_compatOptionsOn() 287 () -> mPackageManager.getPackageInfo(PACKAGE_NAME, in archiveApp_uninstallationWorksCorrectly() 351 assertThat(mPackageManager.getPackageInfo(PACKAGE_NAME, in matchArchivedPackages() 354 assertThat(mPackageManager.getPackageInfo(PACKAGE_NAME, in matchArchivedPackages() 365 () -> mPackageManager.getPackageInfo(PACKAGE_NAME, /* flags= */ 0)); in matchArchivedPackages() 437 PackageInfo pi = mPackageManager.getPackageInfo(PACKAGE_NAME, in archiveApp_getArchiveTimeMillis() 458 PackageInfo pi = mPackageManager.getPackageInfo(PACKAGE_NAME, in archiveApp_archiveStateClearedAfterUpdate() 466 pi = mPackageManager.getPackageInfo(PACKAGE_NAME, PackageInfoFlags.of(0)); in archiveApp_archiveStateClearedAfterUpdate() [all …]
|
/cts/libs/install/src/com/android/cts/install/lib/ |
D | InstallUtils.java | 92 PackageInfo info = pm.getPackageInfo(packageName, in getInstalledVersion() 96 PackageInfo info = pm.getPackageInfo(packageName, PackageManager.MATCH_APEX); in getInstalledVersion() 107 public static PackageInfo getPackageInfo(String packageName) { in getPackageInfo() method in InstallUtils 112 return pm.getPackageInfo(packageName, in getPackageInfo() 115 return pm.getPackageInfo(packageName, PackageManager.MATCH_APEX); in getPackageInfo() 348 PackageInfo pi = getPackageInfo(packageName); in isSystemAppWithoutUpdate()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | RequiredComponentsTest.java | 79 PackageInfo packageInfo = packageManager.getPackageInfo(servicesExtensionPackage, 0); in testExtServicesPresent() 100 pm.getPackageInfo(packageName, 0); in testNoPackageInfoAccess() 141 PackageInfo packageInfo = packageManager.getPackageInfo(packageName, 0); in enforceSharedLibPresentAndProperlyHosted()
|
/cts/hostsidetests/install/app/src/android/cts/install/ |
D | SamegradeTest.java | 19 import static com.android.cts.install.lib.InstallUtils.getPackageInfo; 128 final PackageInfo shim = getPackageInfo(SHIM_APEX_PACKAGE_NAME); in action_systemApex_phase() 145 final PackageInfo shim = getPackageInfo(SHIM_APEX_PACKAGE_NAME); in assert_systemApex_postReboot_phase()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PackageUtil.java | 97 PackageInfo info = getPackageManager().getPackageInfo(packageName, in getVersionString() 112 PackageInfo info = getPackageManager().getPackageInfo(packageName, in getLongVersionCode() 132 .getPackageInfo(packageName, PackageManager.GET_SIGNATURES); in computePackageSignatureDigest()
|
/cts/tests/tests/content/pm/SecureFrp/src/com/android/tests/securefrpinstall/ |
D | SecureFrpInstallTest.java | 81 sPackageManager.getPackageInfo(TestApp.A, PackageManager.PackageInfoFlags.of(0)); in assertInstalled() 86 sPackageManager.getPackageInfo(TestApp.A, PackageManager.PackageInfoFlags.of(0)); in assertNotInstalled()
|
/cts/tests/tests/packageinstaller/install_appop_denied/src/android/packageinstaller/install_appop_denied/cts/ |
D | PackageInstallerTestBase.kt | 106 context.packageManager.getPackageInfo(TEST_APK_PACKAGE_NAME, 0) in <lambda>() 175 pm.getPackageInfo(TEST_APK_PACKAGE_NAME, 0) in <lambda>() 180 pm.getPackageInfo(TEST_APK_PACKAGE_NAME, 0) in <lambda>()
|
/cts/tests/tests/packageinstaller/install_appop_default/src/android/packageinstaller/install_appop_default/cts/ |
D | PackageInstallerTestBase.kt | 106 context.packageManager.getPackageInfo(TEST_APK_PACKAGE_NAME, 0) in <lambda>() 175 pm.getPackageInfo(TEST_APK_PACKAGE_NAME, 0) in <lambda>() 180 pm.getPackageInfo(TEST_APK_PACKAGE_NAME, 0) in <lambda>()
|
/cts/tests/tests/os/src/android/os/image/cts/ |
D | DynamicSystemClientTest.java | 79 getPackageManager().getPackageInfo(DSU_PACKAGE_NAME, 0); in testDynamicSystemClient() 113 getPackageManager().getPackageInfo(DSU_PACKAGE_NAME, 0); in testDynamicSystemClient_withoutOnStatusChangedListener()
|
/cts/hostsidetests/appsecurity/test-apps/MajorVersionApp/src-common/com/android/cts/majorversion/ |
D | VersionTest.java | 35 PackageInfo pi = pm.getPackageInfo(InstrumentationRegistry.getContext().getPackageName(), in testCheckVersion()
|
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/ |
D | PackageUtil.java | 38 PackageInfo packageInfo = context.getPackageManager().getPackageInfo( in getSelfPackageSha256Cert()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ |
D | NormalService.java | 59 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
|
D | ExposedActivity.java | 61 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
|
D | NormalWebActivity.java | 64 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/ImplicitlyExposedApp/src/com/android/cts/implicitapp/ |
D | ImplicitActivity.java | 60 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
|
/cts/hostsidetests/appsecurity/test-apps/DuplicatePermissionDeclareApp/src/com/android/cts/duplicatepermissiondeclareapp/ |
D | VerifyDuplicatePermissionTest.java | 44 for (PermissionInfo permInfo : sPm.getPackageInfo(pkg, GET_PERMISSIONS).permissions) { in getDeclaredPermission()
|
/cts/tests/tests/voiceinteraction/testapp/src/android/voiceinteraction/testapp/ |
D | DirectActionsActivity.java | 87 getPackageInfo(commandCallback); in onResume() 181 private void getPackageInfo(@NonNull RemoteCallback callback) { in getPackageInfo() method in DirectActionsActivity 188 PackageInfo packageInfo = packageManager.getPackageInfo(packageName, in getPackageInfo()
|