/frameworks/av/services/oboeservice/ |
D | AAudioCommandQueue.cpp | 28 aaudio_result_t AAudioCommandQueue::sendCommand(const std::shared_ptr<AAudioCommand>& command) { in sendCommand() argument 35 mCommands.push(command); in sendCommand() 39 std::unique_lock _cl(command->lock); in sendCommand() 40 android::base::ScopedLockAssertion lockAssertion(command->lock); in sendCommand() 42 command->operationCode, command->isWaitingForReply, command->timeoutNanoseconds); in sendCommand() 46 + std::chrono::nanoseconds(command->timeoutNanoseconds); in sendCommand() 47 while (command->isWaitingForReply) { in sendCommand() 48 if (command->conditionVariable.wait_until(_cl, timeoutExpire) in sendCommand() 50 ALOGD("Command %d time out", command->operationCode); in sendCommand() 51 command->result = AAUDIO_ERROR_TIMEOUT; in sendCommand() [all …]
|
D | AAudioServiceStreamBase.cpp | 440 auto command = mCommandQueue.waitForCommand(timeoutNanos); in run() local 477 if (command != nullptr) { in run() 479 __func__, command->operationCode, loopCount); in run() 480 std::scoped_lock<std::mutex> _commandLock(command->lock); in run() 481 switch (command->operationCode) { in run() 483 command->result = start_l(); in run() 490 command->result = pause_l(); in run() 494 command->result = stop_l(); in run() 498 command->result = flush_l(); in run() 501 command->result = close_l(); in run() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/shortcut/ui/composable/ |
D | ShortcutHelperTemporaryData.kt | 72 private fun ShortcutBuilder.command(block: ShortcutCommandBuilder.() -> Unit) { in ShortcutBuilder() method 120 command { key(Icons.Default.RadioButtonUnchecked) } in <lambda>() 121 command { in <lambda>() 125 command { in <lambda>() 131 command { in <lambda>() 137 command { key(Icons.Default.KeyboardCommandKey) } in <lambda>() 142 command { key(Icons.Default.ArrowBackIosNew) } in <lambda>() 143 command { in <lambda>() 147 command { in <lambda>() 151 command { in <lambda>() [all …]
|
/frameworks/av/media/libaaudio/scripts/ |
D | measure_device_power.py | 85 def adbTryMultiple(command): argument 90 print(('Try to adb {} {} of {}'.format(command, count, limit))) 93 returnCode = subprocess.call(["adb", command]) 213 def measureEnergyForCommand(command): argument 215 print(("Measure energy for: " + command)) 216 result = runCommand(command) 222 def averageEnergyForCommand(command, count): argument 224 sumReport = measureEnergyForCommand(command) 227 report = measureEnergyForCommand(command) 243 command = line.strip() [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, command.isEs10, in sendRequestMessage()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/demomode/ |
D | DemoModeController.kt | 67 DemoMode.COMMANDS.map { command -> m.put(command, mutableListOf()) } in <lambda>() method 101 commands.forEach { command -> in <lambda>() method 102 if (!receiverMap.containsKey(command)) { in <lambda>() 104 "Command ($command) not recognized. " + "See DemoMode.java for valid commands" in <lambda>() 108 receiverMap[command]!!.add(listener) in <lambda>() 120 listener.demoCommands().forEach { command -> receiverMap[command]!!.remove(listener) } in <lambda>() method 145 fun demoFlowForCommand(command: String): Flow<Bundle> = conflatedCallbackFlow { in <lambda>() 148 override fun demoCommands(): List<String> = listOf(command) in <lambda>() 150 override fun dispatchDemoCommand(command: String, args: Bundle) { in <lambda>() 186 fun dispatchDemoCommand(command: String, args: Bundle) { in <lambda>() [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/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/av/services/audioflinger/ |
D | PatchCommandThread.cpp | 77 const sp<Command> command = mCommands.front(); in threadLoop() local 87 switch (command->mCommand) { in threadLoop() 89 const auto data = (CreateAudioPatchData*) command->mData.get(); in threadLoop() 103 const auto data = (ReleaseAudioPatchData*) command->mData.get(); in threadLoop() 117 const auto data = (UpdateAudioPatchData*) command->mData.get(); in threadLoop() 132 ALOGW("%s unknown command %d", __func__, command->mCommand); in threadLoop() 148 void PatchCommandThread::sendCommand(const sp<Command>& command) { in sendCommand() argument 150 mCommands.emplace_back(command); in sendCommand() 156 auto command = sp<Command>::make(CREATE_AUDIO_PATCH, in createAudioPatchCommand() local 162 sendCommand(command); in createAudioPatchCommand() [all …]
|
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/ |
D | ProtoLogTool.kt | 88 private fun processClasses(command: CommandOptions) { in <lambda>() 91 val generationHash = (command.javaSourceArgs.toTypedArray() + command.protoLogGroupsJarArg) in <lambda>() 99 command.protoLogGroupsJarArg, in <lambda>() 100 command.protoLogGroupsClassNameArg) in <lambda>() 101 val out = injector.fileOutputStream(command.outputSourceJarArg) in <lambda>() 104 command.protoLogClassNameArg, in <lambda>() 105 command.protoLogGroupsClassNameArg, in <lambda>() 113 outJar.write(generateProtoLogImpl(protologImplName, command.viewerConfigFilePathArg, in <lambda>() 114 command.legacyViewerConfigFilePathArg, command.legacyOutputFilePath, in <lambda>() 115 groups, command.protoLogGroupsClassNameArg).toByteArray()) in <lambda>() [all …]
|
/frameworks/av/services/audiopolicy/service/ |
D | AudioPolicyService.cpp | 1800 sp<AudioCommand> command = mAudioCommands[0]; in threadLoop() local 1805 mLastCommand = command; in threadLoop() 1807 switch (command->mCommand) { in threadLoop() 1809 VolumeData *data = (VolumeData *)command->mParam.get(); in threadLoop() 1813 command->mStatus = AudioSystem::setStreamVolume(data->mStream, in threadLoop() 1819 ParametersData *data = (ParametersData *)command->mParam.get(); in threadLoop() 1823 command->mStatus = AudioSystem::setParameters(data->mIO, data->mKeyValuePairs); in threadLoop() 1827 VoiceVolumeData *data = (VoiceVolumeData *)command->mParam.get(); in threadLoop() 1831 command->mStatus = AudioSystem::setVoiceVolume(data->mVolume); in threadLoop() 1835 StopOutputData *data = (StopOutputData *)command->mParam.get(); in threadLoop() [all …]
|
/frameworks/native/cmds/sfdo/ |
D | sfdo.rs | 48 #[command(version = "0.1", about = "Execute SurfaceFlinger internal commands.")] 49 #[command(propagate_version = true)] 51 #[command(subcommand)] 52 command: Option<Commands>, field 57 #[command(about = "[optional(--delay)] Perform a debug flash.")] 63 #[command( 70 #[command(about = "state = [hide | show], displays the framerate in the top left corner.")] 73 #[command(about = "Force composite ahead of next VSYNC.")] 76 #[command(about = "Force commit ahead of next VSYNC.")] 96 match &cli.command { in main()
|
/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/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/native/services/surfaceflinger/CompositionEngine/src/planner/ |
D | Planner.cpp | 213 const String8 command(args[1]); in dump() local 214 if (command == "--compare" || command == "-c") { in dump() 219 command.c_str()); in dump() 226 command.c_str()); in dump() 251 } else if (command == "--describe" || command == "-d") { in dump() 255 command.c_str()); in dump() 261 command.c_str()); in dump() 277 } else if (command == "--help" || command == "-h") { in dump() 279 } else if (command == "--similar" || command == "-s") { in dump() 282 command.c_str()); 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/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
D | ShellHelper.java | 41 public static String runShellCommandWithTimeout(@NonNull String command, long timeoutInSecond) in runShellCommandWithTimeout() argument 50 result.set(runShellCommandRaw(command)); in runShellCommandWithTimeout() 60 throw new TimeoutException("Command: '" + command + "' could not run in " in runShellCommandWithTimeout() 79 String command = String.format(template, args); in runShellCommand() local 80 return runShellCommandRaw(command); in runShellCommand() 87 public static String runShellCommandRaw(@NonNull String command) { in runShellCommandRaw() argument 90 ParcelFileDescriptor pfd = automan.executeShellCommand(command); in runShellCommandRaw() 101 throw new AndroidRuntimeException("Command '" + command + "' failed: ", e); in runShellCommandRaw()
|
/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/av/services/audioflinger/fastpath/ |
D | FastCaptureState.cpp | 22 const char *FastCaptureState::commandToString(Command command) in commandToString() argument 24 const char *str = FastThreadState::commandToString(command); in commandToString() 28 switch (command) { in commandToString() 33 LOG_ALWAYS_FATAL("%s: command %d invalid", __func__, (int) command); in commandToString()
|
/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/core/tests/timetests/src/android/app/timezonedetector/ |
D | ShellCommandTestSupport.java | 44 ShellCommand command = mock(ShellCommand.class); in createShellCommandWithArgsAndOptions() local 64 when(command.getNextArg()).thenAnswer( in createShellCommandWithArgsAndOptions() 66 when(command.getNextOption()).thenAnswer( in createShellCommandWithArgsAndOptions() 68 when(command.getNextArgRequired()).thenAnswer( in createShellCommandWithArgsAndOptions() 70 return command; in createShellCommandWithArgsAndOptions()
|
/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/services/tests/timetests/src/com/android/server/timezonedetector/ |
D | ShellCommandTestSupport.java | 44 ShellCommand command = mock(ShellCommand.class); in createShellCommandWithArgsAndOptions() local 64 when(command.getNextArg()).thenAnswer( in createShellCommandWithArgsAndOptions() 66 when(command.getNextOption()).thenAnswer( in createShellCommandWithArgsAndOptions() 68 when(command.getNextArgRequired()).thenAnswer( in createShellCommandWithArgsAndOptions() 70 return command; in createShellCommandWithArgsAndOptions()
|
/frameworks/native/cmds/dumpstate/ |
D | DumpstateUtil.cpp | 297 const char* command = command_string.c_str(); in RunCommandToFd() local 300 dprintf(fd, "Skipping '%s' on user build.\n", command); in RunCommandToFd() 305 dprintf(fd, "------ %s (%s) ------\n", title.c_str(), command); in RunCommandToFd() 343 dprintf(fd, "*** failed to drop root before running %s: %s\n", command, in RunCommandToFd() 346 MYLOGE("*** could not drop root before running %s: %s\n", command, strerror(errno)); in RunCommandToFd() 391 MYLOGD("execvp on command '%s' failed (error: %s)\n", command, strerror(errno)); in RunCommandToFd() 405 dprintf(fd, "*** command '%s' timed out after %.3fs (killing pid %d)\n", command, in RunCommandToFd() 407 MYLOGE("*** command '%s' timed out after %.3fs (killing pid %d)\n", command, in RunCommandToFd() 411 dprintf(fd, "*** command '%s': Error after %.4fs (killing pid %d)\n", command, in RunCommandToFd() 413 MYLOGE("command '%s': Error after %.4fs (killing pid %d)\n", command, in RunCommandToFd() [all …]
|