Searched refs:cmd (Results 51 - 75 of 230) sorted by relevance

12345678910

/frameworks/support/jetifier/jetifier/preprocessor/src/main/kotlin/com/android/tools/build/jetifier/preprocessor/
H A DMain.kt60 val cmd = parseCmdLine(args)
61 if (cmd == null) {
66 Log.setLevel(cmd.getOptionValue(OPTION_LOG_LEVEL.opt))
68 val inputLibraries = cmd.getOptionValues(OPTION_INPUT_LIBS.opt).map { File(it) }
69 val inputConfigPath = Paths.get(cmd.getOptionValue(OPTION_INPUT_CONFIG.opt))
70 val outputConfigPath = Paths.get(cmd.getOptionValue(OPTION_OUTPUT_CONFIG.opt))
/frameworks/native/libs/binder/
H A DIPCThreadState.cpp111 static const char* getReturnString(uint32_t cmd) argument
113 size_t idx = cmd & 0xff;
142 const int32_t* cmd = (const int32_t*)_cmd; local
143 uint32_t code = (uint32_t)*cmd++;
146 out << "BR_ERROR: " << (void*)(long)(*cmd++) << endl;
147 return cmd;
150 return cmd;
158 cmd = (const int32_t *)printBinderTransactionData(out, cmd);
163 const int32_t res = *cmd
203 const int32_t* cmd = (const int32_t*)_cmd; local
438 int32_t cmd; local
763 uint32_t cmd; local
955 writeTransactionData(int32_t cmd, uint32_t binderFlags, int32_t handle, uint32_t code, const Parcel& data, status_t* statusBuffer) argument
998 executeCommand(int32_t cmd) argument
[all...]
/frameworks/base/services/core/java/com/android/server/statusbar/
H A DStatusBarShellCommand.java35 public int onCommand(String cmd) { argument
36 if (cmd == null) {
37 return handleDefaultCommands(cmd);
40 switch (cmd) {
60 return handleDefaultCommands(cmd);
/frameworks/rs/tests/lldb/tests/harness/
H A Dutil_android.py87 cmd = '{0} -s {1} {2}'.format(self._path_adb, self.device, args)
89 cmd = '{0} {1}'.format(self._path_adb, args)
91 self._log.debug('Execute ADB: %s', cmd)
95 return_code, output = UtilAndroid._execute_command_local(cmd, async)
103 return_code, output = UtilAndroid._execute_command_remote(cmd,
107 self._log.warn('[ADB] The command timed out: %s', cmd)
111 self._adb_log_output(cmd, output, return_code)
156 def _adb_log_output(self, cmd, output, return_code):
163 cmd: string, the command issued to `adb`.
175 self._log.warn("[ADB] Command executed: {0}".format(cmd))
[all...]
/frameworks/base/core/java/android/os/
H A DShellCommand.java81 String cmd;
84 cmd = args[0];
87 cmd = null;
91 mCmd = cmd;
333 public int handleDefaultCommands(String cmd) { argument
334 if ("dump".equals(cmd)) {
339 } else if (cmd == null || "help".equals(cmd) || "-h".equals(cmd)) {
342 getOutPrintWriter().println("Unknown command: " + cmd);
365 onCommand(String cmd) argument
[all...]
H A DFileBridge.java100 final int cmd = Memory.peekInt(temp, 0, ByteOrder.BIG_ENDIAN);
101 if (cmd == CMD_WRITE) {
114 } else if (cmd == CMD_FSYNC) {
119 } else if (cmd == CMD_CLOSE) {
165 private void writeCommandAndBlock(int cmd, String cmdString) throws IOException { argument
166 Memory.pokeInt(mTemp, 0, cmd, ByteOrder.BIG_ENDIAN);
171 if (Memory.peekInt(mTemp, 0, ByteOrder.BIG_ENDIAN) == cmd) {
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/
H A DBackgroundDexOptServiceIntegrationTests.java53 * Each test case runs "cmd package bg-dexopt-job com.android.frameworks.bgdexopttest".
142 private static String runShellCommand(String cmd) throws IOException { argument
143 Log.i(TAG, String.format("running command: '%s'", cmd));
145 Process p = Runtime.getRuntime().exec(cmd);
155 Log.i(TAG, String.format("ran command: '%s' in %d ms with return code %d", cmd,
162 throw new RuntimeException(String.format("failed command: '%s'", cmd));
168 private static String[] runShellCommandSplitLines(String cmd) throws IOException { argument
169 return runShellCommand(cmd).split("\n");
174 String cmd = String.format("dumpsys package %s", pkg);
175 String[] lines = runShellCommandSplitLines(cmd);
[all...]
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DSystemAudioAction.java140 final boolean processCommand(HdmiCecMessage cmd) { argument
141 if (cmd.getSource() != mAvrLogicalAddress) {
146 if (cmd.getOpcode() == Constants.MESSAGE_FEATURE_ABORT
147 && (cmd.getParams()[0] & 0xFF)
154 if (cmd.getOpcode() != Constants.MESSAGE_SET_SYSTEM_AUDIO_MODE
155 || !HdmiUtils.checkCommandSource(cmd, mAvrLogicalAddress, TAG)) {
158 boolean receivedStatus = HdmiUtils.parseCommandParamSystemAudioStatus(cmd);
H A DSetArcTransmissionStateAction.java117 boolean processCommand(HdmiCecMessage cmd) { argument
122 int opcode = cmd.getOpcode();
124 int originalOpcode = cmd.getParams()[0] & 0xFF;
H A DDeviceSelectAction.java110 public boolean processCommand(HdmiCecMessage cmd) { argument
111 if (cmd.getSource() != getTargetAddress()) {
114 int opcode = cmd.getOpcode();
115 byte[] params = cmd.getParams();
H A DHdmiCecFeatureAction.java87 * @param cmd command to process
90 abstract boolean processCommand(HdmiCecMessage cmd); argument
169 protected final void sendCommand(HdmiCecMessage cmd) { argument
170 mService.sendCecCommand(cmd);
173 protected final void sendCommand(HdmiCecMessage cmd, argument
175 mService.sendCecCommand(cmd, callback);
/frameworks/rs/
H A DrsThreadIO.cpp106 const CoreCmdHeader *cmd = (const CoreCmdHeader *)&buf[0]; local
135 mToCore.read(&buf[sizeof(CoreCmdHeader)], cmd->bytes);
145 //ALOGV("playCoreCommands 3 %i %i", cmd->cmdID, cmd->bytes);
147 if (cmd->cmdID >= (sizeof(gPlaybackFuncs) / sizeof(void *))) {
148 rsAssert(cmd->cmdID < (sizeof(gPlaybackFuncs) / sizeof(void *)));
149 ALOGE("playCoreCommands error con %p, cmd %i", con, cmd->cmdID);
152 gPlaybackFuncs[cmd->cmdID](con, data, cmd
[all...]
/frameworks/base/cmds/media/src/com/android/commands/media/
H A DMedia.java146 String cmd = nextArgRequired();
148 if ("play".equals(cmd)) {
150 } else if ("pause".equals(cmd)) {
152 } else if ("play-pause".equals(cmd)) {
154 } else if ("mute".equals(cmd)) {
156 } else if ("headsethook".equals(cmd)) {
158 } else if ("stop".equals(cmd)) {
160 } else if ("next".equals(cmd)) {
162 } else if ("previous".equals(cmd)) {
164 } else if ("rewind".equals(cmd)) {
[all...]
/frameworks/native/cmds/installd/
H A Dotapreopt.cpp430 std::vector<std::string> cmd; local
431 cmd.push_back("/system/bin/patchoat");
433 cmd.push_back("--input-image-location=/system/framework/boot.art");
434 cmd.push_back(StringPrintf("--output-image-directory=%s", output_dir.c_str()));
436 cmd.push_back(StringPrintf("--instruction-set=%s", isa));
440 cmd.push_back(StringPrintf("--base-offset-delta=%d", base_offset));
443 bool result = Exec(cmd, &error_msg);
455 std::vector<std::string> cmd; local
456 cmd.push_back("/system/bin/dex2oat");
457 cmd
[all...]
/frameworks/native/opengl/tests/hwc/
H A DhwcColorEquiv.cpp134 void printSyntax(const char *cmd);
170 char cmd[MAXCMD]; local
281 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_STOP_FRAMEWORK);
282 if (rv >= (signed) sizeof(cmd) - 1) {
286 testExecCmd(cmd);
400 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_START_FRAMEWORK);
401 if (rv >= (signed) sizeof(cmd) - 1) {
405 testExecCmd(cmd);
422 printSyntax(const char *cmd) argument
[all...]
H A DhwcRects.cpp175 void printSyntax(const char *cmd);
208 char cmd[MAXCMD]; local
237 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_STOP_FRAMEWORK);
238 if (rv >= (signed) sizeof(cmd) - 1) {
242 testExecCmd(cmd);
349 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_START_FRAMEWORK);
350 if (rv >= (signed) sizeof(cmd) - 1) {
354 testExecCmd(cmd);
541 printSyntax(const char *cmd) argument
[all...]
/frameworks/base/services/core/java/com/android/server/slice/
H A DSliceShellCommand.java41 public int onCommand(String cmd) { argument
42 if (cmd == null) {
43 return handleDefaultCommands(cmd);
45 switch (cmd) {
/frameworks/av/media/libaudioclient/
H A DIEffect.cpp160 char *cmd = NULL; local
166 cmd = (char *)calloc(cmdSize, 1);
167 if (cmd == NULL) {
171 data.read(cmd, cmdSize);
178 free(cmd);
184 free(cmd);
189 status_t status = command(cmdCode, cmdSize, cmd, &replySz, resp);
200 if (cmd) {
201 free(cmd);
/frameworks/base/services/core/java/com/android/server/
H A DNativeDaemonConnector.java327 String cmd, Object... args) {
328 if (cmd.indexOf('\0') >= 0) {
329 throw new IllegalArgumentException("Unexpected command: " + cmd);
331 if (cmd.indexOf(' ') >= 0) {
335 rawBuilder.append(sequenceNumber).append(' ').append(cmd);
336 logBuilder.append(sequenceNumber).append(' ').append(cmd);
390 public NativeDaemonEvent execute(Command cmd) throws NativeDaemonConnectorException { argument
391 return execute(cmd.mCmd, cmd.mArguments.toArray());
404 public NativeDaemonEvent execute(String cmd, Objec argument
326 makeCommand(StringBuilder rawBuilder, StringBuilder logBuilder, int sequenceNumber, String cmd, Object... args) argument
409 execute(long timeoutMs, String cmd, Object... args) argument
429 executeForList(Command cmd) argument
444 executeForList(String cmd, Object... args) argument
461 executeForList(long timeoutMs, String cmd, Object... args) argument
575 Command(String cmd, Object... args) argument
[all...]
/frameworks/native/cmds/servicemanager/
H A Dbinder.c63 const char *cmd_name(uint32_t cmd) argument
65 switch(cmd) {
224 uint32_t cmd = *(uint32_t *) ptr; local
227 fprintf(stderr,"%s:\n", cmd_name(cmd));
229 switch(cmd) {
298 ALOGE("parse: OOPS %d\n", cmd);
308 uint32_t cmd[2]; local
309 cmd[0] = BC_ACQUIRE;
310 cmd[1] = target;
311 binder_write(bs, cmd, sizeo
316 uint32_t cmd[2]; local
325 uint32_t cmd; member in struct:__anon1372
342 uint32_t cmd; member in struct:__anon1373
473 uint32_t cmd; member in struct:__anon1374
[all...]
/frameworks/base/services/net/java/android/net/util/
H A DNetdService.java126 public static void run(NetdCommand cmd) { argument
129 cmd.run(get());
/frameworks/base/tests/ActivityManagerPerfTests/utils/src/com/android/frameworks/perftests/am/util/
H A DUtils.java38 public static String runShellCommand(String cmd) { argument
41 InstrumentationRegistry.getInstrumentation()).executeShellCommand(cmd);
/frameworks/base/tools/bit/
H A Dmake.cpp46 Command cmd("build/soong/soong_ui.bash");
47 cmd.AddArg("--dumpvar-mode");
48 cmd.AddArg(name);
50 string output = trim(get_command_output(cmd, &err, quiet));
196 Command cmd("build/soong/soong_ui.bash");
197 cmd.AddArg("--make-mode");
199 cmd.AddArg(goals[i]);
202 return run_command(cmd);
/frameworks/native/vulkan/libvulkan/
H A Dapi.h55 inline DeviceData& GetData(VkCommandBuffer cmd) { argument
56 return driver::GetData(cmd).opaque_api_data;
/frameworks/base/services/core/java/com/android/server/om/
H A DOverlayManagerShellCommand.java32 * Implementation of 'cmd overlay' commands.
35 * Intended only for manual debugging. Execute 'adb exec-out cmd overlay help'
46 public int onCommand(@Nullable final String cmd) { argument
47 if (cmd == null) {
48 return handleDefaultCommands(cmd);
52 switch (cmd) {
64 return handleDefaultCommands(cmd);

Completed in 734 milliseconds

12345678910