/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
H A D | PackageSessionVerifierTest.java | 50 PackageInstallerSession session2 = createSession(false, true, "com.foo"); in checkRebootlessApex() local 52 () -> mSessionVerifier.checkRebootlessApex(session2)); in checkRebootlessApex() 68 StagingManager.StagedSession session2 = createStagedSession(222, "com.bar", 2); in checkActiveSessions() local 69 mSessionVerifier.storeSession(session2); in checkActiveSessions() 80 StagingManager.StagedSession session2 = createStagedSession(222, "com.bar", 2); in checkRollbacks() local 84 when(session2.isDestroyed()).thenReturn(true); in checkRollbacks() 86 mSessionVerifier.storeSession(session2); in checkRollbacks() 90 mSessionVerifier.checkRollbacks(session2); in checkRollbacks() 106 StagingManager.StagedSession session2 = createStagedSession(222, "com.foo", 2); in checkOverlaps() local 108 mSessionVerifier.storeSession(session2); in checkOverlaps() [all …]
|
H A D | StagingManagerTest.java | 155 FakeStagedSession session2 = new FakeStagedSession(57); in restoreSessions_deviceUpgrading_failsAllSessions() local 156 session2.setCommitted(true); in restoreSessions_deviceUpgrading_failsAllSessions() 158 mStagingManager.restoreSessions(Arrays.asList(session1, session2), true); in restoreSessions_deviceUpgrading_failsAllSessions() 163 assertThat(session2.getErrorCode()).isEqualTo(PackageManager.INSTALL_ACTIVATION_FAILED); in restoreSessions_deviceUpgrading_failsAllSessions() 164 assertThat(session2.getErrorMessage()).isEqualTo("Build fingerprint has changed"); in restoreSessions_deviceUpgrading_failsAllSessions() 172 FakeStagedSession session2 = new FakeStagedSession(57); in restoreSessions_multipleSessions_deviceWithoutFsCheckpointSupport_throwISE() local 173 session2.setCommitted(true); in restoreSessions_multipleSessions_deviceWithoutFsCheckpointSupport_throwISE() 178 () -> mStagingManager.restoreSessions(Arrays.asList(session1, session2), false)); in restoreSessions_multipleSessions_deviceWithoutFsCheckpointSupport_throwISE()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | ContentRecordingSessionTest.java | 58 ContentRecordingSession session2 = ContentRecordingSession.CREATOR.createFromParcel(parcel); in testParcelable() local 59 assertThat(session).isEqualTo(session2); in testParcelable() 160 ContentRecordingSession session2 = ContentRecordingSession.createTaskSession(WINDOW_TOKEN); in testEquals() local 161 session2.setVirtualDisplayId(DISPLAY_ID); in testEquals() 162 assertThat(session).isEqualTo(session2); in testEquals()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | UserJourneyLoggerTest.java | 348 final UserJourneyLogger.UserJourneySession session2 = mUserJourneyLogger in testSwitchFGUserJourney() local 351 report1.captureAndAssert(mUserJourneyLogger, session2.mSessionId, 11, in testSwitchFGUserJourney() 361 report1.captureAndAssert(mUserJourneyLogger, session2.mSessionId, 11, in testSwitchFGUserJourney() 365 report2.captureAndAssert(mUserJourneyLogger, session2.mSessionId, in testSwitchFGUserJourney() 393 final UserJourneyLogger.UserJourneySession session2 = mUserJourneyLogger in testSwitchUIUserJourney() local 396 report1.captureAndAssert(mUserJourneyLogger, session2.mSessionId, 11, in testSwitchUIUserJourney() 406 report1.captureAndAssert(mUserJourneyLogger, session2.mSessionId, 11, in testSwitchUIUserJourney() 410 report2.captureAndAssert(mUserJourneyLogger, session2.mSessionId, in testSwitchUIUserJourney() 445 report1.captureAndAssert(mUserJourneyLogger, session2.mSessionId, 10, in testSwitchWithStopUIUserJourney() 465 report1.captureAndAssert(mUserJourneyLogger, session2.mSessionId, 10, in testSwitchWithStopUIUserJourney() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/lights/ |
H A D | LightsServiceTest.java | 157 LightsManager.LightsSession session2 = manager.openSession(); in testControlLights_firstCallerWinsContention() local 161 session2.requestLights(new Builder().addLight(micLight, new LightState(WHITE)).build()); in testControlLights_firstCallerWinsContention() 172 session2.close(); in testControlLights_firstCallerWinsContention() 205 try (LightsManager.LightsSession session2 = manager.openSession(HIGH_PRIORITY)) { in testControlLights_higherPriorityCallerWinsContention() argument 209 session2.requestLights( in testControlLights_higherPriorityCallerWinsContention()
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/blob/ |
H A D | BlobStoreManagerServiceTest.java | 122 final BlobStoreSession session2 = createBlobStoreSessionMock(TEST_PKG2, TEST_UID2, in testHandlePackageRemoved() local 124 mUserSessions.append(sessionId2, session2); in testHandlePackageRemoved() 174 verify(session2, never()).destroy(); in testHandlePackageRemoved() 251 final BlobStoreSession session2 = createBlobStoreSessionMock(TEST_PKG2, TEST_UID2, in testHandleIdleMaintenance_deleteStaleSessions() local 253 mUserSessions.append(sessionId2, session2); in testHandleIdleMaintenance_deleteStaleSessions() 272 verify(session2, never()).destroy(); in testHandleIdleMaintenance_deleteStaleSessions()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/pipeline/ |
H A D | MediaSessionBasedFilterTest.kt | 87 private lateinit var session2: MediaSession 106 session2 = MediaSession(context, "MediaSessionBasedFilter2") 111 token2 = session2.sessionToken 152 session2.release()
|
/aosp14/frameworks/base/services/core/java/com/android/server/media/ |
H A D | MediaSessionStack.java | 308 MediaSession2Record session2 = (MediaSession2Record) record; in getSession2Tokens() local 309 session2Records.add(session2.getSession2Token()); in getSession2Tokens()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | StagingManager.java | 601 StagedSession session2 = sessions.set(j - 1, session); in handleNonReadyAndDestroyedSessions() local 602 sessions.set(i, session2); in handleNonReadyAndDestroyedSessions() 609 StagedSession session2 = sessions.set(j - 1, session); in handleNonReadyAndDestroyedSessions() local 610 sessions.set(i, session2); in handleNonReadyAndDestroyedSessions()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/touch/ |
H A D | DreamOverlayTouchMonitorTest.java | 525 final DreamTouchHandler.TouchSession session2 = captureSession(touchHandler2); in testPilfering() local 527 registerGestureListener(session2); in testPilfering()
|