Home
last modified time | relevance | path

Searched refs:btDevice (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/audio/
DBtHelper.java121 BluetoothA2dpDeviceInfo(@NonNull BluetoothDevice btDevice) { in BluetoothA2dpDeviceInfo() argument
122 this(btDevice, -1, AudioSystem.AUDIO_FORMAT_DEFAULT); in BluetoothA2dpDeviceInfo()
125 BluetoothA2dpDeviceInfo(@NonNull BluetoothDevice btDevice, int volume, int codec) { in BluetoothA2dpDeviceInfo() argument
126 mBtDevice = btDevice; in BluetoothA2dpDeviceInfo()
247 BluetoothDevice btDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in receiveBtEvent() local
248 setBtScoActiveDevice(btDevice); in receiveBtEvent()
443 final BluetoothDevice btDevice = deviceList.get(0); in onA2dpProfileConnected() local
444 final @BluetoothProfile.BtProfileState int state = mA2dp.getConnectionState(btDevice); in onA2dpProfileConnected()
446 state, new BluetoothA2dpDeviceInfo(btDevice)); in onA2dpProfileConnected()
454 final BluetoothDevice btDevice = deviceList.get(0); in onA2dpSinkProfileConnected() local
[all …]
DAudioDeviceInventory.java152 final BluetoothDevice btDevice = btInfo.getBtDevice(); in onSetA2dpSinkConnectionState() local
155 Log.d(TAG, "onSetA2dpSinkConnectionState btDevice=" + btDevice + " state=" in onSetA2dpSinkConnectionState()
156 + state + " is dock=" + btDevice.isBluetoothDock() + " vol=" + a2dpVolume); in onSetA2dpSinkConnectionState()
158 String address = btDevice.getAddress(); in onSetA2dpSinkConnectionState()
170 btDevice.getAddress()); in onSetA2dpSinkConnectionState()
175 if (btDevice.isBluetoothDock()) { in onSetA2dpSinkConnectionState()
188 if (btDevice.isBluetoothDock()) { in onSetA2dpSinkConnectionState()
207 makeA2dpDeviceAvailable(address, BtHelper.getName(btDevice), in onSetA2dpSinkConnectionState()
215 final BluetoothDevice btDevice = btInfo.getBtDevice(); in onSetA2dpSourceConnectionState() local
217 Log.d(TAG, "onSetA2dpSourceConnectionState btDevice=" + btDevice + " state=" in onSetA2dpSourceConnectionState()
[all …]
DAudioDeviceBroker.java573 /*package*/ boolean hasScheduledA2dpSinkConnectionState(BluetoothDevice btDevice) { in hasScheduledA2dpSinkConnectionState() argument
575 new BtHelper.BluetoothA2dpDeviceInfo(btDevice)); in hasScheduledA2dpSinkConnectionState()
735 final BluetoothDevice btDevice = (BluetoothDevice) msg.obj; in handleMessage() local
737 a2dpCodec = mBtHelper.getA2dpCodec(btDevice); in handleMessage()
739 new BtHelper.BluetoothA2dpDeviceInfo(btDevice, -1, a2dpCodec), in handleMessage()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DBluetoothMediaManager.java309 for (BluetoothDevice btDevice : activeDevices) { in findActiveHearingAidDevice()
310 if (btDevice != null) { in findActiveHearingAidDevice()
311 return findMediaDevice(MediaDeviceUtils.getId(btDevice)); in findActiveHearingAidDevice()
/frameworks/base/services/core/java/com/android/server/media/
DMediaRouterService.java431 BluetoothDevice btDevice; in restoreBluetoothA2dp() local
434 btDevice = mActiveBluetoothDevice; in restoreBluetoothA2dp()
437 if (btDevice != null) { in restoreBluetoothA2dp()
718 BluetoothDevice btDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); in onReceive() local
720 mActiveBluetoothDevice = btDevice; in onReceive()
721 mGlobalBluetoothA2dpOn = btDevice != null; in onReceive()