Home
last modified time | relevance | path

Searched refs:RoutingSessionInfo (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DNoOpInfoMediaManager.java22 import android.media.RoutingSessionInfo;
52 private static final RoutingSessionInfo PLACEHOLDER_SESSION =
53 new RoutingSessionInfo.Builder(
95 protected void selectRoute(@NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info) { in selectRoute()
100 protected void deselectRoute(@NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info) { in deselectRoute()
105 protected void releaseSession(@NonNull RoutingSessionInfo sessionInfo) { in releaseSession()
111 protected List<MediaRoute2Info> getSelectableRoutes(@NonNull RoutingSessionInfo info) { in getSelectableRoutes()
117 protected List<MediaRoute2Info> getDeselectableRoutes(@NonNull RoutingSessionInfo info) { in getDeselectableRoutes()
123 protected List<MediaRoute2Info> getSelectedRoutes(@NonNull RoutingSessionInfo info) { in getSelectedRoutes()
128 protected void setSessionVolume(@NonNull RoutingSessionInfo info, int volume) { in setSessionVolume()
[all …]
DManagerInfoMediaManager.java23 import android.media.RoutingSessionInfo;
98 protected void selectRoute(@NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info) { in selectRoute()
103 protected void deselectRoute(@NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info) { in deselectRoute()
108 protected void releaseSession(@NonNull RoutingSessionInfo sessionInfo) { in releaseSession()
114 protected List<MediaRoute2Info> getSelectableRoutes(@NonNull RoutingSessionInfo info) { in getSelectableRoutes()
120 protected List<MediaRoute2Info> getDeselectableRoutes(@NonNull RoutingSessionInfo info) { in getDeselectableRoutes()
126 protected List<MediaRoute2Info> getSelectedRoutes(@NonNull RoutingSessionInfo info) { in getSelectedRoutes()
131 protected void setSessionVolume(@NonNull RoutingSessionInfo info, int volume) { in setSessionVolume()
148 protected List<RoutingSessionInfo> getRoutingSessionsForPackage() { in getRoutingSessionsForPackage()
154 protected List<RoutingSessionInfo> getRemoteSessions() { in getRemoteSessions()
[all …]
DRouterInfoMediaManager.java27 import android.media.RoutingSessionInfo;
146 protected void selectRoute(@NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info) { in selectRoute()
154 protected void deselectRoute(@NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info) { in deselectRoute()
162 protected void releaseSession(@NonNull RoutingSessionInfo sessionInfo) { in releaseSession()
171 protected List<MediaRoute2Info> getSelectableRoutes(@NonNull RoutingSessionInfo info) { in getSelectableRoutes()
186 protected List<MediaRoute2Info> getDeselectableRoutes(@NonNull RoutingSessionInfo info) { in getDeselectableRoutes()
197 protected List<MediaRoute2Info> getSelectedRoutes(@NonNull RoutingSessionInfo info) { in getSelectedRoutes()
206 protected void setSessionVolume(@NonNull RoutingSessionInfo info, int volume) { in setSessionVolume()
225 protected List<RoutingSessionInfo> getRemoteSessions() { in getRemoteSessions()
233 protected List<RoutingSessionInfo> getRoutingSessionsForPackage() { in getRoutingSessionsForPackage()
[all …]
DInfoMediaManager.java54 import android.media.RoutingSessionInfo;
243 @NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info); in selectRoute()
246 @NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info); in deselectRoute()
248 protected abstract void releaseSession(@NonNull RoutingSessionInfo sessionInfo); in releaseSession()
251 protected abstract List<MediaRoute2Info> getSelectableRoutes(@NonNull RoutingSessionInfo info); in getSelectableRoutes()
255 @NonNull RoutingSessionInfo info); in getDeselectableRoutes()
258 protected abstract List<MediaRoute2Info> getSelectedRoutes(@NonNull RoutingSessionInfo info); in getSelectedRoutes()
260 protected abstract void setSessionVolume(@NonNull RoutingSessionInfo info, int volume); in setSessionVolume()
271 protected abstract List<RoutingSessionInfo> getRemoteSessions(); in getRemoteSessions()
280 protected abstract List<RoutingSessionInfo> getRoutingSessionsForPackage(); in getRoutingSessionsForPackage()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowRouter2Manager.java20 import android.media.RoutingSessionInfo;
39 private List<RoutingSessionInfo> mRemoteSessions;
40 private List<RoutingSessionInfo> mRoutingSessions;
41 private RoutingSessionInfo mSystemRoutingSession;
62 protected List<RoutingSessionInfo> getRemoteSessions() { in getRemoteSessions()
66 public void setRemoteSessions(List<RoutingSessionInfo> infos) { in setRemoteSessions()
71 protected List<RoutingSessionInfo> getRoutingSessions(String packageName) { in getRoutingSessions()
75 public void setRoutingSessions(List<RoutingSessionInfo> infos) { in setRoutingSessions()
80 public RoutingSessionInfo getSystemRoutingSession(@Nullable String packageName) { in getSystemRoutingSession()
84 public void setSystemRoutingSession(RoutingSessionInfo sessionInfo) { in setSystemRoutingSession()
[all …]
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DRoutingSessionInfoTest.java23 import android.media.RoutingSessionInfo;
52 RoutingSessionInfo sessionInfo = new RoutingSessionInfo.Builder( in testProviderId()
61 RoutingSessionInfo sessionInfoWithProviderId = new RoutingSessionInfo.Builder(sessionInfo) in testProviderId()
73 RoutingSessionInfo sessionInfoWithOtherProviderId = in testProviderId()
74 new RoutingSessionInfo.Builder(sessionInfoWithProviderId) in testProviderId()
86 RoutingSessionInfo sessionInfoWithProviderId2 = in testProviderId()
87 new RoutingSessionInfo.Builder(sessionInfoWithProviderId).build(); in testProviderId()
101 RoutingSessionInfo sessionInfo = new RoutingSessionInfo.Builder( in testGetVolumeHandlingGroupSession()
DStubMediaRoute2ProviderService.java28 import android.media.RoutingSessionInfo;
238 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onSetSessionVolume()
243 RoutingSessionInfo newSessionInfo = new RoutingSessionInfo.Builder(sessionInfo) in onSetSessionVolume()
271 RoutingSessionInfo sessionInfo = new RoutingSessionInfo.Builder(sessionId, packageName) in onCreateSession()
292 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onReleaseSession()
312 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onSelectRoute()
324 RoutingSessionInfo newSessionInfo = new RoutingSessionInfo.Builder(sessionInfo) in onSelectRoute()
334 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onDeselectRoute()
352 RoutingSessionInfo newSessionInfo = new RoutingSessionInfo.Builder(sessionInfo) in onDeselectRoute()
362 RoutingSessionInfo sessionInfo = getSessionInfo(sessionId); in onTransferToRoute()
[all …]
DMediaRouter2ManagerTest.java54 import android.media.RoutingSessionInfo;
406 public void onTransferred(RoutingSessionInfo oldSessionInfo, in testGetRoutingSessions()
407 RoutingSessionInfo newSessionInfo) { in testGetRoutingSessions()
422 List<RoutingSessionInfo> sessions = mManager.getRoutingSessions(mPackageName); in testGetRoutingSessions()
425 RoutingSessionInfo sessionInfo = sessions.get(1); in testGetRoutingSessions()
442 public void onTransferred(RoutingSessionInfo oldSessionInfo, in testTransfer_unknownRoute_fail()
443 RoutingSessionInfo newSessionInfo) { in testTransfer_unknownRoute_fail()
448 public void onTransferFailed(RoutingSessionInfo session, MediaRoute2Info route) { in testTransfer_unknownRoute_fail()
480 public void onTransferred(RoutingSessionInfo oldSessionInfo, in testRouterRelease_managerGetRoutingSessions()
481 RoutingSessionInfo newSessionInfo) { in testRouterRelease_managerGetRoutingSessions()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DInfoMediaManagerTest.java48 import android.media.RoutingSessionInfo;
93 private static final RoutingSessionInfo TEST_SYSTEM_ROUTING_SESSION =
94 new RoutingSessionInfo.Builder("FAKE_SYSTEM_ROUTING_SESSION_ID", TEST_PACKAGE_NAME)
114 private static final RoutingSessionInfo TEST_REMOTE_ROUTING_SESSION =
115 new RoutingSessionInfo.Builder("FAKE_REMOTE_ROUTING_SESSION_ID", TEST_PACKAGE_NAME)
168 RoutingSessionInfo sessionInfo = mock(RoutingSessionInfo.class); in stopScan_startFirst_callsUnregister()
184 final List<RoutingSessionInfo> routingSessionInfos = new ArrayList<>(); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
185 final RoutingSessionInfo sessionInfo = mock(RoutingSessionInfo.class); in onRouteAdded_getAvailableRoutes_shouldAddMediaDevice()
239 final List<RoutingSessionInfo> routingSessionInfos = new ArrayList<>(); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice()
240 final RoutingSessionInfo sessionInfo = mock(RoutingSessionInfo.class); in onPreferredFeaturesChanged_samePackageName_shouldAddMediaDevice()
[all …]
DLocalMediaManagerTest.java41 import android.media.RoutingSessionInfo;
132 new RoutingSessionInfo.Builder(TEST_SESSION_ID, TEST_PACKAGE_NAME) in setUp()
438 final List<RoutingSessionInfo> routingSessionInfos = new ArrayList<>(); in getActiveMediaSession_verifyCorrectSession()
439 final RoutingSessionInfo info = mock(RoutingSessionInfo.class); in getActiveMediaSession_verifyCorrectSession()
544 final List<RoutingSessionInfo> routingSessionInfos = new ArrayList<>(); in adjustSessionVolume_verifyCorrectSessionVolume()
545 final RoutingSessionInfo info = mock(RoutingSessionInfo.class); in adjustSessionVolume_verifyCorrectSessionVolume()
/frameworks/base/media/java/android/media/
DIMediaRouter2.aidl20 import android.media.RoutingSessionInfo;
29 in RoutingSessionInfo currentSystemSessionInfo); in notifyRouterRegistered()
31 void notifySessionCreated(int requestId, in @nullable RoutingSessionInfo sessionInfo); in notifySessionCreated()
32 void notifySessionInfoChanged(in RoutingSessionInfo sessionInfo); in notifySessionInfoChanged()
33 void notifySessionReleased(in RoutingSessionInfo sessionInfo); in notifySessionReleased()
38 void requestCreateSessionByManager(long uniqueRequestId, in RoutingSessionInfo oldSession, in requestCreateSessionByManager()
DMediaRouter2Manager.java223 @NonNull RoutingSessionInfo sessionInfo) { in getMediaControllerForRoutingSession()
241 List<RoutingSessionInfo> sessions = getRoutingSessions(packageName); in getAvailableRoutes()
254 List<RoutingSessionInfo> sessions = getRoutingSessions(packageName); in getTransferableRoutes()
266 public List<MediaRoute2Info> getAvailableRoutes(@NonNull RoutingSessionInfo sessionInfo) { in getAvailableRoutes()
283 public List<MediaRoute2Info> getTransferableRoutes(@NonNull RoutingSessionInfo sessionInfo) { in getTransferableRoutes()
310 private List<MediaRoute2Info> getFilteredRoutes(@NonNull RoutingSessionInfo sessionInfo, in getFilteredRoutes()
386 public RoutingSessionInfo getSystemRoutingSession(@Nullable String targetPackageName) { in getSystemRoutingSession()
403 public RoutingSessionInfo getRoutingSessionForMediaController(MediaController mediaController) { in getRoutingSessionForMediaController()
408 for (RoutingSessionInfo sessionInfo : getRemoteSessions()) { in getRoutingSessionForMediaController()
424 public List<RoutingSessionInfo> getRoutingSessions(@NonNull String packageName) { in getRoutingSessions()
[all …]
DIMediaRoute2ProviderServiceCallback.aidl21 import android.media.RoutingSessionInfo;
30 void notifySessionCreated(long requestId, in RoutingSessionInfo sessionInfo); in notifySessionCreated()
31 void notifySessionsUpdated(in List<RoutingSessionInfo> sessionInfo); in notifySessionsUpdated()
32 void notifySessionReleased(in RoutingSessionInfo sessionInfo); in notifySessionReleased()
DIMediaRouter2Manager.aidl23 import android.media.RoutingSessionInfo;
29 void notifySessionCreated(int requestId, in RoutingSessionInfo session); in notifySessionCreated()
30 void notifySessionUpdated(in RoutingSessionInfo session); in notifySessionUpdated()
31 void notifySessionReleased(in RoutingSessionInfo session); in notifySessionReleased()
DMediaRouter2.java628 RoutingSessionInfo currentSystemSessionInfo = mImpl.getSystemSessionInfo(); in MediaRouter2()
1125 List<MediaRoute2Info> currentRoutes, RoutingSessionInfo currentSystemSessionInfo) { in syncRoutesOnHandler()
1134 RoutingSessionInfo oldInfo = mSystemController.getRoutingSessionInfo(); in syncRoutesOnHandler()
1247 void createControllerOnHandler(int requestId, @Nullable RoutingSessionInfo sessionInfo) { in createControllerOnHandler()
1303 private RoutingController addRoutingController(@NonNull RoutingSessionInfo session) { in addRoutingController()
1318 void updateControllerOnHandler(RoutingSessionInfo sessionInfo) { in updateControllerOnHandler()
1332 void releaseControllerOnHandler(RoutingSessionInfo sessionInfo) { in releaseControllerOnHandler()
1348 RoutingSessionInfo sessionInfo, String logPrefix) { in getMatchingController()
1366 RoutingSessionInfo oldInfo = controller.getRoutingSessionInfo(); in getMatchingController()
1382 RoutingSessionInfo oldSession, MediaRoute2Info route, long managerRequestId) { in onRequestCreateControllerByManagerOnHandler()
[all …]
DIMediaRouterService.aidl27 import android.media.RoutingSessionInfo;
54 RoutingSessionInfo getSystemSessionInfo(); in getSystemSessionInfo()
67 in RoutingSessionInfo oldSession, in MediaRoute2Info route, in requestCreateSessionWithRouter2()
77 List<RoutingSessionInfo> getRemoteSessions(IMediaRouter2Manager manager); in getRemoteSessions()
78 RoutingSessionInfo getSystemSessionInfoForPackage(String callerPackageName, in getSystemSessionInfoForPackage()
88 in RoutingSessionInfo oldSession, in @nullable MediaRoute2Info route, in requestCreateSessionWithManager()
DRoutingSessionInfo.java46 public final class RoutingSessionInfo implements Parcelable { class
48 public static final Creator<RoutingSessionInfo> CREATOR =
49 new Creator<RoutingSessionInfo>() {
51 public RoutingSessionInfo createFromParcel(Parcel in) {
52 return new RoutingSessionInfo(in);
55 public RoutingSessionInfo[] newArray(int size) {
56 return new RoutingSessionInfo[size];
123 RoutingSessionInfo(@NonNull Builder builder) { in RoutingSessionInfo() method in RoutingSessionInfo
161 RoutingSessionInfo(@NonNull Parcel src) { in RoutingSessionInfo() method in RoutingSessionInfo
464 RoutingSessionInfo other = (RoutingSessionInfo) obj; in equals()
[all …]
DMediaRoute2ProviderService.java165 private final ArrayMap<String, RoutingSessionInfo> mSessionInfos = new ArrayMap<>();
218 public final RoutingSessionInfo getSessionInfo(@NonNull String sessionId) { in getSessionInfo()
231 public final List<RoutingSessionInfo> getAllSessionInfo() { in getAllSessionInfo()
252 @NonNull RoutingSessionInfo sessionInfo) { in notifySessionCreated()
288 public final void notifySessionUpdated(@NonNull RoutingSessionInfo sessionInfo) { in notifySessionUpdated()
321 RoutingSessionInfo sessionInfo; in notifySessionReleased()
547 List<RoutingSessionInfo> sessions; in updateSessions()
DRoutingSessionInfo.aidl19 parcelable RoutingSessionInfo;
/frameworks/base/services/core/java/com/android/server/media/
DMediaRoute2ProviderServiceProxy.java35 import android.media.RoutingSessionInfo;
82 private final List<RoutingSessionInfo> mReleasingSessions = new ArrayList<>();
121 @RoutingSessionInfo.TransferReason int transferReason, in requestCreateSession()
189 @RoutingSessionInfo.TransferReason int transferReason) { in transferToRoute()
226 for (RoutingSessionInfo session : mSessionInfos) { in prepareReleaseSession()
415 RoutingSessionInfo newSession) { in onSessionCreated()
448 private int findSessionByIdLocked(RoutingSessionInfo session) { in findSessionByIdLocked()
458 private void onSessionsUpdated(Connection connection, List<RoutingSessionInfo> sessions) { in onSessionsUpdated()
465 for (RoutingSessionInfo session : sessions) { in onSessionsUpdated()
476 RoutingSessionInfo oldSessionInfo = mSessionInfos.get(sourceIndex); in onSessionsUpdated()
[all …]
DMediaRoute2Provider.java27 import android.media.RoutingSessionInfo;
49 final List<RoutingSessionInfo> mSessionInfos = new ArrayList<>();
65 @RoutingSessionInfo.TransferReason int transferReason, in requestCreateSession()
83 @RoutingSessionInfo.TransferReason int transferReason); in transferToRoute()
102 public List<RoutingSessionInfo> getSessionInfos() { in getSessionInfos()
154 for (RoutingSessionInfo routingSessionInfo : mSessionInfos) { in dump()
172 long requestId, @Nullable RoutingSessionInfo sessionInfo); in onSessionCreated()
174 @NonNull RoutingSessionInfo sessionInfo); in onSessionUpdated()
176 @NonNull RoutingSessionInfo sessionInfo); in onSessionReleased()
206 @RoutingSessionInfo.TransferReason public final int mTransferReason;
[all …]
DSystemMediaRoute2Provider.java32 import android.media.RoutingSessionInfo;
76 RoutingSessionInfo mDefaultSessionInfo;
163 @RoutingSessionInfo.TransferReason int transferReason, in requestCreateSession()
175 RoutingSessionInfo currentSessionInfo; in requestCreateSession()
196 RoutingSessionInfo.TRANSFER_REASON_FALLBACK, in requestCreateSession()
239 @RoutingSessionInfo.TransferReason int transferReason) { in transferToRoute()
312 public RoutingSessionInfo getDefaultSessionInfo() { in getDefaultSessionInfo()
326 public RoutingSessionInfo generateDeviceRouteSelectedSessionInfo(String packageName) { in generateDeviceRouteSelectedSessionInfo()
334 RoutingSessionInfo.Builder builder = in generateDeviceRouteSelectedSessionInfo()
335 new RoutingSessionInfo.Builder(SYSTEM_SESSION_ID, packageName) in generateDeviceRouteSelectedSessionInfo()
[all …]
DMediaRouter2ServiceImpl.java53 import android.media.RoutingSessionInfo;
426 @NonNull RoutingSessionInfo oldSession, in requestCreateSessionWithRouter2()
544 public List<RoutingSessionInfo> getRemoteSessions(@NonNull IMediaRouter2Manager manager) { in getRemoteSessions()
675 @NonNull RoutingSessionInfo oldSession, in requestCreateSessionWithManager()
759 RoutingSessionInfo.TRANSFER_REASON_SYSTEM_REQUEST, in transferToRouteWithManager()
832 public RoutingSessionInfo getSystemSessionInfo( in getSystemSessionInfo()
853 List<RoutingSessionInfo> sessionInfos; in getSystemSessionInfo()
865 return new RoutingSessionInfo.Builder(sessionInfos.get(0)) in getSystemSessionInfo()
873 return new RoutingSessionInfo.Builder( in getSystemSessionInfo()
1336 @NonNull RoutingSessionInfo oldSession, in requestCreateSessionWithRouter2Locked()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/data/model/
DRoutingSession.kt19 import android.media.RoutingSessionInfo
23 val routingSessionInfo: RoutingSessionInfo,
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/domain/model/
DRoutingSession.kt19 import android.media.RoutingSessionInfo
23 val routingSessionInfo: RoutingSessionInfo,

12