Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/packages/apps/Messaging/src/com/android/messaging/util/
DNotificationPlayer.java75 public CreationAndCompletionThread(final Command cmd) { in CreationAndCompletionThread() argument
77 mCmd = cmd; in CreationAndCompletionThread()
117 private void startSound(final Command cmd) { in startSound() argument
136 mCompletionThread = new CreationAndCompletionThread(cmd); in startSound()
144 final long delay = SystemClock.elapsedRealtime() - cmd.requestTime; in startSound()
149 LogUtil.w(mTag, "error loading sound for " + cmd.uri, e); in startSound()
153 private void stopSound(final Command cmd) { in stopSound() argument
157 final long delay = SystemClock.elapsedRealtime() - cmd.requestTime; in stopSound()
164 if (cmd.releaseFocus && mAudioManager != null) { in stopSound()
181 Command cmd = null; in run() local
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DOverviewCommandHelper.java109 CommandInfo cmd = mPendingCommands.get(0); in executeNext() local
110 if (executeCommand(cmd)) { in executeNext()
111 scheduleNextTask(cmd); in executeNext()
116 private void addCommand(CommandInfo cmd) { in addCommand() argument
118 mPendingCommands.add(cmd); in addCommand()
134 CommandInfo cmd = new CommandInfo(type); in addCommand() local
135 MAIN_EXECUTOR.execute(() -> addCommand(cmd)); in addCommand()
160 private boolean launchTask(RecentsView recents, @Nullable TaskView taskView, CommandInfo cmd) { in launchTask() argument
168 callbackList.add(() -> scheduleNextTask(cmd)); in launchTask()
180 private <T extends StatefulActivity<?>> boolean executeCommand(CommandInfo cmd) { in executeCommand() argument
[all …]
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBluetoothShellCommand.java60 boolean isMatch(String cmd) { in isMatch() argument
61 return mName.equals(cmd); in isMatch()
67 abstract int exec(String cmd) throws RemoteException; in exec() argument
77 public int exec(String cmd) throws RemoteException { in exec() argument
93 public int exec(String cmd) throws RemoteException { in exec() argument
134 boolean isMatch(String cmd) { in isMatch() argument
135 return getWaitingState(cmd) != -1; in isMatch()
138 public int exec(String cmd) throws RemoteException { in exec() argument
139 int ret = mManagerService.waitForManagerState(getWaitingState(cmd)) ? 0 : -1; in exec()
140 Log.d(TAG, cmd + ": Return value is " + ret); // logging as this method can take time in exec()
[all …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_sock_thread.cc237 sock_cmd_t cmd = {CMD_ADD_FD, fd, type, flags, user_id}; in btsock_thread_add_fd() local
240 OSI_NO_INTR(ret = send(ts[h].cmd_fdw, &cmd, sizeof(cmd), 0)); in btsock_thread_add_fd()
242 return ret == sizeof(cmd); in btsock_thread_add_fd()
255 sock_cmd_t cmd = {CMD_REMOVE_FD, fd, 0, 0, 0}; in btsock_thread_remove_fd_and_close() local
258 OSI_NO_INTR(ret = send(ts[thread_handle].cmd_fdw, &cmd, sizeof(cmd), 0)); in btsock_thread_remove_fd_and_close()
260 return ret == sizeof(cmd); in btsock_thread_remove_fd_and_close()
274 sock_cmd_t cmd = {CMD_USER_PRIVATE, 0, type, size, user_id}; in btsock_thread_post_cmd() local
275 sock_cmd_t* cmd_send = &cmd; in btsock_thread_post_cmd()
276 int size_send = sizeof(cmd); in btsock_thread_post_cmd()
278 size_send = sizeof(cmd) + size; in btsock_thread_post_cmd()
[all …]
Dbtif_a2dp_control.cc250 tA2DP_CTRL_CMD cmd = A2DP_CTRL_CMD_NONE; in btif_a2dp_recv_ctrl_data() local
255 cmd = static_cast<tA2DP_CTRL_CMD>(read_cmd); in btif_a2dp_recv_ctrl_data()
266 if (cmd == A2DP_CTRL_GET_PRESENTATION_POSITION) { in btif_a2dp_recv_ctrl_data()
268 audio_a2dp_hw_dump_ctrl_event(cmd)); in btif_a2dp_recv_ctrl_data()
271 audio_a2dp_hw_dump_ctrl_event(cmd)); in btif_a2dp_recv_ctrl_data()
274 a2dp_cmd_pending = cmd; in btif_a2dp_recv_ctrl_data()
275 switch (cmd) { in btif_a2dp_recv_ctrl_data()
309 APPL_TRACE_ERROR("%s: UNSUPPORTED CMD (%d)", __func__, cmd); in btif_a2dp_recv_ctrl_data()
316 if (cmd == A2DP_CTRL_GET_PRESENTATION_POSITION) { in btif_a2dp_recv_ctrl_data()
318 audio_a2dp_hw_dump_ctrl_event(cmd)); in btif_a2dp_recv_ctrl_data()
[all …]
/packages/services/Car/tools/emulator/
Dvhal_emulator.py111 def _txCmd(self, cmd): argument
116 msgStr = cmd.SerializeToString()
174 cmd = VehicleHalProto_pb2.EmulatorMessage()
175 cmd.msg_type = VehicleHalProto_pb2.GET_CONFIG_CMD
176 propGet = cmd.prop.add()
178 self._txCmd(cmd)
184 cmd = VehicleHalProto_pb2.EmulatorMessage()
185 cmd.msg_type = VehicleHalProto_pb2.GET_CONFIG_ALL_CMD
186 self._txCmd(cmd)
192 cmd = VehicleHalProto_pb2.EmulatorMessage()
[all …]
/packages/modules/Virtualization/tests/hostside/helper/java/com/android/microdroid/test/host/
DCommandRunner.java49 public String run(String... cmd) throws DeviceNotAvailableException { in run() argument
50 CommandResult result = runForResult(cmd); in run()
52 fail(join(cmd) + " has failed: " + result); in run()
57 public String tryRun(String... cmd) throws DeviceNotAvailableException { in tryRun() argument
58 CommandResult result = runForResult(cmd); in tryRun()
62 CLog.d(join(cmd) + " has failed (but ok): " + result); in tryRun()
67 public String runWithTimeout(long timeoutMillis, String... cmd) in runWithTimeout() argument
71 join(cmd), timeoutMillis, java.util.concurrent.TimeUnit.MILLISECONDS); in runWithTimeout()
73 fail(join(cmd) + " has failed: " + result); in runWithTimeout()
78 public CommandResult runForResultWithTimeout(long timeoutMillis, String... cmd) in runForResultWithTimeout() argument
[all …]
/packages/modules/Virtualization/apex/
Dsign_virt_apex.py120 def RunCommand(args, cmd, env=None, expected_return_values=None): argument
127 if cmd[0] == 'avbtool':
128 cmd[0] = args.avbtool
131 print('Running: ' + ' '.join(cmd))
133 cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env, universal_newlines=True)
140 '%d Failed to execute: ' + ' '.join(cmd)) % p.returncode
223 cmd = ['avbtool', 'add_hash_footer',
230 cmd.extend(shlex.split(args.signing_args))
233 cmd.extend(['--include_descriptors_from_image', image])
234 RunCommand(args, cmd)
[all …]
/packages/modules/Bluetooth/system/stack/smp/
Dsmp_l2c.cc157 uint8_t cmd; in smp_data_received() local
166 STREAM_TO_UINT8(cmd, p); in smp_data_received()
168 SMP_TRACE_EVENT("%s: SMDBG l2c, cmd=0x%x", __func__, cmd); in smp_data_received()
171 if ((SMP_OPCODE_MAX < cmd) || (SMP_OPCODE_MIN > cmd)) { in smp_data_received()
172 SMP_TRACE_WARNING("Ignore received command with RESERVED code 0x%02x", cmd); in smp_data_received()
178 if (SMP_OPCODE_PAIRING_REQ == cmd || SMP_OPCODE_SEC_REQ == cmd) { in smp_data_received()
201 if (cmd == SMP_OPCODE_CONFIRM) { in smp_data_received()
205 __func__, cmd, p_cb->peer_auth_req, p_cb->loc_auth_req); in smp_data_received()
209 cmd = SMP_OPCODE_PAIR_COMMITM; in smp_data_received()
213 p_cb->rcvd_cmd_code = cmd; in smp_data_received()
[all …]
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/iso7816/
DCommandApduTest.java43 CommandApdu cmd = new CommandApdu(0, 1, 2, 3, cdata, 255, false, exp); in testCommandApdu() local
44 assertThat(cmd.getCla()).isEqualTo(0); in testCommandApdu()
45 assertThat(cmd.getIns()).isEqualTo(1); in testCommandApdu()
46 assertThat(cmd.getP1()).isEqualTo(2); in testCommandApdu()
47 assertThat(cmd.getP2()).isEqualTo(3); in testCommandApdu()
48 assertThat(cmd.getCommandData()).isEqualTo(cdata); in testCommandApdu()
49 assertThat(cmd.getLe()).isEqualTo(255); in testCommandApdu()
69 CommandApdu cmd = new CommandApdu(0, 1, 2, 3, cdata, -1, false, exp); in testGetEncoded_standard() local
71 assertThat(cmd.getEncoded()).isEqualTo(Bytes.concat(sHex.decode("00010203ff"), cdata)); in testGetEncoded_standard()
79 CommandApdu cmd = new CommandApdu(0, 1, 2, 3, cdata, -1, false, exp); in testGetEncoded_extended() local
[all …]
/packages/services/DeviceAsWebcam/tests/
Drun_webcam_test.py101 def run_cmd(self, cmd): argument
104 subprocess.check_call(cmd.split(), stdout=devnull,
126 cmd = f"""{adb} shell am start {self._WEBCAM_TEST_ACTIVITY}
128 self.run_cmd(cmd)
139 cmd = (f"""{adb} shell am broadcast -a
142 self.run_cmd(cmd)
152 cmd = (f"""{adb} shell am broadcast -a
155 self.run_cmd(cmd)
173 cmd = (f"""{adb} shell am broadcast -a
176 self.run_cmd(cmd)
[all …]
/packages/modules/Bluetooth/system/stack/avrc/
Davrc_bld_ct.cc384 const tAVRC_GET_ITEMS_CMD* cmd) { in avrc_bld_get_folder_items_cmd() argument
387 cmd->scope, cmd->start_item, cmd->end_item); in avrc_bld_get_folder_items_cmd()
397 UINT8_TO_BE_STREAM(p_data, cmd->scope); /* scope (1bytes) */ in avrc_bld_get_folder_items_cmd()
398 UINT32_TO_BE_STREAM(p_data, cmd->start_item); /* start item (4bytes) */ in avrc_bld_get_folder_items_cmd()
399 UINT32_TO_BE_STREAM(p_data, cmd->end_item); /* end item (4bytes) */ in avrc_bld_get_folder_items_cmd()
416 const tAVRC_CHG_PATH_CMD* cmd) { in avrc_bld_change_folder_cmd() argument
427 UINT16_TO_BE_STREAM(p_data, cmd->uid_counter); in avrc_bld_change_folder_cmd()
428 UINT8_TO_BE_STREAM(p_data, cmd->direction); in avrc_bld_change_folder_cmd()
429 ARRAY_TO_BE_STREAM(p_data, cmd->folder_uid, AVRC_UID_SIZE); in avrc_bld_change_folder_cmd()
434 BT_HDR* p_pkt, const tAVRC_GET_ATTRS_CMD* cmd) { in avrc_bld_get_item_attributes_cmd() argument
[all …]
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DSdkSandboxShellCommandUnitTest.java137 final SdkSandboxShellCommand cmd = in testCommandFailsIfCallerNotShellOrRoot() local
140 assertThat(cmd.exec(mService, mIn, mOut, mErr, new String[] {"start", DEBUGGABLE_PACKAGE})) in testCommandFailsIfCallerNotShellOrRoot()
146 final SdkSandboxShellCommand cmd = in testStartFailsForInvalidPackage() local
149 assertThat(cmd.exec(mService, mIn, mOut, mErr, new String[] {"start", INVALID_PACKAGE})) in testStartFailsForInvalidPackage()
163 final SdkSandboxShellCommand cmd = in testStartFailsWhenSdkSandboxDisabled() local
167 assertThat(cmd.exec(mService, mIn, mOut, mErr, new String[] {"start", DEBUGGABLE_PACKAGE})) in testStartFailsWhenSdkSandboxDisabled()
181 final SdkSandboxShellCommand cmd = in testStartFailsForNonDebuggablePackage() local
185 cmd.exec( in testStartFailsForNonDebuggablePackage()
210 final SdkSandboxShellCommand cmd = in testStartFailsWhenSandboxAlreadyRunning() local
213 assertThat(cmd.exec(mService, mIn, mOut, mErr, new String[] {"start", DEBUGGABLE_PACKAGE})) in testStartFailsWhenSandboxAlreadyRunning()
[all …]
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_ble_adv_filter.cc638 for (const ApcfCommand& cmd : commands) { in BTM_LE_PF_set() local
640 if (cmd.data.size() != cmd.data_mask.size() && cmd.data.size() != 0 && in BTM_LE_PF_set()
641 cmd.data_mask.size() != 0) { in BTM_LE_PF_set()
642 LOG(ERROR) << __func__ << " data(" << cmd.data.size() << ") and mask(" in BTM_LE_PF_set()
643 << cmd.data_mask.size() << ") are of different size"; in BTM_LE_PF_set()
647 switch (cmd.type) { in BTM_LE_PF_set()
650 target_addr.bda = cmd.address; in BTM_LE_PF_set()
651 target_addr.type = (cmd.addr_type & (~BLE_ADDR_TYPE_ID_BIT)); in BTM_LE_PF_set()
655 if (!is_empty_128bit(cmd.irk)) { in BTM_LE_PF_set()
674 if (btm_find_dev(cmd.address) != nullptr) { in BTM_LE_PF_set()
[all …]
/packages/modules/Bluetooth/system/gd/rust/stack/src/hci/
Dmod.rs83 cmd: CommandPacket, field
97 pub async fn send(&mut self, cmd: CommandPacket) -> Result<EventPacket> { in send()
99 self.cmd_tx.send(QueuedCommand { cmd, fut: tx }).await?; in send()
115 cmd: T, in send()
117 T::_to_response_type(self.raw.send(cmd.into()).await.unwrap()) in send()
185 Some(QueuedCommand{cmd, fut}) if cmd.get_op_code() == this_opcode => { in dispatch()
190 … Some(QueuedCommand{cmd, ..}) => panic!("Waiting for {}, got {}", cmd.get_op_code(), this_opcode), in dispatch()
198 Some(QueuedCommand{cmd, fut}) if cmd.get_op_code() == this_opcode => { in dispatch()
203 … Some(QueuedCommand{cmd, ..}) => panic!("Waiting for {}, got {}", cmd.get_op_code(), this_opcode), in dispatch()
236 if let Err(e) = cmd_tx.send(queued.cmd.clone()).await { in dispatch()
[all …]
/packages/apps/SecureElement/src/com/android/se/security/arf/PKCS15/
DEF.java177 byte[] cmd = new byte[]{0x00, (byte) 0xA4, 0x00, 0x04, 0x02, 0x00, 0x00}; in selectFile()
188 cmd[5] = (byte) (mFileID >> 8); in selectFile()
189 cmd[6] = (byte) mFileID; in selectFile()
191 data = mSEHandle.exchangeAPDU(this, cmd); in selectFile()
224 byte[] cmd = {0x00, (byte) 0xB0, 0x00, 0x00, 0x00}; in readBinary()
233 cmd[2] = (byte) (offset >> 8); in readBinary()
234 cmd[3] = (byte) offset; in readBinary()
235 cmd[4] = (byte) length; in readBinary()
236 System.arraycopy(mSEHandle.exchangeAPDU(this, cmd), 0, result, pos, length); in readBinary()
263 byte[] cmd = {0x00, (byte) 0xB2, (byte) record, 0x04, (byte) mFileRecordSize}; in readRecord()
[all …]
/packages/apps/Traceur/src/com/android/traceur/
DTraceUtils.java105 String cmd = "rm -f " + TRACE_DIRECTORY + "trace-*.*trace " + in clearSavedTraces() local
109 Log.v(TAG, "Clearing trace directory: " + cmd); in clearSavedTraces()
111 Process rm = exec(cmd); in clearSavedTraces()
121 public static Process exec(String cmd) throws IOException { in exec() argument
122 return exec(cmd, null); in exec()
125 public static Process exec(String cmd, String tmpdir) throws IOException { in exec() argument
126 return exec(cmd, tmpdir, true); in exec()
129 public static Process exec(String cmd, String tmpdir, boolean logOutput) throws IOException { in exec() argument
130 String[] cmdarray = {"sh", "-c", cmd}; in exec()
146 public static Process execWithTimeout(String cmd, String tmpdir, long timeout) in execWithTimeout() argument
[all …]
/packages/modules/Bluetooth/system/test/
Drun_host_unit_tests.py52 def get_output_from_command(cmd): argument
54 return subprocess.check_output(cmd).strip()
56 print 'Failed to call {cmd}, return code {code}'.format(cmd=cmd, code=e.returncode)
130 cmd = [test_path]
134 cmd.append('--gtest_output=xml:{0}'.format(log_output_path))
136 cmd.append('--gtest_filter=%s' % test_filter)
137 return cmd
199 cmd = [
206 subprocess.call(cmd)
/packages/apps/Car/RotaryController/
Dreadme.md23 adb shell cmd car_service inject-rotary
27 adb shell cmd car_service inject-rotary -c true
31 adb shell cmd car_service inject-rotary -dt 100 50
37 adb shell cmd car_service inject-key 280
44 adb shell cmd car_service inject-key 23
49 adb shell cmd car_service inject-key 23 -a down && sleep 2 && adb shell cmd car_service inject-key …
/packages/modules/StatsD/tests/src/android/cts/statsd/subscriber/
DShellSubscriberTest.java49 String cmd; field in ShellSubscriberTest.ShellSubscriptionThread
53 String cmd, in ShellSubscriptionThread() argument
56 this.cmd = cmd; in ShellSubscriptionThread()
62 getDevice().executeShellCommand(cmd, receiver, maxTimeoutForCommandSec, in run()
125 String cmd = "cat " + remotePath + " | cmd stats data-subscribe " + timeout; in testShellMaxSubscriptions() local
137 new ShellSubscriptionThread(cmd, receivers[i], timeout); in testShellMaxSubscriptions()
166 new ShellSubscriptionThread(cmd, receivers[i], timeout); in testShellMaxSubscriptions()
178 new ShellSubscriptionThread(cmd, receivers[maxSubs], timeout); in testShellMaxSubscriptions()
260 String cmd = "cat " + remotePath + " | cmd stats data-subscribe " + timeout; in startSubscription() local
263 new ShellSubscriptionThread(cmd, receiver, timeout); in startSubscription()
/packages/services/Car/tests/SampleCustomInputService/
Dreadme.md44 adb shell cmd car_service inject-custom-input -d 0 f1
60 adb shell cmd car_service inject-custom-input f2
66 adb shell cmd car_service inject-custom-input f3
74 adb shell cmd car_service inject-custom-input f4
80 adb shell cmd car_service inject-custom-input f5
88 adb shell cmd car_service inject-custom-input f6
94 adb shell cmd car_service inject-custom-input f7
102 adb shell cmd car_service inject-custom-input f8
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dgd_device.py147 …def __init__(self, grpc_port: str, grpc_root_server_port: str, signal_port: str, cmd: List[str], l…
163 asserts.assert_true(all(cmd), "cmd list should not have None nor empty component")
177 if "--btsnoop=" not in " ".join(cmd):
178cmd.append("--btsnoop=%s" % os.path.join(self.log_path_base, '%s_btsnoop_hci.log' % self.label))
179 if "--btsnooz=" not in " ".join(cmd):
180cmd.append("--btsnooz=%s" % os.path.join(self.log_path_base, '%s_btsnooz_hci.log' % self.label))
181 if "--btconfig=" not in " ".join(cmd):
182cmd.append("--btconfig=%s" % os.path.join(self.log_path_base, '%s_bt_config.conf' % self.label))
183 self.cmd = cmd
198 logging.debug("[%s] Running %s %s" % (self.type_identifier, self.label, " ".join(self.cmd)))
[all …]
/packages/modules/Virtualization/libs/vbmeta/src/
Dlib.rs208 let mut cmd = Command::new("./avbtool"); in unsigned_image_does_not_have_public_key() localVariable
209 cmd.args([ in unsigned_image_does_not_have_public_key()
216 let status = cmd.status().context("make_vbmeta_image")?; in unsigned_image_does_not_have_public_key()
226 let mut cmd = Command::new("./avbtool"); in signed_image_has_valid_vbmeta() localVariable
227 cmd.args([ in signed_image_has_valid_vbmeta()
236 let status = cmd.status().context("make_vbmeta_image")?; in signed_image_has_valid_vbmeta()
243 let mut cmd = Command::new("./avbtool"); in signed_image_has_valid_vbmeta() localVariable
244 cmd.args([ in signed_image_has_valid_vbmeta()
251 let status = cmd.status().context("extract_public_key")?; in signed_image_has_valid_vbmeta()
/packages/modules/Virtualization/microdroid/initrd/
DAndroid.bp38 cmd: "cat $(in) > $(out)",
50 cmd: "$(location gen_vbmeta_bootconfig) $(location avbtool) $(in) > $(out)",
71 cmd: "$(location initrd_bootconfig) attach --output $(out) $(in)",
82 cmd: "$(location initrd_bootconfig) attach --output $(out) $(in)",
93 cmd: "$(location initrd_bootconfig) attach --output $(out) $(in)",
104 cmd: "$(location initrd_bootconfig) attach --output $(out) $(in)",
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
DFailureWatcher.java137 private static void dumpStringCommand(String cmd, OutputStream out) throws IOException {
138 out.write(("\n\n" + cmd + "\n").getBytes());
139 dumpCommand(cmd, out);
142 private static void dumpCommand(String cmd, File out) {
145 dumpCommand(cmd, buffered);
150 private static void dumpCommand(String cmd, OutputStream out) throws IOException {
152 .getUiAutomation().executeShellCommand(cmd))) {

12345678910>>...12