/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | CastControllerImpl.java | 90 final RouteInfo route = mRoutes.valueAt(i); in dump() local 91 pw.print(" "); pw.println(routeToString(route)); in dump() 158 for (RouteInfo route : mRoutes.values()) { in getCastDevices() 160 device.id = route.getTag().toString(); in getCastDevices() 161 final CharSequence name = route.getName(mContext); in getCastDevices() 163 final CharSequence description = route.getDescription(); in getCastDevices() 166 int statusCode = route.getStatusCode(); in getCastDevices() 169 } else if (route.isSelected() || statusCode == RouteInfo.STATUS_CONNECTED) { in getCastDevices() 175 device.tag = route; in getCastDevices() 198 final RouteInfo route = (RouteInfo) device.tag; in startCasting() [all …]
|
/frameworks/base/telecomm/java/android/telecom/ |
D | AudioState.java | 63 private final int route; field in AudioState 67 public AudioState(boolean muted, int route, int supportedRouteMask) { in AudioState() argument 69 this.route = route; in AudioState() 75 route = state.getRoute(); in AudioState() 81 route = state.getRoute(); in AudioState() 104 audioRouteToString(route), in toString() 108 public static String audioRouteToString(int route) { in audioRouteToString() argument 109 if (route == 0 || (route & ~ROUTE_ALL) != 0x0) { in audioRouteToString() 114 if ((route & ROUTE_EARPIECE) == ROUTE_EARPIECE) { in audioRouteToString() 117 if ((route & ROUTE_BLUETOOTH) == ROUTE_BLUETOOTH) { in audioRouteToString() [all …]
|
D | CallAudioState.java | 78 private final int route; field in CallAudioState 100 public CallAudioState(boolean muted, @CallAudioRoute int route, in CallAudioState() argument 102 this(muted, route, supportedRouteMask, null, Collections.emptyList()); in CallAudioState() 107 public CallAudioState(boolean isMuted, @CallAudioRoute int route, in CallAudioState() argument 112 this.route = route; in CallAudioState() 121 route = state.getRoute(); in CallAudioState() 131 route = state.getRoute(); in CallAudioState() 168 audioRouteToString(route), in toString() 186 return route; in getRoute() 194 if (route == ROUTE_STREAMING) { in getSupportedRouteMask() [all …]
|
/frameworks/base/media/java/android/media/ |
D | MediaRouter.java | 407 final RouteInfo route = mRoutes.get(i); in updatePresentationDisplays() local 408 if (route.updatePresentationDisplay() || (route.mPresentationDisplay != null in updatePresentationDisplays() 409 && route.mPresentationDisplay.getDisplayId() == changedDisplayId)) { in updatePresentationDisplays() 410 dispatchRoutePresentationDisplayChanged(route); in updatePresentationDisplays() 420 final RouteInfo route = mRoutes.get(i); in handleGroupRouteSelected() local 421 if (TextUtils.equals(route.mGlobalRouteId, routeId)) { in handleGroupRouteSelected() 422 routeToSelect = route; in handleGroupRouteSelected() 503 RouteInfo route = findGlobalRoute(globalRoute.id); in updateClientState() local 504 if (route == null) { in updateClientState() 505 route = makeGlobalRoute(globalRoute); in updateClientState() [all …]
|
D | MediaRouter2Manager.java | 285 (route) -> sessionInfo.isSystemSession() ^ route.isSystemRoute()); in getTransferableRoutes() 322 for (MediaRoute2Info route : getSortedRoutes(discoveryPreference)) { in getFilteredRoutes() 323 if (!route.isVisibleTo(packageName)) { in getFilteredRoutes() 327 sessionInfo.getTransferableRoutes().contains(route.getId()); in getFilteredRoutes() 329 sessionInfo.getSelectedRoutes().contains(route.getId()); in getFilteredRoutes() 332 routes.add(route); in getFilteredRoutes() 335 if (!route.hasAnyFeatures(discoveryPreference.getPreferredFeatures())) { in getFilteredRoutes() 339 && (route.getPackageName() == null in getFilteredRoutes() 341 .contains(route.getPackageName()))) { in getFilteredRoutes() 344 if (additionalFilter != null && !additionalFilter.test(route)) { in getFilteredRoutes() [all …]
|
D | MediaRouter2.java | 668 for (MediaRoute2Info route : currentSystemRoutes) { in loadSystemRoutes() 669 mRoutes.put(route.getId(), route); in loadSystemRoutes() local 981 public void transferTo(@NonNull MediaRoute2Info route) { in transferTo() argument 982 mImpl.transferTo(route); in transferTo() 1004 public void transfer(@NonNull RoutingController controller, @NonNull MediaRoute2Info route) { in transfer() argument 1005 mImpl.transfer(controller.getRoutingSessionInfo(), route); in transfer() local 1010 @NonNull MediaRoute2Info route, in requestCreateController() argument 1016 new ControllerCreationRequest(requestId, managerRequestId, route, controller); in requestCreateController() 1022 controllerHints = listener.onGetControllerHints(route); in requestCreateController() 1039 route, in requestCreateController() [all …]
|
D | MediaRoute2ProviderInfo.java | 78 MediaRoute2Info route = mRoutes.valueAt(i); in isValid() local 79 if (route == null || !route.isValid()) { in isValid() 190 MediaRoute2Info route = mRoutes.valueAt(i); in setSystemRouteProvider() local 191 if (route.isSystemRoute() != isSystem) { in setSystemRouteProvider() 192 mRoutes.setValueAt(i, new MediaRoute2Info.Builder(route) in setSystemRouteProvider() 204 public Builder addRoute(@NonNull MediaRoute2Info route) { in addRoute() argument 205 Objects.requireNonNull(route, "route must not be null"); in addRoute() 207 if (mRoutes.containsKey(route.getOriginalId())) { in addRoute() 211 mRoutes.put(route.getOriginalId(), in addRoute() 212 new MediaRoute2Info.Builder(route).setProviderId(mUniqueId).build()); in addRoute() [all …]
|
D | IMediaRouterService.aidl | 64 void setRouteVolumeWithRouter2(IMediaRouter2 router, in MediaRoute2Info route, int volume); in setRouteVolumeWithRouter2() argument 67 in RoutingSessionInfo oldSession, in MediaRoute2Info route, in requestCreateSessionWithRouter2() argument 69 void selectRouteWithRouter2(IMediaRouter2 router, String sessionId, in MediaRoute2Info route); in selectRouteWithRouter2() argument 70 void deselectRouteWithRouter2(IMediaRouter2 router, String sessionId, in MediaRoute2Info route); in deselectRouteWithRouter2() argument 72 in MediaRoute2Info route); in transferToRouteWithRouter2() argument 84 in MediaRoute2Info route, int volume); in setRouteVolumeWithManager() argument 88 in RoutingSessionInfo oldSession, in @nullable MediaRoute2Info route, in requestCreateSessionWithManager() argument 91 String sessionId, in MediaRoute2Info route); in selectRouteWithManager() argument 93 String sessionId, in MediaRoute2Info route); in deselectRouteWithManager() argument 96 String sessionId, in MediaRoute2Info route, in transferToRouteWithManager() argument
|
/frameworks/native/libs/bufferstreams/examples/app/java/com/android/graphics/bufferstreamsdemoapp/ |
D | MainActivity.kt | 52 enum class BufferDemoScreen(val route: String, @StringRes val title: Int) { constant in com.android.graphics.bufferstreamsdemoapp.BufferDemoScreen 53 Start(route = "start", title = R.string.start), 54 Demo1(route = "demo1", title = R.string.demo1), 55 Demo2(route = "demo2", title = R.string.demo2), 56 Demo3(route = "demo3", title = R.string.demo3); 59 fun findByRoute(route: String): BufferDemoScreen { in findByRoute() 60 return values().find { it.route == route }!! in findByRoute() 73 backStackEntry?.destination?.route ?: BufferDemoScreen.Start.route) in BufferDemosApp() 84 startDestination = BufferDemoScreen.Start.route, in BufferDemosApp() 86 composable(route = BufferDemoScreen.Start.route) { in BufferDemosApp() [all …]
|
/frameworks/base/packages/CredentialManager/wear/src/com/android/credentialmanager/ui/ |
D | Navigation.kt | 22 navigateToAsRoot(Screen.Loading.route) in NavController() 26 navigateToAsRoot(Screen.SinglePasswordScreen.route) in NavController() 30 navigateToAsRoot(Screen.SinglePasskeyScreen.route) in navigateToSinglePasskeyScreen() 34 navigateToAsRoot(Screen.SignInWithProviderScreen.route) in navigateToSignInWithProviderScreen() 38 navigateToAsRoot(Screen.MultipleCredentialsScreenFold.route) in NavController() 42 navigateToAsRoot(Screen.MultipleCredentialsScreenFlatten.route) in NavController() 45 fun NavController.navigateToAsRoot(route: String) { in NavController() 47 navigate(route) in NavController()
|
D | WearApp.kt | 65 startDestination = Screen.Loading.route, in WearApp() 69 composable(Screen.Loading.route) { in WearApp() 72 scrollable(Screen.SinglePasswordScreen.route) { in WearApp() 80 scrollable(Screen.SinglePasskeyScreen.route) { in WearApp() 88 scrollable(Screen.SignInWithProviderScreen.route) { in WearApp() 96 scrollable(Screen.MultipleCredentialsScreenFold.route) { in WearApp() 104 scrollable(Screen.MultipleCredentialsScreenFlatten.route) { in WearApp() 118 if (navController.currentDestination?.route != Screen.Loading.route) { in WearApp()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | RouterInfoMediaManager.java | 141 protected void transferToRoute(@NonNull MediaRoute2Info route) { in transferToRoute() argument 142 mRouter.transferTo(route); in transferToRoute() 146 protected void selectRoute(@NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info) { in selectRoute() argument 149 controller.selectRoute(route); in selectRoute() 154 protected void deselectRoute(@NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info) { in deselectRoute() argument 157 controller.deselectRoute(route); in deselectRoute() 180 .filter(route -> !selectedRouteIds.contains(route.getId())) in getSelectableRoutes() 213 protected void setRouteVolume(@NonNull MediaRoute2Info route, int volume) { in setRouteVolume() argument 214 mRouter.setRouteVolume(route, volume); in setRouteVolume() 270 .forEach(route -> transferableRoutes.put(route.getId(), route)); in getTransferableRoutes() [all …]
|
D | InfoMediaManager.java | 240 protected abstract void transferToRoute(@NonNull MediaRoute2Info route); in transferToRoute() argument 243 @NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info); in selectRoute() 246 @NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info); in deselectRoute() 262 protected abstract void setRouteVolume(@NonNull MediaRoute2Info route, int volume); in setRouteVolume() argument 510 for (MediaRoute2Info route : getSelectableRoutes(info)) { in getSelectableMediaDevices() 513 mContext, route, mPreferenceItemMap.get(route.getId()))); in getSelectableMediaDevices() 527 for (MediaRoute2Info route : getDeselectableRoutes(info)) { in getDeselectableMediaDevices() 530 mContext, route, mPreferenceItemMap.get(route.getId()))); in getDeselectableMediaDevices() 531 Log.d(TAG, route.getName() + " is deselectable for " + mPackageName); in getDeselectableMediaDevices() 545 for (MediaRoute2Info route : getSelectedRoutes(info)) { in getSelectedMediaDevices() [all …]
|
D | ManagerInfoMediaManager.java | 93 protected void transferToRoute(@NonNull MediaRoute2Info route) { in transferToRoute() argument 94 mRouterManager.transfer(mPackageName, route, mUserHandle); in transferToRoute() 98 protected void selectRoute(@NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info) { in selectRoute() argument 99 mRouterManager.selectRoute(info, route); in selectRoute() 103 protected void deselectRoute(@NonNull MediaRoute2Info route, @NonNull RoutingSessionInfo info) { in deselectRoute() argument 104 mRouterManager.deselectRoute(info, route); in deselectRoute() 136 protected void setRouteVolume(@NonNull MediaRoute2Info route, int volume) { in setRouteVolume() argument 137 mRouterManager.setRouteVolume(route, volume); in setRouteVolume() 218 public void onTransferFailed(RoutingSessionInfo session, MediaRoute2Info route) {} in onTransferFailed() argument
|
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/ |
D | StubMediaRoute2ProviderService.java | 150 public void addRoute(@NonNull MediaRoute2Info route) { in addRoute() argument 151 addRoutes(Collections.singletonList(route)); in addRoute() 161 for (MediaRoute2Info route : routes) { in addRoutes() 162 Objects.requireNonNull(route, "Route must not be null"); in addRoutes() 163 mRoutes.put(route.getOriginalId(), route); in addRoutes() local 182 MediaRoute2Info route = mRoutes.get(routeId); in removeRoutes() local 183 if (route != null) { in removeRoutes() 225 MediaRoute2Info route = mRoutes.get(routeId); in onSetRouteVolume() local 226 if (route == null) { in onSetRouteVolume() 229 volume = Math.max(0, Math.min(volume, route.getVolumeMax())); in onSetRouteVolume() [all …]
|
D | MediaRouter2ManagerTest.java | 314 for (MediaRoute2Info route : routes.values()) { in testRouteFeatures() 315 if (!route.isSystemRoute()) { in testRouteFeatures() 333 for (MediaRoute2Info route : routes.values()) { in testNoAllowedPackages_returnsZeroRoutes() 334 if (!route.isSystemRoute()) { in testNoAllowedPackages_returnsZeroRoutes() 351 for (MediaRoute2Info route : routes.values()) { in testAllowedPackages() 352 if (!route.isSystemRoute()) { in testAllowedPackages() 429 route -> TextUtils.equals(route.getClientPackageName(), null)); in testGetRoutingSessions() 448 public void onTransferFailed(RoutingSessionInfo session, MediaRoute2Info route) { in testTransfer_unknownRoute_fail() 539 route -> TextUtils.equals(route.getClientPackageName(), mPackageName)); in testSelectAndTransferAndRelease() 554 route -> TextUtils.equals(route.getClientPackageName(), mPackageName)); in testSelectAndTransferAndRelease() [all …]
|
/frameworks/base/nfc-extras/java/com/android/nfc_extras/ |
D | NfcAdapterExtras.java | 169 public final int route; field in NfcAdapterExtras.CardEmulationRoute 177 public CardEmulationRoute(int route, NfcExecutionEnvironment nfcEe) { in CardEmulationRoute() argument 178 if (route == ROUTE_OFF && nfcEe != null) { in CardEmulationRoute() 180 } else if (route != ROUTE_OFF && nfcEe == null) { in CardEmulationRoute() 183 this.route = route; in CardEmulationRoute() 221 int route = sService.getCardEmulationRoute(mPackageName); in getCardEmulationRoute() local 222 return route == CardEmulationRoute.ROUTE_OFF ? in getCardEmulationRoute() 241 public void setCardEmulationRoute(CardEmulationRoute route) { in setCardEmulationRoute() argument 243 sService.setCardEmulationRoute(mPackageName, route.route); in setCardEmulationRoute()
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/compose/ |
D | NavControllerWrapper.kt | 28 fun navigate(route: String, popUpCurrent: Boolean = false) in <lambda>() 51 override fun navigate(route: String, popUpCurrent: Boolean) {} in <lambda>() 58 fun navigator(route: String?, popUpCurrent: Boolean = false): () -> Unit { in navigator() 59 if (route == null) return {} in navigator() 61 return { navController.navigate(route, popUpCurrent) } in navigator() 71 override fun navigate(route: String, popUpCurrent: Boolean) { in navigate() 72 navController.navigate(route) { in navigate()
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/debug/ |
D | DebugActivity.kt | 87 composable(route = ROUTE_ROOT) { RootPage() } in <lambda>() 88 composable(route = ROUTE_All_PAGES) { AllPages() } in <lambda>() 89 composable(route = ROUTE_All_ENTRIES) { AllEntries() } in <lambda>() 90 composable(route = ROUTE_All_SLICES) { AllSlices() } in <lambda>() 92 route = "$ROUTE_PAGE/{$PARAM_NAME_PAGE_ID}", in <lambda>() 98 route = "$ROUTE_ENTRY/{$PARAM_NAME_ENTRY_ID}", in <lambda>() 117 override val onClick = navigator(route = ROUTE_All_PAGES) in <lambda>() 121 override val onClick = navigator(route = ROUTE_All_ENTRIES) in <lambda>() 125 override val onClick = navigator(route = ROUTE_All_SLICES) in <lambda>() 140 override val onClick = navigator(route = ROUTE_PAGE + "/${page.id}") in <lambda>() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | MediaRouteChooserDialog.java | 124 public boolean onFilterRoute(MediaRouter.RouteInfo route) { in onFilterRoute() argument 125 return !route.isDefault() && route.isEnabled() && route.matchesTypes(mRouteTypes); in onFilterRoute() 217 MediaRouter.RouteInfo route = mRouter.getRouteAt(i); in update() local 218 if (onFilterRoute(route)) { in update() 219 add(route); in update() 242 MediaRouter.RouteInfo route = getItem(position); in getView() local 245 text1.setText(route.getName()); in getView() 246 CharSequence description = route.getDescription(); in getView() 254 view.setEnabled(route.isEnabled()); in getView() 260 MediaRouter.RouteInfo route = getItem(position); in onItemClick() local [all …]
|
D | MediaRouteDialogPresenter.java | 47 MediaRouter.RouteInfo route = router.getSelectedRoute(); in showDialogFragment() local 48 if (route.isDefault() || !route.matchesTypes(routeTypes)) { in showDialogFragment() 91 MediaRouter.RouteInfo route = router.getSelectedRoute(); in createDialog() local 92 if (route.isDefault() || !route.matchesTypes(routeTypes)) { in createDialog()
|
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/navscaffold/ |
D | WearNavScaffold.kt | 104 key(currentBackStackEntry?.destination?.route) { in <lambda>() 113 key(currentBackStackEntry?.destination?.route) { in <lambda>() 167 route: String, 173 composable(route, arguments, deepLinks) { in <lambda>() 191 route: String, 198 this@scrollable.composable(route, arguments, deepLinks) { in <lambda>() 217 route: String, 223 composable(route, arguments, deepLinks) { in <lambda>() 240 route: String, 246 composable(route, arguments, deepLinks) { in <lambda>() [all …]
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaRouter2ServiceImpl.java | 408 @NonNull MediaRoute2Info route, int volume) { in setRouteVolumeWithRouter2() argument 410 Objects.requireNonNull(route, "route must not be null"); in setRouteVolumeWithRouter2() 415 setRouteVolumeWithRouter2Locked(router, route, volume); in setRouteVolumeWithRouter2() 427 @NonNull MediaRoute2Info route, in requestCreateSessionWithRouter2() argument 431 Objects.requireNonNull(route, "route must not be null"); in requestCreateSessionWithRouter2() 441 route, in requestCreateSessionWithRouter2() 450 @NonNull String uniqueSessionId, @NonNull MediaRoute2Info route) { in selectRouteWithRouter2() argument 452 Objects.requireNonNull(route, "route must not be null"); in selectRouteWithRouter2() 460 selectRouteWithRouter2Locked(router, uniqueSessionId, route); in selectRouteWithRouter2() 468 @NonNull String uniqueSessionId, @NonNull MediaRoute2Info route) { in deselectRouteWithRouter2() argument [all …]
|
D | SystemMediaRoute2Provider.java | 338 for (MediaRoute2Info route : mBluetoothRouteController.getAllBluetoothRoutes()) { in generateDeviceRouteSelectedSessionInfo() 339 builder.addTransferableRoute(route.getId()); in generateDeviceRouteSelectedSessionInfo() 343 for (MediaRoute2Info route : mDeviceRouteController.getAvailableRoutes()) { in generateDeviceRouteSelectedSessionInfo() 344 if (!TextUtils.equals(selectedDeviceRoute.getId(), route.getId())) { in generateDeviceRouteSelectedSessionInfo() 345 builder.addTransferableRoute(route.getId()); in generateDeviceRouteSelectedSessionInfo() 367 for (MediaRoute2Info route : deviceRoutes) { in updateProviderState() 368 builder.addRoute(route); in updateProviderState() 375 for (MediaRoute2Info route : mBluetoothRouteController.getAllBluetoothRoutes()) { in updateProviderState() 376 builder.addRoute(route); in updateProviderState() 414 for (MediaRoute2Info route : mDeviceRouteController.getAvailableRoutes()) { in updateSessionInfosIfNeeded() [all …]
|
/frameworks/base/core/java/com/android/server/net/ |
D | NetlinkTracker.java | 149 public void routeUpdated(RouteInfo route) { in routeUpdated() argument 150 if (mInterfaceName.equals(route.getInterface())) { in routeUpdated() 151 maybeLog("routeUpdated", route); in routeUpdated() 154 changed = mLinkProperties.addRoute(route); in routeUpdated() 163 public void routeRemoved(RouteInfo route) { in routeRemoved() argument 164 if (mInterfaceName.equals(route.getInterface())) { in routeRemoved() 165 maybeLog("routeRemoved", route); in routeRemoved() 168 changed = mLinkProperties.removeRoute(route); in routeRemoved()
|