Home
last modified time | relevance | path

Searched refs:installer (Results 1 – 20 of 20) sorted by relevance

/cts/tests/tests/content/src/android/content/pm/cts/
DInstallSessionTransferTest.java75 private SessionInfo getSessionInfo(@NonNull PackageInstaller installer, in getSessionInfo() argument
77 List<SessionInfo> mySessionInfos = installer.getMySessions(); in getSessionInfo()
98 ResolveInfo installer = InstrumentationRegistry.getInstrumentation().getTargetContext() in getPackageInstallerPackageName() local
102 if (installer != null) { in getPackageInstallerPackageName()
103 return installer.activityInfo.packageName; in getPackageInstallerPackageName()
131 PackageInstaller installer = context.getPackageManager().getPackageInstaller(); in createSession() local
134 int sessionId = installer.createSession(params); in createSession()
135 return installer.openSession(sessionId); in createSession()
145 PackageInstaller installer = context.getPackageManager().getPackageInstaller(); in transferSession() local
148 int sessionId = installer.createSession(params); in transferSession()
[all …]
DChecksumsTest.java614 final PackageInstaller installer = getPackageInstaller(); in testInstallerSignedChecksumsInvalidSignature() local
619 final int sessionId = installer.createSession(params); in testInstallerSignedChecksumsInvalidSignature()
620 Session session = installer.openSession(sessionId); in testInstallerSignedChecksumsInvalidSignature()
641 final PackageInstaller installer = getPackageInstaller(); in testInstallerSignedChecksumsSignatureTooBig() local
645 final int sessionId = installer.createSession(params); in testInstallerSignedChecksumsSignatureTooBig()
646 Session session = installer.openSession(sessionId); in testInstallerSignedChecksumsSignatureTooBig()
672 final PackageInstaller installer = getPackageInstaller(); in testInstallerSignedChecksumsInvalidChecksum() local
677 final int sessionId = installer.createSession(params); in testInstallerSignedChecksumsInvalidChecksum()
678 Session session = installer.openSession(sessionId); in testInstallerSignedChecksumsInvalidChecksum()
823 PackageInstaller installer = null; in testInstallerFileChecksumsDuringInstall() local
[all …]
DPackageManagerShellCommandInstallTest.java771 final PackageInstaller installer = getPackageInstaller(); in installDontKillSplit() local
777 final int sessionId = installer.createSession(params); in installDontKillSplit()
778 PackageInstaller.Session session = installer.openSession(sessionId); in installDontKillSplit()
834 final PackageInstaller installer = getPackageInstaller(); in testDontKillRemovedWithBaseApkFullInstall() local
839 final int sessionId = installer.createSession(params); in testDontKillRemovedWithBaseApkFullInstall()
840 PackageInstaller.Session session = installer.openSession(sessionId); in testDontKillRemovedWithBaseApkFullInstall()
871 final PackageInstaller installer = getPackageInstaller(); in testDontKillRemovedWithBaseApk() local
876 final int sessionId = installer.createSession(params); in testDontKillRemovedWithBaseApk()
877 PackageInstaller.Session session = installer.openSession(sessionId); in testDontKillRemovedWithBaseApk()
910 final PackageInstaller installer = getPackageInstaller(); in testDontKillRemovedWithRemovedSplit() local
[all …]
DLauncherAppsForHiddenProfilesTest.java378 PackageInstaller installer = in startInstallationSession() local
384 installer.openSession( in startInstallationSession()
385 installer.createSession( in startInstallationSession()
DPackageManagerShellCommandIncrementalTest.java1116 final Callable<Void> installer, in checkSysTrace() argument
1146 installer.call(); in checkSysTrace()
/cts/hostsidetests/appsearch/src/android/appsearch/cts/
DEnterpriseContactsMultiUserTest.java81 for (SuiteApkInstaller installer : sInstallers) { in tearDownClass()
82 installer.tearDown(testInfo, null); in tearDownClass()
129 SuiteApkInstaller installer = new SuiteApkInstaller(); in installPackageAsUser() local
130 installer.addTestFileName(TARGET_APK_A); in installPackageAsUser()
131 installer.setUserId(userId); in installPackageAsUser()
132 installer.setShouldGrantPermission(true); in installPackageAsUser()
133 installer.setUp(testInfo); in installPackageAsUser()
134 sInstallers.add(installer); in installPackageAsUser()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DPackageInstallerEnumerationTests.java98 final PackageInstaller installer = sPm.getPackageInstaller(); in getSessionInfo_sessionOwner_canSeeSession() local
99 final PackageInstaller.SessionInfo info = installer.getSessionInfo(sessionId); in getSessionInfo_sessionOwner_canSeeSession()
143 final PackageInstaller installer = sPm.getPackageInstaller(); in getStagedSessions_sessionOwner_canSeeSession() local
144 final Integer[] sessionIds = installer.getStagedSessions().stream() in getStagedSessions_sessionOwner_canSeeSession()
186 final PackageInstaller installer = sPm.getPackageInstaller(); in getAllSessions_sessionOwner_canSeeSession() local
187 final Integer[] sessionIds = installer.getAllSessions().stream() in getAllSessions_sessionOwner_canSeeSession()
/cts/hostsidetests/appsecurity/test-apps/PackageInstallerWhitelistApp/src/com/android/cts/packageinstallerpermissionwhitelistapp/
DPermissionWhitelistTest.kt96 private fun assertTargetInstaller(installer: String?) { in assertTargetInstaller()
98 .isEqualTo(installer) in assertTargetInstaller()
/cts/tests/framework/base/locale/InstallerApp/src/android/localemanager/cts/installer/
DInstallerBroadcastReceiver.java16 package android.localemanager.cts.installer;
DMainActivity.java17 package android.localemanager.cts.installer;
/cts/hostsidetests/packagemanager/extractnativelibs/src/android/extractnativelibs/cts/
DCtsExtractNativeLibsHostTestBase.java149 SuiteApkInstaller installer = new SuiteApkInstaller(); in installPackageLegacy() local
150 installer.addTestFileName(apkFileName); in installPackageLegacy()
153 installer.addInstallArg(abiFlag); in installPackageLegacy()
156 installer.setUp(getTestInformation()); in installPackageLegacy()
/cts/libs/install/src/com/android/cts/install/lib/
DInstall.java313 PackageInstaller installer = InstallUtils.getPackageInstaller(); in createEmptyInstallSession() local
314 if (installer == null) { in createEmptyInstallSession()
318 return installer.createSession(params); in createEmptyInstallSession()
/cts/hostsidetests/silentupdate/testapp/src/com/android/tests/silentupdate/
DSilentUpdateTests.java298 final PackageInstaller installer = context.getPackageManager().getPackageInstaller(); in commit() local
311 int sessionId = installer.createSession(params); in commit()
314 installer.getSessionInfo(sessionId).getRequireUserAction(), in commit()
320 final PackageInstaller.Session session = installer.openSession(sessionId); in commit()
/cts/hostsidetests/incrementalinstall/app/
DAndroid.bp43 // needs to be extracted by the installer instead of calling directly into the apk.
71 // does not need to be extracted by the installer.
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DApkVerityInstallTest.java337 InstallMultiple installer = new InstallMultiple(incremental) in testInstallDmWithMissingFsvSig() local
343 installer.run(); in testInstallDmWithMissingFsvSig()
353 InstallMultiple installer = new InstallMultiple(incremental) in testInstallSplitWithFsvSigAndBaseWithout() local
360 installer.run(); in testInstallSplitWithFsvSigAndBaseWithout()
DEphemeralTest.java604 private void installApp(String apk, String installer) throws Exception { in installApp() argument
607 .addArg("-i " + installer) in installApp()
617 private void installEphemeralApp(String apk, String installer) throws Exception { in installEphemeralApp() argument
620 .addArg("-i " + installer) in installEphemeralApp()
DPackageSetInstallerTest.kt196 private fun assertTargetInstaller(installer: String?) { in assertTargetInstaller()
198 .isEqualTo("package:$TARGET_PKG installer=$installer") in assertTargetInstaller()
DPkgInstallSignatureVerificationTest.java2041 var installer = new InstallMultiple(); in installV4Package() local
2043 installer.useIncremental(); in installV4Package()
2046 installer.addRemoteFile(remoteApkPath + ".idsig"); in installV4Package()
2048 return installer in installV4Package()
/cts/hostsidetests/incrementalinstall/app/nativelibcompressed/
DAndroid.bp45 // lib to be compressed in the apk, and needs to be extracted by the installer instead of
/cts/tests/rollback/src/com/android/cts/rollback/
DRollbackManagerTest.java599 String installer = InstrumentationRegistry.getContext().getPackageManager() in testBadUpdateRollback() local
601 assertThat(installer).isEqualTo(getClass().getPackageName()); in testBadUpdateRollback()