Home
last modified time | relevance | path

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

/tools/tradefederation/core/javatests/com/android/tradefed/util/
DSl4aBluetoothUtilTest.java42 import com.android.tradefed.util.Sl4aBluetoothUtil.Commands;
100 when(mPrimaryClient.rpcCall(eq(Commands.BLUETOOTH_CHECK_STATE))).thenReturn(Boolean.TRUE); in testEnable_alreadyEnabled()
107 when(mPrimaryClient.rpcCall(Commands.BLUETOOTH_CHECK_STATE)).thenReturn(Boolean.FALSE); in testEnable_notEnabled()
108 when(mPrimaryClient.rpcCall(Commands.BLUETOOTH_TOGGLE_STATE, Boolean.TRUE)) in testEnable_notEnabled()
117 when(mPrimaryClient.rpcCall(eq(Commands.BLUETOOTH_CHECK_STATE))).thenReturn(Boolean.FALSE); in testDisable_alreadyDisabled()
124 when(mPrimaryClient.rpcCall(Commands.BLUETOOTH_CHECK_STATE)).thenReturn(Boolean.TRUE); in testDisable_notDisabled()
125 when(mPrimaryClient.rpcCall(Commands.BLUETOOTH_TOGGLE_STATE, Boolean.FALSE)) in testDisable_notDisabled()
134 when(mPrimaryClient.rpcCall(Commands.BLUETOOTH_GET_LOCAL_ADDRESS)).thenReturn("address"); in testGetAddress()
140 when(mPrimaryClient.rpcCall(Commands.BLUETOOTH_GET_LOCAL_ADDRESS)).thenReturn("address"); in testGetAddress_calledTwice()
143 verify(mPrimaryClient, times(1)).rpcCall(Commands.BLUETOOTH_GET_LOCAL_ADDRESS); in testGetAddress_calledTwice()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DSl4aBluetoothUtil.java66 static class Commands { class in Sl4aBluetoothUtil
279 address = (String) client.rpcCall(Commands.BLUETOOTH_GET_LOCAL_ADDRESS); in getAddress()
300 Object response = client.rpcCall(Commands.BLUETOOTH_GET_BONDED_DEVICES); in getBondedDevices()
334 secondaryClient.rpcCall(Commands.BLUETOOTH_MAKE_DISCOVERABLE); in pair()
335 Integer response = (Integer) secondaryClient.rpcCall(Commands.BLUETOOTH_GET_SCAN_MODE); in pair()
343 primaryClient.rpcCall(Commands.BLUETOOTH_START_PAIRING_HELPER); in pair()
344 secondaryClient.rpcCall(Commands.BLUETOOTH_START_PAIRING_HELPER); in pair()
349 primaryClient.rpcCall(Commands.BLUETOOTH_DISCOVER_AND_BOND, getAddress(secondary)); in pair()
375 Boolean res = (Boolean) client.rpcCall(Commands.BLUETOOTH_UNBOND, address); in unpairAll()
413 Commands.BLUETOOTH_START_CONNECTION_STATE_CHANGE_MONITOR, address); in connect()
[all …]
/tools/asuite/adevice/src/
Dcommands.rs64 pub struct Commands { struct
69 impl Commands { argument
77 pub fn compose(diffs: &Diffs, product_out: &Path) -> Commands { in compose() argument
81 let mut commands = Commands { upserts: HashMap::new(), deletes: HashMap::new() }; in compose()
Dadevice.rs153 cli::Commands::Track(names) => return config.track(&names.modules), in adevice()
154 cli::Commands::TrackBase(base) => return config.trackbase(&base.base), in adevice()
155 cli::Commands::Untrack(names) => return config.untrack(&names.modules), in adevice()
207 if matches!(cli.command, cli::Commands::Status) { in adevice()
214 if matches!(cli.command, cli::Commands::Clean { .. }) { in adevice()
223 if matches!(cli.command, cli::Commands::Clean { force } if !force) { in adevice()
240 if matches!(cli.command, cli::Commands::Update) { in adevice()
310 ) -> Result<commands::Commands> { in get_update_commands() argument
922 fn call_update(fake_state: &FakeState) -> Result<commands::Commands> { in call_update() argument
Dcli.rs10 pub command: Commands,
16 pub enum Commands { enum
/tools/netsim/rust/cli/
Dnetsim-cli.md12 ## Commands:
34 * #### Commands:
37 * ##### Commands:
65 * ##### Commands:
100 * #### Commands
/tools/netsim/ui/
DREADME.md13 ## Build Commands
/tools/test/openhst/
Dstress_test.proto83 // Commands to run once at the beginning of the test for the device.
158 // Commands that should be run at the beginning of the test to setup the
/tools/treble/build/treble_build/
DREADME.md8 ## Basic Commands
/tools/treble/hacksaw/client/
Dcommand.go27 Commands:
/tools/treble/hacksaw/
DREADME.md117 Commands that mount and unmount will require sudo. That includes commands like