Home
last modified time | relevance | path

Searched refs:command (Results 1 – 25 of 335) sorted by relevance

12345678910>>...14

/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.cpp1053 sp<AudioCommand> command = mAudioCommands[0]; in threadLoop() local
1055 mLastCommand = command; in threadLoop()
1057 switch (command->mCommand) { in threadLoop()
1059 VolumeData *data = (VolumeData *)command->mParam.get(); in threadLoop()
1063 command->mStatus = AudioSystem::setStreamVolume(data->mStream, in threadLoop()
1069 ParametersData *data = (ParametersData *)command->mParam.get(); in threadLoop()
1073 command->mStatus = AudioSystem::setParameters(data->mIO, data->mKeyValuePairs); in threadLoop()
1077 VoiceVolumeData *data = (VoiceVolumeData *)command->mParam.get(); in threadLoop()
1081 command->mStatus = AudioSystem::setVoiceVolume(data->mVolume); in threadLoop()
1085 StopOutputData *data = (StopOutputData *)command->mParam.get(); in threadLoop()
[all …]
/frameworks/base/media/apex/java/android/media/
DSession2CommandGroup.java75 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 …]
DController2Link.java116 public void sendSessionCommand(int seq, Session2Command command, Bundle args, in sendSessionCommand() argument
119 mIController.sendSessionCommand(seq, command, args, resultReceiver); in sendSessionCommand()
154 public void onSessionCommand(int seq, Session2Command command, Bundle args, in onSessionCommand() argument
156 mController.onSessionCommand(seq, command, args, resultReceiver); in onSessionCommand()
196 public void sendSessionCommand(int seq, Session2Command command, Bundle args, in sendSessionCommand() argument
200 Controller2Link.this.onSessionCommand(seq, command, args, resultReceiver); in sendSessionCommand()
/frameworks/av/services/oboeservice/
DAAudioServiceStreamBase.cpp330 AAudioServiceMessage command; in sendServiceEvent() local
331 command.what = AAudioServiceMessage::code::EVENT; in sendServiceEvent()
332 command.event.event = event; in sendServiceEvent()
333 command.event.dataDouble = dataDouble; in sendServiceEvent()
334 return writeUpMessageQueue(&command); in sendServiceEvent()
339 AAudioServiceMessage command; in sendServiceEvent() local
340 command.what = AAudioServiceMessage::code::EVENT; in sendServiceEvent()
341 command.event.event = event; in sendServiceEvent()
342 command.event.dataLong = dataLong; in sendServiceEvent()
343 return writeUpMessageQueue(&command); in sendServiceEvent()
[all …]
/frameworks/base/cmds/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/
DLauncher.java76 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/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/apdu/
DTransmitApduLogicalChannelInvocation.java48 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/
DCommand_test.cpp38 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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/soap/command/
DBrowserUri.java17 package com.android.server.wifi.hotspot2.soap.command;
33 private BrowserUri(PropertyInfo command) { in BrowserUri() argument
34 mUri = command.getValue().toString(); in BrowserUri()
43 public static BrowserUri createInstance(PropertyInfo command) { in createInstance() argument
44 if (!TextUtils.equals(command.getName(), "launchBrowserToURI")) { in createInstance()
45 Log.e(TAG, "received wrong command : " + ((command == null) ? "" : command.getName())); in createInstance()
48 return new BrowserUri(command); in createInstance()
DPpsMoData.java17 package com.android.server.wifi.hotspot2.soap.command;
59 public static PpsMoData createInstance(@NonNull PropertyInfo command) { in createInstance() argument
60 if (command == null || command.getValue() == null) { in createInstance()
65 if (!TextUtils.equals(command.getName(), ADD_MO_COMMAND)) { in createInstance()
70 if (!(command.getValue() instanceof SoapPrimitive)) { in createInstance()
75 SoapPrimitive soapObject = (SoapPrimitive) command.getValue(); in createInstance()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DModelInterpreter.java469 onCHLD(String command) throws InterpreterEx in onCHLD() argument
476 c0 = command.charAt(6); in onCHLD()
478 if (command.length() >= 8) { in onCHLD()
479 c1 = command.charAt(7); in onCHLD()
490 onDial(String command) throws InterpreterEx in onDial() argument
494 success = mSimulatedCallState.onDial(command.substring(1)); in onDial()
514 onSMSSend(String command) in onSMSSend() argument
532 String command = commands[i]; in processLine() local
534 if (command.equals("A")) { in processLine()
536 } else if (command.equals("H")) { in processLine()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DWrapperInit.java107 StringBuilder command = new StringBuilder(invokeWith); in execApplication() local
115 command.append(' '); in execApplication()
116 command.append(appProcess); in execApplication()
124 command.append(" -Xcompiler-option --generate-mini-debug-info"); in execApplication()
126 command.append(" /system/bin --application"); in execApplication()
128 command.append(" '--nice-name=").append(niceName).append("'"); in execApplication()
130 command.append(" com.android.internal.os.WrapperInit "); in execApplication()
131 command.append(pipeFd != null ? pipeFd.getInt$() : 0); in execApplication()
132 command.append(' '); in execApplication()
133 command.append(targetSdkVersion); in execApplication()
[all …]
/frameworks/base/core/java/com/android/internal/midi/
DMidiConstants.java102 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/
Dcommand.cpp101 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()
Dprint.cpp72 print_command(const Command& command) in print_command() argument
75 for (map<string,string>::const_iterator it=command.env.begin(); it!=command.env.end(); it++) { in print_command()
81 fputs(command.prog.c_str(), stdout); in print_command()
82 for (vector<string>::const_iterator it=command.args.begin(); it!=command.args.end(); it++) { in print_command()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothInstrumentation.java62 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/native/cmds/dumpstate/
DDumpstateUtil.cpp254 const char* command = command_string.c_str(); in RunCommandToFd() local
257 dprintf(fd, "Skipping '%s' on user build.\n", command); in RunCommandToFd()
262 dprintf(fd, "------ %s (%s) ------\n", title.c_str(), command); in RunCommandToFd()
301 dprintf(fd, "*** failed to drop root before running %s: %s\n", command, in RunCommandToFd()
304 MYLOGE("*** could not drop root before running %s: %s\n", command, strerror(errno)); in RunCommandToFd()
329 MYLOGD("execvp on command '%s' failed (error: %s)\n", command, strerror(errno)); in RunCommandToFd()
344 dprintf(fd, "*** command '%s' timed out after %.3fs (killing pid %d)\n", command, in RunCommandToFd()
346 MYLOGE("*** command '%s' timed out after %.3fs (killing pid %d)\n", command, in RunCommandToFd()
350 dprintf(fd, "*** command '%s': Error after %.4fs (killing pid %d)\n", command, in RunCommandToFd()
352 MYLOGE("command '%s': Error after %.4fs (killing pid %d)\n", command, in RunCommandToFd()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DViewServer.java228 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/
Ddemo_mode.md12 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/apct-tests/perftests/utils/src/android/perftests/utils/
DShellHelper.java38 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/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareShellCommand.java40 public void register(String command, DelegatedShellCommand shellCommand) { in register() argument
41 if (mDelegatedCommands.containsKey(command)) { in register()
42 Log.e(TAG, "register: overwriting existing command -- '" + command + "'"); in register()
45 mDelegatedCommands.put(command, shellCommand); in register()
122 void onHelp(String command, ShellCommand parentShell); in onHelp() argument
/frameworks/av/services/audioflinger/
DFastCaptureState.cpp31 const char *FastCaptureState::commandToString(Command command) in commandToString() argument
33 const char *str = FastThreadState::commandToString(command); in commandToString()
37 switch (command) { in commandToString()
/frameworks/base/services/core/java/com/android/server/
DRecoverySystemService.java176 public boolean setupBcb(String command) { in setupBcb() argument
177 if (DEBUG) Slog.d(TAG, "setupBcb: [" + command + "]"); in setupBcb()
179 return setupOrClearBcb(true, command); in setupBcb()
184 public void rebootRecoveryWithCommand(String command) { in rebootRecoveryWithCommand() argument
185 if (DEBUG) Slog.d(TAG, "rebootRecoveryWithCommand: [" + command + "]"); in rebootRecoveryWithCommand()
187 if (!setupOrClearBcb(true, command)) { in rebootRecoveryWithCommand()
258 private boolean setupOrClearBcb(boolean isSetup, String command) { in setupOrClearBcb() argument
288 byte[] cmdUtf8 = command.getBytes("UTF-8"); in setupOrClearBcb()
/frameworks/av/media/libeffects/dynamicsproc/
DEffectDynamicsProcessing.cpp656 const int32_t command = params[0]; in DP_getParameter() local
657 switch (command) { in DP_getParameter()
660 ALOGE("%s DP_PARAM_GET_CHANNEL_COUNT (cmd %d) invalid sizes.", __func__, command); in DP_getParameter()
673 ALOGE("%s DP_PARAM_ENGINE_ARCHITECTURE (cmd %d) invalid sizes.", __func__, command); in DP_getParameter()
735 ALOGE("%s get PARAM_*_EQ (cmd %d) invalid sizes.", __func__, command); in DP_getParameter()
746 dp_fx::DPEq *pEq = DP_getEq(pContext, channel, command); in DP_getParameter()
758 (command == DP_PARAM_PRE_EQ ? "preEq" : "postEq"), channel, in DP_getParameter()
766 ALOGE("%s get PARAM_*_EQ_BAND (cmd %d) invalid sizes.", __func__, command); in DP_getParameter()
778 int eqCommand = (command == DP_PARAM_PRE_EQ_BAND ? DP_PARAM_PRE_EQ : in DP_getParameter()
779 (command == DP_PARAM_POST_EQ_BAND ? DP_PARAM_POST_EQ : -1)); in DP_getParameter()
[all …]
/frameworks/av/media/bufferpool/2.0/tests/
Dmulti.cpp61 int32_t command; member
142 message.data.command = PipeCommand::INIT_ERROR; in doReceiver()
148 message.data.command = PipeCommand::INIT_ERROR; in doReceiver()
152 message.data.command = PipeCommand::INIT_OK; in doReceiver()
165 message.data.command = PipeCommand::RECEIVE_ERROR; in doReceiver()
171 message.data.command = PipeCommand::RECEIVE_OK; in doReceiver()
205 message.data.command = PipeCommand::SEND; in TEST_F()
/frameworks/av/media/bufferpool/1.0/vts/
Dmulti.cpp61 int32_t command; member
142 message.data.command = PipeCommand::INIT_ERROR; in doReceiver()
148 message.data.command = PipeCommand::INIT_ERROR; in doReceiver()
152 message.data.command = PipeCommand::INIT_OK; in doReceiver()
165 message.data.command = PipeCommand::RECEIVE_ERROR; in doReceiver()
171 message.data.command = PipeCommand::RECEIVE_OK; in doReceiver()
205 message.data.command = PipeCommand::SEND; in TEST_F()

12345678910>>...14