Home
last modified time | relevance | path

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

/aosp12/packages/modules/Connectivity/tests/unit/java/android/net/
H A DVpnTransportInfoTest.java50 String session1 = "12345"; in testEqualsAndHashCode() local
52 VpnTransportInfo v11 = new VpnTransportInfo(VpnManager.TYPE_VPN_PLATFORM, session1); in testEqualsAndHashCode()
53 VpnTransportInfo v12 = new VpnTransportInfo(VpnManager.TYPE_VPN_SERVICE, session1); in testEqualsAndHashCode()
54 VpnTransportInfo v13 = new VpnTransportInfo(VpnManager.TYPE_VPN_PLATFORM, session1); in testEqualsAndHashCode()
55 VpnTransportInfo v14 = new VpnTransportInfo(VpnManager.TYPE_VPN_LEGACY, session1); in testEqualsAndHashCode()
56 VpnTransportInfo v15 = new VpnTransportInfo(VpnManager.TYPE_VPN_OEM, session1); in testEqualsAndHashCode()
71 assertEquals(session1, v15.makeCopy(REDACT_NONE).getSessionId()); in testEqualsAndHashCode()
/aosp12/hardware/google/av/media/eco/tests/
H A DEcoServiceTest.cpp128 sp<IECOSession> session1 = nullptr; in TEST_F() local
130 service->obtainSession(kTestWidth, kTestHeight, kIsCameraRecording, &session1); in TEST_F()
131 EXPECT_TRUE(session1); in TEST_F()
139 EXPECT_TRUE(IInterface::asBinder(session1) == IInterface::asBinder(session2)); in TEST_F()
147 sp<IECOSession> session1 = nullptr; in TEST_F() local
149 service->obtainSession(kTestWidth, kTestHeight, kIsCameraRecording, &session1); in TEST_F()
150 EXPECT_TRUE(session1); in TEST_F()
158 EXPECT_TRUE(IInterface::asBinder(session1) != IInterface::asBinder(session2)); in TEST_F()
172 if (IInterface::asBinder(session1) == it->get()) { in TEST_F()
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
H A DStagingManagerTest.java119 StagingManager.StagedSession session1 = createSession(111, "com.foo", 1); in checkNonOverlappingWithStagedSessions_laterSessionShouldNotFailEarlierOnes() local
122 mStagingManager.createSession(session1); in checkNonOverlappingWithStagedSessions_laterSessionShouldNotFailEarlierOnes()
125 mStagingManager.checkNonOverlappingWithStagedSessions(session1); in checkNonOverlappingWithStagedSessions_laterSessionShouldNotFailEarlierOnes()
160 FakeStagedSession session1 = new FakeStagedSession(37); in restoreSessions_deviceUpgrading_failsAllSessions() local
161 session1.setCommitted(true); in restoreSessions_deviceUpgrading_failsAllSessions()
165 mStagingManager.restoreSessions(Arrays.asList(session1, session2), true); in restoreSessions_deviceUpgrading_failsAllSessions()
167 assertThat(session1.getErrorCode()).isEqualTo(SessionInfo.STAGED_SESSION_ACTIVATION_FAILED); in restoreSessions_deviceUpgrading_failsAllSessions()
168 assertThat(session1.getErrorMessage()).isEqualTo("Build fingerprint has changed"); in restoreSessions_deviceUpgrading_failsAllSessions()
177 FakeStagedSession session1 = new FakeStagedSession(37); in restoreSessions_multipleSessions_deviceWithoutFsCheckpointSupport_throwISE() local
178 session1.setCommitted(true); in restoreSessions_multipleSessions_deviceWithoutFsCheckpointSupport_throwISE()
[all …]
/aosp12/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()
/aosp12/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()
/aosp12/frameworks/base/services/core/java/com/android/server/media/
H A DMediaSessionStack.java127 MediaSessionRecord session1 = (MediaSessionRecord) record; in getMediaSessionRecord() local
128 if (Objects.equals(session1.getSessionToken(), sessionToken)) { in getMediaSessionRecord()
129 return session1; in getMediaSessionRecord()
H A DMediaSessionService.java1062 MediaSessionRecord session1 = (MediaSessionRecord) mediaButtonSession; in pushAddressedPlayerChangedLocked() local
1063 callback.onMediaKeyEventSessionChanged(session1.getPackageName(), in pushAddressedPlayerChangedLocked()
1064 session1.getSessionToken()); in pushAddressedPlayerChangedLocked()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/
H A DMediaSessionBasedFilterTest.kt113 private lateinit var session1: MediaSession
132 session1 = MediaSession(context, "MediaSessionBasedFilter1")
137 token1 = session1.sessionToken
178 session1.release()
/aosp12/system/apex/apexd/
H A Dapexd_session_test.cpp107 TestApexSession session1(239, SessionState::SUCCESS); in TEST() local
H A Dapexservice_test.cpp1798 auto session1 = ApexSession::CreateSession(37); in TEST_F() local
1799 ASSERT_TRUE(IsOk(session1)); in TEST_F()
1804 ASSERT_TRUE(IsOk(session1->UpdateStateAndCommit(SessionState::VERIFIED))); in TEST_F()
2011 auto session1 = ApexSession::CreateSession(239); in TEST_F() local
2012 ASSERT_TRUE(IsOk(session1->UpdateStateAndCommit(SessionState::VERIFIED))); in TEST_F()
2031 auto session1 = ApexSession::CreateSession(239); in TEST_F() local
2032 ASSERT_TRUE(IsOk(session1->UpdateStateAndCommit(SessionState::ACTIVATED))); in TEST_F()