Merge "Sync wait for the bluetooth to be disabled / enabled" into android13-tests-dev
This commit is contained in:
commit
7aeaa3a0a2
2 changed files with 8 additions and 4 deletions
|
@ -24,8 +24,10 @@
|
|||
|
||||
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
|
||||
<option name="run-command" value="settings put global ble_scan_always_enabled 0" />
|
||||
<option name="run-command" value="su u$(am get-current-user)_system svc bluetooth disable" />
|
||||
<option name="teardown-command" value="su u$(am get-current-user)_system svc bluetooth enable" />
|
||||
<option name="run-command" value="cmd bluetooth_manager disable" />
|
||||
<option name="run-command" value="cmd bluetooth_manager wait-for-state:STATE_OFF" />
|
||||
<option name="teardown-command" value="cmd bluetooth_manager enable" />
|
||||
<option name="teardown-command" value="cmd bluetooth_manager wait-for-state:STATE_ON" />
|
||||
<option name="teardown-command" value="settings put global ble_scan_always_enabled 1" />
|
||||
</target_preparer>
|
||||
|
||||
|
|
|
@ -22,8 +22,10 @@
|
|||
|
||||
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
|
||||
<option name="run-command" value="settings put global ble_scan_always_enabled 0" />
|
||||
<option name="run-command" value="su u$(am get-current-user)_system svc bluetooth disable" />
|
||||
<option name="teardown-command" value="su u$(am get-current-user)_system svc bluetooth enable" />
|
||||
<option name="run-command" value="cmd bluetooth_manager disable" />
|
||||
<option name="run-command" value="cmd bluetooth_manager wait-for-state:STATE_OFF" />
|
||||
<option name="teardown-command" value="cmd bluetooth_manager enable" />
|
||||
<option name="teardown-command" value="cmd bluetooth_manager wait-for-state:STATE_ON" />
|
||||
<option name="teardown-command" value="settings put global ble_scan_always_enabled 1" />
|
||||
</target_preparer>
|
||||
|
||||
|
|
Loading…
Reference in a new issue