/cts/apps/CameraITS/pymodules/its/ |
D | device.py | 246 cmd = {"cmdName":"open", "cameraId":camera_id} 247 self.sock.send(json.dumps(cmd) + "\n") 253 cmd = {"cmdName":"close"} 254 self.sock.send(json.dumps(cmd) + "\n") 274 cmd = {} 275 cmd["cmdName"] = "doVibrate" 276 cmd["pattern"] = pattern 277 self.sock.send(json.dumps(cmd) + "\n") 290 cmd = {} 291 cmd["cmdName"] = "startSensorEvents" [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | Utils.java | 46 StringBuilder cmd = new StringBuilder(); in setAppOps() local 47 cmd.append("appops set "); in setAppOps() 48 cmd.append(packageName); in setAppOps() 49 cmd.append(" "); in setAppOps() 50 cmd.append(operation); in setAppOps() 51 cmd.append(enable ? " allow" : " deny"); in setAppOps() 52 instrumentation.getUiAutomation().executeShellCommand(cmd.toString()); in setAppOps()
|
D | RingtoneTest.java | 64 StringBuilder cmd = new StringBuilder(); in enableAppOps() local 65 cmd.append("appops set "); in enableAppOps() 66 cmd.append(getInstrumentation().getContext().getPackageName()); in enableAppOps() 67 cmd.append(" android:write_settings allow"); in enableAppOps() 68 getInstrumentation().getUiAutomation().executeShellCommand(cmd.toString()); in enableAppOps()
|
D | AudioEffectTest.java | 821 byte[] cmd = new byte[0]; in test5_0Command() 824 int status = mEffect.command(3, cmd, reply); in test5_0Command()
|
/cts/hostsidetests/appsecurity/src/com/android/cts/appsecurity/ |
D | SplitTests.java | 367 final StringBuilder cmd = new StringBuilder(); in run() local 368 cmd.append("pm install-create"); in run() 370 cmd.append(' ').append(arg); in run() 373 cmd.append(' ').append(AbiUtils.createAbiFlag(mAbi.getName())); in run() 376 String result = device.executeShellCommand(cmd.toString()); in run() 401 cmd.setLength(0); in run() 402 cmd.append("pm install-write"); in run() 403 cmd.append(' ').append(sessionId); in run() 404 cmd.append(' ').append(i + "_" + apk.getName()); in run() 405 cmd.append(' ').append(remotePath); in run() [all …]
|
/cts/hostsidetests/theme/ |
D | android_device.py | 31 def runAdbCommand(self, cmd): argument 33 adbCmd = "adb -s %s %s" %(self._adbDevice, cmd) 37 def runShellCommand(self, cmd): argument 38 return self.runAdbCommand("shell " + cmd)
|
/cts/apps/CameraITS/tools/ |
D | run_all_tests.py | 82 cmd = ['python', 85 retcode = subprocess.call(cmd,cwd=topdir) 116 cmd = ['python', 119 retcode = subprocess.call(cmd,cwd=topdir) 123 cmd = ['python', os.path.join(os.getcwd(),testpath)] + \ 130 retcode = subprocess.call(cmd,stderr=ferr,stdout=fout,cwd=outdir)
|
/cts/suite/audio_quality/test_description/ |
D | processing_main.py | 86 cmd = self.readI32() 87 if (cmd == CMD_AUDIO_STEREO) or (cmd == CMD_AUDIO_MONO): 91 if (cmd == CMD_AUDIO_STEREO): 95 print i, "-th input received audio data ", dataLen, cmd 96 elif cmd == CMD_INT64: 100 elif cmd == CMD_DOUBLE: 105 self.protocolError("unknown command " + str(cmd))
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | Settings_SystemTest.java | 64 StringBuilder cmd = new StringBuilder(); in enableAppOps() local 65 cmd.append("appops set "); in enableAppOps() 66 cmd.append(getInstrumentation().getContext().getPackageName()); in enableAppOps() 67 cmd.append(" android:write_settings allow"); in enableAppOps() 68 getInstrumentation().getUiAutomation().executeShellCommand(cmd.toString()); in enableAppOps()
|
/cts/libs/deviceutil/src/android/cts/util/ |
D | SystemUtil.java | 58 public static String runShellCommand(Instrumentation instrumentation, String cmd) in runShellCommand() argument 60 ParcelFileDescriptor pfd = instrumentation.getUiAutomation().executeShellCommand(cmd); in runShellCommand()
|
/cts/tests/tests/accessibility/src/android/view/accessibility/cts/ |
D | CaptioningManagerTest.java | 125 private void execShellCommand(String cmd) { in execShellCommand() argument 126 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand(cmd); in execShellCommand() 132 throw new RuntimeException("Failed to exec: " + cmd); in execShellCommand()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | MyVpnService.java | 42 String cmd = intent.getStringExtra(packageName + ".cmd"); in onStartCommand() local 43 if ("disconnect".equals(cmd)) { in onStartCommand() 45 } else if ("connect".equals(cmd)) { in onStartCommand()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | DisplayTest.java | 76 StringBuilder cmd = new StringBuilder(); in enableAppOps() local 77 cmd.append("appops set "); in enableAppOps() 78 cmd.append(getInstrumentation().getContext().getPackageName()); in enableAppOps() 79 cmd.append(" android:system_alert_window allow"); in enableAppOps() 80 getInstrumentation().getUiAutomation().executeShellCommand(cmd.toString()); in enableAppOps()
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | DateFormatTest.java | 65 StringBuilder cmd = new StringBuilder(); in enableAppOps() local 66 cmd.append("appops set "); in enableAppOps() 67 cmd.append(getInstrumentation().getContext().getPackageName()); in enableAppOps() 68 cmd.append(" android:write_settings allow"); in enableAppOps() 69 getInstrumentation().getUiAutomation().executeShellCommand(cmd.toString()); in enableAppOps()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
D | JUnitDeviceTest.java | 134 String cmd = AbiFormatter.formatCmdForAbi(cmdLine, mAbi.getBitness()); in run() local 135 CLog.d("Running %s", cmd); in run() 137 mDevice.executeShellCommand(cmd, resultParser, mMaxTimeToOutputResponse, in run()
|
/cts/apps/CtsVerifier/assets/scripts/ |
D | execute_power_tests.py | 239 def executeOnDevice(self, cmd, reportErrors = True): argument 241 return self._send(cmd, reportErrors) 243 def executeLocal(self, cmd, check_status = True): argument 246 status = call(cmd.split(" ")) 248 logging.error("Failed to execute \"%s\"", cmd) 250 logging.debug("Executed \"%s\"", cmd)
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
D | CommonExternalStorageTest.java | 405 public static void logCommand(String... cmd) throws Exception { in logCommand() argument 406 final Process proc = new ProcessBuilder(cmd).redirectErrorStream(true).start(); in logCommand() 412 Log.d(TAG, Arrays.toString(cmd) + " result " + res + ":"); in logCommand()
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
D | ThemeHostTest.java | 257 final String cmd = lineSplit[1].trim(); in generateDeviceImages() local 259 switch (cmd) { in generateDeviceImages()
|
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/ |
D | AudioProtocol.java | 454 … private void sendReplyWithData(int cmd, int errorCode, int len, byte[] data) throws IOException { in sendReplyWithData() argument 458 mReplyBuffer.putInt((cmd & 0xffff) | 0x43210000); in sendReplyWithData()
|
/cts/tools/vm-tests-tf/src/util/build/ |
D | BuildDalvikSuite.java | 236 String cmd = String.format("ANDROID_DATA=%s dalvikvm|#ABI#| -Xmx512M -Xss32K " + 241 .append(cmd)
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsService.java | 533 public void processSocketCommand(String cmd) in processSocketCommand() argument 537 JSONObject cmdObj = new JSONObject(cmd); in processSocketCommand() 560 throw new ItsException("Unknown command: " + cmd); in processSocketCommand()
|
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/ |
D | DeqpTestRunnerTest.java | 2316 final String testTrie, final String cmd, final String output) throws Exception { in runInstrumentationLineAndAnswer() argument 2329 AbiUtils.createAbiFlag(UnitTests.ABI.getName()), LOG_FILE_NAME, cmd, false, in runInstrumentationLineAndAnswer()
|