Home | History | Annotate | Download | only in bluetooth

Lines Matching refs:when

23 import static org.mockito.Mockito.when;
67 }).when(mAdapter).getProfileProxy(any(Context.class), any(), eq(BluetoothProfile.A2DP));
76 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn(
80 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn(
84 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn(
91 when(mBluetoothA2dpWrapper.getOptionalCodecsEnabled(any())).thenReturn(
95 when(mBluetoothA2dpWrapper.getOptionalCodecsEnabled(any())).thenReturn(
103 when(mBluetoothA2dpWrapper.getOptionalCodecsEnabled(any())).thenReturn(
105 when(mBluetoothA2dp.getConnectionState(any())).thenReturn(
108 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn(
112 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn(
116 when(mBluetoothA2dp.getConnectionState(any())).thenReturn(
119 when(mBluetoothA2dpWrapper.getCodecStatus(mDevice)).thenReturn(status);
121 when(status.getCodecConfig()).thenReturn(config);
122 when(config.isMandatoryCodec()).thenReturn(false);
124 when(config.isMandatoryCodec()).thenReturn(true);
140 when(mContext.getString(eq(R.string.bluetooth_profile_a2dp_high_quality),
144 when(mContext.getString(eq(R.string.bluetooth_profile_a2dp_high_quality_unknown_codec)))
148 when(mContext.getResources()).thenReturn(res);
149 when(res.getStringArray(eq(R.array.bluetooth_a2dp_codec_titles)))
154 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn(
161 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn(
169 when(mBluetoothA2dp.getConnectionState(any())).thenReturn(
177 when(mBluetoothA2dp.getConnectionState(any())).thenReturn(
182 when(mBluetoothA2dpWrapper.getCodecStatus(mDevice)).thenReturn(status);
183 when(status.getCodecsSelectableCapabilities()).thenReturn(configs);
185 when(config.isMandatoryCodec()).thenReturn(true);
192 when(mBluetoothA2dp.getConnectionState(any())).thenReturn(
197 when(mBluetoothA2dpWrapper.getCodecStatus(mDevice)).thenReturn(status);
198 when(status.getCodecsSelectableCapabilities()).thenReturn(configs);
200 when(config.isMandatoryCodec()).thenReturn(false);
201 when(config.getCodecType()).thenReturn(4);
202 when(config.getCodecName()).thenReturn("LDAC");