Home
last modified time | relevance | path

Searched refs:getPackageInstaller (Results 1 – 25 of 43) sorted by relevance

12

/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/
DSessionAbandonBehaviorTest.java164 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 …]
DAtomicInstallTest.java94 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/
DSessionInspectorActivity.java49 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/
DApexShimValidationTest.java71 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()
DStagedInstallTest.java21 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/
DInstallConstraintsTest.kt123 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/
DSessionRule.java19 import static com.android.cts.install.lib.InstallUtils.getPackageInstaller;
79 return Optional.ofNullable(getPackageInstaller().getSessionInfo(retrieveSessionId())) in retrieveSessionInfo()
DInstallTest.java21 import static com.android.cts.install.lib.InstallUtils.getPackageInstaller;
137 getPackageInstaller().abandonSession(mSessionRule.retrieveSessionId()); in action_abandonSession_phase()
DInstallRule.java19 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/
DMainActivity.java33 final PackageInstaller packageInstaller = getPackageManager().getPackageInstaller(); in onCreate()
/cts/libs/install/src/com/android/cts/install/lib/
DUninstall.java48 PackageInstaller packageInstaller = packageManager.getPackageInstaller(); in uninstallSinglePackage()
DInstallUtils.java125 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()
DInstall.java313 PackageInstaller installer = InstallUtils.getPackageInstaller(); in createEmptyInstallSession()
337 InstallUtils.getPackageInstaller().openSession(sessionId)) { in createSingleInstallSession()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DPackageInstallerEnumerationTests.java98 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()
DUtils.java275 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/
DPackageManagerMultiUserTest.java56 PackageInstaller packageInstaller = packageManager.getPackageInstaller(); in testUninstallExistingPackage()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2024_0044.java67 context.getPackageManager().getPackageInstaller(); in testPocCVE_2024_0044()
/cts/tests/tests/content/src/android/content/pm/cts/
DInstallSessionTransferTest.java131 PackageInstaller installer = context.getPackageManager().getPackageInstaller(); in createSession()
145 PackageInstaller installer = context.getPackageManager().getPackageInstaller(); in transferSession()
DChecksumsTest.java197 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 …]
DPackageManagerShellCommandInstallTest.java229 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 …]
DInstallSessionCleanupTest.java60 private final PackageInstaller mPackageInstaller = mPackageManager.getPackageInstaller();
DPackageInstallerArchiveMultiUserTest.java186 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/
DBackgroundReceiver.java105 context.getPackageManager().getPackageInstaller(); in sendInstallCommit()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DPackageInstallTest.java38 mPackageInstaller = mPackageManager.getPackageInstaller(); in setUp()
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/
DUninstallPinnedTest.java123 mContext.getPackageManager().getPackageInstaller().uninstall(TEST_PKG_NAME, in testCantUninstallAppDirectly()

12