Home
last modified time | relevance | path

Searched refs:BluetoothHapPresetInfo (Results 1 – 14 of 14) sorted by relevance

/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothHapPresetInfo.java32 public final class BluetoothHapPresetInfo implements Parcelable { class
46 /*package*/ BluetoothHapPresetInfo( in BluetoothHapPresetInfo() method in BluetoothHapPresetInfo
59 private BluetoothHapPresetInfo(@NonNull Parcel in) { in BluetoothHapPresetInfo() method in BluetoothHapPresetInfo
103 public static final @NonNull Creator<BluetoothHapPresetInfo> CREATOR =
104 new Creator<BluetoothHapPresetInfo>() {
105 public BluetoothHapPresetInfo createFromParcel(@NonNull Parcel in) {
106 return new BluetoothHapPresetInfo(in);
109 public BluetoothHapPresetInfo[] newArray(int size) {
110 return new BluetoothHapPresetInfo[size];
191 public @NonNull BluetoothHapPresetInfo build() { in build()
[all …]
DBluetoothHapClient.java177 @NonNull List<BluetoothHapPresetInfo> presetInfoList, in onPresetInfoChanged()
279 @NonNull List<BluetoothHapPresetInfo> presetInfoList,
904 public @Nullable BluetoothHapPresetInfo getActivePresetInfo(@NonNull BluetoothDevice device) { in getActivePresetInfo()
1135 public BluetoothHapPresetInfo getPresetInfo(@NonNull BluetoothDevice device, int presetIndex) { in getPresetInfo()
1164 public @NonNull List<BluetoothHapPresetInfo> getAllPresetInfo(@NonNull BluetoothDevice device) { in getAllPresetInfo()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hap/
DHapClientService.java28 import android.bluetooth.BluetoothHapPresetInfo;
81 private final Map<BluetoothDevice, List<BluetoothHapPresetInfo>> mPresetsMap = new HashMap<>();
555 public @Nullable BluetoothHapPresetInfo getActivePresetInfo(BluetoothDevice device) { in getActivePresetInfo()
559 List<BluetoothHapPresetInfo> current_presets = mPresetsMap.get(device); in getActivePresetInfo()
561 for (BluetoothHapPresetInfo preset : current_presets) { in getActivePresetInfo()
678 public @Nullable BluetoothHapPresetInfo getPresetInfo(BluetoothDevice device, int presetIndex) { in getPresetInfo()
679 BluetoothHapPresetInfo defaultValue = null; in getPresetInfo()
688 List<BluetoothHapPresetInfo> current_presets = mPresetsMap.get(device); in getPresetInfo()
690 for (BluetoothHapPresetInfo preset : current_presets) { in getPresetInfo()
706 public List<BluetoothHapPresetInfo> getAllPresetInfo(BluetoothDevice device) { in getAllPresetInfo()
[all …]
DHapClientNativeInterface.java22 import android.bluetooth.BluetoothHapPresetInfo;
287 void onPresetInfo(byte[] address, int infoReason, BluetoothHapPresetInfo[] presets) { in onPresetInfo()
299 void onGroupPresetInfo(int groupId, int infoReason, BluetoothHapPresetInfo[] presets) { in onGroupPresetInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsHearingAidsPresetsControllerTest.java36 import android.bluetooth.BluetoothHapPresetInfo;
222 BluetoothHapPresetInfo info = getTestPresetInfo(); in refresh_validPresetInfo_preferenceEnabled()
233 BluetoothHapPresetInfo info = getTestPresetInfo(); in refresh_invalidActivePresetIndex_summaryIsNull()
245 BluetoothHapPresetInfo info = getTestPresetInfo(); in refresh_validActivePresetIndex_summaryIsNotNull()
265 private BluetoothHapPresetInfo getTestPresetInfo() { in getTestPresetInfo()
266 BluetoothHapPresetInfo info = mock(BluetoothHapPresetInfo.class); in getTestPresetInfo()
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/
DIBluetoothHapClient.aidl21 import android.bluetooth.BluetoothHapPresetInfo;
46BluetoothHapPresetInfo getActivePresetInfo(in BluetoothDevice device, in AttributionSource attribu… in getActivePresetInfo()
60BluetoothHapPresetInfo getPresetInfo(in BluetoothDevice device, int presetIndex, in AttributionSou… in getPresetInfo()
62 …List<BluetoothHapPresetInfo> getAllPresetInfo(in BluetoothDevice device, in AttributionSource attr… in getAllPresetInfo()
DIBluetoothHapClientCallback.aidl20 import android.bluetooth.BluetoothHapPresetInfo;
34 in List<BluetoothHapPresetInfo> presetInfoList, in onPresetInfoChanged()
DBluetoothHapPresetInfo.aidl20 parcelable BluetoothHapPresetInfo;
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/
DHapClientNativeInterfaceTest.java24 import android.bluetooth.BluetoothHapPresetInfo;
154 BluetoothHapPresetInfo[] presets = { in onPresetInfo()
155 new BluetoothHapPresetInfo.Builder(0x01, "onPresetInfo") in onPresetInfo()
174 BluetoothHapPresetInfo[] presets = { in onGroupPresetInfo()
175 new BluetoothHapPresetInfo.Builder(0x01, "onPresetInfo") in onGroupPresetInfo()
DHapClientTest.java48 import android.bluetooth.BluetoothHapPresetInfo;
159 .onPresetInfo(any(byte[].class), anyInt(), any(BluetoothHapPresetInfo[].class)); in setUp()
631 List<BluetoothHapPresetInfo> presetList = in testGetPresetInfoAndActivePresetInfo()
634 BluetoothHapPresetInfo presetInfo = in testGetPresetInfoAndActivePresetInfo()
649 BluetoothHapPresetInfo info = in testGetPresetInfoAndActivePresetInfo()
804 BluetoothHapPresetInfo[] info = { in testStackEventOnPresetInfo()
805 new BluetoothHapPresetInfo.Builder(0x01, "OneChangedToUnavailable") in testStackEventOnPresetInfo()
814 ArgumentCaptor<List<BluetoothHapPresetInfo>> presetsCaptor = in testStackEventOnPresetInfo()
826 List<BluetoothHapPresetInfo> presets = presetsCaptor.getValue(); in testStackEventOnPresetInfo()
829 Optional<BluetoothHapPresetInfo> preset = in testStackEventOnPresetInfo()
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDetailsHearingAidsPresetsController.java25 import android.bluetooth.BluetoothHapPresetInfo;
225 @NonNull List<BluetoothHapPresetInfo> presetInfoList, int reason) { in onPresetInfoChanged()
230 for (BluetoothHapPresetInfo info: presetInfoList) { in onPresetInfoChanged()
275 List<BluetoothHapPresetInfo> infoList = mHapClientProfile.getAllPresetInfo( in loadAllPresetInfo()
/packages/modules/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/
DLeAudioDeviceStateWrapper.java21 import android.bluetooth.BluetoothHapPresetInfo;
60 public MutableLiveData<List<BluetoothHapPresetInfo>> hapPresetsMutable =
DBluetoothProxy.java688 List<BluetoothHapPresetInfo> presetInfoList, in initProfiles()
1350 BluetoothHapPresetInfo new_preset = null; in hapReadPresetInfo()
1360 (BluetoothHapPresetInfo) in hapReadPresetInfo()
1379 if (current_presets == null) current_presets = new ArrayList<BluetoothHapPresetInfo>(); in hapReadPresetInfo()
1382 ListIterator<BluetoothHapPresetInfo> iter = current_presets.listIterator(); in hapReadPresetInfo()
/packages/modules/Bluetooth/framework/api/
Dsystem-current.txt322 …ifest.permission.BLUETOOTH_PRIVILEGED}) public android.bluetooth.BluetoothHapPresetInfo getActiveP…
323 …n.BLUETOOTH_PRIVILEGED}) public java.util.List<android.bluetooth.BluetoothHapPresetInfo> getAllPre…
330 …ifest.permission.BLUETOOTH_PRIVILEGED}) public android.bluetooth.BluetoothHapPresetInfo getPresetI…
355 …bluetooth.BluetoothDevice, @NonNull java.util.List<android.bluetooth.BluetoothHapPresetInfo>, int);
363 public final class BluetoothHapPresetInfo implements android.os.Parcelable {
370 …ublic static final android.os.Parcelable.Creator<android.bluetooth.BluetoothHapPresetInfo> CREATOR;