Home
last modified time | relevance | path

Searched refs:sessions (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DMediaSession2ServiceTest.java320 List<MediaSession2> sessions = service.getSessions(); in testGetSessions() local
321 assertTrue(sessions.contains(session)); in testGetSessions()
322 assertEquals(2, sessions.size()); in testGetSessions()
325 sessions = service.getSessions(); in testGetSessions()
326 assertFalse(sessions.contains(session)); in testGetSessions()
339 List<MediaSession2> sessions = service.getSessions(); in testAddSessions_removedWhenClose() local
340 assertTrue(sessions.contains(session)); in testAddSessions_removedWhenClose()
341 assertEquals(2, sessions.size()); in testAddSessions_removedWhenClose()
344 sessions = service.getSessions(); in testAddSessions_removedWhenClose()
345 assertFalse(sessions.contains(session)); in testAddSessions_removedWhenClose()
DStubMediaSession2Service.java73 List<MediaSession2> sessions = getSessions(); in onDestroy() local
74 for (MediaSession2 session : sessions) { in onDestroy()
DMediaSessionTest.java839 List<MediaSession> sessions = new ArrayList<>(); in testSessionCreationLimit() local
842 sessions.add(new MediaSession(mContext, "testSessionCreationLimit")); in testSessionCreationLimit()
848 for (MediaSession session : sessions) { in testSessionCreationLimit()
859 List<MediaSession> sessions = new ArrayList<>(); in testSessionCreationLimitWithMediaSessionRelease() local
865 sessions.add(new MediaSession( in testSessionCreationLimitWithMediaSessionRelease()
874 for (MediaSession session : sessions) { in testSessionCreationLimitWithMediaSessionRelease()
887 List<MediaSession> sessions = new ArrayList<>(); in testSessionCreationLimitWithMediaSession2Release() local
890 sessions.add(new MediaSession( in testSessionCreationLimitWithMediaSession2Release()
901 for (MediaSession session : sessions) { in testSessionCreationLimitWithMediaSession2Release()
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DPackageInstallerSessionInfoSubject.java37 PackageInstaller.SessionInfo> sessions() { in sessions() method in PackageInstallerSessionInfoSubject
50 return Truth.assertAbout(sessions()).that(session);
DStagedInstallTest.java411 List<PackageInstaller.SessionInfo> sessions = packageInstaller.getActiveStagedSessions(); in testGetActiveStagedSessionsNoSessionActive() local
412 assertThat(sessions).isEmpty(); in testGetActiveStagedSessionsNoSessionActive()
1337 List<PackageInstaller.SessionInfo> sessions = packageInstaller.getStagedSessions(); in assertSessionState() local
1339 for (PackageInstaller.SessionInfo session : sessions) { in assertSessionState()