Loading packages/SettingsLib/src/com/android/settingslib/bluetooth/A2dpProfile.java +5 −0 Original line number Diff line number Diff line Loading @@ -89,6 +89,11 @@ public class A2dpProfile implements LocalBluetoothProfile { return mIsProfileReady; } @Override public int getProfileId() { return BluetoothProfile.A2DP; } A2dpProfile(Context context, LocalBluetoothAdapter adapter, CachedBluetoothDeviceManager deviceManager, LocalBluetoothProfileManager profileManager) { Loading packages/SettingsLib/src/com/android/settingslib/bluetooth/A2dpSinkProfile.java +5 −0 Original line number Diff line number Diff line Loading @@ -85,6 +85,11 @@ final class A2dpSinkProfile implements LocalBluetoothProfile { return mIsProfileReady; } @Override public int getProfileId() { return BluetoothProfile.A2DP_SINK; } A2dpSinkProfile(Context context, LocalBluetoothAdapter adapter, CachedBluetoothDeviceManager deviceManager, LocalBluetoothProfileManager profileManager) { Loading packages/SettingsLib/src/com/android/settingslib/bluetooth/BluetoothCallback.java +3 −0 Original line number Diff line number Diff line Loading @@ -30,4 +30,7 @@ public interface BluetoothCallback { void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state); void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile); void onAudioModeChanged(); default void onProfileConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state, int bluetoothProfile) { } } packages/SettingsLib/src/com/android/settingslib/bluetooth/BluetoothEventManager.java +9 −0 Original line number Diff line number Diff line Loading @@ -497,4 +497,13 @@ public class BluetoothEventManager { } } } void dispatchProfileConnectionStateChanged(CachedBluetoothDevice device, int state, int bluetoothProfile) { synchronized (mCallbacks) { for (BluetoothCallback callback : mCallbacks) { callback.onProfileConnectionStateChanged(device, state, bluetoothProfile); } } } } packages/SettingsLib/src/com/android/settingslib/bluetooth/HeadsetProfile.java +5 −0 Original line number Diff line number Diff line Loading @@ -92,6 +92,11 @@ public class HeadsetProfile implements LocalBluetoothProfile { return mIsProfileReady; } @Override public int getProfileId() { return BluetoothProfile.HEADSET; } HeadsetProfile(Context context, LocalBluetoothAdapter adapter, CachedBluetoothDeviceManager deviceManager, LocalBluetoothProfileManager profileManager) { Loading Loading
packages/SettingsLib/src/com/android/settingslib/bluetooth/A2dpProfile.java +5 −0 Original line number Diff line number Diff line Loading @@ -89,6 +89,11 @@ public class A2dpProfile implements LocalBluetoothProfile { return mIsProfileReady; } @Override public int getProfileId() { return BluetoothProfile.A2DP; } A2dpProfile(Context context, LocalBluetoothAdapter adapter, CachedBluetoothDeviceManager deviceManager, LocalBluetoothProfileManager profileManager) { Loading
packages/SettingsLib/src/com/android/settingslib/bluetooth/A2dpSinkProfile.java +5 −0 Original line number Diff line number Diff line Loading @@ -85,6 +85,11 @@ final class A2dpSinkProfile implements LocalBluetoothProfile { return mIsProfileReady; } @Override public int getProfileId() { return BluetoothProfile.A2DP_SINK; } A2dpSinkProfile(Context context, LocalBluetoothAdapter adapter, CachedBluetoothDeviceManager deviceManager, LocalBluetoothProfileManager profileManager) { Loading
packages/SettingsLib/src/com/android/settingslib/bluetooth/BluetoothCallback.java +3 −0 Original line number Diff line number Diff line Loading @@ -30,4 +30,7 @@ public interface BluetoothCallback { void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state); void onActiveDeviceChanged(CachedBluetoothDevice activeDevice, int bluetoothProfile); void onAudioModeChanged(); default void onProfileConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state, int bluetoothProfile) { } }
packages/SettingsLib/src/com/android/settingslib/bluetooth/BluetoothEventManager.java +9 −0 Original line number Diff line number Diff line Loading @@ -497,4 +497,13 @@ public class BluetoothEventManager { } } } void dispatchProfileConnectionStateChanged(CachedBluetoothDevice device, int state, int bluetoothProfile) { synchronized (mCallbacks) { for (BluetoothCallback callback : mCallbacks) { callback.onProfileConnectionStateChanged(device, state, bluetoothProfile); } } } }
packages/SettingsLib/src/com/android/settingslib/bluetooth/HeadsetProfile.java +5 −0 Original line number Diff line number Diff line Loading @@ -92,6 +92,11 @@ public class HeadsetProfile implements LocalBluetoothProfile { return mIsProfileReady; } @Override public int getProfileId() { return BluetoothProfile.HEADSET; } HeadsetProfile(Context context, LocalBluetoothAdapter adapter, CachedBluetoothDeviceManager deviceManager, LocalBluetoothProfileManager profileManager) { Loading