1/*
2 * Copyright (C) 2013 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.support.v4.media.routing;
18
19class MediaRouterJellybeanMr2 extends MediaRouterJellybeanMr1 {
20    public static Object getDefaultRoute(Object routerObj) {
21        return ((android.media.MediaRouter)routerObj).getDefaultRoute();
22    }
23
24    public static void addCallback(Object routerObj, int types, Object callbackObj, int flags) {
25        ((android.media.MediaRouter)routerObj).addCallback(types,
26                (android.media.MediaRouter.Callback)callbackObj, flags);
27    }
28
29    public static final class RouteInfo {
30        public static CharSequence getDescription(Object routeObj) {
31            return ((android.media.MediaRouter.RouteInfo)routeObj).getDescription();
32        }
33
34        public static boolean isConnecting(Object routeObj) {
35            return ((android.media.MediaRouter.RouteInfo)routeObj).isConnecting();
36        }
37    }
38
39    public static final class UserRouteInfo {
40        public static void setDescription(Object routeObj, CharSequence description) {
41            ((android.media.MediaRouter.UserRouteInfo)routeObj).setDescription(description);
42        }
43    }
44}
45