Home
last modified time | relevance | path

Searched refs:AudioRoute (Results 1 – 8 of 8) sorted by relevance

/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioRouteController.java19 import static com.android.server.telecom.AudioRoute.BT_AUDIO_ROUTE_TYPES;
20 import static com.android.server.telecom.AudioRoute.TYPE_INVALID;
21 import static com.android.server.telecom.AudioRoute.TYPE_SPEAKER;
66 private static final AudioRoute DUMMY_ROUTE = new AudioRoute(TYPE_INVALID, null, null);
70 ROUTE_MAP.put(AudioRoute.TYPE_EARPIECE, CallAudioState.ROUTE_EARPIECE); in ROUTE_MAP.put()
71 ROUTE_MAP.put(AudioRoute.TYPE_WIRED, CallAudioState.ROUTE_WIRED_HEADSET); in ROUTE_MAP.put()
72 ROUTE_MAP.put(AudioRoute.TYPE_SPEAKER, CallAudioState.ROUTE_SPEAKER); in ROUTE_MAP.put()
73 ROUTE_MAP.put(AudioRoute.TYPE_DOCK, CallAudioState.ROUTE_SPEAKER); in ROUTE_MAP.put()
74 ROUTE_MAP.put(AudioRoute.TYPE_BLUETOOTH_SCO, CallAudioState.ROUTE_BLUETOOTH); in ROUTE_MAP.put()
75 ROUTE_MAP.put(AudioRoute.TYPE_BLUETOOTH_HA, CallAudioState.ROUTE_BLUETOOTH); in ROUTE_MAP.put()
[all …]
DPendingAudioRoute.java47 private AudioRoute mOrigRoute;
52 private AudioRoute mDestRoute;
58 private @AudioRoute.AudioRouteType int mCommunicationDeviceType = AudioRoute.TYPE_INVALID;
67 mCommunicationDeviceType = AudioRoute.TYPE_INVALID; in PendingAudioRoute()
70 void setOrigRoute(boolean active, AudioRoute origRoute) { in setOrigRoute()
75 AudioRoute getOrigRoute() { in getOrigRoute()
79 void setDestRoute(boolean active, AudioRoute destRoute, BluetoothDevice device, in setDestRoute()
87 public AudioRoute getDestRoute() { in getDestRoute()
130 public @AudioRoute.AudioRouteType int getCommunicationDeviceType() { in getCommunicationDeviceType()
135 @AudioRoute.AudioRouteType int communicationDeviceType) { in setCommunicationDeviceType()
[all …]
DAudioRoute.java50 public class AudioRoute { class
54 private CompletableFuture<AudioRoute> mAudioRouteFuture;
55 public AudioRoute create(@AudioRouteType int type, String bluetoothAddress, in create()
104 mAudioRouteFuture.complete(new AudioRoute(type, bluetoothAddress, routeInfo)); in createRetry()
146 AudioRoute.TYPE_BLUETOOTH_SCO,
147 AudioRoute.TYPE_BLUETOOTH_HA,
148 AudioRoute.TYPE_BLUETOOTH_LE
318 public AudioRoute(@AudioRouteType int type, String bluetoothAddress, AudioDeviceInfo info) { in AudioRoute() method in AudioRoute
329 if (!(obj instanceof AudioRoute otherRoute)) { in equals()
355 AudioRoute currentRoute = pendingAudioRoute.getOrigRoute(); in connectBtAudio()
[all …]
DCallAudioCommunicationDeviceTracker.java19 import static com.android.server.telecom.AudioRoute.BT_AUDIO_DEVICE_INFO_TYPES;
DCallsManager.java661 new AudioRoute.Factory(), wiredHeadsetManager, mBluetoothRouteManager, in CallsManager()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioRouteControllerTest.java71 import com.android.server.telecom.AudioRoute;
112 private AudioRoute mEarpieceRoute;
113 private AudioRoute mSpeakerRoute;
123 AudioRoute.Factory mAudioRouteFactory = new AudioRoute.Factory() {
125 public AudioRoute create(@AudioRoute.AudioRouteType int type, String bluetoothAddress,
127 return new AudioRoute(type, bluetoothAddress, mAudioDeviceInfo);
169 mEarpieceRoute = new AudioRoute(AudioRoute.TYPE_EARPIECE, null, null); in setUp()
170 mSpeakerRoute = new AudioRoute(AudioRoute.TYPE_SPEAKER, null, null); in setUp()
206 AudioRoute wiredHeadsetRoute = new AudioRoute(AudioRoute.TYPE_WIRED, null, null); in testInitializeWithWiredHeadset()
223 assertEquals(AudioRoute.TYPE_EARPIECE, pendingRoute.getDestRoute().getType()); in testNormalCallRouteToEarpiece()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothStateReceiver.java46 import com.android.server.telecom.AudioRoute;
132 AudioRoute btRoute = audioRouteController.getBluetoothRoute( in handleAudioStateChanged()
133 AudioRoute.TYPE_BLUETOOTH_SCO, device.getAddress()); in handleAudioStateChanged()
138 .setCommunicationDeviceType(AudioRoute.TYPE_BLUETOOTH_SCO); in handleAudioStateChanged()
178 @AudioRoute.AudioRouteType int audioRouteType; in handleConnectionStateChanged()
181 audioRouteType = AudioRoute.TYPE_BLUETOOTH_LE; in handleConnectionStateChanged()
184 audioRouteType = AudioRoute.TYPE_BLUETOOTH_HA; in handleConnectionStateChanged()
187 audioRouteType = AudioRoute.TYPE_BLUETOOTH_SCO; in handleConnectionStateChanged()
220 @AudioRoute.AudioRouteType int audioRouteType; in handleActiveDeviceChanged()
223 audioRouteType = AudioRoute.TYPE_BLUETOOTH_LE; in handleActiveDeviceChanged()
[all …]
DBluetoothDeviceManager.java19 import static com.android.server.telecom.AudioRoute.TYPE_BLUETOOTH_HA;
20 import static com.android.server.telecom.AudioRoute.TYPE_BLUETOOTH_SCO;
44 import com.android.server.telecom.AudioRoute;
76 AudioRoute.TYPE_BLUETOOTH_SCO); in PROFILE_TO_AUDIO_ROUTE_MAP.put()
78 AudioRoute.TYPE_BLUETOOTH_LE); in PROFILE_TO_AUDIO_ROUTE_MAP.put()
239 Map<AudioRoute, BluetoothDevice> btRoutes = controller in handleAudioRefactoringServiceDisconnected()
241 List<Pair<AudioRoute, BluetoothDevice>> btRoutesToRemove = in handleAudioRefactoringServiceDisconnected()
243 for (AudioRoute route: btRoutes.keySet()) { in handleAudioRefactoringServiceDisconnected()
253 for (Pair<AudioRoute, BluetoothDevice> routeToRemove: in handleAudioRefactoringServiceDisconnected()
255 AudioRoute route = routeToRemove.first; in handleAudioRefactoringServiceDisconnected()
[all …]