diff --git a/android/app/src/com/android/bluetooth/hap/HapClientService.java b/android/app/src/com/android/bluetooth/hap/HapClientService.java index d8104115cc2725dc693125b440efc54e6d5366a1..8fbbedbc7934a82fc45b4452138f73201cc7f8ef 100644 --- a/android/app/src/com/android/bluetooth/hap/HapClientService.java +++ b/android/app/src/com/android/bluetooth/hap/HapClientService.java @@ -696,6 +696,12 @@ public class HapClientService extends ProfileService { BluetoothHapPresetInfo defaultValue = null; if (presetIndex == BluetoothHapClient.PRESET_INDEX_UNAVAILABLE) return defaultValue; + if (Utils.isPtsTestMode()) { + /* We want native to be called for PTS testing even we have all + * the data in the cache here + */ + mHapClientNativeInterface.getPresetInfo(device, presetIndex); + } List<BluetoothHapPresetInfo> current_presets = mPresetsMap.get(device); if (current_presets != null) { for (BluetoothHapPresetInfo preset : current_presets) {