Home
last modified time | relevance | path

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

12

/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DAidRoutingManager.java86 int route; field in AidRoutingManager.AidEntry
213 int route = ROUTE_HOST; in configureRouting() local
217 route = mDefaultOffHostRoute; in configureRouting()
219 route = getRouteForSecureElement(offHostSE); in configureRouting()
220 if (route == 0) { in configureRouting()
226 if (!seList.contains(route)) in configureRouting()
227 seList.add(route); in configureRouting()
228 aidEntry.getValue().route = route; in configureRouting()
232 aidRoutingTable.get(route, new HashSet<String>()); in configureRouting()
234 aidRoutingTable.put(route, entries); in configureRouting()
[all …]
/packages/modules/NetworkStack/common/moduleutils/src/android/net/shared/
DRouteUtils.java39 private static String findNextHop(final RouteInfo route) { in findNextHop() argument
41 switch (route.getType()) { in findNextHop()
43 if (route.hasGateway()) { in findNextHop()
44 nextHop = route.getGateway().getHostAddress(); in findNextHop()
66 for (RouteInfo route : routes) { in addRoutesToLocalNetwork()
67 if (!route.isDefaultRoute()) { in addRoutesToLocalNetwork()
68 modifyRoute(netd, ModifyOperation.ADD, INetd.LOCAL_NET_ID, route); in addRoutesToLocalNetwork()
81 for (RouteInfo route : routes) { in removeRoutesFromLocalNetwork()
83 modifyRoute(netd, ModifyOperation.REMOVE, INetd.LOCAL_NET_ID, route); in removeRoutesFromLocalNetwork()
94 final RouteInfo route) { in modifyRoute() argument
[all …]
DInitialConfiguration.java180 private static boolean isDirectlyConnectedRoute(RouteInfo route, IpPrefix prefix) { in isDirectlyConnectedRoute() argument
181 return !route.hasGateway() && prefix.equals(route.getDestination()); in isDirectlyConnectedRoute()
/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/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wfd/
DWifiDisplaySettings.java277 MediaRouter.RouteInfo route = mRouter.getRouteAt(i); in update() local
278 if (route.matchesTypes(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY)) { in update()
279 preferenceScreen.addPreference(createRoutePreference(route)); in update()
307 private RoutePreference createRoutePreference(MediaRouter.RouteInfo route) { in createRoutePreference() argument
308 WifiDisplay display = findWifiDisplay(route.getDeviceAddress()); in createRoutePreference()
310 return new WifiDisplayRoutePreference(getPrefContext(), route, display); in createRoutePreference()
312 return new RoutePreference(getPrefContext(), route); in createRoutePreference()
568 private void toggleRoute(MediaRouter.RouteInfo route) { in toggleRoute() argument
569 if (route.isSelected()) { in toggleRoute()
573 route.select(); in toggleRoute()
[all …]
/packages/apps/Settings/src/com/android/settings/wfd/
DWifiDisplaySettings.java274 MediaRouter.RouteInfo route = mRouter.getRouteAt(i); in update() local
275 if (route.matchesTypes(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY)) { in update()
276 preferenceScreen.addPreference(createRoutePreference(route)); in update()
304 private RoutePreference createRoutePreference(MediaRouter.RouteInfo route) { in createRoutePreference() argument
305 WifiDisplay display = findWifiDisplay(route.getDeviceAddress()); in createRoutePreference()
307 return new WifiDisplayRoutePreference(getPrefContext(), route, display); in createRoutePreference()
309 return new RoutePreference(getPrefContext(), route); in createRoutePreference()
565 private void toggleRoute(MediaRouter.RouteInfo route) { in toggleRoute() argument
566 if (route.isSelected()) { in toggleRoute()
570 route.select(); in toggleRoute()
[all …]
DWifiDisplayPreferenceController.java87 final MediaRouter.RouteInfo route = mRouter.getRouteAt(i); in getSummary() local
88 if (route.matchesTypes(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY) in getSummary()
89 && route.isSelected() && !route.isConnecting()) { in getSummary()
/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/NetworkStack/src/android/net/ip/
DIpReachabilityMonitor.java291 for (RouteInfo route : routes) {
292 if (!route.hasGateway() && route.matches(ip)) {
311 for (RouteInfo route : routes) {
312 if (route.hasGateway()) {
313 InetAddress gw = route.getGateway();
354 for (RouteInfo route : mLinkProperties.getRoutes()) {
355 if (ip.equals(route.getGateway())) {
356 whatIfLp.removeRoute(route);
DIpClientLinkObserver.java210 public void onRouteUpdated(RouteInfo route) { in onRouteUpdated() argument
211 if (mInterfaceName.equals(route.getInterface())) { in onRouteUpdated()
212 maybeLog("routeUpdated", route); in onRouteUpdated()
216 changed = mLinkProperties.addRoute(route); in onRouteUpdated()
226 public void onRouteRemoved(RouteInfo route) { in onRouteRemoved() argument
227 if (mInterfaceName.equals(route.getInterface())) { in onRouteRemoved()
228 maybeLog("routeRemoved", route); in onRouteRemoved()
232 changed = mLinkProperties.removeRoute(route); in onRouteRemoved()
DIpClient.java1273 for (RouteInfo route : netlinkLinkProperties.getRoutes()) { in assembleLinkProperties()
1274 newLp.addRoute(route); in assembleLinkProperties()
1286 for (RouteInfo route : routes) { in assembleLinkProperties()
1287 newLp.addRoute(route); in assembleLinkProperties()
/packages/modules/NetworkStack/src/com/android/server/
DNetworkObserver.java81 default void onRouteUpdated(RouteInfo route) {} in onRouteUpdated() argument
87 default void onRouteRemoved(RouteInfo route) {} in onRouteRemoved() argument
DNetworkObserverRegistry.java166 public void onRouteChanged(boolean updated, String route, String gateway, String ifName) { in onRouteChanged() argument
167 final RouteInfo processRoute = new RouteInfo(new IpPrefix(route), in onRouteChanged()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/activecall/
DOnGoingCallControllerBarFragment.java338 private static AudioRouteInfo getAudioRouteInfo(int route) { in getAudioRouteInfo() argument
339 AudioRouteInfo routeInfo = AUDIO_ROUTES.get(route); in getAudioRouteInfo()
343 L.e(TAG, "Unknown audio route: %s", route); in getAudioRouteInfo()
344 throw new RuntimeException("Unknown audio route: " + route); in getAudioRouteInfo()
/packages/services/Car/car-lib/src/android/car/navigation/
Dnavigation_state.proto74 // Distance along the planned route between relevant points in the navigation
347 // to stay on the navigation route.
392 // in the navigation route, or false if it will take the drive off the
393 // navigation route.
456 // navigation route.
481 // the navigation route should be highlighted.
536 // Final or intermediate stop in a navigation route.
562 // The travel distance along the route from the current position to this
577 // The congestion level on the route to this destination,
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioManager.java401 void setAudioRoute(int route, String bluetoothAddress) { in setAudioRoute() argument
402 Log.v(this, "setAudioRoute, route: %s", CallAudioState.audioRouteToString(route)); in setAudioRoute()
403 switch (route) { in setAudioRoute()
426 Log.w(this, "InCallService requested an invalid audio route: %d", route); in setAudioRoute()
DCallAudioRouteStateMachine.java1765 final int route; in getInitialAudioState() local
1769 route = ROUTE_BLUETOOTH; in getInitialAudioState()
1771 route = ROUTE_WIRED_HEADSET; in getInitialAudioState()
1773 route = ROUTE_EARPIECE; in getInitialAudioState()
1775 route = ROUTE_SPEAKER; in getInitialAudioState()
1778 return new CallAudioState(false, route, supportedRouteMask, null, in getInitialAudioState()
DInCallAdapter.java382 public void setAudioRoute(int route, String bluetoothAddress) { in setAudioRoute() argument
388 mCallsManager.setAudioRoute(route, bluetoothAddress); in setAudioRoute()
/packages/apps/Dialer/java/com/android/incallui/call/
DTelecomAdapter.java81 public void setAudioRoute(int route) { in setAudioRoute() argument
83 inCallService.setAudioRoute(route); in setAudioRoute()
/packages/apps/Dialer/java/com/android/incallui/
DCallButtonPresenter.java188 public void setAudioRoute(int route) { in setAudioRoute() argument
191 "sending new audio route: " + CallAudioState.audioRouteToString(route)); in setAudioRoute()
192 TelecomAdapter.getInstance().setAudioRoute(route); in setAudioRoute()
/packages/apps/Dialer/java/com/android/dialer/logging/
Ddialer_impression.proto649 // User choose audio route speakerphone from bubble call action menu
651 // User choose audio route wired or earpiece from bubble call action menu
653 // User choose audio route bluetooth from bubble call action menu
777 // Switch audio route
/packages/apps/Dialer/java/com/android/incallui/incall/protocol/
DInCallButtonUiDelegate.java60 void setAudioRoute(int route); in setAudioRoute() argument
/packages/apps/Nfc/nci/jni/
DRoutingManager.h39 bool addAidRouting(const uint8_t* aid, uint8_t aidLen, int route,
DRoutingManager.cpp302 int route, int aidInfo) { in addAidRouting() argument
307 powerState = (route != 0x00) ? mOffHostAidRoutingPowerState : 0x11; in addAidRouting()
312 NFA_EeAddAidRouting(route, aidLen, (uint8_t*)aid, powerState, aidInfo); in addAidRouting()
/packages/apps/Nfc/src/com/android/nfc/
DDeviceHost.java191 public boolean routeAid(byte[] aid, int route, int aidInfo); in routeAid() argument

12