Home | History | Annotate | Download | only in cts

Lines Matching defs:route

107         assertTrue("By default, a media router has at least one route.", count > 0);
140 * Test {@link MediaRouter.UserRouteInfo} with the default route.
143 RouteInfo route = mMediaRouter.getDefaultRoute();
145 assertNotNull(route.getCategory());
146 assertNotNull(route.getName());
147 assertNotNull(route.getName(mContext));
148 assertTrue(route.isEnabled());
149 assertFalse(route.isConnecting());
150 assertEquals(RouteInfo.DEVICE_TYPE_UNKNOWN, route.getDeviceType());
151 assertEquals(RouteInfo.PLAYBACK_TYPE_LOCAL, route.getPlaybackType());
152 assertNull(route.getDescription());
153 assertNull(route.getStatus());
154 assertNull(route.getIconDrawable());
155 assertNull(route.getGroup());
158 route.setTag(tag);
159 assertEquals(tag, route.getTag());
160 assertEquals(AudioManager.STREAM_MUSIC, route.getPlaybackStream());
162 int curVolume = route.getVolume();
163 int maxVolume = route.getVolumeMax();
240 // Create a route with a groupable category.
241 // A route does not belong to any group until it is added to a media router or to a group.
246 // For the route whose category is groupable, this method does not directly add the route in
248 // and puts the route inside that group.
281 // Remove userRoute1 which is the first route in the group now.
329 assertTrue("By default, a media router has at least one route category.", count > 0);
340 RouteInfo route = routesInCategory.get(0);
341 assertEquals(userRoute, route);
384 // It is called when the route's name, description, status or tag is updated.
442 // Adding a route of groupable category in the media router does not directly add the route.
443 // Instead, it creates a RouteGroup, adds the group as a route in the media router, and puts
444 // the route inside that group. Therefore onRouteAdded() is called for the group, and
445 // onRouteGrouped() is called for the route.
463 // Add another route to the group.
475 // Since removing a route from the group changes the group's name, onRouteChanged() is