169b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown/*
269b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown * Copyright (C) 2013 The Android Open Source Project
369b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown *
469b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown * Licensed under the Apache License, Version 2.0 (the "License");
569b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown * you may not use this file except in compliance with the License.
669b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown * You may obtain a copy of the License at
769b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown *
869b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown *      http://www.apache.org/licenses/LICENSE-2.0
969b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown *
1069b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown * Unless required by applicable law or agreed to in writing, software
1169b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown * distributed under the License is distributed on an "AS IS" BASIS,
1269b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1369b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown * See the License for the specific language governing permissions and
1469b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown * limitations under the License.
1569b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown */
1669b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown
1769b07161bebdb2c726e3a826c2268866f1a94517Jeff Brownpackage android.media;
1869b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown
1969b07161bebdb2c726e3a826c2268866f1a94517Jeff Brownimport android.media.IMediaRouterClient;
2069b07161bebdb2c726e3a826c2268866f1a94517Jeff Brownimport android.media.MediaRouterClientState;
2169b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown
2269b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown/**
2369b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown * {@hide}
2469b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown */
2569b07161bebdb2c726e3a826c2268866f1a94517Jeff Browninterface IMediaRouterService {
2669b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown    void registerClientAsUser(IMediaRouterClient client, String packageName, int userId);
2769b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown    void unregisterClient(IMediaRouterClient client);
2869b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown
2969b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown    MediaRouterClientState getState(IMediaRouterClient client);
3069b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown
3169b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown    void setDiscoveryRequest(IMediaRouterClient client, int routeTypes, boolean activeScan);
3269b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown    void setSelectedRoute(IMediaRouterClient client, String routeId, boolean explicit);
3369b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown    void requestSetVolume(IMediaRouterClient client, String routeId, int volume);
3469b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown    void requestUpdateVolume(IMediaRouterClient client, String routeId, int direction);
3569b07161bebdb2c726e3a826c2268866f1a94517Jeff Brown}
36