/frameworks/base/tools/protologtool/src/com/android/protolog/tool/ |
D | ProtoLogTool.kt | 45 private fun processClasses(command: CommandOptions) { in <lambda>() 47 command.protoLogGroupsJarArg, in <lambda>() 48 command.protoLogGroupsClassNameArg) in <lambda>() 49 val out = injector.fileOutputStream(command.outputSourceJarArg) in <lambda>() 51 val processor = ProtoLogCallProcessor(command.protoLogClassNameArg, in <lambda>() 52 command.protoLogGroupsClassNameArg, groups) in <lambda>() 57 command.javaSourceArgs.map { path -> in <lambda>() 59 val transformer = SourceTransformer(command.protoLogImplClassNameArg, in <lambda>() 60 command.protoLogCacheClassNameArg, processor) in <lambda>() 65 if (containsProtoLogText(text, command.protoLogClassNameArg)) { in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/demomode/ |
D | DemoModeController.kt | 59 DemoMode.COMMANDS.map { command -> in <lambda>() method 60 m.put(command, mutableListOf()) in <lambda>() 91 commands.forEach { command -> in <lambda>() method 92 if (!receiverMap.containsKey(command)) { in <lambda>() 93 throw IllegalStateException("Command ($command) not recognized. " + in <lambda>() 97 receiverMap[command]!!.add(listener) in <lambda>() 111 listener.demoCommands().forEach { command -> in <lambda>() method 112 receiverMap[command]!!.remove(listener) in <lambda>() 154 fun dispatchDemoCommand(command: String, args: Bundle) { in <lambda>() 158 Log.d(TAG, "dispatchDemoCommand: $command, args=$args") in <lambda>() [all …]
|
/frameworks/base/apex/media/framework/java/android/media/ |
D | Session2CommandGroup.java | 75 for (Parcelable command : commands) { in Session2CommandGroup() 76 mCommands.add((Session2Command) command); in Session2CommandGroup() 86 public boolean hasCommand(@NonNull Session2Command command) { in hasCommand() argument 87 if (command == null) { in hasCommand() 90 return mCommands.contains(command); in hasCommand() 103 for (Session2Command command : mCommands) { in hasCommand() 104 if (command.getCommandCode() == commandCode) { in hasCommand() 165 public Builder addCommand(@NonNull Session2Command command) { in addCommand() argument 166 if (command == null) { in addCommand() 169 mCommands.add(command); in addCommand() [all …]
|
/frameworks/base/cmds/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/ |
D | Launcher.java | 76 Command command = findCommand(args[0]); in main() local 77 if (command != null) { in main() 83 command.run(args2); in main() 91 for (Command command : COMMANDS) { in findCommand() 92 if (command.name().equals(name)) { in findCommand() 93 return command; in findCommand() 104 for (Command command : COMMANDS) { 105 String shortHelp = command.shortHelp(); 106 String detailedOptions = command.detailedOptions(); 113 System.err.println(String.format("%s: %s", command.name(), shortHelp));
|
/frameworks/av/services/audiopolicy/service/ |
D | AudioPolicyService.cpp | 1574 sp<AudioCommand> command = mAudioCommands[0]; in threadLoop() local 1576 mLastCommand = command; in threadLoop() 1578 switch (command->mCommand) { in threadLoop() 1580 VolumeData *data = (VolumeData *)command->mParam.get(); in threadLoop() 1584 command->mStatus = AudioSystem::setStreamVolume(data->mStream, in threadLoop() 1590 ParametersData *data = (ParametersData *)command->mParam.get(); in threadLoop() 1594 command->mStatus = AudioSystem::setParameters(data->mIO, data->mKeyValuePairs); in threadLoop() 1598 VoiceVolumeData *data = (VoiceVolumeData *)command->mParam.get(); in threadLoop() 1602 command->mStatus = AudioSystem::setVoiceVolume(data->mVolume); in threadLoop() 1606 StopOutputData *data = (StopOutputData *)command->mParam.get(); in threadLoop() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/apdu/ |
D | TransmitApduLogicalChannelInvocation.java | 48 protected void sendRequestMessage(ApduCommand command, Message msg) { in sendRequestMessage() argument 49 Rlog.v(LOG_TAG, "Send: " + command); in sendRequestMessage() 50 mCi.iccTransmitApduLogicalChannel(command.channel, command.cla | command.channel, in sendRequestMessage() 51 command.ins, command.p1, command.p2, command.p3, command.cmdHex, msg); in sendRequestMessage()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Command_test.cpp | 38 TestCommand command; in TEST() local 40 command.AddRequiredFlag("--rflag", "", &required_flag, Command::kPath); in TEST() 42 command.AddOptionalFlag("--oflag", "", &optional_flag, Command::kPath); in TEST() 44 command.AddRequiredFlagList("--rlflag", "", &required_flag_list, Command::kPath); in TEST() 46 command.AddOptionalFlagList("--olflag", "", &optional_flag_list, Command::kPath); in TEST() 48 command.AddRequiredFlag("--nflag", "", &non_path_flag); in TEST() 69 ASSERT_THAT(command.Execute({"--rflag", kLongPath, in TEST() 88 ASSERT_THAT(command.args_.size(), Eq(2)); in TEST() 89 ASSERT_THAT(command.args_[0], Eq(kExpected)); in TEST() 90 ASSERT_THAT(command.args_[1], Eq(kExpected)); in TEST()
|
/frameworks/native/libs/binder/ |
D | RpcState.cpp | 363 RpcWireHeader command{ in transact() local 364 .command = RPC_COMMAND_TRANSACT, in transact() 368 if (!rpcSend(fd, "transact header", &command, sizeof(command))) { in transact() 395 RpcWireHeader command; in waitForReply() local 397 if (!rpcRec(fd, "command header", &command, sizeof(command))) { in waitForReply() 401 if (command.command == RPC_COMMAND_REPLY) break; in waitForReply() 403 status_t status = processServerCommand(fd, session, command); in waitForReply() 407 CommandData data(command.bodySize); in waitForReply() 412 if (!rpcRec(fd, "reply body", data.data(), command.bodySize)) { in waitForReply() 416 if (command.bodySize < sizeof(RpcWireReply)) { in waitForReply() [all …]
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/testing/ |
D | DiffScriptProcessor.java | 84 Command command = Command.parse(commandString.get()); in process() local 86 if (command.mIsRange) { in process() 87 checkFileRange(command.mCount, command.mLimit); in process() 88 copyRange(randomAccessInput, outputStream, command.mCount, command.mLimit); in process() 90 long bytesCopied = copyBytes(diffScript, outputStream, command.mCount); in process() 91 if (bytesCopied < command.mCount) { in process() 97 command.mCount, in process() 241 private static Command parse(String command) throws MalformedDiffScriptException { in parse() argument 242 if (!VALID_COMMAND_PATTERN.matcher(command).matches()) { in parse() 243 throw new MalformedDiffScriptException("Bad command: " + command); in parse() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | WrapperInit.java | 110 StringBuilder command = new StringBuilder(invokeWith); in execApplication() local 118 command.append(' '); in execApplication() 119 command.append(appProcess); in execApplication() 127 command.append(" -Xcompiler-option --generate-mini-debug-info"); in execApplication() 129 command.append(" /system/bin --application"); in execApplication() 131 command.append(" '--nice-name=").append(niceName).append("'"); in execApplication() 133 command.append(" com.android.internal.os.WrapperInit "); in execApplication() 134 command.append(pipeFd != null ? pipeFd.getInt$() : 0); in execApplication() 135 command.append(' '); in execApplication() 136 command.append(targetSdkVersion); in execApplication() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/ |
D | Planner.cpp | 203 const String8 command(args[1]); in dump() local 204 if (command == "--compare" || command == "-c") { in dump() 209 command.string()); in dump() 216 command.string()); in dump() 241 } else if (command == "--describe" || command == "-d") { in dump() 245 command.string()); in dump() 251 command.string()); in dump() 267 } else if (command == "--help" || command == "-h") { in dump() 269 } else if (command == "--similar" || command == "-s") { in dump() 272 command.string()); in dump() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ModelInterpreter.java | 472 onCHLD(String command) throws InterpreterEx in onCHLD() argument 479 c0 = command.charAt(6); in onCHLD() 481 if (command.length() >= 8) { in onCHLD() 482 c1 = command.charAt(7); in onCHLD() 493 onDial(String command) throws InterpreterEx in onDial() argument 497 success = mSimulatedCallState.onDial(command.substring(1)); in onDial() 517 onSMSSend(String command) in onSMSSend() argument 535 String command = commands[i]; in processLine() local 537 if (command.equals("A")) { in processLine() 539 } else if (command.equals("H")) { in processLine() [all …]
|
D | TestExecutorService.java | 183 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { in schedule() argument 186 mScheduledRunnables.put(scheduledTime, command); in schedule() 188 Log.i(TAG, "schedule: runnable=" + System.identityHashCode(command) + ", time=" in schedule() 192 command, delay); in schedule() 201 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, in scheduleAtFixedRate() argument 203 return scheduleWithFixedDelay(command, initialDelay, period, unit); in scheduleAtFixedRate() 207 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, in scheduleWithFixedDelay() argument 211 mScheduledRunnables.put(nextScheduledTime, command); in scheduleWithFixedDelay() 212 mRepeatDuration.put(command, unit.toMillis(delay)); in scheduleWithFixedDelay() 215 command, delay); in scheduleWithFixedDelay() [all …]
|
/frameworks/av/services/oboeservice/ |
D | AAudioServiceStreamBase.cpp | 506 AAudioServiceMessage command; in sendServiceEvent() local 507 command.what = AAudioServiceMessage::code::EVENT; in sendServiceEvent() 508 command.event.event = event; in sendServiceEvent() 509 command.event.dataDouble = dataDouble; in sendServiceEvent() 510 return writeUpMessageQueue(&command); in sendServiceEvent() 515 AAudioServiceMessage command; in sendServiceEvent() local 516 command.what = AAudioServiceMessage::code::EVENT; in sendServiceEvent() 517 command.event.event = event; in sendServiceEvent() 518 command.event.dataLong = dataLong; in sendServiceEvent() 519 return writeUpMessageQueue(&command); in sendServiceEvent() [all …]
|
/frameworks/base/core/java/com/android/internal/midi/ |
D | MidiConstants.java | 102 public static boolean allowRunningStatus(byte command) { in allowRunningStatus() argument 104 return (command >= STATUS_NOTE_OFF && command < STATUS_SYSTEM_EXCLUSIVE); in allowRunningStatus() 108 public static boolean cancelsRunningStatus(byte command) { in cancelsRunningStatus() argument 110 return (command >= STATUS_SYSTEM_EXCLUSIVE && command <= STATUS_END_SYSEX); in cancelsRunningStatus()
|
/frameworks/base/tools/bit/ |
D | command.cpp | 101 get_command_output(const Command& command, int* err, bool quiet) in get_command_output() argument 104 print_command(command); in get_command_output() 123 const char* prog = command.GetProg(); in get_command_output() 124 char* const* argv = command.GetArgv(); in get_command_output() 125 char* const* env = command.GetEnv(); in get_command_output() 160 run_command(const Command& command) in run_command() argument 162 print_command(command); in run_command() 171 const char* prog = command.GetProg(); in run_command() 172 char* const* argv = command.GetArgv(); in run_command() 173 char* const* env = command.GetEnv(); in run_command()
|
/frameworks/native/cmds/dumpstate/ |
D | DumpstateUtil.cpp | 274 const char* command = command_string.c_str(); in RunCommandToFd() local 277 dprintf(fd, "Skipping '%s' on user build.\n", command); in RunCommandToFd() 282 dprintf(fd, "------ %s (%s) ------\n", title.c_str(), command); in RunCommandToFd() 322 dprintf(fd, "*** failed to drop root before running %s: %s\n", command, in RunCommandToFd() 325 MYLOGE("*** could not drop root before running %s: %s\n", command, strerror(errno)); in RunCommandToFd() 370 MYLOGD("execvp on command '%s' failed (error: %s)\n", command, strerror(errno)); in RunCommandToFd() 385 dprintf(fd, "*** command '%s' timed out after %.3fs (killing pid %d)\n", command, in RunCommandToFd() 387 MYLOGE("*** command '%s' timed out after %.3fs (killing pid %d)\n", command, in RunCommandToFd() 391 dprintf(fd, "*** command '%s': Error after %.4fs (killing pid %d)\n", command, in RunCommandToFd() 393 MYLOGE("command '%s': Error after %.4fs (killing pid %d)\n", command, in RunCommandToFd() [all …]
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
D | BluetoothInstrumentation.java | 62 String command = mArgs.getString("command"); in onStart() local 63 if ("enable".equals(command)) { in onStart() 65 } else if ("disable".equals(command)) { in onStart() 67 } else if ("unpairAll".equals(command)) { in onStart() 69 } else if ("getName".equals(command)) { in onStart() 71 } else if ("getAddress".equals(command)) { in onStart() 73 } else if ("getBondedDevices".equals(command)) { in onStart()
|
/frameworks/base/tools/dump-coverage/ |
D | dump_coverage.cc | 151 std::string command, args; in SplitOnColon() local 154 command = options; in SplitOnColon() 156 command = options.substr(0, loc_delim); in SplitOnColon() 159 return tuple(command, args); in SplitOnColon() 166 auto command = get<0>(split), args = get<1>(split); in ParseOptionsAndExecuteCommand() local 168 LOG(INFO) << "command: '" << command << "' args: '" << args << "'"; in ParseOptionsAndExecuteCommand() 170 if (command == "dump") { in ParseOptionsAndExecuteCommand() 174 if (command == "reset") { in ParseOptionsAndExecuteCommand() 179 << command << "'"; in ParseOptionsAndExecuteCommand()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ViewServer.java | 228 String command; in run() local 233 command = request; in run() 236 command = request.substring(0, index); in run() 241 if (COMMAND_PROTOCOL_VERSION.equalsIgnoreCase(command)) { in run() 243 } else if (COMMAND_SERVER_VERSION.equalsIgnoreCase(command)) { in run() 245 } else if (COMMAND_WINDOW_MANAGER_LIST.equalsIgnoreCase(command)) { in run() 247 } else if (COMMAND_WINDOW_MANAGER_GET_FOCUS.equalsIgnoreCase(command)) { in run() 249 } else if (COMMAND_WINDOW_MANAGER_AUTOLIST.equalsIgnoreCase(command)) { in run() 253 command, parameters); in run() 257 Slog.w(LOG_TAG, "An error occurred with the command: " + command); in run()
|
/frameworks/base/packages/SystemUI/docs/ |
D | demo_mode.md | 12 The protocol is based on broadcast intents, and thus can be driven via the command line (```adb she… 23 Commands are sent as string extras with key ```command``` (required). Possible values are: 66 adb shell am broadcast -a com.android.systemui.demo -e command enter 73 adb shell am broadcast -a com.android.systemui.demo -e command exit 80 adb shell am broadcast -a com.android.systemui.demo -e command clock -e hhmm 88 adb shell am broadcast -a com.android.systemui.demo -e command network -e wifi 96 adb shell am broadcast -a com.android.systemui.demo -e command status -e volume 104 adb shell am broadcast -a com.android.systemui.demo -e command battery -e level 112 adb shell am broadcast -a com.android.systemui.demo -e command notifications -e 120 adb shell am broadcast -a com.android.systemui.demo -e command exit [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/timezonedetector/ |
D | ShellCommandTestSupport.java | 37 ShellCommand command = mock(ShellCommand.class); in createShellCommandWithArgsAndOptions() local 57 when(command.getNextArg()).thenAnswer( in createShellCommandWithArgsAndOptions() 59 when(command.getNextOption()).thenAnswer( in createShellCommandWithArgsAndOptions() 61 when(command.getNextArgRequired()).thenAnswer( in createShellCommandWithArgsAndOptions() 63 return command; in createShellCommandWithArgsAndOptions()
|
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
D | ShellHelper.java | 38 String command = String.format(template, args); in runShellCommand() local 39 return runShellCommandRaw(command); in runShellCommand() 46 public static String runShellCommandRaw(@NonNull String command) { in runShellCommandRaw() argument 49 ParcelFileDescriptor pfd = automan.executeShellCommand(command); in runShellCommandRaw() 60 throw new AndroidRuntimeException("Command '" + command + "' failed: ", e); in runShellCommandRaw()
|
/frameworks/native/vulkan/scripts/ |
D | generator_common.py | 350 for command in commands: 351 if command.tag == 'command': 356 if command.get('alias') is not None: 357 alias = command.get('alias') 358 cmd_name = command.get('name') 363 for params in command: 413 for command in req: 414 if command.tag == 'command': 415 cmd_name = command.get('name')
|
/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/ |
D | PlatformCompatCommandNotInstalledTest.kt | 102 val result = command("am compat reset $TEST_CHANGE_ID $TEST_PKG") in <lambda>() 111 command("am compat reset $TEST_CHANGE_ID $TEST_PKG") in <lambda>() 120 true -> assertThat(command("am compat enable $TEST_CHANGE_ID $TEST_PKG")) in <lambda>() 122 false -> assertThat(command("am compat disable $TEST_CHANGE_ID $TEST_PKG")) in <lambda>() 134 private fun command(command: String): String { in <lambda>() method 135 val fileDescriptor = uiAutomation.executeShellCommand(command) in <lambda>()
|