Searched refs:sessions (Results 1 – 4 of 4) sorted by relevance
320 List<MediaSession2> sessions = service.getSessions(); in testGetSessions() local321 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() local340 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()
73 List<MediaSession2> sessions = getSessions(); in onDestroy() local74 for (MediaSession2 session : sessions) { in onDestroy()
36 PackageInstaller.SessionInfo> sessions() { in sessions() method in PackageInstallerSessionInfoSubject49 return Truth.assertAbout(sessions()).that(session);
337 List<PackageInstaller.SessionInfo> sessions = packageInstaller.getActiveStagedSessions(); in testGetActiveStagedSessionsNoSessionActive() local338 assertThat(sessions).isEmpty(); in testGetActiveStagedSessionsNoSessionActive()1076 List<PackageInstaller.SessionInfo> sessions = packageInstaller.getStagedSessions(); in assertSessionState() local1078 for (PackageInstaller.SessionInfo session : sessions) { in assertSessionState()