/packages/apps/Messaging/src/com/android/messaging/util/ |
D | NotificationPlayer.java | 75 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/ |
D | vhal_emulator.py | 111 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/android/traceur/ |
D | AtraceUtils.java | 65 String cmd = "atrace --async_start -c -b " + bufferSizeKb + " " in traceStart() local 68 Log.v(TAG, "Starting async atrace: " + cmd); in traceStart() 70 Process atrace = TraceUtils.exec(cmd); in traceStart() 82 String cmd = "atrace --async_stop > /dev/null"; in traceStop() local 84 Log.v(TAG, "Stopping async atrace: " + cmd); in traceStop() 86 Process atrace = TraceUtils.exec(cmd); in traceStop() 97 String cmd = "atrace --async_stop -z -c -o " + outFile; in traceDump() local 99 Log.v(TAG, "Dumping async atrace: " + cmd); in traceDump() 101 Process atrace = TraceUtils.exec(cmd); in traceDump() 160 String cmd = "atrace --list_categories"; in atraceListCategories() local [all …]
|
D | TraceUtils.java | 93 String cmd = "rm -f " + TRACE_DIRECTORY + "trace-*.*trace"; in clearSavedTraces() local 95 Log.v(TAG, "Clearing trace directory: " + cmd); in clearSavedTraces() 97 Process rm = exec(cmd); in clearSavedTraces() 107 public static Process exec(String cmd) throws IOException { in exec() argument 108 return exec(cmd, null); in exec() 111 public static Process exec(String cmd, String tmpdir) throws IOException { in exec() argument 112 return exec(cmd, tmpdir, true); in exec() 115 public static Process exec(String cmd, String tmpdir, boolean logOutput) throws IOException { in exec() argument 116 String[] cmdarray = {"sh", "-c", cmd}; in exec()
|
D | PerfettoUtils.java | 221 String cmd = "perfetto --detach=" + PERFETTO_TAG in traceStart() local 228 Process process = TraceUtils.exec(cmd, TEMP_DIR); in traceStart() 258 String cmd = "perfetto --stop --attach=" + PERFETTO_TAG; in traceStop() local 260 Process process = TraceUtils.exec(cmd); in traceStop() 301 String cmd = "perfetto --is_detached=" + PERFETTO_TAG; in isTracingOn() local 304 Process process = TraceUtils.exec(cmd); in isTracingOn()
|
/packages/apps/SecureElement/src/com/android/se/security/arf/PKCS15/ |
D | EF.java | 177 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/DocumentsUI/tests/common/com/android/documentsui/ |
D | DialogFragmentTest.java | 289 public static String executeShellCommand(String cmd) { in executeShellCommand() argument 291 return runShellCommand(InstrumentationRegistry.getInstrumentation(), cmd); in executeShellCommand() 298 public static String runShellCommand(Instrumentation instrumentation, String cmd) in runShellCommand() argument 300 return runShellCommand(instrumentation.getUiAutomation(), cmd); in runShellCommand() 303 public static String runShellCommand(UiAutomation automation, String cmd) in runShellCommand() argument 305 if (cmd.startsWith("pm grant ") || cmd.startsWith("pm revoke ")) { in runShellCommand() 309 ParcelFileDescriptor pfd = automation.executeShellCommand(cmd); in runShellCommand()
|
/packages/apps/Test/connectivity/sl4n/utils/ |
D | command_receiver.cpp | 49 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/ |
D | DvbManager.cpp | 145 { .cmd = DTV_DELIVERY_SYSTEM } in tuneInternal() 162 .cmd = DTV_DELIVERY_SYSTEM in tuneInternal() 189 .cmd = DTV_FREQUENCY in tuneInternal() 192 .cmd = DTV_BANDWIDTH_HZ, .u.data = 8000000 in tuneInternal() 195 struct dtv_property modulationProperty = { .cmd = DTV_MODULATION }; in tuneInternal() 204 struct dtv_property tuneProperty = { .cmd = DTV_TUNE }; in tuneInternal() 526 { .cmd = DTV_ENUM_DELSYS } in getDeliverySystemTypes()
|
/packages/modules/SdkExtensions/tests/test-src/com/android/tests/apex/sdkextensions/ |
D | SdkExtensionsHostTest.java | 129 String cmd = "am broadcast"; in getBroadcastCommand() local 130 cmd += " -a com.android.tests.apex.sdkextensions." + action; in getBroadcastCommand() 131 cmd += " -n com.android.tests.apex.sdkextensions/.Receiver"; in getBroadcastCommand() 132 return cmd; in getBroadcastCommand()
|
/packages/apps/SecureElement/src/com/android/se/ |
D | Terminal.java | 623 public byte[] transmit(byte[] cmd) throws IOException { in transmit() argument 629 byte[] rsp = transmitInternal(cmd); in transmit() 634 cmd[cmd.length - 1] = rsp[rsp.length - 1]; in transmit() 635 rsp = transmit(cmd); in transmit() 639 cmd[0], (byte) 0xC0, 0x00, 0x00, (byte) sw2 in transmit() 653 private byte[] transmitInternal(byte[] cmd) throws IOException { in transmitInternal() argument 656 response = mSEHal.transmit(byteArrayToArrayList(cmd)); in transmitInternal() 665 Log.i(mTag, "Sent : " + ByteArrayConverter.byteArrayToHexString(cmd)); in transmitInternal()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerStateMachine.java | 656 private synchronized void passThru(int cmd) { in passThru() argument 657 logD("msgPassThru " + cmd); in passThru() 664 if (mCurrentlyHeldKey == cmd) { in passThru() 677 mService.sendPassThroughCommandNative(mDeviceAddress, cmd, in passThru() 680 if (isHoldableKey(cmd)) { in passThru() 682 mCurrentlyHeldKey = cmd; in passThru() 685 cmd, AvrcpControllerService.KEY_STATE_RELEASED); in passThru() 689 private boolean isHoldableKey(int cmd) { in isHoldableKey() argument 690 return (cmd == AvrcpControllerService.PASS_THRU_CMD_ID_REWIND) in isHoldableKey() 691 || (cmd == AvrcpControllerService.PASS_THRU_CMD_ID_FF); in isHoldableKey()
|
/packages/services/Car/tests/BugReportApp/utils/ |
D | bugreport_app_tester.py | 163 def adb(self, cmd): argument 176 full_cmd = ['adb', '-s', self._serialno] + cmd 178 full_cmd = ['adb'] + cmd 184 def adbx(self, cmd): argument 193 exit_code, stdout_lines = self.adb(cmd) 195 _fail_program('Failed to run command %s, exit_code=%s' % (cmd, exit_code))
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | HostNfcFEmulationManager.java | 349 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/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryInfo.java | 328 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/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | BatteryInfo.java | 325 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/services/Car/evs/app/ |
D | EvsStateControl.cpp | 134 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()
|
D | EvsVehicleListener.h | 66 EvsStateControl::Command cmd = { in run() local 71 pStateController->postCommand(cmd); in run()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/ |
D | BaseTestingActivity.java | 101 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/modules/NetworkStack/tests/hostdriven/host/src/com/android/networkstack/hosttests/ |
D | NetworkStackHostTests.kt | 97 val cmd = "am restart" in applyUpdateAndCheckNetworkStackRegistered() constant 98 val amResult = mDevice.executeShellV2Command(cmd) in applyUpdateAndCheckNetworkStackRegistered() 101 "Could not restart the framework: " + makeErrorMessage(cmd, amResult)) in applyUpdateAndCheckNetworkStackRegistered()
|
/packages/services/Car/tools/perf/app-launch-test/ |
D | app_launch_perf_test.sh | 71 local cmd="adb shell am instrument -w -r -e iterations ${ITERATION_COUNT}\ 108 done < <(${cmd})
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/ |
D | ShellCommandRule.java | 41 public ShellCommandRule(String cmd, @Nullable String revertCommand) { in ShellCommandRule() argument 42 mCmd = cmd; in ShellCommandRule()
|
/packages/apps/SecureElement/src/com/android/se/security/arf/ |
D | SecureElement.java | 85 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/ |
D | PrintJobSettingsActivityTest.java | 68 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/ |
D | phNxpExtns_MifareStd.cpp | 1580 if ((pTransceiveInfo->cmd.MfCmd == phNfc_eMifareAuthentA || in phLibNfc_ChkAuthCmdMFC() 1581 pTransceiveInfo->cmd.MfCmd == phNfc_eMifareAuthentB)) { in phLibNfc_ChkAuthCmdMFC() 1611 switch (pTransceiveInfo->cmd.MfCmd) { in phLibNfc_MifareMap() 1653 pTransceiveInfo->cmd.MfCmd; in phLibNfc_MifareMap() 1871 pTransceiveInfo->cmd = Cmd; in phFriNfc_ExtnsTransceive() 1883 pTransceiveInfo->cmd.MfCmd = Cmd.MfCmd; in phFriNfc_ExtnsTransceive() 1926 pTransceiveInfo->cmd.MfCmd = (phNfc_eMifareCmdList_t)phNciNfc_eT2TRaw; in phFriNfc_ExtnsTransceive()
|