Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.cpp467 sp<AudioCommand> command = mAudioCommands[0]; in threadLoop() local
469 mLastCommand = command; in threadLoop()
471 switch (command->mCommand) { in threadLoop()
474 ToneData *data = (ToneData *)command->mParam.get(); in threadLoop()
493 VolumeData *data = (VolumeData *)command->mParam.get(); in threadLoop()
496 command->mStatus = AudioSystem::setStreamVolume(data->mStream, in threadLoop()
501 ParametersData *data = (ParametersData *)command->mParam.get(); in threadLoop()
504 command->mStatus = AudioSystem::setParameters(data->mIO, data->mKeyValuePairs); in threadLoop()
507 VoiceVolumeData *data = (VoiceVolumeData *)command->mParam.get(); in threadLoop()
510 command->mStatus = AudioSystem::setVoiceVolume(data->mVolume); in threadLoop()
[all …]
/frameworks/base/tools/aapt2/
DMain.cpp41 aapt::StringPiece command(argv[0]); in main() local
42 if (command == "compile" || command == "c") { in main()
44 } else if (command == "link" || command == "l") { in main()
46 } else if (command == "dump" || command == "d") { in main()
48 } else if (command == "diff") { in main()
51 std::cerr << "unknown command '" << command << "'\n"; in main()
DFlags.cpp83 void Flags::usage(const StringPiece& command, std::ostream* out) { in usage() argument
86 *out << command << " [options]"; in usage()
113 bool Flags::parse(const StringPiece& command, const std::vector<StringPiece>& args, in parse() argument
123 usage(command, outError); in parse()
134 usage(command, outError); in parse()
149 usage(command, outError); in parse()
157 usage(command, outError); in parse()
/frameworks/base/core/java/com/android/internal/os/
DWrapperInit.java102 StringBuilder command = new StringBuilder(invokeWith); in execApplication() local
110 command.append(' '); in execApplication()
111 command.append(appProcess); in execApplication()
113 command.append(" /system/bin --application"); in execApplication()
115 command.append(" '--nice-name=").append(niceName).append("'"); in execApplication()
117 command.append(" com.android.internal.os.WrapperInit "); in execApplication()
118 command.append(pipeFd != null ? pipeFd.getInt$() : 0); in execApplication()
119 command.append(' '); in execApplication()
120 command.append(targetSdkVersion); in execApplication()
121 Zygote.appendQuotedShellArgs(command, args); in execApplication()
[all …]
DZygote.java171 public static void execShell(String command) { in execShell() argument
172 String[] args = { "/system/bin/sh", "-c", command }; in execShell()
189 public static void appendQuotedShellArgs(StringBuilder command, String[] args) { in appendQuotedShellArgs() argument
191 command.append(" '").append(arg.replace("'", "'\\''")).append("'"); in appendQuotedShellArgs()
/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/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/
Dbuild_vc.pl49 my (@headerlist, @filelist, $hd, $file, $ofile, $command, $objlist, $libfile, $h);
93 $command = $CC.' '.$CC_OPTS.' '.$hd.' -o '.$objfile.' '.$file;
94 print "$command\n";
95 system($command);
100 $command = $AS.' '.$AS_OPTS.' '.$hd.' -o '.$objfile.' '.$file;
101 print "$command\n";
102 system($command);
117 $command = $LIB.' '.$LIB_OPTS.' '.$libfile.' '.$objlist;
118 print "$command\n";
119 (system($command) == 0) and print "Build successful\n";
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/
Dbuild_vc.pl49 my (@headerlist, @filelist, $hd, $file, $ofile, $command, $objlist, $libfile, $h);
93 $command = $CC.' '.$CC_OPTS.' '.$hd.' -o '.$objfile.' '.$file;
94 print "$command\n";
95 system($command);
100 $command = $AS.' '.$AS_OPTS.' '.$hd.' -o '.$objfile.' '.$file;
101 print "$command\n";
102 system($command);
117 $command = $LIB.' '.$LIB_OPTS.' '.$libfile.' '.$objlist;
118 print "$command\n";
119 (system($command) == 0) and print "Build successful\n";
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/
Dbuild_vc.pl49 my (@headerlist, @filelist, $hd, $file, $ofile, $command, $objlist, $libfile, $h);
95 $command = $CC.' '.$CC_OPTS.' '.$hd.' -o '.$objfile.' '.$file;
96 print "$command\n";
97 system($command);
102 $command = $AS.' '.$AS_OPTS.' '.$hd.' -o '.$objfile.' '.$file;
103 print "$command\n";
104 system($command);
119 $command = $LIB.' '.$LIB_OPTS.' '.$libfile.' '.$objlist;
120 print "$command\n";
121 (system($command) == 0) and print "Build successful\n";
/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.java86 public void execute(Runnable command) {
87 assert(command != null);
88 mQueue.add(command);
93 public void execute(Runnable command) { in execute() argument
95 assert(command != null); in execute()
96 mQueue.add(command); in execute()
103 final Runnable command = mQueue.take(); in run() local
104 command.run(); in run()
/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/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/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:
65 adb shell am broadcast -a com.android.systemui.demo -e command enter
72 adb shell am broadcast -a com.android.systemui.demo -e command exit
79 adb shell am broadcast -a com.android.systemui.demo -e command clock -e hhmm
87 adb shell am broadcast -a com.android.systemui.demo -e command network -e wifi
95 adb shell am broadcast -a com.android.systemui.demo -e command status -e volume
103 adb shell am broadcast -a com.android.systemui.demo -e command battery -e level
111 adb shell am broadcast -a com.android.systemui.demo -e command notifications -e
119 adb shell am broadcast -a com.android.systemui.demo -e command exit
[all …]
/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/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 dos.writeInt(command.length()); in setupOrClearBcb()
289 dos.writeBytes(command); in setupOrClearBcb()
/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()
DFastMixerState.cpp54 const char *FastMixerState::commandToString(Command command) in commandToString() argument
56 const char *str = FastThreadState::commandToString(command); in commandToString()
60 switch (command) { in commandToString()
DFastCapture.cpp75 bool FastCapture::isSubClassCommand(FastThreadState::Command command) in isSubClassCommand() argument
77 switch ((FastCaptureState::Command) command) { in isSubClassCommand()
163 const FastCaptureState::Command command = mCommand; in onWork() local
166 if ((command & FastCaptureState::READ) /*&& isWarm*/) { in onWork()
187 if (command & FastCaptureState::WRITE) { in onWork()
/frameworks/native/cmds/dumpstate/
Dutils.cpp639 void format_args(const char* command, const char *args[], std::string *string);
641 int run_command(const char *title, int timeout_seconds, const char *command, ...) { in run_command() argument
645 const char *args[1024] = {command}; in run_command()
648 va_start(ap, command); in run_command()
649 if (title) printf("------ %s (%s", title, command); in run_command()
666 format_args(command, args, &cmd); in run_command()
678 int run_command_as_shell(const char *title, int timeout_seconds, const char *command, ...) { in run_command_as_shell() argument
682 const char *args[1024] = {command}; in run_command_as_shell()
685 va_start(ap, command); in run_command_as_shell()
686 if (title) printf("------ %s (%s", title, command); in run_command_as_shell()
[all …]
/frameworks/base/tests/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/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNative.java251 private native boolean doBooleanCommandNative(String command); in doBooleanCommandNative() argument
253 private native int doIntCommandNative(String command); in doIntCommandNative() argument
255 private native String doStringCommandNative(String command); in doStringCommandNative() argument
257 private boolean doBooleanCommand(String command) { in doBooleanCommand() argument
258 if (DBG) Log.d(mTAG, "doBoolean: " + command); in doBooleanCommand()
260 String toLog = mInterfacePrefix + command; in doBooleanCommand()
261 boolean result = doBooleanCommandNative(mInterfacePrefix + command); in doBooleanCommand()
263 if (DBG) Log.d(mTAG, command + ": returned " + result); in doBooleanCommand()
268 private boolean doBooleanCommandWithoutLogging(String command) { in doBooleanCommandWithoutLogging() argument
269 if (DBG) Log.d(mTAG, "doBooleanCommandWithoutLogging: " + command); in doBooleanCommandWithoutLogging()
[all …]
/frameworks/base/core/java/android/os/
DRecoverySystem.java489 String command = filenameArg + localeArg; in installPackage() local
491 command += securityArg; in installPackage()
496 if (!rs.setupBcb(command)) { in installPackage()
537 String command = filenameArg + localeArg; in scheduleUpdateOnBoot() local
539 command += securityArg; in scheduleUpdateOnBoot()
543 if (!rs.setupBcb(command)) { in scheduleUpdateOnBoot()
705 StringBuilder command = new StringBuilder(); in bootCommand() local
708 command.append(arg); in bootCommand()
709 command.append("\n"); in bootCommand()
716 rs.rebootRecoveryWithCommand(command.toString()); in bootCommand()
[all …]
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/services/
DTestScheduledExecutorService.java111 public void execute(Runnable command) { in execute() argument
116 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { in schedule() argument
117 TestFuture future = new TestFuture(command, delay, unit); in schedule()
128 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, in scheduleAtFixedRate() argument
134 public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, in scheduleWithFixedDelay() argument

12345678910>>...12