/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/ |
D | SessionAbandonBehaviorTest.java | 164 InstallUtils.getPackageInstaller().unregisterSessionCallback(sessionCallback); in tearDown() 193 InstallUtils.getPackageInstaller().registerSessionCallback(sessionCallback, mHandler); in registerSessionCallbacks() 215 InstallUtils.getPackageInstaller().getSessionInfo(sessionId); in getAllChildSessions() 272 InstallUtils.getPackageInstaller().abandonSession(sessionId); in abandon_stagedSession_shouldReceiveAbandonCallBack() 286 InstallUtils.getPackageInstaller().abandonSession(sessionId); in abandon_nonStagedSession_shouldReceiveAbandonCallBack() 302 InstallUtils.getPackageInstaller().abandonSession(sessionId); in abandon_stagedSession_openedSession_canNotGetNames() 319 InstallUtils.getPackageInstaller().abandonSession(sessionId); in abandon_nonStagedSession_openedSession_canNotGetNames() 337 InstallUtils.getPackageInstaller().abandonSession(sessionId); in abandon_stagedSession_openForWriting_shouldFail() 355 InstallUtils.getPackageInstaller().abandonSession(sessiondId); in abandon_nonStagedSession_openForWriting_shouldFail() 371 InstallUtils.getPackageInstaller().abandonSession(sessionId); in abandon_stagedSession_canNotOpenAgain() [all …]
|
D | AtomicInstallTest.java | 94 InstallUtils.getPackageInstaller().getMySessions().forEach(info -> { in cleanUpSessions() 96 InstallUtils.getPackageInstaller().abandonSession(info.getSessionId()); in cleanUpSessions() 123 retry(() -> InstallUtils.getPackageInstaller().getSessionInfo(sessionId), in testSessionCleanUp_Single() 138 retry(() -> InstallUtils.getPackageInstaller().getSessionInfo(sessionId), in testSessionCleanUp_Multi() 242 InstallUtils.getPackageInstaller().createSession(params); in testInvalidStateScenario_MultiSessionCantBeApex() 335 InstallUtils.getPackageInstaller().getSessionInfo(childId).getParentSessionId(); in testInvalidStateScenario_RemoveWrongChildShouldDoNothing()
|
/cts/hostsidetests/appsecurity/test-apps/SessionInspector/src/com/android/cts/sessioninspector/ |
D | SessionInspectorActivity.java | 49 getPackageManager().getPackageInstaller().createSession(params); in onCreate() 55 getPackageManager().getPackageInstaller().getSessionInfo(sessionId); in onCreate() 61 getPackageManager().getPackageInstaller().abandonSession(sessionId); in onCreate()
|
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/ |
D | ApexShimValidationTest.java | 71 InstallUtils.getPackageInstaller().getSessionInfo(sessionId); in testRejectsApexWithAdditionalFile_Commit() 79 InstallUtils.getPackageInstaller().getSessionInfo(sessionId); in testRejectsApexWithAdditionalFolder_Commit() 87 InstallUtils.getPackageInstaller().getSessionInfo(sessionId); in testRejectsApexWithPostInstallHook_Commit() 95 InstallUtils.getPackageInstaller().getSessionInfo(sessionId); in testRejectsApexWithPreInstallHook_Commit() 103 InstallUtils.getPackageInstaller().getSessionInfo(sessionId); in testRejectsApexWrongSHA_Commit()
|
D | StagedInstallTest.java | 21 import static com.android.cts.install.lib.InstallUtils.getPackageInstaller; 204 PackageInstaller packageInstaller = getPackageInstaller(); in cleanUp() 373 PackageInstaller packageInstaller = getPackageInstaller(); in testGetActiveStagedSessions() 395 PackageInstaller packageInstaller = getPackageInstaller(); in testIsStagedSessionActive() 419 PackageInstaller packageInstaller = getPackageInstaller(); in testGetActiveStagedSessionsNoSessionActive() 430 List<Integer> stagedSessionIds = getPackageInstaller().getActiveStagedSessions() in testGetActiveStagedSessions_MultiApkSession() 759 PackageInstaller packageInstaller = getPackageInstaller(); in testStagedApkSessionCallbacks() 1492 PackageInstaller packageInstaller = getPackageInstaller(); in assertSessionState() 1615 getPackageInstaller().abandonSession(sessionId); in abandonSession() 1619 return getPackageInstaller().getSessionInfo(sessionId); in getSessionInfo()
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | InstallConstraintsTest.kt | 123 val pi = InstallUtils.getPackageInstaller() in <lambda>() 140 val pi = InstallUtils.getPackageInstaller() in <lambda>() 160 val pi = InstallUtils.getPackageInstaller() in <lambda>() 192 val pi = InstallUtils.getPackageInstaller() in <lambda>() 226 val pi = InstallUtils.getPackageInstaller() in <lambda>() 258 val pi = InstallUtils.getPackageInstaller() in <lambda>() 292 val pi = InstallUtils.getPackageInstaller() in <lambda>() 332 val pi = InstallUtils.getPackageInstaller() in <lambda>() 367 val pi = InstallUtils.getPackageInstaller() in <lambda>() 419 val pi = InstallUtils.getPackageInstaller() in <lambda>() [all …]
|
/cts/hostsidetests/install/app/src/android/cts/install/ |
D | SessionRule.java | 19 import static com.android.cts.install.lib.InstallUtils.getPackageInstaller; 79 return Optional.ofNullable(getPackageInstaller().getSessionInfo(retrieveSessionId())) in retrieveSessionInfo()
|
D | InstallTest.java | 21 import static com.android.cts.install.lib.InstallUtils.getPackageInstaller; 137 getPackageInstaller().abandonSession(mSessionRule.retrieveSessionId()); in action_abandonSession_phase()
|
D | InstallRule.java | 19 import static com.android.cts.install.lib.InstallUtils.getPackageInstaller; 80 PackageInstaller packageInstaller = getPackageInstaller(); in cleanUp()
|
/cts/tests/tests/content/TestInstallerApp/src/com/android/cts/testinstallerapp/ |
D | MainActivity.java | 33 final PackageInstaller packageInstaller = getPackageManager().getPackageInstaller(); in onCreate()
|
/cts/libs/install/src/com/android/cts/install/lib/ |
D | Uninstall.java | 48 PackageInstaller packageInstaller = packageManager.getPackageInstaller(); in uninstallSinglePackage()
|
D | InstallUtils.java | 125 public static PackageInstaller getPackageInstaller() { in getPackageInstaller() method in InstallUtils 126 return InstrumentationRegistry.getTargetContext().getPackageManager().getPackageInstaller(); in getPackageInstaller() 135 return getPackageInstaller().openSession(sessionId); in openPackageInstallerSession() 389 PackageInstaller packageInstaller = getPackageInstaller(); in getStagedSessionInfo()
|
D | Install.java | 313 PackageInstaller installer = InstallUtils.getPackageInstaller(); in createEmptyInstallSession() 337 InstallUtils.getPackageInstaller().openSession(sessionId)) { in createSingleInstallSession()
|
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/ |
D | PackageInstallerEnumerationTests.java | 98 final PackageInstaller installer = sPm.getPackageInstaller(); in getSessionInfo_sessionOwner_canSeeSession() 143 final PackageInstaller installer = sPm.getPackageInstaller(); in getStagedSessions_sessionOwner_canSeeSession() 186 final PackageInstaller installer = sPm.getPackageInstaller(); in getAllSessions_sessionOwner_canSeeSession()
|
D | Utils.java | 275 InstallUtils.getPackageInstaller().getMySessions().forEach(info -> { in cleanUpMySessions() 277 InstallUtils.getPackageInstaller().abandonSession(info.getSessionId()); in cleanUpMySessions()
|
/cts/hostsidetests/packagemanager/multiuser/app/src/com/android/tests/packagemanager/multiuser/app/ |
D | PackageManagerMultiUserTest.java | 56 PackageInstaller packageInstaller = packageManager.getPackageInstaller(); in testUninstallExistingPackage()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CVE_2024_0044.java | 67 context.getPackageManager().getPackageInstaller(); in testPocCVE_2024_0044()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | InstallSessionTransferTest.java | 131 PackageInstaller installer = context.getPackageManager().getPackageInstaller(); in createSession() 145 PackageInstaller installer = context.getPackageManager().getPackageInstaller(); in transferSession()
|
D | ChecksumsTest.java | 197 private static PackageInstaller getPackageInstaller() { in getPackageInstaller() method in ChecksumsTest 198 return getPackageManager().getPackageInstaller(); in getPackageInstaller() 614 final PackageInstaller installer = getPackageInstaller(); in testInstallerSignedChecksumsInvalidSignature() 641 final PackageInstaller installer = getPackageInstaller(); in testInstallerSignedChecksumsSignatureTooBig() 672 final PackageInstaller installer = getPackageInstaller(); in testInstallerSignedChecksumsInvalidChecksum() 826 installer = getPackageInstaller(); in testInstallerFileChecksumsDuringInstall() 956 final PackageInstaller installer = getPackageInstaller(); in testInstallerChecksumsUpdate() 1021 final PackageInstaller installer = getPackageInstaller(); in testInstallerChecksumsUpdate() 1140 final PackageInstaller installer = getPackageInstaller(); in testInstallerSignedChecksumsUpdate() 1205 final PackageInstaller installer = getPackageInstaller(); in testInstallerSignedChecksumsUpdate() [all …]
|
D | PackageManagerShellCommandInstallTest.java | 229 private static PackageInstaller getPackageInstaller() { in getPackageInstaller() method in PackageManagerShellCommandInstallTest 230 return getPackageManager().getPackageInstaller(); in getPackageInstaller() 771 final PackageInstaller installer = getPackageInstaller(); in installDontKillSplit() 834 final PackageInstaller installer = getPackageInstaller(); in testDontKillRemovedWithBaseApkFullInstall() 871 final PackageInstaller installer = getPackageInstaller(); in testDontKillRemovedWithBaseApk() 910 final PackageInstaller installer = getPackageInstaller(); in testDontKillRemovedWithRemovedSplit() 948 final PackageInstaller installer = getPackageInstaller(); in testDontKillRemovedWithReplacedSplit() 984 final PackageInstaller installer = getPackageInstaller(); in testDataLoaderParamsApiV1() 1005 final PackageInstaller installer = getPackageInstaller(); in testDataLoaderParamsApiV2() 1036 final PackageInstaller installer = getPackageInstaller(); in testRemoveFileApiV2() [all …]
|
D | InstallSessionCleanupTest.java | 60 private final PackageInstaller mPackageInstaller = mPackageManager.getPackageInstaller();
|
D | PackageInstallerArchiveMultiUserTest.java | 186 contextPrimaryUser.getPackageManager().getPackageInstaller().requestArchive( in archiveApp_broadcast_multiuser() 245 contextPrimaryUser.getPackageManager().getPackageInstaller().requestArchive( in archiveApp_onlyForOneUser_multiuser()
|
/cts/tests/tests/security/testdata/src/android/security/cts/packageinstallertestapp/ |
D | BackgroundReceiver.java | 105 context.getPackageManager().getPackageInstaller(); in sendInstallCommit()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | PackageInstallTest.java | 38 mPackageInstaller = mPackageManager.getPackageInstaller(); in setUp()
|
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/ |
D | UninstallPinnedTest.java | 123 mContext.getPackageManager().getPackageInstaller().uninstall(TEST_PKG_NAME, in testCantUninstallAppDirectly()
|