Home
last modified time | relevance | path

Searched refs:session2 (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/lights/
DLightsServiceTest.java157 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()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DStagingManagerTest.java120 StagingManager.StagedSession session2 = createSession(222, "com.foo", 2); in checkNonOverlappingWithStagedSessions_laterSessionShouldNotFailEarlierOnes() local
123 mStagingManager.createSession(session2); in checkNonOverlappingWithStagedSessions_laterSessionShouldNotFailEarlierOnes()
128 () -> mStagingManager.checkNonOverlappingWithStagedSessions(session2)); in checkNonOverlappingWithStagedSessions_laterSessionShouldNotFailEarlierOnes()
162 FakeStagedSession session2 = new FakeStagedSession(57); in restoreSessions_deviceUpgrading_failsAllSessions() local
163 session2.setCommitted(true); in restoreSessions_deviceUpgrading_failsAllSessions()
165 mStagingManager.restoreSessions(Arrays.asList(session1, session2), true); in restoreSessions_deviceUpgrading_failsAllSessions()
170 assertThat(session2.getErrorCode()).isEqualTo(SessionInfo.STAGED_SESSION_ACTIVATION_FAILED); in restoreSessions_deviceUpgrading_failsAllSessions()
171 assertThat(session2.getErrorMessage()).isEqualTo("Build fingerprint has changed"); in restoreSessions_deviceUpgrading_failsAllSessions()
179 FakeStagedSession session2 = new FakeStagedSession(57); in restoreSessions_multipleSessions_deviceWithoutFsCheckpointSupport_throwISE() local
180 session2.setCommitted(true); in restoreSessions_multipleSessions_deviceWithoutFsCheckpointSupport_throwISE()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/blob/
DBlobStoreManagerServiceTest.java122 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()
/frameworks/base/apex/media/framework/java/android/media/
DMediaSession2.java623 MediaSession2 session2 = new MediaSession2(mContext, mId, mSessionActivity, in build() local
632 manager.notifySession2Created(session2.getToken()); in build()
636 manager.notifySession2Created(session2.getToken()); in build()
639 session2.close(); in build()
643 return session2; in build()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/
DMediaSessionBasedFilterTest.kt113 private lateinit var session2: MediaSession in eq() variable in com.android.systemui.media.MediaSessionBasedFilterTest
132 session2 = MediaSession(context, "MediaSessionBasedFilter2") in eq()
137 token2 = session2.sessionToken in eq()
178 session2.release() in eq()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java297 MediaSession2Record session2 = (MediaSession2Record) record; in getSession2Tokens() local
298 session2Records.add(session2.getSession2Token()); in getSession2Tokens()
/frameworks/base/services/core/java/com/android/server/pm/
DStagingManager.java887 StagedSession session2 = sessions.set(j - 1, session); in handleNonReadyAndDestroyedSessions() local
888 sessions.set(i, session2); in handleNonReadyAndDestroyedSessions()
894 StagedSession session2 = sessions.set(j - 1, session); in handleNonReadyAndDestroyedSessions() local
895 sessions.set(i, session2); in handleNonReadyAndDestroyedSessions()