Home
last modified time | relevance | path

Searched refs:mApexManager (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DApexManagerTest.java87 private ApexManager mApexManager; field in ApexManagerTest
101 mApexManager = managerImpl; in setUp()
219 mApexManager.notifyScanResult(scanResults); in testGetApexSystemServices()
221 List<ApexSystemServiceInfo> services = mApexManager.getApexSystemServices(); in testGetApexSystemServices()
237 assertThat(mApexManager.isApexSupported()).isTrue(); in testIsApexSupported()
245 mApexManager.getStagedSessionInfo(TEST_SESSION_ID); in testGetStagedSessionInfo()
254 assertThat(mApexManager.getStagedSessionInfo(TEST_SESSION_ID)).isNull(); in testGetStagedSessionInfo_unKnownStagedSessionId()
264 () -> mApexManager.submitStagedSession(testParamsWithChildren())); in testSubmitStagedSession_throwPackageManagerException()
272 () -> mApexManager.submitStagedSession(testParamsWithChildren())); in testSubmitStagedSession_throwRunTimeException()
280 () -> mApexManager.getStagedApexInfos(testParamsWithChildren())); in testGetStagedApexInfos_throwRunTimeException()
[all …]
DStagingManagerTest.java87 @Mock private ApexManager mApexManager; field in StagingManagerTest
114 mStagingManager = new StagingManager(mContext, mApexManager); in setUp()
242 when(mApexManager.getSessions()).thenReturn(new SparseArray<>()); in restoreSessions_unknownApexSession_failsAllSessions()
291 when(mApexManager.getSessions()).thenReturn(apexdSessions); in restoreSessions_failedApexSessions_failsAllSessions()
341 when(mApexManager.getSessions()).thenReturn(apexdSessions); in restoreSessions_stagedApexSession_failsAllSessions()
404 when(mApexManager.getSessions()).thenReturn(apexdSessions); in restoreSessions_failedAndActivatedApexSessions_abortsCheckpoint()
435 when(mApexManager.getSessions()).thenReturn(apexdSessions); in restoreSessions_apexSessionInImpossibleState_failsAllSessions()
520 when(mApexManager.getStagedApexInfos(any())).thenReturn(fakeApexInfos); in getStagedApexInfos_nonParentSession()
528 verify(mApexManager, times(1)).getStagedApexInfos(argumentCaptor.capture()); in getStagedApexInfos_nonParentSession()
544 when(mApexManager.getStagedApexInfos(any())).thenReturn(fakeApexInfos); in getStagedApexInfos_parentSession()
[all …]
/frameworks/base/services/core/java/com/android/server/rollback/
DAppDataRollbackHelper.java43 private final ApexManager mApexManager; field in AppDataRollbackHelper
47 mApexManager = ApexManager.getInstance(); in AppDataRollbackHelper()
53 mApexManager = apexManager; in AppDataRollbackHelper()
125 return mApexManager.snapshotCeData( in doSnapshot()
152 mApexManager.restoreCeData( in doRestoreOrWipe()
205 mApexManager.destroyDeSnapshots(rollbackId); in destroyApexDeSnapshots()
214 mApexManager.destroyCeSnapshots(userId, rollbackId); in destroyApexCeSnapshots()
DRollbackPackageHealthObserver.java83 private final ApexManager mApexManager; field in RollbackPackageHealthObserver
102 mApexManager = apexManager; in RollbackPackageHealthObserver()
481 String apexPackageName = mApexManager.getActiveApexPackageNameContainingPackage( in isModule()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DModuleInfoProviderTest.java37 @Mock private ApexManager mApexManager; field in ModuleInfoProviderTest
44 when(mApexManager.getApexModuleNameForPackageName("com.android.module1")) in testSuccessfulParse()
46 when(mApexManager.getApexModuleNameForPackageName("com.android.module2")) in testSuccessfulParse()
100 ctx.getResources().getXml(resourceId), ctx.getResources(), mApexManager); in getProvider()
/frameworks/base/services/core/java/com/android/server/pm/
DStagingManager.java84 private final ApexManager mApexManager; field in StagingManager
141 mApexManager = apexManager; in StagingManager()
181 mApexManager.markBootCompleted(); in markBootCompleted()
228 if (mApexManager.isApexSupported()) { in abortCheckpoint()
229 mApexManager.revertActiveSessions(); in abortCheckpoint()
238 if (mApexManager.isApexSupported()) { in abortCheckpoint()
239 mApexManager.revertActiveSessions(); in abortCheckpoint()
277 String errorMsg = mApexManager.getApkInApexInstallError(packageName); in checkInstallationOfApkInApexSuccessful()
315 final List<String> apksInApex = mApexManager.getApksInApex(packageName); in snapshotAndRestoreForApexSession()
421 mApexManager.markStagedSessionSuccessful(session.sessionId()); in resumeSession()
[all …]
DModuleInfoProvider.java65 private final ApexManager mApexManager; field in ModuleInfoProvider
74 mApexManager = ApexManager.getInstance(); in ModuleInfoProvider()
82 mApexManager = apexManager; in ModuleInfoProvider()
167 mApexManager.getApexModuleNameForPackageName(modulePackageName)); in loadModuleMetadata()
170 mi.setApkInApexPackageNames(mApexManager.getApksInApex(modulePackageName)); in loadModuleMetadata()
DInitAppsHelper.java75 private final ApexManager mApexManager; field in InitAppsHelper
103 mApexManager = apexManager; in InitAppsHelper()
130 final List<ApexManager.ActiveApexInfo> activeApexInfos = mApexManager.getActiveApexInfos(); in getApexScanPartitions()
159 return mInstallPackageHelper.scanApexPackages(mApexManager.getAllApexInfos(), in scanApexPackagesTraced()
176 mApexManager.notifyScanResult(apexScanResults); in initSystemApps()
182 for (ApexManager.ActiveApexInfo apexInfo : mApexManager.getActiveApexInfos()) { in initSystemApps()
183 final String apexPackageName = mApexManager.getActivePackageNameForApexModuleName( in initSystemApps()
185 for (String packageName : mApexManager.getApksInApex(apexPackageName)) { in initSystemApps()
DPackageSessionVerifier.java67 private final ApexManager mApexManager; field in PackageSessionVerifier
80 mApexManager = apexManager; in PackageSessionVerifier()
89 mApexManager = null; in PackageSessionVerifier()
369 mApexManager.markStagedSessionReady(session.sessionId()); in endVerification()
398 final ApexInfoList apexInfoList = mApexManager.submitStagedSession(apexSessionParams); in submitSessionToApexService()
446 final ApexSessionInfo apexSession = mApexManager.getStagedSessionInfo(sessionId); in ensureActiveApexSessionIsAborted()
450 return mApexManager.abortStagedSession(sessionId); in ensureActiveApexSessionIsAborted()
DPackageInstallerService.java208 private final ApexManager mApexManager; field in PackageInstallerService
317 mApexManager = ApexManager.getInstance(); in PackageInstallerService()
319 mSessionVerifier = new PackageSessionVerifier(context, mPm, mApexManager, in PackageInstallerService()
822 if (!mApexManager.isApexSupported()) {
DInstallingSession.java621 ApexInfo apexInfo = mPm.mApexManager.installPackage(apexes[0], force); in installApexPackages()
DInstallPackageHelper.java219 private final ApexManager mApexManager; field in InstallPackageHelper
242 mApexManager = pm.mInjector.getApexManager(); in InstallPackageHelper()
584 mApexManager.registerApkInApex(pkg); in commitPackageSettings()
3648 mApexManager.reportErrorWithApkInApex(scanDir.getAbsolutePath(), errorMsg); in installPackagesFromDir()
DComputerEngine.java413 private final ApexManager mApexManager; field in ComputerEngine
467 mApexManager = args.service.mApexManager; in ComputerEngine()
1536 mApexManager.getActivePackageNameForApexModuleName(apexModuleName)); in generatePackageInfo()
3199 mApexManager.dump(pw); in dump()
DPackageManagerService.java732 final ApexManager mApexManager; field in PackageManagerService
1879 mApexManager = testParams.apexManager; in PackageManagerService()
2093 mApexManager = injector.getApexManager(); in PackageManagerService()
2235 mInitAppsHelper = new InitAppsHelper(this, mApexManager, mInstallPackageHelper, in PackageManagerService()
6670 return mApexManager; in getApexManager()
6924 final ApexManager am = PackageManagerService.this.mApexManager; in uninstallApex()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/rollback/
DRollbackPackageHealthObserverTest.java93 private ApexManager mApexManager; field in RollbackPackageHealthObserverTest
168 spy(new RollbackPackageHealthObserver(mMockContext, mApexManager)); in testHealthCheckLevels()
212 spy(new RollbackPackageHealthObserver(mMockContext, mApexManager)); in testIsPersistent()
219 spy(new RollbackPackageHealthObserver(mMockContext, mApexManager)); in testMayObservePackage_withoutAnyRollback()
229 spy(new RollbackPackageHealthObserver(mMockContext, mApexManager)); in testMayObservePackage_forPersistentApp()
244 spy(new RollbackPackageHealthObserver(mMockContext, mApexManager)); in testMayObservePackage_forNonPersistentApp()
270 spy(new RollbackPackageHealthObserver(mMockContext, mApexManager)); in healthCheckFailed_impactLevelLow_onePackage()
301 spy(new RollbackPackageHealthObserver(mMockContext, mApexManager)); in healthCheckFailed_impactLevelHigh_onePackage()
332 spy(new RollbackPackageHealthObserver(mMockContext, mApexManager)); in healthCheckFailed_impactLevelManualOnly_onePackage()
370 spy(new RollbackPackageHealthObserver(mMockContext, mApexManager)); in healthCheckFailed_impactLevelLowAndHigh_onePackage()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/
DAppDataRollbackHelperTest.java55 @Mock private ApexManager mApexManager; field in AppDataRollbackHelperTest
65 AppDataRollbackHelper helper = spy(new AppDataRollbackHelper(installer, mApexManager)); in testSnapshotAppData()
131 AppDataRollbackHelper helper = spy(new AppDataRollbackHelper(installer, mApexManager)); in testRestoreAppDataSnapshot_pendingBackupForUser()
156 AppDataRollbackHelper helper = spy(new AppDataRollbackHelper(installer, mApexManager)); in testRestoreAppDataSnapshot_availableBackupForLockedUser()
180 AppDataRollbackHelper helper = spy(new AppDataRollbackHelper(installer, mApexManager)); in testRestoreAppDataSnapshot_availableBackupForUnlockedUser()
201 AppDataRollbackHelper helper = new AppDataRollbackHelper(installer, mApexManager); in destroyAppData()
220 AppDataRollbackHelper helper = new AppDataRollbackHelper(installer, mApexManager); in commitPendingBackupAndRestoreForUser()
/frameworks/base/services/core/java/com/android/server/crashrecovery/
DCrashRecoveryHelper.java44 private final ApexManager mApexManager; field in CrashRecoveryHelper
52 mApexManager = ApexManager.getInstance(); in CrashRecoveryHelper()
65 mApexManager.getActiveApexPackageNameContainingPackage(packageName); in isModule()
/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DCrashRecoveryTest.java119 private ApexManager mApexManager; field in CrashRecoveryTest
365 spy(new RollbackPackageHealthObserver(mSpyContext, mApexManager)); in setUpRollbackPackageHealthObserver()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerServiceImpl.java251 @NonNull private final ApexManager mApexManager; field in PermissionManagerServiceImpl
435 mApexManager = ApexManager.getInstance(); in PermissionManagerServiceImpl()
3273 mApexManager.getActiveApexPackageNameContainingPackage(packageName);
3338 final String moduleName = mApexManager.getApexModuleNameForPackageName(
3522 if (!allowed && bp.isModule() && mApexManager.getActiveApexPackageNameContainingPackage(