/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 | 63 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() 158 String cmd = "atrace --list_categories"; in atraceListCategories() local [all …]
|
D | TraceUtils.java | 89 String cmd = "rm -f " + TRACE_DIRECTORY + "trace-*.*trace"; in clearSavedTraces() local 91 Log.v(TAG, "Clearing trace directory: " + cmd); in clearSavedTraces() 93 Process rm = exec(cmd); in clearSavedTraces() 103 public static Process exec(String cmd) throws IOException { in exec() argument 104 return exec(cmd, null); in exec() 107 public static Process exec(String cmd, String tmpdir) throws IOException { in exec() argument 108 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/Car/RotaryController/ |
D | readme.md | 23 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
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | DialogUiTest.java | 341 public static String executeShellCommand(String cmd) { in executeShellCommand() argument 343 return runShellCommand(InstrumentationRegistry.getInstrumentation(), cmd); in executeShellCommand() 350 public static String runShellCommand(Instrumentation instrumentation, String cmd) in runShellCommand() argument 352 return runShellCommand(instrumentation.getUiAutomation(), cmd); in runShellCommand() 355 public static String runShellCommand(UiAutomation automation, String cmd) in runShellCommand() argument 357 if (cmd.startsWith("pm grant ") || cmd.startsWith("pm revoke ")) { in runShellCommand() 361 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/apps/SecureElement/src/com/android/se/ |
D | Terminal.java | 620 public byte[] transmit(byte[] cmd) throws IOException { in transmit() argument 626 byte[] rsp = transmitInternal(cmd); in transmit() 631 cmd[cmd.length - 1] = rsp[rsp.length - 1]; in transmit() 632 rsp = transmit(cmd); in transmit() 636 cmd[0], (byte) 0xC0, 0x00, 0x00, (byte) sw2 in transmit() 650 private byte[] transmitInternal(byte[] cmd) throws IOException { in transmitInternal() argument 653 response = mSEHal.transmit(byteArrayToArrayList(cmd)); in transmitInternal() 662 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/android_car_api_test/src/android/car/apitest/ |
D | PreInstalledPackagesTest.java | 44 String cmd = "cmd user report-system-user-package-whitelist-problems --critical-only%s"; in assertNoCriticalErrors() local 46 String result = runShellCommand(cmd, mode); in assertNoCriticalErrors() 48 fail("Command '" + String.format(cmd, mode) + "' reported errors:\n" + result); in assertNoCriticalErrors()
|
/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 | 348 private String getByteDump(final byte[] cmd) { in getByteDump() argument 353 if (cmd == null) { in getByteDump() 358 for (; i < cmd.length; i++) { in getByteDump() 359 str.append(String.format(" %02X", cmd[i])); in getByteDump() 360 if ((i % letters == letters - 1) || (i + 1 == cmd.length)) { in getByteDump()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryInfo.java | 326 if (rec.cmd == HistoryItem.CMD_CURRENT_TIME in parse() 327 || rec.cmd == HistoryItem.CMD_RESET) { in parse() 376 if (rec.cmd == HistoryItem.CMD_CURRENT_TIME in parse() 377 || rec.cmd == HistoryItem.CMD_RESET) { in parse() 386 if (rec.cmd != HistoryItem.CMD_OVERFLOW in parse() 387 && (rec.cmd != HistoryItem.CMD_CURRENT_TIME in parse()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | BatteryInfo.java | 323 if (rec.cmd == HistoryItem.CMD_CURRENT_TIME in parse() 324 || rec.cmd == HistoryItem.CMD_RESET) { in parse() 373 if (rec.cmd == HistoryItem.CMD_CURRENT_TIME in parse() 374 || rec.cmd == HistoryItem.CMD_RESET) { in parse() 383 if (rec.cmd != HistoryItem.CMD_OVERFLOW in parse() 384 && (rec.cmd != HistoryItem.CMD_CURRENT_TIME in parse()
|
/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/services/Car/evs/apps/default/ |
D | EvsStateControl.cpp | 133 void EvsStateControl::postCommand(const Command& cmd, bool clear) { in postCommand() argument 141 mCommandQueue.push(cmd); in postCommand() 158 const Command& cmd = mCommandQueue.front(); in updateLoop() local 159 switch (cmd.operation) { in updateLoop()
|
D | EvsVehicleListener.h | 66 EvsStateControl::Command cmd = { in run() local 71 pStateController->postCommand(cmd); in run()
|
/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/service/src/com/android/car/ |
D | CarShellCommand.java | 276 public int onCommand(String cmd) { in onCommand() argument 277 if (cmd == null) { in onCommand() 282 argsList.add(cmd); in onCommand() 451 String cmd = args[0]; in exec() local 452 String requiredPermission = USER_BUILD_COMMAND_TO_PERMISSION_MAP.get(cmd); in exec() 454 Log.v(TAG, "cmd: " + cmd + ", requiredPermission: " + requiredPermission); in exec() 457 throw new SecurityException("The command " + cmd + "requires non-user build"); in exec() 461 throw new SecurityException("The command " + cmd + "requires permission:" in exec() 465 switch (cmd) { in exec() 645 writer.println("Unknown command: \"" + cmd + "\""); in exec()
|
/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/services/Car/computepipe/runner/graph/proto/ |
D | Android.bp | 7 …cmd: "$(location aprotoc) -I$$(dirname $(in)) -Iexternal/protobuf/src --plugin=protoc-gen-grpc=$(l… 23 …cmd: "$(location aprotoc) -I$$(dirname $(in)) -Iexternal/protobuf/src --plugin=protoc-gen-grpc=$(l…
|