Home
last modified time | relevance | path

Searched refs:mShadowBluetoothAdapter (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothSummaryUpdaterTest.java76 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in BluetoothSummaryUpdaterTest
91 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp()
92 mShadowBluetoothAdapter.setEnabled(mAdapterEnabled[0]); in setUp()
93 mShadowBluetoothAdapter.setBondedDevices(mBondedDevices); in setUp()
94 mShadowBluetoothAdapter.setConnectionState(mAdapterConnectionState[0]); in setUp()
113 mShadowBluetoothAdapter.setEnabled(true); in register_true_shouldSendSummaryChange()
114 mShadowBluetoothAdapter.setConnectionState(BluetoothAdapter.STATE_CONNECTED); in register_true_shouldSendSummaryChange()
116 mShadowBluetoothAdapter.setBondedDevices(mBondedDevices); in register_true_shouldSendSummaryChange()
128 mShadowBluetoothAdapter.setConnectionState(BluetoothAdapter.STATE_CONNECTED); in onBluetoothStateChanged_btDisabled_shouldSendDisabledSummary()
130 mShadowBluetoothAdapter.setBondedDevices(mBondedDevices); in onBluetoothStateChanged_btDisabled_shouldSendDisabledSummary()
[all …]
DBluetoothEnablerTest.java84 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in BluetoothEnablerTest
102 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp()
192 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_OFF); in startWithBluetoothOff_switchIsOff()
200 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_ON); in startWithBluetoothOn_switchIsOn()
212 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_ON); in bluetoothTurnsOff_switchTurnsOff()
236 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_OFF); in bluetoothTurnsOn_switchTurnsOn()
DBluetoothDeviceRenamePreferenceControllerTest.java66 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in BluetoothDeviceRenamePreferenceControllerTest
76 mShadowBluetoothAdapter = Shadow.extract(mBluetoothAdapter); in setUp()
111 mShadowBluetoothAdapter.setEnabled(true); in updatePreferenceState_whenBTisOnPreferenceShouldBeVisible()
120 mShadowBluetoothAdapter.setEnabled(false); in updatePreferenceState_whenBTisOffPreferenceShouldBeHide()
DBluetoothDeviceUpdaterTest.java84 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in BluetoothDeviceUpdaterTest
92 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp()
225 mShadowBluetoothAdapter.setEnabled(false); in forceUpdate_bluetoothDisabled_removeAllDevicesFromPreference()
236 mShadowBluetoothAdapter.setEnabled(true); in forceUpdate_bluetoothEnabled_addPreference()
244 mShadowBluetoothAdapter.setEnabled(true); in onBluetoothStateChanged_bluetoothStateIsOn_forceUpdate()
DBluetoothPairingDetailTest.java78 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in BluetoothPairingDetailTest
94 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp()
151 mShadowBluetoothAdapter.setEnabled(false); in updateBluetooth_bluetoothOff_turnOnBluetooth()
160 mShadowBluetoothAdapter.setEnabled(true); in updateBluetooth_bluetoothOn_updateState()
DAvailableMediaBluetoothDeviceUpdaterTest.java71 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in AvailableMediaBluetoothDeviceUpdaterTest
80 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp()
81 mShadowBluetoothAdapter.setEnabled(true); in setUp()
DConnectedBluetoothDeviceUpdaterTest.java73 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in ConnectedBluetoothDeviceUpdaterTest
82 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp()
83 mShadowBluetoothAdapter.setEnabled(true); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DBluetoothDevicesSliceTest.java80 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in BluetoothDevicesSliceTest
109 mShadowBluetoothAdapter = Shadow.extract(defaultAdapter); in setUp()
110 mShadowBluetoothAdapter.setEnabled(true); in setUp()
111 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_ON); in setUp()
132 mShadowBluetoothAdapter.setEnabled(false); in getSlice_bluetoothOff_shouldHaveBluetoothOffTitleAndSummary()
133 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_OFF); in getSlice_bluetoothOff_shouldHaveBluetoothOffTitleAndSummary()
146 mShadowBluetoothAdapter.setEnabled(false); in getSlice_bluetoothTurningOn_shouldHaveBluetoothDevicesTitleAndPairNewDevice()
147 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_OFF); in getSlice_bluetoothTurningOn_shouldHaveBluetoothDevicesTitleAndPairNewDevice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilityHearingAidPreferenceControllerTest.java72 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in AccessibilityHearingAidPreferenceControllerTest
171 mShadowBluetoothAdapter.clearSupportedProfiles(); in onNotSupportHearingAidProfile_doNotDoReceiverOperation()
205 mShadowBluetoothAdapter = Shadow.extract(mBluetoothAdapter); in setupHearingAidEnvironment()
208 mShadowBluetoothAdapter.addSupportedProfiles(BluetoothProfile.HEARING_AID); in setupHearingAidEnvironment()
/packages/apps/Car/Messenger/tests/robotests/src/com/android/car/messenger/
DMessengerDelegateTest.java47 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in MessengerDelegateTest
62 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp()
140 mShadowBluetoothAdapter.setBondedDevices( in testConnectedDevices_areNotAddedFromBTAdapterBondedDevices()
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaOutputSliceTest.java88 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in MediaOutputSliceTest
101 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp()
102 mShadowBluetoothAdapter.setEnabled(true); in setUp()
127 mShadowBluetoothAdapter.setEnabled(false); in getSlice_bluetoothIsDisable_shouldReturnZeroRow()