Remove the function that not used in BluetoothCallback
Bug: 111811266 Test: Build pass Change-Id: Ib33ec31607931f5e67d5119cf9b0cb6b894794a0
This commit is contained in:
@@ -127,9 +127,6 @@ public abstract class BluetoothDeviceUpdater implements BluetoothCallback,
|
|||||||
forceUpdate();
|
forceUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onScanningStateChanged(boolean started) {}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDeviceAdded(CachedBluetoothDevice cachedDevice) {
|
public void onDeviceAdded(CachedBluetoothDevice cachedDevice) {
|
||||||
update(cachedDevice);
|
update(cachedDevice);
|
||||||
@@ -148,17 +145,6 @@ public abstract class BluetoothDeviceUpdater implements BluetoothCallback,
|
|||||||
update(cachedDevice);
|
update(cachedDevice);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) {}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onAudioModeChanged() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onProfileConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state,
|
public void onProfileConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state,
|
||||||
int bluetoothProfile) {
|
int bluetoothProfile) {
|
||||||
|
@@ -58,30 +58,6 @@ public final class BluetoothSummaryUpdater extends SummaryUpdater implements Blu
|
|||||||
notifyChangeIfNeeded();
|
notifyChangeIfNeeded();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onScanningStateChanged(boolean started) {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onDeviceAdded(CachedBluetoothDevice cachedDevice) {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onAudioModeChanged() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void register(boolean listening) {
|
public void register(boolean listening) {
|
||||||
if (mBluetoothAdapter == null) {
|
if (mBluetoothAdapter == null) {
|
||||||
|
@@ -244,9 +244,6 @@ public abstract class DeviceListPreferenceFragment extends
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onBluetoothStateChanged(int bluetoothState) {}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add bluetooth device preferences to {@code preferenceGroup} which satisfy the {@code filter}
|
* Add bluetooth device preferences to {@code preferenceGroup} which satisfy the {@code filter}
|
||||||
*
|
*
|
||||||
@@ -270,14 +267,6 @@ public abstract class DeviceListPreferenceFragment extends
|
|||||||
removeCachedPrefs(preferenceGroup);
|
removeCachedPrefs(preferenceGroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { }
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) { }
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onAudioModeChanged() { }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the key of the {@link PreferenceGroup} that contains the bluetooth devices
|
* Return the key of the {@link PreferenceGroup} that contains the bluetooth devices
|
||||||
*/
|
*/
|
||||||
|
@@ -28,7 +28,6 @@ import com.android.settings.bluetooth.Utils;
|
|||||||
import com.android.settings.core.BasePreferenceController;
|
import com.android.settings.core.BasePreferenceController;
|
||||||
import com.android.settings.dashboard.DashboardFragment;
|
import com.android.settings.dashboard.DashboardFragment;
|
||||||
import com.android.settingslib.bluetooth.BluetoothCallback;
|
import com.android.settingslib.bluetooth.BluetoothCallback;
|
||||||
import com.android.settingslib.bluetooth.CachedBluetoothDevice;
|
|
||||||
import com.android.settingslib.bluetooth.LocalBluetoothManager;
|
import com.android.settingslib.bluetooth.LocalBluetoothManager;
|
||||||
import com.android.settingslib.core.lifecycle.LifecycleObserver;
|
import com.android.settingslib.core.lifecycle.LifecycleObserver;
|
||||||
import com.android.settingslib.core.lifecycle.events.OnStart;
|
import com.android.settingslib.core.lifecycle.events.OnStart;
|
||||||
@@ -131,41 +130,6 @@ public class AvailableMediaDeviceGroupController extends BasePreferenceControlle
|
|||||||
mBluetoothDeviceUpdater = bluetoothDeviceUpdater;
|
mBluetoothDeviceUpdater = bluetoothDeviceUpdater;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onBluetoothStateChanged(int bluetoothState) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onScanningStateChanged(boolean started) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onDeviceAdded(CachedBluetoothDevice cachedDevice) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onAudioModeChanged() {
|
public void onAudioModeChanged() {
|
||||||
updateTitle();
|
updateTitle();
|
||||||
|
@@ -184,14 +184,6 @@ public abstract class AudioSwitchPreferenceController extends BasePreferenceCont
|
|||||||
unregister();
|
unregister();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Only concerned about whether the local adapter is connected to any profile of any device and
|
|
||||||
* are not really concerned about which profile.
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) {
|
public void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile) {
|
||||||
updateState(mPreference);
|
updateState(mPreference);
|
||||||
@@ -208,17 +200,6 @@ public abstract class AudioSwitchPreferenceController extends BasePreferenceCont
|
|||||||
updateState(mPreference);
|
updateState(mPreference);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onBluetoothStateChanged(int bluetoothState) {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The local Bluetooth adapter has started the remote device discovery process.
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public void onScanningStateChanged(boolean started) {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates a change in the bond state of a remote
|
* Indicates a change in the bond state of a remote
|
||||||
* device. For example, if a device is bonded (paired).
|
* device. For example, if a device is bonded (paired).
|
||||||
@@ -228,14 +209,6 @@ public abstract class AudioSwitchPreferenceController extends BasePreferenceCont
|
|||||||
updateState(mPreference);
|
updateState(mPreference);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onDeviceDeleted(CachedBluetoothDevice cachedDevice) {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onDeviceBondStateChanged(CachedBluetoothDevice cachedDevice, int bondState) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCallback(AudioSwitchCallback callback) {
|
public void setCallback(AudioSwitchCallback callback) {
|
||||||
mAudioSwitchPreferenceCallback = callback;
|
mAudioSwitchPreferenceCallback = callback;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user