Searched refs:sessions (Results 1 – 5 of 5) 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()
839 List<MediaSession> sessions = new ArrayList<>(); in testSessionCreationLimit() local842 sessions.add(new MediaSession(mContext, "testSessionCreationLimit")); in testSessionCreationLimit()848 for (MediaSession session : sessions) { in testSessionCreationLimit()859 List<MediaSession> sessions = new ArrayList<>(); in testSessionCreationLimitWithMediaSessionRelease() local865 sessions.add(new MediaSession( in testSessionCreationLimitWithMediaSessionRelease()874 for (MediaSession session : sessions) { in testSessionCreationLimitWithMediaSessionRelease()887 List<MediaSession> sessions = new ArrayList<>(); in testSessionCreationLimitWithMediaSession2Release() local890 sessions.add(new MediaSession( in testSessionCreationLimitWithMediaSession2Release()901 for (MediaSession session : sessions) { in testSessionCreationLimitWithMediaSession2Release()
37 PackageInstaller.SessionInfo> sessions() { in sessions() method in PackageInstallerSessionInfoSubject50 return Truth.assertAbout(sessions()).that(session);
411 List<PackageInstaller.SessionInfo> sessions = packageInstaller.getActiveStagedSessions(); in testGetActiveStagedSessionsNoSessionActive() local412 assertThat(sessions).isEmpty(); in testGetActiveStagedSessionsNoSessionActive()1337 List<PackageInstaller.SessionInfo> sessions = packageInstaller.getStagedSessions(); in assertSessionState() local1339 for (PackageInstaller.SessionInfo session : sessions) { in assertSessionState()