Align with Bluetooth metadata API changes
* Align with the changes of Bluetooth metadata APIs. * Move metadata utils from Settings to SettingsLib. Bug: 124448651 Test: make RunSettingsRoboTests Change-Id: Ic9ad91536ef3ff6807a08bbffa3dd796ef1ad523
This commit is contained in:
@@ -123,9 +123,9 @@ public class BluetoothDetailsHeaderControllerTest extends BluetoothDetailsContro
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isAvailable_unthetheredHeadset_returnFalse() {
|
||||
public void isAvailable_untetheredHeadset_returnFalse() {
|
||||
when(mBluetoothDevice.getMetadata(
|
||||
BluetoothDevice.METADATA_IS_UNTHETHERED_HEADSET)).thenReturn("true");
|
||||
BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET)).thenReturn("true".getBytes());
|
||||
|
||||
assertThat(mController.isAvailable()).isFalse();
|
||||
}
|
||||
|
Reference in New Issue
Block a user