Home
last modified time | relevance | path

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

12345

/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DVersion.java48 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/
DVersion.java33 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/
DPackageAccessTest.java52 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/
DSharedUserMigrationTest.kt76 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/
DRestoreAnyVersionTest.java71 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/
DV3RotationTest.java185 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/
DPackageSettingDeviceTest.java39 .getPackageManager().getPackageInfo(packageName, 0); in testCodePathMatchesExpected()
52 PackageInfo pi = packageManager.getPackageInfo(packageName, in testFirstInstallTimeMatchesExpected()
/cts/tests/tests/content/src/android/content/pm/cts/
DAttributionTest.java53 PackageInfo packageInfo = sContext.getPackageManager().getPackageInfo(PACKAGE_NAME, in dontGetAttributions()
61 PackageInfo packageInfo = sContext.getPackageManager().getPackageInfo(PACKAGE_NAME, in getAttributionsAndVerify()
DPackageInstallerArchiveTest.java186 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/
DInstallUtils.java92 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/
DRequiredComponentsTest.java79 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/
DSamegradeTest.java19 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/
DPackageUtil.java97 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/
DSecureFrpInstallTest.java81 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/
DPackageInstallerTestBase.kt106 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/
DPackageInstallerTestBase.kt106 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/
DDynamicSystemClientTest.java79 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/
DVersionTest.java35 PackageInfo pi = pm.getPackageInfo(InstrumentationRegistry.getContext().getPackageName(), in testCheckVersion()
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/
DPackageUtil.java38 PackageInfo packageInfo = context.getPackageManager().getPackageInfo( in getSelfPackageSha256Cert()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DNormalService.java59 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
DExposedActivity.java61 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
DNormalWebActivity.java64 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/ImplicitlyExposedApp/src/com/android/cts/implicitapp/
DImplicitActivity.java60 .getPackageInfo("com.android.cts.ephemeralapp1", 0 /*flags*/); in tryAccessingInstantApp()
/cts/hostsidetests/appsecurity/test-apps/DuplicatePermissionDeclareApp/src/com/android/cts/duplicatepermissiondeclareapp/
DVerifyDuplicatePermissionTest.java44 for (PermissionInfo permInfo : sPm.getPackageInfo(pkg, GET_PERMISSIONS).permissions) { in getDeclaredPermission()
/cts/tests/tests/voiceinteraction/testapp/src/android/voiceinteraction/testapp/
DDirectActionsActivity.java87 getPackageInfo(commandCallback); in onResume()
181 private void getPackageInfo(@NonNull RemoteCallback callback) { in getPackageInfo() method in DirectActionsActivity
188 PackageInfo packageInfo = packageManager.getPackageInfo(packageName, in getPackageInfo()

12345