Searched refs:mockSwitchPreference (Results 1 – 1 of 1) sorted by relevance
193 final SwitchPreference mockSwitchPreference = mock(SwitchPreference.class); in testBluetoothState_updateBluetoothState_bluetoothTetheringStateOn() local195 .thenReturn(mockSwitchPreference); in testBluetoothState_updateBluetoothState_bluetoothTetheringStateOn()217 verify(mockSwitchPreference).setEnabled(true); in testBluetoothState_updateBluetoothState_bluetoothTetheringStateOn()218 verify(mockSwitchPreference).setChecked(true); in testBluetoothState_updateBluetoothState_bluetoothTetheringStateOn()226 final SwitchPreference mockSwitchPreference = mock(SwitchPreference.class); in testBluetoothState_updateBluetoothState_bluetoothTetheringStateOff() local228 .thenReturn(mockSwitchPreference); in testBluetoothState_updateBluetoothState_bluetoothTetheringStateOff()250 verify(mockSwitchPreference).setEnabled(true); in testBluetoothState_updateBluetoothState_bluetoothTetheringStateOff()251 verify(mockSwitchPreference).setChecked(false); in testBluetoothState_updateBluetoothState_bluetoothTetheringStateOff()381 SwitchPreference mockSwitchPreference = mock(SwitchPreference.class); in setupUsbStateComponents() local386 .thenReturn(mockSwitchPreference); in setupUsbStateComponents()