Home
last modified time | relevance | path

Searched refs:session1 (Results 1 – 8 of 8) sorted by relevance

/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
H A DPackageSessionVerifierTest.java46 StagingManager.StagedSession session1 = createStagedSession(111, "com.foo", 1); in checkRebootlessApex() local
47 mSessionVerifier.storeSession(session1); in checkRebootlessApex()
61 StagingManager.StagedSession session1 = createStagedSession(111, "com.foo", 1); in checkActiveSessions() local
62 mSessionVerifier.storeSession(session1); in checkActiveSessions()
79 StagingManager.StagedSession session1 = createStagedSession(111, "com.foo", 1); in checkRollbacks() local
85 mSessionVerifier.storeSession(session1); in checkRollbacks()
91 verify(session1, never()).setSessionFailed(anyInt(), anyString()); in checkRollbacks()
95 verify(session1, times(1)).setSessionFailed(anyInt(), anyString()); in checkRollbacks()
107 mSessionVerifier.storeSession(session1); in checkOverlaps()
110 mSessionVerifier.checkOverlaps(session1, session1); in checkOverlaps()
[all …]
H A DStagingManagerTest.java153 FakeStagedSession session1 = new FakeStagedSession(37); in restoreSessions_deviceUpgrading_failsAllSessions() local
154 session1.setCommitted(true); in restoreSessions_deviceUpgrading_failsAllSessions()
158 mStagingManager.restoreSessions(Arrays.asList(session1, session2), true); in restoreSessions_deviceUpgrading_failsAllSessions()
160 assertThat(session1.getErrorCode()).isEqualTo(PackageManager.INSTALL_ACTIVATION_FAILED); in restoreSessions_deviceUpgrading_failsAllSessions()
161 assertThat(session1.getErrorMessage()).isEqualTo("Build fingerprint has changed"); in restoreSessions_deviceUpgrading_failsAllSessions()
170 FakeStagedSession session1 = new FakeStagedSession(37); in restoreSessions_multipleSessions_deviceWithoutFsCheckpointSupport_throwISE() local
171 session1.setCommitted(true); in restoreSessions_multipleSessions_deviceWithoutFsCheckpointSupport_throwISE()
178 () -> mStagingManager.restoreSessions(Arrays.asList(session1, session2), false)); in restoreSessions_multipleSessions_deviceWithoutFsCheckpointSupport_throwISE()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/lights/
H A DLightsServiceTest.java156 LightsManager.LightsSession session1 = manager.openSession(); in testControlLights_firstCallerWinsContention() local
160 session1.requestLights(new Builder().addLight(micLight, new LightState(BLUE)).build()); in testControlLights_firstCallerWinsContention()
166 session1.close(); in testControlLights_firstCallerWinsContention()
204 try (LightsManager.LightsSession session1 = manager.openSession(DEFAULT_PRIORITY)) { in testControlLights_higherPriorityCallerWinsContention() argument
207 session1.requestLights( in testControlLights_higherPriorityCallerWinsContention()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/blob/
H A DBlobStoreManagerServiceTest.java116 final BlobStoreSession session1 = createBlobStoreSessionMock(TEST_PKG1, TEST_UID1, in testHandlePackageRemoved() local
118 mUserSessions.append(sessionId1, session1); in testHandlePackageRemoved()
173 verify(session1).destroy(); in testHandlePackageRemoved()
241 final BlobStoreSession session1 = createBlobStoreSessionMock(TEST_PKG1, TEST_UID1, in testHandleIdleMaintenance_deleteStaleSessions() local
243 mUserSessions.append(sessionId1, session1); in testHandleIdleMaintenance_deleteStaleSessions()
271 verify(session1).destroy(); in testHandleIdleMaintenance_deleteStaleSessions()
/aosp14/frameworks/base/services/core/java/com/android/server/media/
H A DMediaSessionStack.java137 MediaSessionRecord session1 = (MediaSessionRecord) record; in getMediaSessionRecord() local
138 if (Objects.equals(session1.getSessionToken(), sessionToken)) { in getMediaSessionRecord()
139 return session1; in getMediaSessionRecord()
H A DMediaSessionService.java1049 MediaSessionRecord session1 = (MediaSessionRecord) mediaButtonSession; in pushAddressedPlayerChangedLocked() local
1050 callback.onMediaKeyEventSessionChanged(session1.getPackageName(), in pushAddressedPlayerChangedLocked()
1051 session1.getSessionToken()); in pushAddressedPlayerChangedLocked()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/pipeline/
H A DMediaSessionBasedFilterTest.kt86 private lateinit var session1: MediaSession
105 session1 = MediaSession(context, "MediaSessionBasedFilter1")
110 token1 = session1.sessionToken
151 session1.release()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/touch/
H A DDreamOverlayTouchMonitorTest.java521 final DreamTouchHandler.TouchSession session1 = captureSession(touchHandler1); in testPilfering() local
523 registerGestureListener(session1); in testPilfering()