Home
last modified time | relevance | path

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

1234567891011

/frameworks/av/services/audiopolicy/
DAudioPolicyService.cpp391 sp<AudioCommand> command = mAudioCommands[0]; in threadLoop() local
393 mLastCommand = command; in threadLoop()
395 switch (command->mCommand) { in threadLoop()
398 ToneData *data = (ToneData *)command->mParam.get(); in threadLoop()
417 VolumeData *data = (VolumeData *)command->mParam.get(); in threadLoop()
420 command->mStatus = AudioSystem::setStreamVolume(data->mStream, in threadLoop()
425 ParametersData *data = (ParametersData *)command->mParam.get(); in threadLoop()
428 command->mStatus = AudioSystem::setParameters(data->mIO, data->mKeyValuePairs); in threadLoop()
431 VoiceVolumeData *data = (VoiceVolumeData *)command->mParam.get(); in threadLoop()
434 command->mStatus = AudioSystem::setVoiceVolume(data->mVolume); in threadLoop()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DWrapperInit.java99 StringBuilder command = new StringBuilder(invokeWith); in execApplication() local
100 command.append(" /system/bin/app_process /system/bin --application"); in execApplication()
102 command.append(" '--nice-name=").append(niceName).append("'"); in execApplication()
104 command.append(" com.android.internal.os.WrapperInit "); in execApplication()
105 command.append(pipeFd != null ? pipeFd.getInt$() : 0); in execApplication()
106 command.append(' '); in execApplication()
107 command.append(targetSdkVersion); in execApplication()
108 Zygote.appendQuotedShellArgs(command, args); in execApplication()
109 Zygote.execShell(command.toString()); in execApplication()
123 StringBuilder command = new StringBuilder(invokeWith); in execStandalone() local
[all …]
DZygote.java167 public static void execShell(String command) { in execShell() argument
168 String[] args = { "/system/bin/sh", "-c", command }; in execShell()
185 public static void appendQuotedShellArgs(StringBuilder command, String[] args) { in appendQuotedShellArgs() argument
187 command.append(" '").append(arg.replace("'", "'\\''")).append("'"); in appendQuotedShellArgs()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/
Dbuild_vc.pl34 my (@headerlist, @filelist, $hd, $file, $ofile, $command, $objlist, $libfile, $h);
78 $command = $CC.' '.$CC_OPTS.' '.$hd.' -o '.$objfile.' '.$file;
79 print "$command\n";
80 system($command);
85 $command = $AS.' '.$AS_OPTS.' '.$hd.' -o '.$objfile.' '.$file;
86 print "$command\n";
87 system($command);
102 $command = $LIB.' '.$LIB_OPTS.' '.$libfile.' '.$objlist;
103 print "$command\n";
104 (system($command) == 0) and print "Build successful\n";
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/
Dbuild_vc.pl34 my (@headerlist, @filelist, $hd, $file, $ofile, $command, $objlist, $libfile, $h);
78 $command = $CC.' '.$CC_OPTS.' '.$hd.' -o '.$objfile.' '.$file;
79 print "$command\n";
80 system($command);
85 $command = $AS.' '.$AS_OPTS.' '.$hd.' -o '.$objfile.' '.$file;
86 print "$command\n";
87 system($command);
102 $command = $LIB.' '.$LIB_OPTS.' '.$libfile.' '.$objlist;
103 print "$command\n";
104 (system($command) == 0) and print "Build successful\n";
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/
Dbuild_vc.pl34 my (@headerlist, @filelist, $hd, $file, $ofile, $command, $objlist, $libfile, $h);
80 $command = $CC.' '.$CC_OPTS.' '.$hd.' -o '.$objfile.' '.$file;
81 print "$command\n";
82 system($command);
87 $command = $AS.' '.$AS_OPTS.' '.$hd.' -o '.$objfile.' '.$file;
88 print "$command\n";
89 system($command);
104 $command = $LIB.' '.$LIB_OPTS.' '.$libfile.' '.$objlist;
105 print "$command\n";
106 (system($command) == 0) and print "Build successful\n";
/frameworks/testing/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/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/packages/DocumentsUI/src/com/android/documentsui/
DProviderExecutor.java89 public void execute(Runnable command) {
90 Preconditions.checkNotNull(command);
91 mQueue.add(command);
96 public void execute(Runnable command) { in execute() argument
98 Preconditions.checkNotNull(command); in execute()
99 mQueue.add(command); in execute()
106 final Runnable command = mQueue.take(); in run() local
107 command.run(); in run()
/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()
75 } else if ("enableBtSnoop".equals(command)) { in onStart()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNative.java100 private native boolean doBooleanCommandNative(String command); in doBooleanCommandNative() argument
102 private native int doIntCommandNative(String command); in doIntCommandNative() argument
104 private native String doStringCommandNative(String command); in doStringCommandNative() argument
159 private boolean doBooleanCommand(String command) { in doBooleanCommand() argument
160 if (DBG) Log.d(mTAG, "doBoolean: " + command); in doBooleanCommand()
163 String toLog = Integer.toString(cmdId) + ":" + mInterfacePrefix + command; in doBooleanCommand()
164 boolean result = doBooleanCommandNative(mInterfacePrefix + command); in doBooleanCommand()
166 if (DBG) Log.d(mTAG, command + ": returned " + result); in doBooleanCommand()
171 private int doIntCommand(String command) { in doIntCommand() argument
172 if (DBG) Log.d(mTAG, "doInt: " + command); in doIntCommand()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DViewServer.java225 String command; in run() local
230 command = request; in run()
233 command = request.substring(0, index); in run()
238 if (COMMAND_PROTOCOL_VERSION.equalsIgnoreCase(command)) { in run()
240 } else if (COMMAND_SERVER_VERSION.equalsIgnoreCase(command)) { in run()
242 } else if (COMMAND_WINDOW_MANAGER_LIST.equalsIgnoreCase(command)) { in run()
244 } else if (COMMAND_WINDOW_MANAGER_GET_FOCUS.equalsIgnoreCase(command)) { in run()
246 } else if (COMMAND_WINDOW_MANAGER_AUTOLIST.equalsIgnoreCase(command)) { in run()
250 command, parameters); in run()
254 Slog.w(LOG_TAG, "An error occurred with the command: " + command); in run()
/frameworks/base/cmds/input/src/com/android/commands/input/
DInput.java69 String command = args[index]; in run() local
71 if (SOURCES.containsKey(command)) { in run()
72 inputSource = SOURCES.get(command); in run()
74 command = args[index]; in run()
79 if (command.equals("text")) { in run()
85 } else if (command.equals("keyevent")) { in run()
101 } else if (command.equals("tap")) { in run()
108 } else if (command.equals("swipe")) { in run()
121 } else if (command.equals("press")) { in run()
127 } else if (command.equals("roll")) { in run()
[all …]
/frameworks/testing/uiautomator_test_libraries/src/com/android/uiautomator/common/helpers/
DAppHelperBase.java67 protected void runShellCommand(String command) { in runShellCommand() argument
71 p = Runtime.getRuntime().exec(command); in runShellCommand()
74 System.err.println(String.format("Run shell command: %s, status: %s", command, in runShellCommand()
78 System.err.println("// Exception from command " + command + ":"); in runShellCommand()
/frameworks/testing/uiautomator_test_libraries/src/com/android/uiautomator/platform/
DSurfaceFlingerHelper.java92 String command = CLEAR_BUFFER_CMD; in clearBuffer() local
94 command = String.format("%s %s", CLEAR_BUFFER_CMD, windowName); in clearBuffer()
97 p = Runtime.getRuntime().exec(command); in clearBuffer()
101 command, status)); in clearBuffer()
104 Log.e(TAG, "// Exception from command " + command + ":", e); in clearBuffer()
141 String command = FRAME_LATENCY_CMD; in dumpFrameLatency() local
143 command = String.format("%s %s", FRAME_LATENCY_CMD, windowName); in dumpFrameLatency()
145 log("dump frame latency command: " + command); in dumpFrameLatency()
147 p = Runtime.getRuntime().exec(command); in dumpFrameLatency()
150 Log.e(TAG, String.format("Run shell command: %s, status: %s",command, status)); in dumpFrameLatency()
[all …]
/frameworks/testing/uiautomator/utils/SleepUtils/
DREADME10 the service functions from command line. Corresponding to service function
13 am instrument -w -e command prepare \
17 am instrument -w -e command set_wait \
22 am instrument -w -e command done \
/frameworks/av/services/audioflinger/
DFastCapture.cpp75 bool FastCapture::isSubClassCommand(FastThreadState::Command command) in isSubClassCommand() argument
77 switch ((FastCaptureState::Command) command) { in isSubClassCommand()
159 const FastCaptureState::Command command = this->command; in onWork() local
162 if ((command & FastCaptureState::READ) /*&& isWarm*/) { in onWork()
184 if (command & FastCaptureState::WRITE) { in onWork()
DFastThread.cpp66 command(FastThreadState::INITIAL), in FastThread()
108 command = next->mCommand; in threadLoop()
126 if (command & FastThreadState::IDLE) { in threadLoop()
142 dumpState->mCommand = command; in threadLoop()
146 switch (command) { in threadLoop()
187 LOG_ALWAYS_FATAL_IF(!isSubClassCommand(command)); in threadLoop()
/frameworks/volley/tests/src/com/android/volley/utils/
DImmediateResponseDelivery.java18 public void execute(Runnable command) { in ImmediateResponseDelivery()
19 command.run(); in ImmediateResponseDelivery()
/frameworks/support/v4/java/android/support/v4/media/session/
DMediaControllerCompat.java201 public void sendCommand(String command, Bundle params, ResultReceiver cb) { in sendCommand() argument
202 if (TextUtils.isEmpty(command)) { in sendCommand()
205 mImpl.sendCommand(command, params, cb); in sendCommand()
456 void sendCommand(String command, Bundle params, ResultReceiver cb); in sendCommand() argument
501 public void sendCommand(String command, Bundle params, ResultReceiver cb) { in sendCommand() argument
576 public void sendCommand(String command, Bundle params, ResultReceiver cb) { in sendCommand() argument
577 MediaControllerCompatApi21.sendCommand(mControllerObj, command, params, cb); in sendCommand()
/frameworks/base/services/core/java/com/android/server/hdmi/
DRequestArcTerminationAction.java41 HdmiCecMessage command = in start() local
43 sendCommand(command, new HdmiControlService.SendMessageCallback() { in start()
DRequestArcInitiationAction.java41 HdmiCecMessage command = HdmiCecMessageBuilder.buildRequestArcInitiation( in start() local
43 sendCommand(command, new HdmiControlService.SendMessageCallback() { in start()
/frameworks/base/cmds/dpm/src/com/android/commands/dpm/
DDpm.java69 String command = nextArgRequired(); in onRun() local
70 switch (command) { in onRun()
78 throw new IllegalArgumentException ("unknown command '" + command + "'"); in onRun()
/frameworks/base/cmds/appops/src/com/android/commands/appops/
DAppOpsCommand.java55 String command = nextArgRequired(); in onRun() local
56 switch (command) { in onRun()
62 throw new IllegalArgumentException("Unknown command '" + command + "'."); in onRun()
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/
Dgradlew.bat27 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
49 @rem Get command-line arguments, handling Windowz variants
55 @rem Slurp the command line arguments.
70 @rem Setup the command line

1234567891011