/cts/suite/audio_quality/lib/src/ |
D | Adb.cpp | 34 android::String8 command; in setPortForwarding() local 35 if (command.appendFormat("forward tcp:%d tcp:%d", hostPort, devicePort) != 0) { in setPortForwarding() 38 if (executeCommand(command) != 0) { in setPortForwarding() 46 android::String8 command; in launchClient() local 47 if (command.appendFormat("install -r %s", clientBinary.string()) != 0) { in launchClient() 50 if (executeCommand(command) != 0) { in launchClient() 53 command.clear(); in launchClient() 54 if (command.appendFormat("shell am start -W -n %s", component.string()) != 0) { in launchClient() 57 if (executeCommand(command) != 0) { in launchClient() 64 int Adb::executeCommand(const android::String8& command) in executeCommand() argument [all …]
|
D | SimpleScriptExec.cpp | 70 android::String8 command; in runScript() local 71 command.appendFormat("%s %s %s", PYTHON_PATH, script.string(), param.string()); in runScript() 76 if ( !(fpipe = (FILE*)popen(command.string(),"r")) ) { in runScript()
|
D | Adb.h | 33 int executeCommand(const android::String8& command);
|
/cts/suite/audio_quality/lib/src/audio/ |
D | AudioProtocol.cpp | 58 uint32_t command = ntohl(data[0]); in handleReplyHeader() local 59 if ((command & 0xffff0000) != 0x43210000) { in handleReplyHeader() 60 LOGE("Wrong header %x %x", command, data[0]); in handleReplyHeader() 63 command = (command & 0xffff) | 0x12340000; // convert to id in handleReplyHeader() 64 if (command < ECmdStart) { in handleReplyHeader() 65 LOGE("Wrong header %x %x", command, data[0]); in handleReplyHeader() 68 if (command > (ECmdLast - 1)) { in handleReplyHeader() 69 LOGE("Wrong header %x %x", command, data[0]); in handleReplyHeader() 72 id = (CommandId)command; in handleReplyHeader() 73 LOGD("received reply with command %x", command); in handleReplyHeader() [all …]
|
D | RemoteAudio.cpp | 151 void RemoteAudio::sendCommand(android::sp<android::MessageHandler>& command) in sendCommand() argument 153 mLooper->sendMessage(command, toCommandHandler(command)->getMessage()); in sendCommand() 156 bool RemoteAudio::waitForCompletion(android::sp<android::MessageHandler>& command, int timeInMSec) in waitForCompletion() argument 159 return toCommandHandler(command)->timedWait(timeInMSec); in waitForCompletion() 190 android::sp<android::MessageHandler> command(new CommandHandler(*this, (int)id)); in doStop() local 191 sendCommand(command); in doStop() 192 waitForCompletion(command, CLIENT_WAIT_TIMEOUT_MSEC); in doStop() 331 android::sp<android::MessageHandler> command(new CommandHandler(*this, CommandHandler::EExit)); in release() local 332 sendCommand(command); in release()
|
D | AudioLocal.cpp | 83 bool AudioLocal::issueCommandAndWaitForCompletion(AudioCommand command) in issueCommandAndWaitForCompletion() argument 85 mCurrentCommand = command; in issueCommandAndWaitForCompletion() 88 LOGE("issueCommandAndWaitForCompletion timeout cmd %d", command); in issueCommandAndWaitForCompletion()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 103 String command = "am start-user " + userId; in startUser() local 104 CLog.logAndDisplay(LogLevel.INFO, "Starting command " + command); in startUser() 105 String commandOutput = getDevice().executeShellCommand(command); in startUser() 106 CLog.logAndDisplay(LogLevel.INFO, "Output for command " + command + ": " + commandOutput); in startUser() 115 String command = "pm get-max-users"; in getMaxNumberOfUsersSupported() local 116 String commandOutput = getDevice().executeShellCommand(command); in getMaxNumberOfUsersSupported() 117 CLog.i("Output for command " + command + ": " + commandOutput); in getMaxNumberOfUsersSupported() 128 String command = "pm list users"; in listUsers() local 129 String commandOutput = getDevice().executeShellCommand(command); in listUsers() 130 CLog.i("Output for command " + command + ": " + commandOutput); in listUsers() [all …]
|
D | ManagedProfileTest.java | 107 String command = "am start -W --user " + mUserId + " " + MANAGED_PROFILE_PKG in testCrossProfileIntentFilters() local 109 CLog.logAndDisplay(LogLevel.INFO, "Output for command " + command + ": " in testCrossProfileIntentFilters() 110 + getDevice().executeShellCommand(command)); in testCrossProfileIntentFilters() 192 String command = "add-restriction"; in testNoDebuggingFeaturesRestriction() local 195 changeUserRestrictionForUser(restriction, command, mUserId); in testNoDebuggingFeaturesRestriction() 202 changeUserRestrictionForUser(restriction, command, mUserId); in testNoDebuggingFeaturesRestriction() 228 String command = "am start -W --user " + userId in disableActivityForUser() local 232 CLog.logAndDisplay(LogLevel.INFO, "Output for command " + command + ": " in disableActivityForUser() 233 + getDevice().executeShellCommand(command)); in disableActivityForUser() 236 private String changeUserRestrictionForUser(String key, String command, int userId) in changeUserRestrictionForUser() argument [all …]
|
D | BaseLauncherAppsTest.java | 57 String command = "am startservice --user 0 " in startCallbackService() local 60 CLog.logAndDisplay(LogLevel.INFO, "Output for command " + command + ": " in startCallbackService() 61 + getDevice().executeShellCommand(command)); in startCallbackService()
|
D | DeviceOwnerTest.java | 93 String command = "dpm set-device-owner '" + componentName + "'"; in setDeviceOwner() local 94 String commandOutput = getDevice().executeShellCommand(command); in setDeviceOwner() 95 CLog.logAndDisplay(LogLevel.INFO, "Output for command " + command + ": " + commandOutput); in setDeviceOwner()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | UserRestrictionActivity.java | 66 String command = intent.getStringExtra(EXTRA_COMMAND); in handleIntent() local 67 Log.i(TAG, "Command: \"" + command + "\". Restriction: \"" + restrictionKey + "\""); in handleIntent() 69 if (ADD_COMMAND.equals(command)) { in handleIntent() 73 } else if (CLEAR_COMMAND.equals(command)) { in handleIntent() 79 Log.e(TAG, "Invalid command: " + command); in handleIntent()
|
/cts/tools/utils/ |
D | rerun.py | 81 command = ctsPath + "/tools/cts-tradefed run singleCommand cts" 83 command += " --serial " + deviceSerial 84 command += " --class " + className + " --method " + methodName 85 print command 86 os.system(command)
|
/cts/suite/audio_quality/lib/include/audio/ |
D | RemoteAudio.h | 76 void sendCommand(android::sp<android::MessageHandler>& command); 79 bool waitForCompletion(android::sp<android::MessageHandler>& command, int timeInMSec); 86 CommandHandler* toCommandHandler(android::sp<android::MessageHandler>& command) { in toCommandHandler() argument 87 return reinterpret_cast<CommandHandler*>(command.get()); in toCommandHandler() 114 CommandHandler(RemoteAudio& thread, int command) in CommandHandler() argument 116 mMessage(command), in CommandHandler()
|
D | AudioProtocol.h | 82 AudioProtocol(ClientSocket& socket, uint32_t command) in AudioProtocol() argument 83 : mCommand(command), in AudioProtocol() 90 bool checkHeaderId(const uint32_t* data, uint32_t command);
|
D | AudioLocal.h | 64 bool issueCommandAndWaitForCompletion(AudioCommand command);
|
/cts/suite/cts/hostTests/jank/app/src/com/android/cts/jank/ |
D | CtsJankTestBase.java | 49 protected void runShellCommand(String command) throws Exception { in runShellCommand() argument 54 p = Runtime.getRuntime().exec(command); in runShellCommand() 72 Log.i(TAG, command); in runShellCommand() 84 String.format("Run shell command: %s, status: %s", command, status)); in runShellCommand()
|
/cts/suite/audio_quality/executable/src/ |
D | main.cpp | 44 android::String8 command = android::String8::format("cd %s;zip -r ../%s.zip *", in ~CleanupStatics() local 46 fprintf(stderr, "\n\nexecuting %s\n", command.string()); in ~CleanupStatics() 47 if (system(command.string()) == -1) { in ~CleanupStatics() 48 fprintf(stderr, "cannot create zip file with command %s\n", command.string()); in ~CleanupStatics()
|
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/command/ |
D | CompatibilityConsole.java | 17 package com.android.compatibility.common.tradefed.command; 19 import com.android.tradefed.command.Console;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleAdvertiserService.java | 203 int command = intent.getIntExtra(EXTRA_COMMAND, -1); in handleIntent() local 204 if (command >= 0) { in handleIntent() 206 mAdvertiserStatus |= (1 << command); in handleIntent() 209 switch (command) { in handleIntent() 255 showMessage("Unrecognized command: " + command); in handleIntent()
|
D | BleScannerService.java | 106 int command = intent.getIntExtra(EXTRA_COMMAND, -1); in onStartCommand() local 107 switch (command) { in onStartCommand()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | ApplicationRestrictionsTest.java | 163 private void startTestActivity(String command) { in startTestActivity() argument 168 if (command != null) { in startTestActivity() 169 intent.putExtra(command, true); in startTestActivity()
|
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/ |
D | DeqpTestRunnerTest.java | 141 String command = String.format( in testGlesVersion() local 148 mockDevice.executeShellCommand(EasyMock.eq(command), in testGlesVersion() 257 String command = String.format( in testResultCode() local 264 mockDevice.executeShellCommand(EasyMock.eq(command), in testResultCode() 442 String command = String.format( in testRun_multipleTests() local 449 mockDevice.executeShellCommand(EasyMock.eq(command), in testRun_multipleTests()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
D | WrappedGTest.java | 117 … String command = String.format("am instrument -w %s%s/.%s", options, mAppNameSpace, mRunner); in runTest() local 118 mDevice.executeShellCommand(command, resultParser, mMaxTestTimeMs, 0); in runTest()
|
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/ |
D | AudioProtocol.java | 449 private void sendSimpleReplyHeader(int command, int errorCode) throws IOException { in sendSimpleReplyHeader() argument 450 Log.d(TAG, "sending reply cmd " + command + " err " + errorCode); in sendSimpleReplyHeader() 451 sendReplyWithData(command, errorCode, 0, null); in sendSimpleReplyHeader() 532 int command = mHeaderBuffer.getInt(); in run() local 534 Log.i(TAG, "received command " + command); in run() 535 switch(command) { in run()
|
/cts/tools/vm-tests-tf/src/util/build/ |
D | DexBuildStep.java | 19 import com.android.dx.command.dexer.Main;
|