/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | ProfileServiceTest.java | 121 setAllProfilesState(BluetoothAdapter.STATE_ON, 1); in testEnableDisable() 131 setAllProfilesState(BluetoothAdapter.STATE_ON, 1); in testEnableDisableTwice() 133 setAllProfilesState(BluetoothAdapter.STATE_ON, 2); in testEnableDisableTwice() 144 setProfileState(profile, BluetoothAdapter.STATE_ON); in testEnableDisableInterleaved() 152 starts.capture(), eq(BluetoothAdapter.STATE_ON)); in testEnableDisableInterleaved() 176 setProfileState(profile, BluetoothAdapter.STATE_ON); in testRepeatedEnableDisableSingly() 181 start.capture(), eq(BluetoothAdapter.STATE_ON)); in testRepeatedEnableDisableSingly() 202 setProfileState(profile, BluetoothAdapter.STATE_ON); in testProfileServiceRegisterUnregister()
|
D | AdapterServiceTest.java | 197 mAdapterService.onProfileServiceStateChanged(mMockGattService, BluetoothAdapter.STATE_ON); in doEnable() 213 mAdapterService.onProfileServiceStateChanged(mMockService, BluetoothAdapter.STATE_ON); in doEnable() 214 mAdapterService.onProfileServiceStateChanged(mMockService2, BluetoothAdapter.STATE_ON); in doEnable() 217 verifyStateChange(BluetoothAdapter.STATE_TURNING_ON, BluetoothAdapter.STATE_ON, in doEnable() 235 verifyStateChange(BluetoothAdapter.STATE_ON, BluetoothAdapter.STATE_TURNING_OFF, in doDisable() 352 verifyStateChange(BluetoothAdapter.STATE_ON, BluetoothAdapter.STATE_TURNING_OFF, 1, in testGattStopTimeout() 393 mAdapterService.onProfileServiceStateChanged(mMockGattService, BluetoothAdapter.STATE_ON); in testProfileStartTimeout() 407 mAdapterService.onProfileServiceStateChanged(mMockService, BluetoothAdapter.STATE_ON); in testProfileStartTimeout() 432 verifyStateChange(BluetoothAdapter.STATE_ON, BluetoothAdapter.STATE_TURNING_OFF, 1, in testProfileStopTimeout() 474 verifyStateChange(BluetoothAdapter.STATE_ON, BluetoothAdapter.STATE_TURNING_OFF, 1, in testSnoopLoggingChange()
|
D | PhonePolicyTest.java | 137 when(mAdapterService.getState()).thenReturn(BluetoothAdapter.STATE_ON); in testAdapterOnAutoConnect() 153 intent.putExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.STATE_ON); in testAdapterOnAutoConnect() 168 when(mAdapterService.getState()).thenReturn(BluetoothAdapter.STATE_ON); in testDisconnectNoAutoConnect() 278 when(mAdapterService.getState()).thenReturn(BluetoothAdapter.STATE_ON); in testReconnectOnPartialConnect() 319 when(mAdapterService.getState()).thenReturn(BluetoothAdapter.STATE_ON); in testReconnectOnPartialConnect_PreviousPartialFail() 414 when(mAdapterService.getState()).thenReturn(BluetoothAdapter.STATE_ON); in testAutoConnectMultipleDevices() 493 when(mAdapterService.getState()).thenReturn(BluetoothAdapter.STATE_ON); in testSetPriorityMultipleDevices() 603 when(mAdapterService.getState()).thenReturn(BluetoothAdapter.STATE_ON); in testNoReconnectOnNoConnect() 653 when(mAdapterService.getState()).thenReturn(BluetoothAdapter.STATE_ON); in testNoReconnectOnNoConnect_MultiDevice() 708 when(mAdapterService.getState()).thenReturn(BluetoothAdapter.STATE_ON); in testReconnectOnPartialConnect_MultiDevice()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothSettingsFragmentTest.java | 20 import static android.bluetooth.BluetoothAdapter.STATE_ON; 95 getShadowBluetoothAdapter().setState(STATE_ON); in onStart_initializesSwitchState() 121 getShadowBluetoothAdapter().setState(STATE_ON); in switchCheckedOff_disablesAdapter() 153 sendStateChangedIntent(STATE_ON); in stateChanged_on_setsSwitchChecked() 162 sendStateChangedIntent(STATE_ON); in stateChanged_on_setsSwitchEnabled() 173 sendStateChangedIntent(STATE_ON); in stateChanged_on_userRestricted_setsSwitchDisabled()
|
D | BluetoothRequestPermissionActivityTest.java | 135 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_ON); in onCreate_bluetoothOn_requestDisableIntent_startsDialog() 159 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_ON); in onCreate_bluetoothOn_requestDiscoverableIntent_startsDialog() 183 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_ON); in onCreate_bluetoothOn_requestEnableIntent_noDialog() 194 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_ON); in onPositiveClick_disableDialog_disables() 209 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_ON); in onPositiveClick_discoverableDialog_scanModeSet()
|
D | BluetoothPreferenceControllerTest.java | 130 getShadowBluetoothAdapter().setState(BluetoothAdapter.STATE_ON); in getAvailabilityStatus_available() 141 getShadowBluetoothAdapter().setState(BluetoothAdapter.STATE_ON); in onStart_registersEventListener() 152 getShadowBluetoothAdapter().setState(BluetoothAdapter.STATE_ON); in onStop_unregistersEventListener()
|
D | LocalRenameDialogFragmentTest.java | 20 import static android.bluetooth.BluetoothAdapter.STATE_ON; 57 getShadowBluetoothAdapter().setState(STATE_ON); in setUp()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowBluetoothAdapter.java | 20 import static android.bluetooth.BluetoothAdapter.STATE_ON; 67 if (getState() != STATE_ON) { in setName() 76 if (getState() != STATE_ON) { in getScanMode() 84 if (getState() != STATE_ON) { in setScanMode()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/ |
D | RequestPermissionActivity.java | 92 case BluetoothAdapter.STATE_ON: in onCreate() 134 case BluetoothAdapter.STATE_ON: { in onCreate() 206 if (mBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) { in onActivityResult() 384 if (currentState == BluetoothAdapter.STATE_ON) { in onReceive()
|
D | BluetoothPairingDetail.java | 149 case BluetoothAdapter.STATE_ON: in updateContent() 171 if (bluetoothState == BluetoothAdapter.STATE_ON) { in onBluetoothStateChanged()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | RequestPermissionActivity.java | 96 case BluetoothAdapter.STATE_ON: in onCreate() 138 case BluetoothAdapter.STATE_ON: { in onCreate() 210 if (mBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) { in onActivityResult() 388 if (currentState == BluetoothAdapter.STATE_ON) { in onReceive()
|
D | BluetoothPairingDetail.java | 149 case BluetoothAdapter.STATE_ON: in updateContent() 171 if (bluetoothState == BluetoothAdapter.STATE_ON) { in onBluetoothStateChanged()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | BluetoothAdapterHelper.java | 140 waitForAdapterState(BluetoothAdapter.STATE_ON); in waitForAdapterOn() 182 forceAdapterState(BluetoothAdapter.STATE_ON, true); in forceAdapterOn() 206 if (desiredState == BluetoothAdapter.STATE_ON) { in forceAdapterState()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | InCallTonePlayer.java | 179 private static final int STATE_ON = 1; field in InCallTonePlayer 387 mState = STATE_ON; in playToneGeneratorTone() 414 mState = STATE_ON; in playMediaTone() 485 if (mState == STATE_ON) { in stopTone()
|
/packages/services/Car/service/src/com/android/car/ |
D | BluetoothDeviceConnectionPolicy.java | 68 if (mBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) { 114 if (state == BluetoothAdapter.STATE_ON) { in onReceive() 183 if (mBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) { in init()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothRequestPermissionActivity.java | 107 case BluetoothAdapter.STATE_ON: in onCreate() 126 case BluetoothAdapter.STATE_ON: in onCreate() 150 case BluetoothAdapter.STATE_ON: in onCreate() 325 int desiredState = BluetoothAdapter.STATE_ON; in onConfirmEnableBluetooth()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothPairingDetailTest.java | 128 mFragment.updateContent(BluetoothAdapter.STATE_ON); in updateContent_stateOn_addDevices() 171 mFragment.updateContent(BluetoothAdapter.STATE_ON); in onScanningStateChanged_restartScanAfterInitialScanning() 215 mFragment.onBluetoothStateChanged(BluetoothAdapter.STATE_ON); in onBluetoothStateChanged_whenTurnedOnBTShowToast()
|
D | BluetoothEnablerTest.java | 200 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_ON); in startWithBluetoothOn_switchIsOn() 212 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_ON); in bluetoothTurnsOff_switchTurnsOff() 247 on.putExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.STATE_ON); in bluetoothTurnsOn_switchTurnsOn()
|
D | BluetoothSummaryUpdaterTest.java | 146 mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_ON); in onBluetoothStateChanged_btEnabled_connected_shouldSendConnectedSummary() 161 mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_ON); in onBluetoothStateChanged_btEnabled_connectedMisMatch_shouldSendNotConnected() 209 mSummaryUpdater.onBluetoothStateChanged(BluetoothAdapter.STATE_ON); in onBluetoothStateChanged_ConnectedDisabledEnabled_shouldSendDisconnectedSummary()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/ |
D | NfcPreferenceControllerTest.java | 103 when(mNfcAdapter.getAdapterState()).thenReturn(NfcAdapter.STATE_ON); in isNfcEnable_nfcStateNotTurning_shouldReturnTrue() 127 when(mNfcAdapter.getAdapterState()).thenReturn(NfcAdapter.STATE_ON); in isNfcChecked_nfcStateOn_shouldReturnTrue() 265 triggerIntent.putExtra(NfcAdapter.EXTRA_ADAPTER_STATE, NfcAdapter.STATE_ON); in ncfSliceWorker_nfcBroadcast_nfcOn_sliceUpdates()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | ProfileService.java | 150 } else if (state == BluetoothAdapter.STATE_ON) { in onStartCommand() 268 mAdapterService.onProfileServiceStateChanged(this, BluetoothAdapter.STATE_ON); in doStart()
|
D | PhonePolicy.java | 122 if (newState == BluetoothAdapter.STATE_ON) { 377 if (mAdapterService.getState() != BluetoothAdapter.STATE_ON) { in autoConnect() 451 if (mAdapterService.getState() != BluetoothAdapter.STATE_ON) { in processConnectOtherProfiles()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | PlayerApplicationSettings.java | 205 return BluetoothAvrcpPlayerSettings.STATE_ON; in mapAttribIdValtoAvrcpPlayerSetting() 246 case BluetoothAvrcpPlayerSettings.STATE_ON: in mapAvrcpPlayerSettingstoBTattribVal()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/ |
D | ObexServerSockets.java | 151 != BluetoothAdapter.STATE_ON)) { in create() 235 if ((mAdapter != null) && (mAdapter.getState() == BluetoothAdapter.STATE_ON)) { in onAcceptFailed()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | TetherPreferenceController.java | 133 mBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) { in onCreate() 214 && mBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) { in updateSummary()
|