Introduce BluetoothAudioChannelModePreferenceCtrl

- Create new BluetoothAudioChannelModePreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I4abe87dd70be83c8b3cf2a3ad43b8856a01eadbb
This commit is contained in:
jeffreyhuang
2017-10-13 14:03:22 -07:00
parent 483dc97998
commit 2335b1fef4
4 changed files with 213 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ public class BluetoothCodecConfig {
public static final int BITS_PER_SAMPLE_NONE = 0;
public static final int CHANNEL_MODE_NONE = 0;
public static final int BITS_PER_SAMPLE_24 = 0x1 << 1;
public static final int CHANNEL_MODE_STEREO = 0x1 << 1;
public int getSampleRate() {
return 0;
@@ -42,4 +43,8 @@ public class BluetoothCodecConfig {
public int getBitsPerSample() {
return 0;
}
public int getChannelMode() {
return 0;
}
}