Home
last modified time | relevance | path

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

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/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/apps/Traceur/src/com/google/android/traceur/
DAtraceUtils.java63 String cmd = "atrace --async_start -c -b " + bufferSizeKb + " " in traceStart() local
66 Log.v(TAG, "Starting async atrace: " + cmd); in traceStart()
68 Process atrace = TraceUtils.exec(cmd); in traceStart()
80 String cmd = "atrace --async_stop > /dev/null"; in traceStop() local
82 Log.v(TAG, "Stopping async atrace: " + cmd); in traceStop()
84 Process atrace = TraceUtils.exec(cmd); in traceStop()
95 String cmd = "atrace --async_stop -z -c -o " + outFile; in traceDump() local
97 Log.v(TAG, "Dumping async atrace: " + cmd); in traceDump()
99 Process atrace = TraceUtils.exec(cmd); in traceDump()
157 String cmd = "atrace --list_categories"; in atraceListCategories() local
[all …]
DTraceUtils.java87 String cmd = "rm -f " + TRACE_DIRECTORY + "trace-*.*trace"; in clearSavedTraces() local
89 Log.v(TAG, "Clearing trace directory: " + cmd); in clearSavedTraces()
91 Process rm = exec(cmd); in clearSavedTraces()
101 public static Process exec(String cmd) throws IOException { in exec() argument
102 return exec(cmd, null); in exec()
105 public static Process exec(String cmd, String tmpdir) throws IOException { in exec() argument
106 String[] cmdarray = {"sh", "-c", cmd}; in exec()
DPerfettoUtils.java201 String cmd = "perfetto --detach=" + PERFETTO_TAG in traceStart() local
208 Process process = TraceUtils.exec(cmd, TEMP_DIR); in traceStart()
238 String cmd = "perfetto --stop --attach=" + PERFETTO_TAG; in traceStop() local
240 Process process = TraceUtils.exec(cmd); in traceStop()
280 String cmd = "perfetto --is_detached=" + PERFETTO_TAG; in isTracingOn() local
283 Process process = TraceUtils.exec(cmd); in isTracingOn()
/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/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachine.java385 private synchronized void passThru(int cmd) { in passThru() argument
386 logD("msgPassThru " + cmd); in passThru()
393 if (mCurrentlyHeldKey == cmd) { in passThru()
406 mService.sendPassThroughCommandNative(mDeviceAddress, cmd, in passThru()
409 if (isHoldableKey(cmd)) { in passThru()
411 mCurrentlyHeldKey = cmd; in passThru()
414 cmd, AvrcpControllerService.KEY_STATE_RELEASED); in passThru()
418 private boolean isHoldableKey(int cmd) { in isHoldableKey() argument
419 return (cmd == AvrcpControllerService.PASS_THRU_CMD_ID_REWIND) in isHoldableKey()
420 || (cmd == AvrcpControllerService.PASS_THRU_CMD_ID_FF); in isHoldableKey()
/packages/apps/SecureElement/src/com/android/se/
DTerminal.java569 public byte[] transmit(byte[] cmd) throws IOException { in transmit() argument
575 byte[] rsp = transmitInternal(cmd); in transmit()
580 cmd[cmd.length - 1] = rsp[rsp.length - 1]; in transmit()
581 rsp = transmitInternal(cmd); in transmit()
585 cmd[0], (byte) 0xC0, 0x00, 0x00, (byte) sw2 in transmit()
599 private byte[] transmitInternal(byte[] cmd) throws IOException { in transmitInternal() argument
602 response = mSEHal.transmit(byteArrayToArrayList(cmd)); in transmitInternal()
611 Log.i(mTag, "Sent : " + ByteArrayConverter.byteArrayToHexString(cmd)); in transmitInternal()
/packages/apps/Test/connectivity/sl4n/utils/
Dcommand_receiver.cpp49 std::string cmd; in Call() local
51 cmd = doc[sl4n::kCmdStr].GetString(); in Call()
53 cmd = doc[sl4n::kMethodStr].GetString(); in Call()
56 function_map::const_iterator iter = _funcMap->find(cmd); in Call()
/packages/apps/TV/jni/
DDvbManager.cpp130 { .cmd = DTV_DELIVERY_SYSTEM } in tune()
147 .cmd = DTV_DELIVERY_SYSTEM in tune()
151 .cmd = DTV_FREQUENCY in tune()
154 struct dtv_property modulationProperty = { .cmd = DTV_MODULATION }; in tune()
163 struct dtv_property tuneProperty = { .cmd = DTV_TUNE }; in tune()
475 { .cmd = DTV_DELIVERY_SYSTEM } in getDeliverySystemType()
/packages/services/Car/tests/BugReportApp/utils/
Dbugreport_app_tester.py148 def adb(self, cmd): argument
161 full_cmd = ['adb', '-s', self._serialno] + cmd
163 full_cmd = ['adb'] + cmd
169 def adbx(self, cmd): argument
178 exit_code, stdout_lines = self.adb(cmd)
180 _fail_program('Failed to run command %s, exit_code=%s' % (cmd, exit_code))
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DHostNfcFEmulationManager.java349 private String getByteDump(final byte[] cmd) { in getByteDump() argument
354 if (cmd == null) { in getByteDump()
359 for (; i < cmd.length; i++) { in getByteDump()
360 str.append(String.format(" %02X", cmd[i])); in getByteDump()
361 if ((i % letters == letters - 1) || (i + 1 == cmd.length)) { in getByteDump()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryInfo.java325 if (rec.cmd == HistoryItem.CMD_CURRENT_TIME in parse()
326 || rec.cmd == HistoryItem.CMD_RESET) { in parse()
375 if (rec.cmd == HistoryItem.CMD_CURRENT_TIME in parse()
376 || rec.cmd == HistoryItem.CMD_RESET) { in parse()
385 if (rec.cmd != HistoryItem.CMD_OVERFLOW in parse()
386 && (rec.cmd != HistoryItem.CMD_CURRENT_TIME in parse()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryInfo.java328 if (rec.cmd == HistoryItem.CMD_CURRENT_TIME in parse()
329 || rec.cmd == HistoryItem.CMD_RESET) { in parse()
378 if (rec.cmd == HistoryItem.CMD_CURRENT_TIME in parse()
379 || rec.cmd == HistoryItem.CMD_RESET) { in parse()
388 if (rec.cmd != HistoryItem.CMD_OVERFLOW in parse()
389 && (rec.cmd != HistoryItem.CMD_CURRENT_TIME in parse()
/packages/services/Car/evs/app/
DEvsStateControl.cpp134 void EvsStateControl::postCommand(const Command& cmd) { in postCommand() argument
137 mCommandQueue.push(cmd); in postCommand()
154 const Command& cmd = mCommandQueue.front(); in updateLoop() local
155 switch (cmd.operation) { in updateLoop()
DEvsVehicleListener.h66 EvsStateControl::Command cmd = { in run() local
71 pStateController->postCommand(cmd); in run()
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/
DBaseTestingActivity.java101 private void handleCommand(Intent cmd) { in handleCommand() argument
102 String methodName = cmd.getStringExtra(EXTRA_METHOD); in handleCommand()
114 Bundle extras = cmd.getExtras(); in handleCommand()
/packages/services/Telephony/src/com/android/phone/
DTelephonyShellCommand.java72 public int onCommand(String cmd) { in onCommand() argument
73 if (cmd == null) { in onCommand()
77 switch (cmd) { in onCommand()
89 return handleDefaultCommands(cmd); in onCommand()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
DShellCommandRule.java41 public ShellCommandRule(String cmd, @Nullable String revertCommand) { in ShellCommandRule() argument
42 mCmd = cmd; in ShellCommandRule()
/packages/apps/SecureElement/src/com/android/se/security/arf/
DSecureElement.java85 public byte[] exchangeAPDU(EF ef, byte[] cmd) throws IOException, SecureElementException { in exchangeAPDU() argument
87 return mArfChannel.transmit(cmd); in exchangeAPDU()
/packages/apps/Settings/tests/unit/src/com/android/settings/print/
DPrintJobSettingsActivityTest.java68 public static void runShellCommand(@NonNull String cmd) throws IOException { in runShellCommand() argument
71 cmd); in runShellCommand()
/packages/apps/Nfc/nci/jni/extns/pn54x/src/mifare/
DphNxpExtns_MifareStd.cpp1584 if ((pTransceiveInfo->cmd.MfCmd == phNfc_eMifareAuthentA || in phLibNfc_ChkAuthCmdMFC()
1585 pTransceiveInfo->cmd.MfCmd == phNfc_eMifareAuthentB)) { in phLibNfc_ChkAuthCmdMFC()
1615 switch (pTransceiveInfo->cmd.MfCmd) { in phLibNfc_MifareMap()
1657 pTransceiveInfo->cmd.MfCmd; in phLibNfc_MifareMap()
1875 pTransceiveInfo->cmd = Cmd; in phFriNfc_ExtnsTransceive()
1887 pTransceiveInfo->cmd.MfCmd = Cmd.MfCmd; in phFriNfc_ExtnsTransceive()
1930 pTransceiveInfo->cmd.MfCmd = (phNfc_eMifareCmdList_t)phNciNfc_eT2TRaw; in phFriNfc_ExtnsTransceive()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DMenuExecutor.java370 DataManager manager, JobContext jc, int cmd, Path path) { in execute() argument
372 Log.v(TAG, "Execute cmd: " + cmd + " for " + path); in execute()
375 switch (cmd) { in execute()
/packages/apps/Stk/src/com/android/stk/
DStkAppService.java873 private boolean isCmdInteractive(CatCmdMessage cmd) { in isCmdInteractive() argument
874 switch (cmd.getCmdType()) { in isCmdInteractive()
896 DelayedCmd cmd = mStkContext[slotId].mCmdsQ.poll(); in handleDelayedCmd() local
897 if (cmd != null) { in handleDelayedCmd()
900 " id: " + cmd.id + "sim id: " + cmd.slotId); in handleDelayedCmd()
901 switch (cmd.id) { in handleDelayedCmd()
903 handleCmd(cmd.msg, cmd.slotId); in handleDelayedCmd()
906 handleSessionEnd(cmd.slotId); in handleDelayedCmd()
/packages/services/Car/car-lib/
DAndroid.bp104cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -n | tail -1) $(genDir)/last-released-api.txt",
115cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -n | tail -1) $(genDir)/last-released-system-a…

12