Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
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()
105 StagingManager.StagedSession session1 = createStagedSession(111, "com.foo", 1); in checkOverlaps() local
107 mSessionVerifier.storeSession(session1); in checkOverlaps()
[all …]
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()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/common/data/repository/
DPackageInstallerMonitorTest.kt65 private lateinit var session1: SessionInfo in <lambda>() variable in com.android.systemui.common.data.repository.PackageInstallerMonitorTest
77 session1 = in <lambda>()
95 defaultSessions = listOf(session1, session2) in <lambda>()
98 whenever(packageInstaller.getSessionInfo(1)).thenReturn(session1) in <lambda>()
186 .containsExactlyElementsIn(defaultSessions - session1) in <lambda>()
216 .containsExactlyElementsIn(defaultSessions - session1 + newSession) in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/lights/
DLightsServiceTest.java169 LightsManager.LightsSession session1 = manager.openSession(); in testControlLights_firstCallerWinsContention() local
173 session1.requestLights(new Builder().addLight(micLight, new LightState(BLUE)).build()); in testControlLights_firstCallerWinsContention()
179 session1.close(); in testControlLights_firstCallerWinsContention()
217 try (LightsManager.LightsSession session1 = manager.openSession(DEFAULT_PRIORITY)) { in testControlLights_higherPriorityCallerWinsContention() argument
220 session1.requestLights( in testControlLights_higherPriorityCallerWinsContention()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/blob/
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()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java135 MediaSessionRecord session1 = (MediaSessionRecord) record; in getMediaSessionRecord() local
136 if (Objects.equals(session1.getSessionToken(), sessionToken)) { in getMediaSessionRecord()
137 return session1; in getMediaSessionRecord()
DMediaSessionService.java1356 MediaSessionRecord session1 = (MediaSessionRecord) mediaButtonSession; in pushAddressedPlayerChangedLocked() local
1357 callback.onMediaKeyEventSessionChanged(session1.getPackageName(), in pushAddressedPlayerChangedLocked()
1358 session1.getSessionToken()); in pushAddressedPlayerChangedLocked()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/hint/
DHintManagerServiceTest.java589 AppHintSession session1 = (AppHintSession) service.getBinderServiceInstance()
592 assertNotNull(session1);
625 AppHintSession session1 = (AppHintSession) service.getBinderServiceInstance()
628 assertNotNull(session1);
684 verifyAllHintsEnabled(session1, false);
689 verifyAllHintsEnabled(session1, false);
696 session1.setThreads(tids1);
699 verifyAllHintsEnabled(session1, true);
715 session1.setThreads(SESSION_TIDS_A);
717 assertArrayEquals(session1.getTidsInternal(), SESSION_TIDS_A);
[all …]
/frameworks/base/core/tests/coretests/src/android/window/
DSystemPerformanceHinterTests.java300 final SystemPerformanceHinter.HighPerfSession session1 = in testOverlappingHintsOnSameDisplay() local
333 session1.close(); in testOverlappingHintsOnSameDisplay()
350 final SystemPerformanceHinter.HighPerfSession session1 = in testOverlappingHintsOnDifferentDisplays() local
385 session1.close(); in testOverlappingHintsOnDifferentDisplays()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DMediaSessionBasedFilterTest.kt86 private lateinit var session1: MediaSession variable in com.android.systemui.media.controls.domain.pipeline.MediaSessionBasedFilterTest
105 session1 = MediaSession(context, "MediaSessionBasedFilter1") in setUp()
110 token1 = session1.sessionToken in setUp()
151 session1.release() in tearDown()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ambient/touch/
DTouchMonitorTest.java619 final TouchHandler.TouchSession session1 = captureSession(touchHandler1); in testPilfering() local
621 registerGestureListener(session1); in testPilfering()