Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/
DAppDataRollbackHelperTest.java64 Installer installer = mock(Installer.class); in testSnapshotAppData() local
65 AppDataRollbackHelper helper = spy(new AppDataRollbackHelper(installer, mApexManager)); in testSnapshotAppData()
77 InOrder inOrder = Mockito.inOrder(installer); in testSnapshotAppData()
78 inOrder.verify(installer).snapshotAppData( in testSnapshotAppData()
80 inOrder.verify(installer).snapshotAppData( in testSnapshotAppData()
87 when(installer.snapshotAppData(anyString(), anyInt(), anyInt(), anyInt())).thenReturn(true); in testSnapshotAppData()
94 inOrder = Mockito.inOrder(installer); in testSnapshotAppData()
95 inOrder.verify(installer).snapshotAppData( in testSnapshotAppData()
98 inOrder.verify(installer).snapshotAppData( in testSnapshotAppData()
130 Installer installer = mock(Installer.class); in testRestoreAppDataSnapshot_pendingBackupForUser() local
[all …]
/frameworks/base/core/tests/PackageInstallerSessions/src/android/content/pm/
DPackageSessionTests.kt77 private val installer = context.packageManager.packageInstaller in <lambda>() constant in android.content.pm.PackageSessionTests
183 installer.mySessions.asSequence() in <lambda>()
187 installer.abandonSession(it) in <lambda>()
202 installer.unregisterSessionCallback(this) in <lambda>()
220 assertThat(installer.getSessionInfo(it)?.appLabel) in <lambda>()
233 assertThat(installer.getSessionInfo(it)?.appPackageName) in <lambda>()
247 assertThat(installer.getSessionInfo(it)?.installerPackageName) in <lambda>()
259 assertThat(installer.getSessionInfo(it)?.whitelistedRestrictedPermissions!!) in <lambda>()
267 val sessionId = installer.createSession(params) in <lambda>()
268 val session = installer.openSession(sessionId) in <lambda>()
[all …]
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstalledReceiver.java69 String installer = installerInfo.getInstallingPackageName(); in onReceive() local
70 if (installer == null) { in onReceive()
74 new PackageInstalledNotificationUtils(context, installer, in onReceive()
DInstallInstalling.java202 PackageInstaller installer = getPackageManager().getPackageInstaller(); in onResume() local
203 PackageInstaller.SessionInfo sessionInfo = installer.getSessionInfo(mSessionId); in onResume()
DInstallStaging.java184 @NonNull PackageInstaller installer, @NonNull Intent intent, in createSessionParams()
207 final PackageInstaller.InstallInfo result = installer.readInstallInfo(pfd, in createSessionParams()
/frameworks/base/services/core/java/com/android/server/rollback/
DAppDataRollbackHelper.java45 AppDataRollbackHelper(Installer installer) { in AppDataRollbackHelper() argument
46 mInstaller = installer; in AppDataRollbackHelper()
51 AppDataRollbackHelper(Installer installer, ApexManager apexManager) { in AppDataRollbackHelper() argument
52 mInstaller = installer; in AppDataRollbackHelper()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DRestoreUtils.java88 PackageInstaller installer = packageManager.getPackageInstaller(); in installApk() local
92 int sessionId = installer.createSession(params); in installApk()
94 try (Session session = installer.openSession(sessionId)) { in installApk()
120 installer.abandonSession(sessionId); in installApk()
/frameworks/base/services/core/java/com/android/server/integrity/
DAppIntegrityManagerServiceImpl.java386 String installer = in getInstallerPackageName() local
388 if (PackageManagerServiceUtils.isInstalledByAdb(installer)) { in getInstallerPackageName()
396 + installer in getInstallerPackageName()
404 if (!getPackageListForUid(installerUid).contains(installer)) { in getInstallerPackageName()
413 if (PACKAGE_INSTALLER.contains(installer)) { in getInstallerPackageName()
428 return installer; in getInstallerPackageName()
446 private List<String> getInstallerCertificateFingerprint(String installer) { in getInstallerCertificateFingerprint() argument
447 if (installer.equals(ADB_INSTALLER) || installer.equals(UNKNOWN_INSTALLER)) { in getInstallerCertificateFingerprint()
450 var installerPkg = mPackageManagerInternal.getPackage(installer); in getInstallerCertificateFingerprint()
452 Slog.w(TAG, "Installer package " + installer + " not found."); in getInstallerCertificateFingerprint()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DDynamicCodeLogger.java70 public DynamicCodeLogger(Installer installer) { in DynamicCodeLogger() argument
71 mInstaller = installer; in DynamicCodeLogger()
76 DynamicCodeLogger(@NonNull IPackageManager packageManager, @NonNull Installer installer, in DynamicCodeLogger() argument
79 mInstaller = installer; in DynamicCodeLogger()
/frameworks/base/apct-tests/perftests/core/src/android/app/
DOverlayManagerPerfTest.java68 TestPackageInstaller installer = new TestPackageInstaller(sContext); in classSetUp() local
70 sSmallOverlays.add(installer.installPackage("Overlay" + i +".apk")); in classSetUp()
71 sLargeOverlays.add(installer.installPackage("LargeOverlay" + i +".apk")); in classSetUp()
/frameworks/base/core/res/res/raw/
Dfallback_categories.csv1 # Default app categories used if neither the package nor installer sets anything
/frameworks/av/services/mediametrics/
DMediaMetricsService.cpp73 const std::string& package, const std::string& installer) in useUidForPackage() argument
80 } else if (strncmp(installer.c_str(), "com.android.", 12) == 0) { in useUidForPackage()
82 } else if (strncmp(installer.c_str(), "com.google.", 11) == 0) { in useUidForPackage()
84 } else if (strcmp(installer.c_str(), "preload") == 0) { in useUidForPackage()
101 if (useUidForPackage(info.package, info.installer)) { in getSanitizedPackageNameAndVersionCode()
/frameworks/base/core/java/com/android/internal/os/
DIBinaryTransparencyService.aidl54 String installer;
/frameworks/base/services/core/java/com/android/server/pm/
DOtaDexoptService.java394 private void moveAbArtifacts(Installer installer) { in moveAbArtifacts() argument
450 installer.moveAb(packageName, path, dexCodeInstructionSet, oatDir); in moveAbArtifacts()
509 OTADexoptPackageDexOptimizer(Installer installer, in OTADexoptPackageDexOptimizer() argument
511 super(installer, installLock, context, "*otadexopt*"); in OTADexoptPackageDexOptimizer()
DPackageDexOptimizer.java145 PackageDexOptimizer(Installer installer, PackageManagerTracedLock installLock, Context context, in PackageDexOptimizer() argument
157 }, installer, installLock, context, wakeLockTag); in PackageDexOptimizer()
170 PackageDexOptimizer(@NonNull Injector injector, Installer installer, in PackageDexOptimizer() argument
173 this.mInstaller = installer; in PackageDexOptimizer()
871 public ForcedUpdatePackageDexOptimizer(Installer installer, in ForcedUpdatePackageDexOptimizer() argument
873 super(installer, installLock, context, wakeLockTag); in ForcedUpdatePackageDexOptimizer()
DPackageManagerServiceUtils.java1532 public static void linkFilesToOldDirs(@NonNull Installer installer, in linkFilesToOldDirs() argument
1561 linkFilesAndSetModes(installer, packageName, newPath, oldPath, splitApkNames, in linkFilesToOldDirs()
1563 linkNativeLibraries(installer, packageName, newPath, oldPath, LIB_DIR_NAME); in linkFilesToOldDirs()
1564 linkNativeLibraries(installer, packageName, newPath, oldPath, LIB64_DIR_NAME); in linkFilesToOldDirs()
1569 private static void linkNativeLibraries(@NonNull Installer installer, in linkNativeLibraries() argument
1607 linkFilesAndSetModes(installer, packageName, sourceArchDir, targetArchDir, files, in linkNativeLibraries()
1613 private static void linkFilesAndSetModes(@NonNull Installer installer, String packageName, in linkFilesAndSetModes() argument
1627 installer.linkFile(packageName, fileName, in linkFilesAndSetModes()
DPackageManagerServiceInjector.java147 Installer installer, PackageManagerTracedLock installLock, PackageAbiHelper abiHelper, in PackageManagerServiceInjector() argument
187 mInstaller = installer; in PackageManagerServiceInjector()
DApkChecksums.java469 final AndroidPackage installer = injector.getPackageManagerInternal().getPackage( in getInstallerChecksums() local
471 if (installer == null) { in getInstallerChecksums()
477 certs = installer.getSigningDetails().getSignatures(); in getInstallerChecksums()
478 pastCerts = installer.getSigningDetails().getPastSigningCertificates(); in getInstallerChecksums()
/frameworks/av/media/utils/
DServiceUtilities.cpp552 std::string installer; in getInfo() local
565 binder::Status status = package_mgr->getInstallerForPackage(pkgName16, &installer); in getInfo()
581 __func__, pkg.c_str(), installer.c_str(), (long long)versionCode); in getInfo()
592 info.installer = std::move(installer); in getInfo()
/frameworks/av/media/utils/include/mediautils/
DServiceUtilities.h158 std::string installer; // installer for the package (e.g. preload, play store). member
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DUserDataPreparerTest.java241 TestUserDataPreparer(Installer installer, PackageManagerTracedLock installLock, in TestUserDataPreparer() argument
243 super(installer, installLock, context); in TestUserDataPreparer()
/frameworks/base/services/core/java/com/android/server/webkit/
DSystemImpl.java241 final PackageInstaller installer = contextAsUser.getPackageManager().getPackageInstaller(); in installPackageForUser() local
242 installer.installExistingPackage(packageName, PackageManager.INSTALL_REASON_UNKNOWN, null); in installPackageForUser()
/frameworks/av/services/mediametrics/include/mediametricsservice/
DMediaMetricsService.h77 static bool useUidForPackage(const std::string& package, const std::string& installer);
/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/
DRollbackTest.java286 String installer = context.getPackageManager().getInstallerPackageName(TestApp.A); in testBadUpdateRollback() local
287 assertThat(installer).isEqualTo(INSTRUMENTED_APP); in testBadUpdateRollback()
/frameworks/base/core/proto/android/service/
Dpackage.proto126 // Corresponds to android:label of the installer responsible for the unarchival of the
127 // app. Stored in the installer's locale at the time of archival.

12