diff options
author | Jack He <siyuanh@google.com> | 2018-01-03 12:13:26 -0800 |
---|---|---|
committer | Jack He <siyuanh@google.com> | 2018-01-05 14:51:40 -0800 |
commit | 05f4bc40743654ea501b18d70ee162a08b81b35c (patch) | |
tree | b5021558b1c6c1ae2564222c48869fb0a286cc13 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 4029fa6039a3305b093d8db0a24fb8e4dedd351a (diff) |
HFP: Add APIs for set and get active device (1/3)
1. Call BluetoothHeadset.setActiveDevice(BluetoothDevice device) to set
a connected HFP/HSP device as active.
2. Listen for BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED intent
that will contain the latest active device (in EXTRA_DEVICE field).
If the active device could not be changed, the EXTRA_DEVICE
field could be null.
3. If setActiveDevice() is NOT in-progress, BluetoothA2dp.getActiveDevice()
can be used. If setActiveDevice() is in-progress, the result is undefined.
4. BluetoothHeadset.setActiveDevice() could be called by some other parts of
the system, so interested parties should always listen for
BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED intents and prepared
for active device updates.
Bug: 68951996
Test: manual
Change-Id: I22ca639a04fed7bf17df59c405ddeda90dafb8ff
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions