Skip to content
Snippets Groups Projects
Commit 2ace34e1 authored by Jason Hsu's avatar Jason Hsu Committed by Gerrit Code Review
Browse files

Merge "Remove unused private API" into main

parents e50a222b 3932a341
No related branches found
No related tags found
No related merge requests found
......@@ -867,38 +867,6 @@ public final class BluetoothHearingAid implements BluetoothProfile {
return defaultValue;
}
/**
* Get the side of the device.
*
* <p>TODO(b/231901542): Used by internal only to improve hearing aids experience in short-term.
* Need to change to formal call in next bluetooth release.
*
* @param device Bluetooth device.
* @return SIDE_LEFT or SIDE_RIGHT
*/
@RequiresLegacyBluetoothPermission
@RequiresBluetoothConnectPermission
@RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
private int getDeviceSideInternal(BluetoothDevice device) {
return getDeviceSide(device);
}
/**
* Get the mode of the device.
*
* <p>TODO(b/231901542): Used by internal only to improve hearing aids experience in short-term.
* Need to change to formal call in next bluetooth release.
*
* @param device Bluetooth device
* @return MODE_MONAURAL or MODE_BINAURAL
*/
@RequiresLegacyBluetoothPermission
@RequiresBluetoothConnectPermission
@RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
private int getDeviceModeInternal(BluetoothDevice device) {
return getDeviceMode(device);
}
private boolean isEnabled() {
if (mAdapter.getState() == BluetoothAdapter.STATE_ON) return true;
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment