Lines Matching refs:route
52 private final int route;
59 * @param route The current audio route being used.
72 public CallAudioState(boolean muted, int route, int supportedRouteMask) {
74 this.route = route;
81 route = state.getRoute();
89 route = state.getRoute();
109 "[AudioState isMuted: %b, route: %s, supportedRouteMask: %s]",
111 audioRouteToString(route),
123 * @return The current audio route being used.
126 return route;
137 * Converts the provided audio route into a human readable string representation.
139 * @param route to convert into a string.
141 * @return String representation of the provided audio route.
143 public static String audioRouteToString(int route) {
144 if (route == 0 || (route & ~ROUTE_ALL) != 0x0) {
149 if ((route & ROUTE_EARPIECE) == ROUTE_EARPIECE) {
152 if ((route & ROUTE_BLUETOOTH) == ROUTE_BLUETOOTH) {
155 if ((route & ROUTE_WIRED_HEADSET) == ROUTE_WIRED_HEADSET) {
158 if ((route & ROUTE_SPEAKER) == ROUTE_SPEAKER) {
174 int route = source.readInt();
176 return new CallAudioState(isMuted, route, supportedRouteMask);
199 destination.writeInt(route);