/packages/apps/Settings/tests/robotests/src/com/android/settings/development/bluetooth/ |
D | BluetoothCodecDialogPreferenceControllerTest.java | 68 private BluetoothA2dpConfigStore mBluetoothA2dpConfigStore; field in BluetoothCodecDialogPreferenceControllerTest 88 mBluetoothA2dpConfigStore = spy(new BluetoothA2dpConfigStore()); in setup() 91 mBluetoothA2dpConfigStore, mCallback); in setup() 144 verify(mBluetoothA2dpConfigStore).setCodecType( in writeConfigurationValues_selectDefault_setHighest() 160 verify(mBluetoothA2dpConfigStore, atLeastOnce()).setCodecType( in writeConfigurationValues_checkCodec() 164 verify(mBluetoothA2dpConfigStore).setCodecType(BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC); in writeConfigurationValues_checkCodec() 167 verify(mBluetoothA2dpConfigStore).setCodecType(BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX); in writeConfigurationValues_checkCodec() 170 verify(mBluetoothA2dpConfigStore).setCodecType( in writeConfigurationValues_checkCodec() 174 verify(mBluetoothA2dpConfigStore).setCodecType(BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC); in writeConfigurationValues_checkCodec() 177 verify(mBluetoothA2dpConfigStore).setCodecType( in writeConfigurationValues_checkCodec() [all …]
|
D | BluetoothCodecListPreferenceControllerTest.java | 71 private BluetoothA2dpConfigStore mBluetoothA2dpConfigStore; field in BluetoothCodecListPreferenceControllerTest 98 mBluetoothA2dpConfigStore = spy(new BluetoothA2dpConfigStore()); in setup() 102 mContext, mLifecycle, mBluetoothA2dpConfigStore, mCallback); in setup() 198 verify(mBluetoothA2dpConfigStore, times(2)).setCodecType(mCodecTypeSBC); in writeConfigurationValues_selectDefault() 212 verify(mBluetoothA2dpConfigStore, atLeastOnce()).setCodecType(mCodecTypeSBC); in writeConfigurationValues_checkCodec() 215 verify(mBluetoothA2dpConfigStore).setCodecType(mCodecTypeAAC); in writeConfigurationValues_checkCodec() 218 verify(mBluetoothA2dpConfigStore).setCodecType(mCodecTypeAPTX); in writeConfigurationValues_checkCodec() 221 verify(mBluetoothA2dpConfigStore).setCodecType(mCodecTypeLDAC); in writeConfigurationValues_checkCodec() 224 verify(mBluetoothA2dpConfigStore).setCodecType(mCodecTypeOPUS); in writeConfigurationValues_checkCodec() 238 verify(mBluetoothA2dpConfigStore, atLeastOnce()) in writeConfigurationValues_chooseHighestConfig() [all …]
|
D | BluetoothSampleRateDialogPreferenceControllerTest.java | 66 private BluetoothA2dpConfigStore mBluetoothA2dpConfigStore; field in BluetoothSampleRateDialogPreferenceControllerTest 82 mBluetoothA2dpConfigStore = spy(new BluetoothA2dpConfigStore()); in setup() 85 mBluetoothA2dpConfigStore)); in setup() 118 verify(mBluetoothA2dpConfigStore).setSampleRate(BluetoothCodecConfig.SAMPLE_RATE_88200); in writeConfigurationValues_selectDefault_setHighest() 124 verify(mBluetoothA2dpConfigStore).setSampleRate(BluetoothCodecConfig.SAMPLE_RATE_44100); in writeConfigurationValues_checkSampleRate() 127 verify(mBluetoothA2dpConfigStore).setSampleRate(BluetoothCodecConfig.SAMPLE_RATE_48000); in writeConfigurationValues_checkSampleRate() 130 verify(mBluetoothA2dpConfigStore).setSampleRate(BluetoothCodecConfig.SAMPLE_RATE_88200); in writeConfigurationValues_checkSampleRate() 133 verify(mBluetoothA2dpConfigStore).setSampleRate(BluetoothCodecConfig.SAMPLE_RATE_96000); in writeConfigurationValues_checkSampleRate()
|
D | AbstractBluetoothDialogPreferenceControllerTest.java | 70 private BluetoothA2dpConfigStore mBluetoothA2dpConfigStore; field in AbstractBluetoothDialogPreferenceControllerTest 87 mBluetoothA2dpConfigStore = spy(new BluetoothA2dpConfigStore()); in setup() 90 mBluetoothA2dpConfigStore)); in setup() 127 when(mBluetoothA2dpConfigStore.createCodecConfig()).thenReturn(mCodecConfigAAC); in onIndexUpdated_checkFlow() 223 verify(mBluetoothA2dpConfigStore).setCodecType(mCodecConfigAAC.getCodecType()); in onBluetoothServiceConnected_verifyBluetoothA2dpConfigStore() 224 verify(mBluetoothA2dpConfigStore).setSampleRate(mCodecConfigAAC.getSampleRate()); in onBluetoothServiceConnected_verifyBluetoothA2dpConfigStore() 225 verify(mBluetoothA2dpConfigStore).setBitsPerSample(mCodecConfigAAC.getBitsPerSample()); in onBluetoothServiceConnected_verifyBluetoothA2dpConfigStore() 226 verify(mBluetoothA2dpConfigStore).setChannelMode(mCodecConfigAAC.getChannelMode()); in onBluetoothServiceConnected_verifyBluetoothA2dpConfigStore() 227 verify(mBluetoothA2dpConfigStore).setCodecPriority(CODEC_PRIORITY_HIGHEST); in onBluetoothServiceConnected_verifyBluetoothA2dpConfigStore() 228 verify(mBluetoothA2dpConfigStore).setCodecSpecific1Value( in onBluetoothServiceConnected_verifyBluetoothA2dpConfigStore()
|
D | BluetoothQualityDialogPreferenceControllerTest.java | 64 private BluetoothA2dpConfigStore mBluetoothA2dpConfigStore; field in BluetoothQualityDialogPreferenceControllerTest 79 mBluetoothA2dpConfigStore = spy(new BluetoothA2dpConfigStore()); in setup() 82 mBluetoothA2dpConfigStore); in setup() 104 verify(mBluetoothA2dpConfigStore).setCodecSpecific1Value(1000); in writeConfigurationValues_checkSampleRate() 107 verify(mBluetoothA2dpConfigStore).setCodecSpecific1Value(1001); in writeConfigurationValues_checkSampleRate() 110 verify(mBluetoothA2dpConfigStore).setCodecSpecific1Value(1002); in writeConfigurationValues_checkSampleRate() 113 verify(mBluetoothA2dpConfigStore).setCodecSpecific1Value(1003); in writeConfigurationValues_checkSampleRate()
|
D | AbstractBluetoothListPreferenceControllerTest.java | 72 private BluetoothA2dpConfigStore mBluetoothA2dpConfigStore; field in AbstractBluetoothListPreferenceControllerTest 88 mBluetoothA2dpConfigStore = spy(new BluetoothA2dpConfigStore()); in setup() 93 mContext, mLifecycle, mBluetoothA2dpConfigStore)); in setup() 215 verify(mBluetoothA2dpConfigStore).setCodecType(mCodecConfigAAC.getExtendedCodecType()); in onBluetoothServiceConnected_verifyBluetoothA2dpConfigStore() 216 verify(mBluetoothA2dpConfigStore).setSampleRate(mCodecConfigAAC.getSampleRate()); in onBluetoothServiceConnected_verifyBluetoothA2dpConfigStore() 217 verify(mBluetoothA2dpConfigStore).setBitsPerSample(mCodecConfigAAC.getBitsPerSample()); in onBluetoothServiceConnected_verifyBluetoothA2dpConfigStore() 218 verify(mBluetoothA2dpConfigStore).setChannelMode(mCodecConfigAAC.getChannelMode()); in onBluetoothServiceConnected_verifyBluetoothA2dpConfigStore() 219 verify(mBluetoothA2dpConfigStore).setCodecPriority(CODEC_PRIORITY_HIGHEST); in onBluetoothServiceConnected_verifyBluetoothA2dpConfigStore() 220 verify(mBluetoothA2dpConfigStore) in onBluetoothServiceConnected_verifyBluetoothA2dpConfigStore()
|
D | BluetoothBitPerSampleDialogPreferenceControllerTest.java | 66 private BluetoothA2dpConfigStore mBluetoothA2dpConfigStore; field in BluetoothBitPerSampleDialogPreferenceControllerTest 81 mBluetoothA2dpConfigStore = spy(new BluetoothA2dpConfigStore()); in setup() 84 mBluetoothA2dpConfigStore)); in setup() 113 verify(mBluetoothA2dpConfigStore).setBitsPerSample(BluetoothCodecConfig.BITS_PER_SAMPLE_24); in writeConfigurationValues_selectDefault_setHighest() 119 verify(mBluetoothA2dpConfigStore).setBitsPerSample(BluetoothCodecConfig.BITS_PER_SAMPLE_16); in writeConfigurationValues_checkBitsPerSample() 122 verify(mBluetoothA2dpConfigStore).setBitsPerSample(BluetoothCodecConfig.BITS_PER_SAMPLE_24); in writeConfigurationValues_checkBitsPerSample() 125 verify(mBluetoothA2dpConfigStore).setBitsPerSample(BluetoothCodecConfig.BITS_PER_SAMPLE_32); in writeConfigurationValues_checkBitsPerSample()
|
D | BluetoothChannelModeDialogPreferenceControllerTest.java | 66 private BluetoothA2dpConfigStore mBluetoothA2dpConfigStore; field in BluetoothChannelModeDialogPreferenceControllerTest 81 mBluetoothA2dpConfigStore = spy(new BluetoothA2dpConfigStore()); in setup() 84 mBluetoothA2dpConfigStore); in setup() 113 verify(mBluetoothA2dpConfigStore).setChannelMode(BluetoothCodecConfig.CHANNEL_MODE_STEREO); in writeConfigurationValues_selectDefault_setHighest() 119 verify(mBluetoothA2dpConfigStore).setChannelMode(BluetoothCodecConfig.CHANNEL_MODE_MONO); in writeConfigurationValues_checkChannelMode() 122 verify(mBluetoothA2dpConfigStore).setChannelMode(BluetoothCodecConfig.CHANNEL_MODE_STEREO); in writeConfigurationValues_checkChannelMode()
|
D | BluetoothHDAudioPreferenceControllerTest.java | 69 private BluetoothA2dpConfigStore mBluetoothA2dpConfigStore; field in BluetoothHDAudioPreferenceControllerTest 81 mBluetoothA2dpConfigStore = spy(new BluetoothA2dpConfigStore()); in setup() 83 mBluetoothA2dpConfigStore, mCallback); in setup()
|
D | AbstractBluetoothPreferenceControllerTest.java | 45 private BluetoothA2dpConfigStore mBluetoothA2dpConfigStore; field in AbstractBluetoothPreferenceControllerTest 61 mBluetoothA2dpConfigStore)); in setup()
|
/packages/apps/Settings/src/com/android/settings/development/bluetooth/ |
D | AbstractBluetoothListPreferenceController.java | 55 @Nullable protected final BluetoothA2dpConfigStore mBluetoothA2dpConfigStore; field in AbstractBluetoothListPreferenceController 66 mBluetoothA2dpConfigStore = store; in AbstractBluetoothListPreferenceController() 257 if (mBluetoothA2dpConfigStore == null) { in initConfigStore() 261 mBluetoothA2dpConfigStore.setCodecType(config.getExtendedCodecType()); in initConfigStore() 262 mBluetoothA2dpConfigStore.setSampleRate(config.getSampleRate()); in initConfigStore() 263 mBluetoothA2dpConfigStore.setBitsPerSample(config.getBitsPerSample()); in initConfigStore() 264 mBluetoothA2dpConfigStore.setChannelMode(config.getChannelMode()); in initConfigStore() 265 mBluetoothA2dpConfigStore.setCodecPriority(CODEC_PRIORITY_HIGHEST); in initConfigStore() 266 mBluetoothA2dpConfigStore.setCodecSpecific1Value(config.getCodecSpecific1()); in initConfigStore()
|
D | BluetoothCodecListPreferenceController.java | 96 if (mBluetoothA2dpConfigStore == null) { in onPreferenceChange() 102 codecConfig = mBluetoothA2dpConfigStore.createCodecConfigFromCodecType(); in onPreferenceChange() 104 codecConfig = mBluetoothA2dpConfigStore.createCodecConfig(); in onPreferenceChange() 248 if (mBluetoothA2dpConfigStore == null) { in writeConfigurationValues() 253 mBluetoothA2dpConfigStore.setCodecType(selectedCodecType); in writeConfigurationValues() 254 mBluetoothA2dpConfigStore.setCodecPriority(BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST); in writeConfigurationValues() 255 mBluetoothA2dpConfigStore.setSampleRate( in writeConfigurationValues() 258 mBluetoothA2dpConfigStore.setBitsPerSample( in writeConfigurationValues() 261 mBluetoothA2dpConfigStore.setChannelMode( in writeConfigurationValues()
|
D | AbstractBluetoothDialogPreferenceController.java | 63 protected final BluetoothA2dpConfigStore mBluetoothA2dpConfigStore; field in AbstractBluetoothDialogPreferenceController 68 mBluetoothA2dpConfigStore = store; in AbstractBluetoothDialogPreferenceController() 89 final BluetoothCodecConfig codecConfig = mBluetoothA2dpConfigStore.createCodecConfig(); in onIndexUpdated() 119 mBluetoothA2dpConfigStore.setCodecType(config.getCodecType()); in initConfigStore() 120 mBluetoothA2dpConfigStore.setSampleRate(config.getSampleRate()); in initConfigStore() 121 mBluetoothA2dpConfigStore.setBitsPerSample(config.getBitsPerSample()); in initConfigStore() 122 mBluetoothA2dpConfigStore.setChannelMode(config.getChannelMode()); in initConfigStore() 123 mBluetoothA2dpConfigStore.setCodecPriority(CODEC_PRIORITY_HIGHEST); in initConfigStore() 124 mBluetoothA2dpConfigStore.setCodecSpecific1Value(config.getCodecSpecific1()); in initConfigStore()
|
D | BluetoothCodecDialogPreferenceController.java | 139 mBluetoothA2dpConfigStore.setCodecType(codecTypeValue); in writeConfigurationValues() 140 mBluetoothA2dpConfigStore.setCodecPriority(codecPriorityValue); in writeConfigurationValues() 147 mBluetoothA2dpConfigStore.setSampleRate(getHighestSampleRate(config)); in writeConfigurationValues() 148 mBluetoothA2dpConfigStore.setBitsPerSample(getHighestBitsPerSample(config)); in writeConfigurationValues() 149 mBluetoothA2dpConfigStore.setChannelMode(getHighestChannelMode(config)); in writeConfigurationValues()
|
D | BluetoothQualityDialogPreferenceController.java | 71 mBluetoothA2dpConfigStore.setCodecSpecific1Value(codecSpecific1Value); in writeConfigurationValues()
|
D | BluetoothSampleRateDialogPreferenceController.java | 83 mBluetoothA2dpConfigStore.setSampleRate(sampleRateValue); in writeConfigurationValues()
|
D | BluetoothChannelModeDialogPreferenceController.java | 77 mBluetoothA2dpConfigStore.setChannelMode(channelModeValue); in writeConfigurationValues()
|
D | BluetoothBitPerSampleDialogPreferenceController.java | 80 mBluetoothA2dpConfigStore.setBitsPerSample(bitsPerSampleValue); in writeConfigurationValues()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | AbstractBluetoothA2dpPreferenceController.java | 50 protected final BluetoothA2dpConfigStore mBluetoothA2dpConfigStore; field in AbstractBluetoothA2dpPreferenceController 63 mBluetoothA2dpConfigStore = store; in AbstractBluetoothA2dpPreferenceController() 92 final BluetoothCodecConfig codecConfig = mBluetoothA2dpConfigStore.createCodecConfig(); in onPreferenceChange() 93 synchronized (mBluetoothA2dpConfigStore) { in onPreferenceChange() 122 synchronized (mBluetoothA2dpConfigStore) { in updateState()
|
D | DevelopmentSettingsDashboardFragment.java | 104 private final BluetoothA2dpConfigStore mBluetoothA2dpConfigStore = field in DevelopmentSettingsDashboardFragment 149 synchronized (mBluetoothA2dpConfigStore) { 162 synchronized (mBluetoothA2dpConfigStore) {
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | AbstractBluetoothA2dpPreferenceControllerTest.java | 61 private BluetoothA2dpConfigStore mBluetoothA2dpConfigStore; field in AbstractBluetoothA2dpPreferenceControllerTest 75 mBluetoothA2dpConfigStore)); in setup() 79 when(mBluetoothA2dpConfigStore.createCodecConfig()).thenReturn(mBluetoothCodecConfig); in setup()
|