commit | ee03851604aecedadfc1b57c3da5fd07fd1dedc5 | [log] [tgz] |
---|---|---|
author | hughchen <hughchen@google.com> | Tue Dec 10 14:52:34 2019 +0800 |
committer | hughchen <hughchen@google.com> | Thu Dec 12 10:29:45 2019 +0800 |
tree | 827af7e03257c39f2f362e7c57d2d4bed3addd29 | |
parent | 2dbc2db581e22bd79638e333c240c9ad81b70b28 [diff] |
Update Bluetooth api This CL is used to update Bluetooth api. - Use BluetoothProfile.CONNECTION_POLICY_ALLOWED instead of BluetoothProfile.PRIORITY_ON - Use BluetoothProfile.CONNECTION_POLICY_FORBIDDEN instead of BluetoothProfile.PRIORITY_OFF Fixes: 141582844 Test: manually Change-Id: I527813e38583a4e4a1489090e8a17c6bd50c3e81 Merged-In: I527813e38583a4e4a1489090e8a17c6bd50c3e81
diff --git a/tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsProfilesControllerTest.java b/tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsProfilesControllerTest.java index 57fd86b..9637884 100644 --- a/tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsProfilesControllerTest.java +++ b/tests/robotests/src/com/android/settings/bluetooth/BluetoothDetailsProfilesControllerTest.java
@@ -143,7 +143,8 @@ @Override public int getPreferred(BluetoothDevice device) { return isPreferred(device) ? - BluetoothProfile.PRIORITY_ON : BluetoothProfile.PRIORITY_OFF; + BluetoothProfile.CONNECTION_POLICY_ALLOWED + : BluetoothProfile.CONNECTION_POLICY_FORBIDDEN; } @Override