Home
last modified time | relevance | path

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

12

/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DAidRoutingManager.java87 int route; field in AidRoutingManager.AidEntry
214 int route = ROUTE_HOST; in configureRouting() local
218 route = mDefaultOffHostRoute; in configureRouting()
220 route = getRouteForSecureElement(offHostSE); in configureRouting()
221 if (route == 0) { in configureRouting()
227 if (!seList.contains(route)) in configureRouting()
228 seList.add(route); in configureRouting()
229 aidEntry.getValue().route = route; in configureRouting()
233 aidRoutingTable.get(route, new HashSet<String>()); in configureRouting()
235 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()
563 private void toggleRoute(MediaRouter.RouteInfo route) { in toggleRoute() argument
564 if (route.isSelected()) { in toggleRoute()
568 route.select(); in toggleRoute()
[all …]
/packages/apps/Settings/src/com/android/settings/wfd/
DWifiDisplaySettings.java278 MediaRouter.RouteInfo route = mRouter.getRouteAt(i); in update() local
279 if (route.matchesTypes(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY)) { in update()
280 preferenceScreen.addPreference(createRoutePreference(route)); in update()
308 private RoutePreference createRoutePreference(MediaRouter.RouteInfo route) { in createRoutePreference() argument
309 WifiDisplay display = findWifiDisplay(route.getDeviceAddress()); in createRoutePreference()
311 return new WifiDisplayRoutePreference(getPrefContext(), route, display); in createRoutePreference()
313 return new RoutePreference(getPrefContext(), route); in createRoutePreference()
564 private void toggleRoute(MediaRouter.RouteInfo route) { in toggleRoute() argument
565 if (route.isSelected()) { in toggleRoute()
569 route.select(); in toggleRoute()
[all …]
/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.java206 public void onRouteUpdated(RouteInfo route) { in onRouteUpdated() argument
207 if (mInterfaceName.equals(route.getInterface())) { in onRouteUpdated()
208 maybeLog("routeUpdated", route); in onRouteUpdated()
211 changed = mLinkProperties.addRoute(route); in onRouteUpdated()
220 public void onRouteRemoved(RouteInfo route) { in onRouteRemoved() argument
221 if (mInterfaceName.equals(route.getInterface())) { in onRouteRemoved()
222 maybeLog("routeRemoved", route); in onRouteRemoved()
225 changed = mLinkProperties.removeRoute(route); in onRouteRemoved()
DIpClient.java1274 for (RouteInfo route : netlinkLinkProperties.getRoutes()) { in assembleLinkProperties()
1275 newLp.addRoute(route); in assembleLinkProperties()
1287 for (RouteInfo route : routes) { in assembleLinkProperties()
1288 newLp.addRoute(route); in assembleLinkProperties()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wfd/
DWifiDisplaySettingsTest.java78 final MediaRouter.RouteInfo route = mock(MediaRouter.RouteInfo.class); in listenToSummary_connected_shouldProvideConnectedSummary() local
80 when(mMediaRouter.getRouteAt(0)).thenReturn(route); in listenToSummary_connected_shouldProvideConnectedSummary()
81 when(route.matchesTypes(MediaRouter.ROUTE_TYPE_REMOTE_DISPLAY)).thenReturn(true); in listenToSummary_connected_shouldProvideConnectedSummary()
82 when(route.isSelected()).thenReturn(true); in listenToSummary_connected_shouldProvideConnectedSummary()
83 when(route.isConnecting()).thenReturn(false); in listenToSummary_connected_shouldProvideConnectedSummary()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/activecall/
DOnGoingCallControllerBarFragment.java314 private static AudioRouteInfo getAudioRouteInfo(int route) { in getAudioRouteInfo() argument
315 AudioRouteInfo routeInfo = AUDIO_ROUTES.get(route); in getAudioRouteInfo()
319 L.e(TAG, "Unknown audio route: %s", route); in getAudioRouteInfo()
320 throw new RuntimeException("Unknown audio route: " + route); in getAudioRouteInfo()
/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/services/Car/car-lib/src/android/car/navigation/
Dnavigation_state.proto73 // Distance along the planned route between relevant points in the navigation
256 // to stay on the navigation route.
301 // in the navigation route, or false if it will take the drive off the
302 // navigation route.
365 // navigation route.
390 // the navigation route should be highlighted.
444 // Final or intermediate stop in a navigation route.
470 // The travel distance along the route from the current position to this
485 // 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.wtf(this, "Invalid route specified: %d", route); in setAudioRoute()
DCallAudioRouteStateMachine.java1768 final int route; in getInitialAudioState() local
1772 route = ROUTE_BLUETOOTH; in getInitialAudioState()
1774 route = ROUTE_WIRED_HEADSET; in getInitialAudioState()
1776 route = ROUTE_EARPIECE; in getInitialAudioState()
1778 route = ROUTE_SPEAKER; in getInitialAudioState()
1781 return new CallAudioState(false, route, supportedRouteMask, null, in getInitialAudioState()
DInCallAdapter.java379 public void setAudioRoute(int route, String bluetoothAddress) { in setAudioRoute() argument
385 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.proto648 // User choose audio route speakerphone from bubble call action menu
650 // User choose audio route wired or earpiece from bubble call action menu
652 // User choose audio route bluetooth from bubble call action menu
776 // 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
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DAnalyticsTests.java394 for (int route : audioRoutes) {
395 String logEvent = CallAudioRouteStateMachine.AUDIO_ROUTE_TO_LOG_EVENT.get(route);

12