Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 56) sorted by relevance

123

/cts/tests/app/src/android/app/cts/
DActivityManagerProcessStateTest.java88 String cmd = "pm revoke " + STUB_PACKAGE_NAME + " " in testUidImportanceListener() local
90 String result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testUidImportanceListener()
104 cmd = "pm grant " + STUB_PACKAGE_NAME + " " in testUidImportanceListener()
106 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testUidImportanceListener()
232 String cmd = "pm grant " + STUB_PACKAGE_NAME + " " in testBackgroundCheckService() local
234 String result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
267 cmd = "appops set " + SIMPLE_PACKAGE_NAME + " RUN_IN_BACKGROUND deny"; in testBackgroundCheckService()
268 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
271 cmd = "am make-uid-idle " + SIMPLE_PACKAGE_NAME; in testBackgroundCheckService()
272 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
[all …]
/cts/apps/CameraITS/pymodules/its/
Ddevice.py276 cmd = {"cmdName":"open", "cameraId":camera_id}
277 self.sock.send(json.dumps(cmd) + "\n")
283 cmd = {"cmdName":"close"}
284 self.sock.send(json.dumps(cmd) + "\n")
304 cmd = {}
305 cmd["cmdName"] = "doVibrate"
306 cmd["pattern"] = pattern
307 self.sock.send(json.dumps(cmd) + "\n")
320 cmd = {}
321 cmd["cmdName"] = "startSensorEvents"
[all …]
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DBaseInstallMultiple.java113 final StringBuilder cmd = new StringBuilder(); in run() local
114 cmd.append("pm install-create"); in run()
116 cmd.append(' ').append(arg); in run()
119 cmd.append(' ').append(AbiUtils.createAbiFlag(mAbi.getName())); in run()
122 String result = device.executeShellCommand(cmd.toString()); in run()
147 cmd.setLength(0); in run()
148 cmd.append("pm install-write"); in run()
149 cmd.append(' ').append(sessionId); in run()
150 cmd.append(' ').append(i + "_" + apk.getName()); in run()
151 cmd.append(' ').append(remotePath); in run()
[all …]
DExternalStorageHostTest.java306 StringBuilder cmd = new StringBuilder(); in enableWriteSettings() local
307 cmd.append("appops set --user "); in enableWriteSettings()
308 cmd.append(userId); in enableWriteSettings()
309 cmd.append(" "); in enableWriteSettings()
310 cmd.append(packageName); in enableWriteSettings()
311 cmd.append(" android:write_settings allow"); in enableWriteSettings()
312 getDevice().executeShellCommand(cmd.toString()); in enableWriteSettings()
/cts/apps/CameraITS/tools/
Drun_parallel_tests.py73 for cmd in cmds:
74 print "running: ", cmd
75 proc = Process(target=run_cmd, args=(cmd,))
92 cmd = ['python',
101 cmd.append('chart=%s' % chart_host_id)
103 return cmd
105 def run_cmd(cmd): argument
108 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
121 cmd = ['python', os.path.join(os.environ['CAMERA_ITS_TOP'], 'tools',
123 retcode = subprocess.call(cmd)
Dload_scene.py32 cmd = ('adb -s %s shell am force-stop com.google.android.apps.docs' %
34 subprocess.Popen(cmd.split())
48 cmd = 'adb -s %s push %s /mnt%s' % (screen_id, local_scene_file,
50 subprocess.Popen(cmd.split())
55 cmd = ("adb -s %s wait-for-device shell am start -d 'file://%s'"
58 subprocess.Popen(cmd.split())
Drun_all_tests.py197 cmd = ['python',
200 cam_code = subprocess.call(cmd, cwd=topdir)
216 cmd = ['python', os.path.join(os.environ['CAMERA_ITS_TOP'], 'tools',
218 wake_code = subprocess.call(cmd)
252 cmd = None
257 cmd = ['python',
267 cmd = ['python',
272 if cmd is not None:
273 valid_scene_code = subprocess.call(cmd, cwd=topdir)
286 cmd = ('adb -s %s shell input keyevent FOCUS'
[all …]
Drun_sensor_fusion_box.py79 cmd = ('python tools/rotation_rig.py rotator=%s' % rotator_ids)
80 subprocess.Popen(cmd.split())
81 cmd = ['python', os.path.join(TEST_DIR, TEST_NAME+'.py'),
89 cmd, stderr=ferr, stdout=fout, cwd=outdir)
Dturn_off_screen.py34 cmd = ('adb -s %s shell dumpsys power | egrep "Display Power"'
36 process = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE)
Dwake_up_screen.py37 cmd = ('adb -s %s shell dumpsys display | egrep "mScreenState"'
39 process = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE)
/cts/hostsidetests/security/securityPatch/Bug-34328139/
Dpoc.c33 int cmd = 0; variable
41 while (cmd != 1) { in threadForConfig()
45 if (cmd == -1) in threadForConfig()
60 while (cmd != 1) { in threadForClose()
64 if (cmd == -1) in threadForClose()
86 cmd = 0; in main()
111 cmd = -1; in main()
123 cmd = 1; in main()
/cts/hostsidetests/security/securityPatch/CVE-2017-0564/
Dpoc.c127 int cmd = 0; variable
133 while (cmd == 0) { in threadForIonFree01()
136 if (cmd == -1) in threadForIonFree01()
152 while (cmd == 0) { in threadForIonFree02()
155 if(cmd == -1) in threadForIonFree02()
175 cmd = 0; in main()
199 cmd = -1; in main()
207 cmd = 1; in main()
/cts/hostsidetests/services/activityandwindowmanager/windowmanager/src/android/server/cts/
DParentChildTestBase.java35 String cmd = getAmStartCmd(activityName(), intentKey(), testCase); in startTestCase() local
36 CLog.logAndDisplay(LogLevel.INFO, cmd); in startTestCase()
37 executeShellCommand(cmd); in startTestCase()
42 String cmd = getAmStartCmd(activityName(), intentKey(), testCase); in startTestCaseDocked() local
43 CLog.logAndDisplay(LogLevel.INFO, cmd); in startTestCaseDocked()
44 executeShellCommand(cmd); in startTestCaseDocked()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hcef/
DHceFReaderActivity.java70 byte[] cmd = new byte[2 + nfcid2.length]; in createSuccessCommand()
71 cmd[0] = (byte) (2 + nfcid2.length); in createSuccessCommand()
72 cmd[1] = MyHostFelicaService.CMD_SUCCESS; in createSuccessCommand()
73 System.arraycopy(nfcid2, 0, cmd, 2, nfcid2.length); in createSuccessCommand()
74 return cmd; in createSuccessCommand()
77 static boolean verifyResponse(byte[] cmd, byte[] resp) { in verifyResponse() argument
82 if (resp.length != cmd.length) return false; in verifyResponse()
88 if (resp[i] != cmd[i]) return false; in verifyResponse()
DMyHostFelicaService.java74 byte cmd = bytes[1]; in processNfcFPacket()
75 if (cmd == CMD_REQUEST_SYSTEM_CODES) { in processNfcFPacket()
77 } else if (cmd == CMD_ECHO) { in processNfcFPacket()
79 } else if (cmd == CMD_SUCCESS) { in processNfcFPacket()
/cts/hostsidetests/security/securityPatch/CVE-2017-7369/
Dpoc.c171 int fd, ret, cmd, index,pcmfd, i; in poc() local
180 cmd = SNDRV_CTL_IOCTL_CARD_INFO; in poc()
182 ret = ioctl(fd, cmd, &info); in poc()
189 cmd = SNDRV_CTL_IOCTL_ELEM_LIST; in poc()
190 ret = ioctl(fd, cmd, &lst); in poc()
/cts/suite/audio_quality/test_description/
Dprocessing_main.py86 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/media/src/android/media/cts/
DUtils.java63 StringBuilder cmd = new StringBuilder(); in setAppOps() local
64 cmd.append("appops set "); in setAppOps()
65 cmd.append(packageName); in setAppOps()
66 cmd.append(" "); in setAppOps()
67 cmd.append(operation); in setAppOps()
68 cmd.append(enable ? " allow" : " deny"); in setAppOps()
69 instrumentation.getUiAutomation().executeShellCommand(cmd.toString()); in setAppOps()
DRingtoneTest.java73 StringBuilder cmd = new StringBuilder(); in enableAppOps() local
74 cmd.append("appops set "); in enableAppOps()
75 cmd.append(getInstrumentation().getContext().getPackageName()); in enableAppOps()
76 cmd.append(" android:write_settings allow"); in enableAppOps()
77 getInstrumentation().getUiAutomation().executeShellCommand(cmd.toString()); in enableAppOps()
/cts/hostsidetests/theme/
Dandroid_device.py31 def runAdbCommand(self, cmd): argument
33 adbCmd = "adb -s %s %s" %(self._adbDevice, cmd)
38 def runShellCommand(self, cmd): argument
39 return self.runAdbCommand("shell " + cmd)
/cts/hostsidetests/security/src/android/cts/security/
DPerfEventParanoidTest.java38 String cmd = "cat " + PERF_EVENT_PARANOID_PATH; in testPerfEventRestricted() local
39 String output = mDevice.executeShellCommand(cmd); in testPerfEventRestricted()
DFileSystemPermissionTest.java45 String cmd = getInsecureDeviceAdbCommand(path, type); in getAllInsecureDevicesInDirAndSubdir() local
46 String output = mDevice.executeShellCommand(cmd); in getAllInsecureDevicesInDirAndSubdir()
/cts/tests/tests/provider/src/android/provider/cts/
DSettings_SystemTest.java64 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/tests/tests/security/src/android/security/cts/
DMotionEventTest.java140 StringBuilder cmd = new StringBuilder(); in enableAppOps() local
141 cmd.append("appops set "); in enableAppOps()
142 cmd.append(mInstrumentation.getContext().getPackageName()); in enableAppOps()
143 cmd.append(" android:system_alert_window allow"); in enableAppOps()
144 mInstrumentation.getUiAutomation().executeShellCommand(cmd.toString()); in enableAppOps()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DCaptioningManagerTest.java136 private void execShellCommand(String cmd) { in execShellCommand() argument
137 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand(cmd); in execShellCommand()
143 throw new RuntimeException("Failed to exec: " + cmd); in execShellCommand()

123