/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
H A D | BluetoothSummaryUpdaterTest.java | 113 mShadowBluetoothAdapter.setEnabled(true); in register_true_shouldSendSummaryChange() 140 mShadowBluetoothAdapter.setEnabled(true); in onBluetoothStateChanged_btEnabled_connected_shouldSendConnectedSummary() 154 mShadowBluetoothAdapter.setEnabled(true); in onBluetoothStateChanged_btEnabled_connectedMisMatch_shouldSendNotConnected() 168 mShadowBluetoothAdapter.setEnabled(true); in onBluetoothStateChanged_btEnabled_notConnected_shouldSendDisconnectedMessage() 182 mShadowBluetoothAdapter.setEnabled(true); in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary() 207 mShadowBluetoothAdapter.setEnabled(true); in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary() 216 mShadowBluetoothAdapter.setEnabled(true); in onConnectionStateChanged_connected_shouldSendConnectedMessage() 231 mShadowBluetoothAdapter.setEnabled(true); in onConnectionStateChanged_inconsistentState_shouldSendDisconnectedMessage() 245 mShadowBluetoothAdapter.setEnabled(true); in onConnectionStateChanged_noBondedDevice_shouldSendDisconnectedMessage() 257 mShadowBluetoothAdapter.setEnabled(true); in onConnectionStateChanged_connecting_shouldSendConnectingMessage() [all …]
|
H A D | BluetoothDeviceRenamePreferenceControllerTest.java | 66 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()
|
H A D | BluetoothEnablerTest.java | 84 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()
|
H A D | BluetoothDeviceUpdaterTest.java | 89 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in BluetoothDeviceUpdaterTest 98 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 232 mShadowBluetoothAdapter.setEnabled(false); in forceUpdate_bluetoothDisabled_removeAllDevicesFromPreference() 243 mShadowBluetoothAdapter.setEnabled(true); in forceUpdate_bluetoothEnabled_addPreference() 251 mShadowBluetoothAdapter.setEnabled(true); in onBluetoothStateChanged_bluetoothStateIsOn_forceUpdate()
|
H A D | BluetoothPairingDetailTest.java | 83 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in BluetoothPairingDetailTest 101 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 158 mShadowBluetoothAdapter.setEnabled(false); in updateBluetooth_bluetoothOff_turnOnBluetooth() 167 mShadowBluetoothAdapter.setEnabled(true); in updateBluetooth_bluetoothOn_updateState()
|
H A D | AvailableMediaBluetoothDeviceUpdaterTest.java | 75 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in AvailableMediaBluetoothDeviceUpdaterTest 84 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 85 mShadowBluetoothAdapter.setEnabled(true); in setUp()
|
H A D | ConnectedBluetoothDeviceUpdaterTest.java | 77 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in ConnectedBluetoothDeviceUpdaterTest 87 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 88 mShadowBluetoothAdapter.setEnabled(true); in setUp()
|
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
H A D | LocalBluetoothProfileManagerTest.java | 73 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in LocalBluetoothProfileManagerTest 82 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 94 mShadowBluetoothAdapter.setSupportedProfiles(generateList( in constructor_initiateHidAndHidDeviceProfile() 119 mShadowBluetoothAdapter.setSupportedProfiles(generateList( in updateLocalProfiles_addA2dpToLocalProfiles() 132 mShadowBluetoothAdapter.setSupportedProfiles(generateList( in updateProfiles_addHidProfileForRemoteDevice() 154 mShadowBluetoothAdapter.setSupportedProfiles(generateList( in stateChangedHandler_receiveA2dpConnectionStateChanged_shouldDispatchCallback() 175 mShadowBluetoothAdapter.setSupportedProfiles(generateList( in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback() 196 mShadowBluetoothAdapter.setSupportedProfiles(generateList( in stateChangedHandler_receiveHAPConnectionStateChanged_shouldDispatchDeviceManager() 218 mShadowBluetoothAdapter.setSupportedProfiles(generateList( in stateChangedHandler_receivePanConnectionStateChanged_shouldNotDispatchCallback() 240 mShadowBluetoothAdapter.setSupportedProfiles(null); in stateChangedHandler_receivePanConnectionStateChangedWithoutProfile_shouldNotRefresh() [all …]
|
H A D | HidDeviceProfileTest.java | 54 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in HidDeviceProfileTest 59 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
|
H A D | A2dpSinkProfileTest.java | 54 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in A2dpSinkProfileTest 59 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
|
H A D | HfpClientProfileTest.java | 54 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in HfpClientProfileTest 59 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
|
H A D | MapClientProfileTest.java | 54 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in MapClientProfileTest 59 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
|
H A D | PbapClientProfileTest.java | 54 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in PbapClientProfileTest 59 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 62 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
|
H A D | SapProfileTest.java | 54 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in SapProfileTest 59 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 61 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
|
H A D | HearingAidProfileTest.java | 57 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in HearingAidProfileTest 63 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 68 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
|
H A D | HeadsetProfileTest.java | 42 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in HeadsetProfileTest 48 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 53 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
|
H A D | A2dpProfileTest.java | 63 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in A2dpProfileTest 68 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 70 mServiceListener = mShadowBluetoothAdapter.getServiceListener(); in setUp()
|
H A D | CachedBluetoothDeviceTest.java | 84 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in CachedBluetoothDeviceTest 91 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 954 mShadowBluetoothAdapter.setUuids(PbapServerProfile.PBAB_CLIENT_UUIDS); in onUuidChanged_bluetoothClassIsNull_shouldNotCrash()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
H A D | BluetoothDevicesSliceTest.java | 80 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in BluetoothDevicesSliceTest 110 mShadowBluetoothAdapter = Shadow.extract(defaultAdapter); in setUp() 111 mShadowBluetoothAdapter.setEnabled(true); in setUp() 112 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_ON); in setUp() 133 mShadowBluetoothAdapter.setEnabled(false); in getSlice_bluetoothOff_shouldHaveBluetoothOffTitleAndSummary() 134 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_OFF); in getSlice_bluetoothOff_shouldHaveBluetoothOffTitleAndSummary() 147 mShadowBluetoothAdapter.setEnabled(false); in getSlice_bluetoothTurningOn_shouldHaveBluetoothDevicesTitleAndPairNewDevice() 148 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_OFF); in getSlice_bluetoothTurningOn_shouldHaveBluetoothDevicesTitleAndPairNewDevice()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/ |
H A D | PreviouslyConnectedDeviceDashboardFragmentTest.java | 36 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in PreviouslyConnectedDeviceDashboardFragmentTest 43 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 50 mShadowBluetoothAdapter.setEnabled(false); in onStart_bluetoothIsDisable_enableBluetooth()
|
H A D | PreviouslyConnectedDevicePreferenceControllerTest.java | 111 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in PreviouslyConnectedDevicePreferenceControllerTest 124 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 147 mShadowBluetoothAdapter.setMostRecentlyConnectedDevices(mMostRecentlyConnectedDevices); in setUp() 272 mShadowBluetoothAdapter.setEnabled(true); in updatePreferenceVisibility_bluetoothIsEnable_shouldShowCorrectText() 280 mShadowBluetoothAdapter.setEnabled(false); in updatePreferenceVisibility_bluetoothIsDisable_shouldShowCorrectText()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
H A D | AccessibilityHearingAidPreferenceControllerTest.java | 72 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()
|
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
H A D | LocalMediaManagerTest.java | 96 private ShadowBluetoothAdapter mShadowBluetoothAdapter; field in LocalMediaManagerTest 105 mShadowBluetoothAdapter = Shadow.extract(BluetoothAdapter.getDefaultAdapter()); in setUp() 106 mShadowBluetoothAdapter.setMostRecentlyConnectedDevices(bluetoothDevices); in setUp() 574 mShadowBluetoothAdapter.setMostRecentlyConnectedDevices(bluetoothDevices); in onDeviceListAdded_haveDisconnectedDevice_addDisconnectedDevice() 668 mShadowBluetoothAdapter.setMostRecentlyConnectedDevices(bluetoothDevices); in onDeviceListAdded_haveDisconnectedDevice_list5DisconnectedDevice() 710 mShadowBluetoothAdapter = null; in onDeviceListAdded_bluetoothAdapterIsNull_noDisconnectedDeviceAdded()
|