Home
last modified time | relevance | path

Searched refs:route (Results 1 – 25 of 145) sorted by relevance

123456

/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/navigation/
DPhotopickerNavGraph.kt51 startDestination = getStartDestination(featureManager.enabledUiFeatures).route, in <lambda>()
87 for (route in allRoutes) { in NavGraphBuilder() method
88 if (route.isDialog) { in NavGraphBuilder()
90 route = route.route, in NavGraphBuilder()
91 arguments = route.arguments, in NavGraphBuilder()
92 deepLinks = route.deepLinks, in NavGraphBuilder()
93 dialogProperties = route.dialogProperties ?: DialogProperties() in NavGraphBuilder()
95 route.composable(backStackEntry) in NavGraphBuilder()
99 route = route.route, in NavGraphBuilder()
100 arguments = route.arguments, in NavGraphBuilder()
[all …]
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/navigation/
DPhotopickerNavGraphTest.kt119 val route = navController.currentBackStackEntry?.destination?.route in testVerifyStartDestinationWithNoFeatures() constant
120 assertThat(route).isEqualTo(PhotopickerDestinations.DEFAULT.route) in testVerifyStartDestinationWithNoFeatures()
132 val route = navController.currentBackStackEntry?.destination?.route in testStartDestinationWithPriorities() constant
133 assertThat(route).isEqualTo(HighPriorityUiFeature.START_ROUTE) in testStartDestinationWithPriorities()
145 var route = navController.currentBackStackEntry?.destination?.route in testNavigationGraphIsNavigableToDialogs() variable
146 assertThat(route).isEqualTo(HighPriorityUiFeature.START_ROUTE) in testNavigationGraphIsNavigableToDialogs()
152 route = navController.currentBackStackEntry?.destination?.route in testNavigationGraphIsNavigableToDialogs()
153 assertThat(route).isEqualTo(HighPriorityUiFeature.DIALOG_ROUTE) in testNavigationGraphIsNavigableToDialogs()
158 route = navController.currentBackStackEntry?.destination?.route in testNavigationGraphIsNavigableToDialogs()
159 assertThat(route).isEqualTo(HighPriorityUiFeature.START_ROUTE) in testNavigationGraphIsNavigableToDialogs()
[all …]
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DNetUtilsTest.java81 RouteInfo route = NetUtils.selectBestRoute(null, V4_DEST); in testSelectBestRoute() local
82 assertNull(route); in testSelectBestRoute()
83 route = NetUtils.selectBestRoute(routes, null); in testSelectBestRoute()
84 assertNull(route); in testSelectBestRoute()
86 route = NetUtils.selectBestRoute(routes, V4_DEST); in testSelectBestRoute()
87 assertNull(route); in testSelectBestRoute()
100 route = NetUtils.selectBestRoute(routes, V4_DEST); in testSelectBestRoute()
101 assertEquals(V4_EXPECTED, route); in testSelectBestRoute()
104 route = NetUtils.selectBestRoute(routes, V6_DEST); in testSelectBestRoute()
105 assertEquals(V6_EXPECTED, route); in testSelectBestRoute()
[all …]
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/extensions/
DNavController.kt39 if (this.currentDestination?.route == PHOTO_GRID.route) { in NavController()
46 PHOTO_GRID.route, in NavController()
52 this.navigate(PHOTO_GRID.route, navOptions) in NavController()
58 this.navigate(PREVIEW_SELECTION.route, navOptions) in NavController()
73 this.navigate(PREVIEW_MEDIA.route, navOptions) in NavController()
76 this.getBackStackEntry(PREVIEW_MEDIA.route) in NavController()
90 if (this.currentDestination?.route == PhotopickerDestinations.ALBUM_GRID.route) { in NavController()
97 PhotopickerDestinations.ALBUM_GRID.route, in NavController()
103 this.navigate(PhotopickerDestinations.ALBUM_GRID.route, navOptions) in NavController()
116 this.navigate(PhotopickerDestinations.ALBUM_MEDIA_GRID.route, navOptions) in navigateToAlbumMediaGrid()
[all …]
/packages/modules/Connectivity/staticlibs/client-libs/netd/com/android/net/module/util/
DNetdUtils.java210 for (RouteInfo route : routes) { in addRoutesToLocalNetwork()
211 if (!route.isDefaultRoute()) { in addRoutesToLocalNetwork()
212 modifyRoute(netd, ModifyOperation.ADD, INetd.LOCAL_NET_ID, route); in addRoutesToLocalNetwork()
225 for (RouteInfo route : routes) { in removeRoutesFromLocalNetwork()
227 modifyRoute(netd, ModifyOperation.REMOVE, INetd.LOCAL_NET_ID, route); in removeRoutesFromLocalNetwork()
237 private static String findNextHop(final RouteInfo route) { in findNextHop() argument
239 switch (route.getType()) { in findNextHop()
241 if (route.hasGateway()) { in findNextHop()
242 nextHop = route.getGateway().getHostAddress(); in findNextHop()
262 final RouteInfo route) { in modifyRoute() argument
[all …]
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/albumgrid/
DAlbumGridFeature.kt79 override val route = ALBUM_GRID.route in registerNavigationRoutes() constant
97 if (initialState.destination.route == ALBUM_MEDIA_GRID.route) { in registerNavigationRoutes()
108 if (targetState.destination.route == ALBUM_MEDIA_GRID.route) { in registerNavigationRoutes()
119 if (initialState.destination.route == ALBUM_MEDIA_GRID.route) { in registerNavigationRoutes()
130 if (targetState.destination.route == ALBUM_MEDIA_GRID.route) { in registerNavigationRoutes()
146 override val route = ALBUM_MEDIA_GRID.route in registerNavigationRoutes() constant
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DAidRoutingManager.java88 int route; field in AidRoutingManager.AidEntry
272 int route = ROUTE_HOST; in configureRouting() local
276 route = mDefaultOffHostRoute; in configureRouting()
278 route = getRouteForSecureElement(offHostSE); in configureRouting()
279 if (route == 0) { in configureRouting()
285 if (!seList.contains(route)) in configureRouting()
286 seList.add(route); in configureRouting()
287 aidEntry.getValue().route = route; in configureRouting()
292 aidRoutingTable.get(route, new HashSet<String>()); in configureRouting()
294 aidRoutingTable.put(route, entries); in configureRouting()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailAudioManager.java170 void setAudioRoute(int route) { in setAudioRoute() argument
173 "route: " + CallAudioState.audioRouteToString(route)); in setAudioRoute()
176 int newRoute = selectWiredOrEarpiece(route, callAudioState.getSupportedRouteMask()); in setAudioRoute()
195 int route = selectWiredOrEarpiece(CallAudioState.ROUTE_WIRED_OR_EARPIECE, supportedRouteMask); in getInitialAudioState() local
196 return new CallAudioState(false /* muted */, route, supportedRouteMask); in getInitialAudioState()
209 private int selectWiredOrEarpiece(int route, int supportedRouteMask) { in selectWiredOrEarpiece() argument
213 if (route == CallAudioState.ROUTE_WIRED_OR_EARPIECE) { in selectWiredOrEarpiece()
214 route = CallAudioState.ROUTE_WIRED_OR_EARPIECE & supportedRouteMask; in selectWiredOrEarpiece()
215 if (route == 0) { in selectWiredOrEarpiece()
220 route = CallAudioState.ROUTE_EARPIECE; in selectWiredOrEarpiece()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioRouteController.java790 AudioRoute route = getBaseRoute(true, null); in handleSwitchFocus() local
791 BluetoothDevice device = mBluetoothRoutes.get(route); in handleSwitchFocus()
795 routeTo(false, route); in handleSwitchFocus()
797 routeTo(true, route); in handleSwitchFocus()
827 for (AudioRoute route : getAvailableRoutes()) { in handleSwitchBluetooth()
828 if (Objects.equals(address, route.getBluetoothAddress())) { in handleSwitchBluetooth()
829 bluetoothRoute = route; in handleSwitchBluetooth()
830 bluetoothDevice = mBluetoothRoutes.get(route); in handleSwitchBluetooth()
936 int route = ROUTE_MAP.get(mCurrentRoute.getType()); in onCurrentRouteChanged() local
937 if (route == CallAudioState.ROUTE_STREAMING) { in onCurrentRouteChanged()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DRoutingCoordinatorManager.java52 public void addRoute(final int netId, final RouteInfo route) { in addRoute() argument
54 mService.addRoute(netId, route); in addRoute()
68 public void removeRoute(final int netId, final RouteInfo route) { in removeRoute() argument
70 mService.removeRoute(netId, route); in removeRoute()
84 public void updateRoute(final int netId, final RouteInfo route) { in updateRoute() argument
86 mService.updateRoute(netId, route); in updateRoute()
DLinkProperties.java219 for (RouteInfo route : mRoutes) { in setInterfaceName()
220 newRoutes.add(routeWithInterface(route)); in setInterfaceName()
675 private RouteInfo routeWithInterface(RouteInfo route) { in routeWithInterface() argument
677 route.getDestination(), in routeWithInterface()
678 route.getGateway(), in routeWithInterface()
680 route.getType(), in routeWithInterface()
681 route.getMtu()); in routeWithInterface()
684 private int findRouteIndexByRouteKey(RouteInfo route) { in findRouteIndexByRouteKey() argument
686 if (mRoutes.get(i).getRouteKey().equals(route.getRouteKey())) { in findRouteIndexByRouteKey()
704 public boolean addRoute(@NonNull RouteInfo route) { in addRoute() argument
[all …]
DIRoutingCoordinator.aidl31 void addRoute(int netId, in RouteInfo route); in addRoute() argument
41 void removeRoute(int netId, in RouteInfo route); in removeRoute() argument
51 void updateRoute(int netId, in RouteInfo route); in updateRoute() argument
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/route/
DRouteRequestActivity.kt16 package com.android.healthconnect.controller.route in <lambda>()
45 import com.android.healthconnect.controller.route.ExerciseRouteViewModel.SessionWithAttribution in <lambda>()
128 data.session.route == null || in <lambda>()
129 data.session.route?.routeLocations.isNullOrEmpty()) { in <lambda>()
136 val route = session.route!! in <lambda>() constant
140 finishWithResult(route) in <lambda>()
151 finishWithResult(route) in <lambda>()
175 view.findViewById<MapView>(R.id.map_view).setRoute(session.route!!) in <lambda>()
199 finishWithResult(route) in <lambda>()
214 finishWithResult(route) in <lambda>()
[all …]
/packages/apps/Settings/src/com/android/settings/wfd/
DWifiDisplaySettings.java276 MediaRouter.RouteInfo route = mRouter.getRouteAt(i); in update() local
277 if (route.matchesTypes(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY)) { in update()
278 preferenceScreen.addPreference(createRoutePreference(route)); in update()
306 private RoutePreference createRoutePreference(MediaRouter.RouteInfo route) { in createRoutePreference() argument
307 WifiDisplay display = findWifiDisplay(route.getDeviceAddress()); in createRoutePreference()
309 return new WifiDisplayRoutePreference(getPrefContext(), route, display); in createRoutePreference()
311 return new RoutePreference(getPrefContext(), route); in createRoutePreference()
567 private void toggleRoute(MediaRouter.RouteInfo route) { in toggleRoute() argument
568 if (route.isSelected()) { in toggleRoute()
572 route.select(); in toggleRoute()
[all …]
DWifiDisplayPreferenceController.java88 final MediaRouter.RouteInfo route = mRouter.getRouteAt(i); in getSummary() local
89 if (route.matchesTypes(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY) in getSummary()
90 && route.isSelected() && !route.isConnecting()) { in getSummary()
91 CharSequence status = route.getStatus(); in getSummary()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/map/
DMapView.kt50 private val route: MutableList<Location> = mutableListOf() in <lambda>() constant
79 fun setRoute(route: ExerciseRoute) { in <lambda>()
81 this.route.clear() in <lambda>()
82 this.route.addAll(route.routeLocations) in <lambda>()
83 this.route.sortBy { location -> location.time } in <lambda>()
105 if (route.isEmpty()) { in <lambda>()
110 route in <lambda>()
157 route.forEach { location -> in <lambda>()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DNetdWrapper.java138 String route, String gateway, String ifName) throws RemoteException { in onRouteChanged() argument
183 private void modifyRoute(boolean add, int netId, RouteInfo route) { in modifyRoute() argument
184 final String ifName = route.getInterface(); in modifyRoute()
185 final String dst = route.getDestination().toString(); in modifyRoute()
188 switch (route.getType()) { in modifyRoute()
190 if (route.hasGateway()) { in modifyRoute()
191 nextHop = route.getGateway().getHostAddress(); in modifyRoute()
223 for (RouteInfo route : routes) { in addInterfaceToLocalNetwork()
224 if (!route.isDefaultRoute()) { in addInterfaceToLocalNetwork()
225 modifyRoute(MODIFY_OPERATION_ADD, INetd.LOCAL_NET_ID, route); in addInterfaceToLocalNetwork()
[all …]
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DNetUtils.java62 for (RouteInfo route : routes) { in selectBestRoute()
63 if (addressTypeMatches(route.getDestination().getAddress(), dest)) { in selectBestRoute()
66 >= route.getDestination().getPrefixLength())) { in selectBestRoute()
69 if (route.matches(dest)) bestRoute = route; in selectBestRoute()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wfd/
DWifiDisplayPreferenceControllerTest.java67 final MediaRouter.RouteInfo route = mock(MediaRouter.RouteInfo.class); in getSummary_connected_shouldProvideConnectedSummary() local
69 when(mMediaRouter.getRouteAt(0)).thenReturn(route); in getSummary_connected_shouldProvideConnectedSummary()
70 when(route.matchesTypes(anyInt())).thenReturn(true); in getSummary_connected_shouldProvideConnectedSummary()
71 when(route.isSelected()).thenReturn(true); in getSummary_connected_shouldProvideConnectedSummary()
72 when(route.isConnecting()).thenReturn(false); in getSummary_connected_shouldProvideConnectedSummary()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DRoutingCoordinatorService.java61 public void addRoute(final int netId, final RouteInfo route) in addRoute() argument
63 mNetd.networkAddRouteParcel(netId, toRouteInfoParcel(route)); in addRoute()
75 public void removeRoute(final int netId, final RouteInfo route) in removeRoute() argument
77 mNetd.networkRemoveRouteParcel(netId, toRouteInfoParcel(route)); in removeRoute()
89 public void updateRoute(final int netId, final RouteInfo route) in updateRoute() argument
91 mNetd.networkUpdateRouteParcel(netId, toRouteInfoParcel(route)); in updateRoute()
/packages/modules/HealthFitness/tests/cts/route/src/android/healthconnect/cts/route/
DExerciseRouteWriteTest.java17 package android.healthconnect.cts.route;
19 import static android.healthconnect.cts.route.ExerciseRouteTestHelper.assertCorrectHealthPermission…
20 import static android.healthconnect.cts.route.ExerciseRouteTestHelper.getAnotherRoute;
21 import static android.healthconnect.cts.route.ExerciseRouteTestHelper.getExerciseSession;
22 import static android.healthconnect.cts.route.ExerciseRouteTestHelper.getExerciseSessionWithAnother…
23 import static android.healthconnect.cts.route.ExerciseRouteTestHelper.getExerciseSessionWithRoute;
24 import static android.healthconnect.cts.route.ExerciseRouteTestHelper.getExerciseSessionWithoutRout…
25 import static android.healthconnect.cts.route.ExerciseRouteTestHelper.getRoute;
26 import static android.healthconnect.cts.route.ExerciseRouteTestHelper.readAllExerciseSessionRecords…
DExerciseRouteNoReadWritePermissionTest.java17 package android.healthconnect.cts.route;
20 import static android.healthconnect.cts.route.ExerciseRouteTestHelper.ROUTES_READER_WRITER_APP;
21 import static android.healthconnect.cts.route.ExerciseRouteTestHelper.ROUTE_WRITER_APP;
22 import static android.healthconnect.cts.route.ExerciseRouteTestHelper.assertCorrectHealthPermission…
23 import static android.healthconnect.cts.route.ExerciseRouteTestHelper.getExerciseSessionWithAnother…
24 import static android.healthconnect.cts.route.ExerciseRouteTestHelper.getExerciseSessionWithRoute;
25 import static android.healthconnect.cts.route.ExerciseRouteTestHelper.getExerciseSessionWithoutRout…
26 import static android.healthconnect.cts.route.ExerciseRouteTestHelper.readAllExerciseSessionRecords…
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DNetlinkUtilsTest.java204 for (var route : multicastRoutes) { in testGetIpv6MulticastRoutes_doesNotThrow()
205 assertNotNull(route); in testGetIpv6MulticastRoutes_doesNotThrow()
206 assertEquals("Route is not IP6MR: " + route, in testGetIpv6MulticastRoutes_doesNotThrow()
207 RTNL_FAMILY_IP6MR, route.getRtmFamily()); in testGetIpv6MulticastRoutes_doesNotThrow()
208 assertNotNull("Route doesn't contain source: " + route, route.getSource()); in testGetIpv6MulticastRoutes_doesNotThrow()
209 assertNotNull("Route doesn't contain destination: " + route, route.getDestination()); in testGetIpv6MulticastRoutes_doesNotThrow()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/photogrid/
DPhotoGridFeatureTest.kt195 val route = navController.currentBackStackEntry?.destination?.route in testPhotoGridIsTheInitialRoute() constant
197 .that(route) in testPhotoGridIsTheInitialRoute()
198 .isEqualTo(PhotopickerDestinations.PHOTO_GRID.route) in testPhotoGridIsTheInitialRoute()
291 val route = navController.currentBackStackEntry?.destination?.route in testSwipeLeftToNavigateToAlbumGrid() constant
293 .that(route) in testSwipeLeftToNavigateToAlbumGrid()
294 .isEqualTo(PhotopickerDestinations.ALBUM_GRID.route) in testSwipeLeftToNavigateToAlbumGrid()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/navigationbar/
DNavigationBar.kt41 PhotopickerDestinations.ALBUM_GRID.route,
42 PhotopickerDestinations.PHOTO_GRID.route,
59 val currentRoute = navBackStackEntry?.destination?.route in NavigationBar()
98 val currentRoute = navBackStackEntry?.destination?.route in NavigationBarButton()

123456