Home
last modified time | relevance | path

Searched refs:mDevice (Results 1 – 25 of 76) sorted by relevance

1234

/cts/hostsidetests/gputools/src/android/gputools/cts/
DCtsRootlessGpuDebugHostTest.java45 private ITestDevice mDevice; field in CtsRootlessGpuDebugHostTest
48 mDevice = device; in setDevice()
53 return mDevice; in getDevice()
113 String pid = mDevice.executeAdbCommand("shell", "pidof", app); in getPID()
123 String libPath = mDevice.executeAdbCommand("shell", "pm", "path", LAYERS_APP); in setupLayer()
130 String layerPath = mDevice.executeAdbCommand("shell", "find", libPath + " -name " + layer); in setupLayer()
132 mDevice.executeAdbCommand("shell", "cp", layerPath + " /data/local/tmp"); in setupLayer()
168 … String logcat = mDevice.executeAdbCommand("logcat", "-v", "brief", "-d", "--pid=" + pid, "*:V"); in scanLog()
194 mDevice.executeAdbCommand("shell", "am", "force-stop", DEBUG_APP); in cleanup()
195 mDevice.executeAdbCommand("shell", "am", "force-stop", RELEASE_APP); in cleanup()
[all …]
/cts/hostsidetests/backup/src/android/cts/backup/
DBackupPreparer.java62 private ITestDevice mDevice; field in BackupPreparer
67 mDevice = device; in setUp()
69 mIsBackupSupported = mDevice.hasFeature("feature:" + FEATURE_BACKUP); in setUp()
82 CLog.i("Enabling backup on %s", mDevice.getSerialNumber()); in setUp()
86 CLog.i("Selecting local transport on %s", mDevice.getSerialNumber()); in setUp()
98 mDevice = device; in tearDown()
102 CLog.i("Returning backup to it's previous state on %s", mDevice.getSerialNumber()); in tearDown()
106 mDevice.getSerialNumber()); in tearDown()
115 String output = mDevice.executeShellCommand("bmgr list transports"); in hasBackupTransport()
127 String output = mDevice.executeShellCommand("bmgr enabled"); in enableBackup()
[all …]
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
DEncryptionAppTest.java60 private UiDevice mDevice; field in EncryptionAppTest
71 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
72 assertNotNull(mDevice); in setUp()
93 mDevice.waitForIdle(); in testSetUp()
96 mDevice.executeShellCommand("settings put global require_password_to_decrypt 0"); in testSetUp()
97 mDevice.executeShellCommand("locksettings set-disabled false"); in testSetUp()
98 mDevice.executeShellCommand("locksettings set-pin 12345"); in testSetUp()
107 mDevice.waitForIdle(); in testTearDown()
110 mDevice.executeShellCommand("locksettings clear --old 12345"); in testTearDown()
111 mDevice.executeShellCommand("locksettings set-disabled true"); in testTearDown()
[all …]
/cts/hostsidetests/security/src/android/security/cts/
DKernelConfigTest.java50 private ITestDevice mDevice; field in KernelConfigTest
67 mDevice = device; in setDevice()
73 configSet = getDeviceConfig(mDevice, cachedConfigGzSet); in setUp()
147 if (PropertyUtil.getFirstApiLevel(mDevice) < 28) { in testConfigHardenedUsercopy()
162 if (PropertyUtil.getFirstApiLevel(mDevice) < 28) { in testConfigPAN()
166 if (CpuFeatures.isArm64(mDevice)) { in testConfigPAN()
171 } else if (CpuFeatures.isArm32(mDevice)) { in testConfigPAN()
184 if (PropertyUtil.getFirstApiLevel(mDevice) < 28) { in testConfigKTPI()
188 if (CpuFeatures.isArm64(mDevice) && !CpuFeatures.kernelVersionLessThan(mDevice, 4, 4)) { in testConfigKTPI()
191 } else if (CpuFeatures.isX86(mDevice)) { in testConfigKTPI()
/cts/hostsidetests/usage/src/android/app/usage/cts/
DAppIdleHostTest.java50 private ITestDevice mDevice; field in AppIdleHostTest
55 mDevice = getDevice(); in setUp()
65 … String result = mDevice.executeShellCommand(String.format("am get-inactive %s", appPackage)); in isAppIdle()
75 mDevice.executeShellCommand(String.format("settings put global %s \"%s\"", in setAppIdleSettings()
84 String result = mDevice.executeShellCommand(String.format("settings get global %s", in getAppIdleSettings()
95 mDevice.executeShellCommand( in startAndStopTestApp()
103 mDevice.executeShellCommand( in startAndStopTestApp()
124 mDevice.executeShellCommand( in setAppStandbyBucket()
129 final String result = mDevice.executeShellCommand( in isAppStandbyEnabled()
135 String bucketString = mDevice.executeShellCommand( in getAppStandbyBucket()
[all …]
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DKeySetHostTest.java207 mDevice.uninstallPackage(pkgName); in testPackageUpgrade()
209 installResult = mDevice.installPackage(getTestAppFile(firstApk), in testPackageUpgrade()
216 installResult = mDevice.installPackage(getTestAppFile(secondApk), in testPackageUpgrade()
219 mDevice.uninstallPackage(pkgName); in testPackageUpgrade()
226 private ITestDevice mDevice; field in KeySetHostTest
245 mDevice = getDevice(); in setUp()
374 mDevice.uninstallPackage(KEYSET_PKG); in testKeyRotationPerm()
375 mDevice.uninstallPackage(KEYSET_PERM_DEF_PKG); in testKeyRotationPerm()
376 mDevice.uninstallPackage(KEYSET_TEST_PKG); in testKeyRotationPerm()
379 String installResult = mDevice.installPackage( in testKeyRotationPerm()
[all …]
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DUserActivityEmulator.java28 private final ITestDevice mDevice; field in UserActivityEmulator
32 mDevice = device; in UserActivityEmulator()
33 final String output = mDevice.executeShellCommand("wm size"); in UserActivityEmulator()
40 mDevice.executeShellCommand(String.format("input tap %d %d", mWidth / 2, mHeight / 2)); in tapScreenCenter()
/cts/hostsidetests/monkey/src/com/android/cts/monkey/
DAbstractMonkeyTest.java27 ITestDevice mDevice; field in AbstractMonkeyTest
42 mDevice = getDevice(); in setUp()
46 mDevice.uninstallPackage(PKGS[i]); in setUp()
48 mDevice.installPackage(app, false, options); in setUp()
57 mDevice.uninstallPackage(PKGS[i]); in tearDown()
62 mDevice.executeAdbCommand("logcat", "-c"); in clearLogCat()
DSeedTest.java25 String out1 = mDevice.executeShellCommand(cmd1); in testSeed()
26 String out2 = mDevice.executeShellCommand(cmd1); in testSeed()
32 String out3 = mDevice.executeShellCommand(cmd2); in testSeed2()
33 String out4 = mDevice.executeShellCommand(cmd2); in testSeed2()
DMonkeyTest.java30 mDevice.executeShellCommand(MONKEY_CMD + " -p " + PKGS[0] + " 500"); in testIsMonkey()
35 mDevice.executeShellCommand("am start -W -a android.intent.action.MAIN " in testNotMonkey()
42 String logs = mDevice.executeAdbCommand( in assertIsUserAMonkey()
/cts/hostsidetests/usb/src/com/android/cts/usb/
DTestUsbTest.java53 private ITestDevice mDevice; field in TestUsbTest
70 mDevice = getDevice(); in setUp()
71 mDevice.uninstallPackage(PACKAGE_NAME); in setUp()
85 mDevice.installPackage(app, false, true, options); in installApp()
91 mDevice.uninstallPackage(PACKAGE_NAME); in tearDown()
97 mDevice.getIDevice()); in runTestOnDevice()
99 mDevice.runInstrumentationTests(testRunner, listener); in runTestOnDevice()
136 String adbSerial = mDevice.getSerialNumber().toLowerCase().trim(); in testUsbSerialReadOnDeviceMatches()
140 if (mDevice.isAdbTcp()) { // adb over WiFi, no point checking it in testUsbSerialReadOnDeviceMatches()
144 String roSerial = mDevice.executeShellCommand("getprop ro.serialno").toLowerCase(). in testUsbSerialReadOnDeviceMatches()
[all …]
/cts/hostsidetests/security/src/android/cts/security/
DProcessMustUseSeccompTest.java29 private ITestDevice mDevice; field in ProcessMustUseSeccompTest
37 mDevice = getDevice(); in setUp()
42 mDevice = null; in tearDown()
47 return PropertyUtil.getFirstApiLevel(mDevice) > 25; in isFullTrebleDevice()
59 mDevice.executeShellCommand(Cmd, Out); in getPidFromCmd()
87 mDevice.executeShellCommand("toybox cat /proc/" + Pid + "/status", Out); in pidHasSeccompBpf()
113 if (CpuFeatures.isArm64(mDevice)) { in testConfigStoreHalHasSeccompFilter()
DPerfEventParanoidTest.java27 private ITestDevice mDevice; field in PerfEventParanoidTest
34 mDevice = getDevice(); in setUp()
39 String output = mDevice.executeShellCommand(cmd); in testPerfEventRestricted()
/cts/tests/tests/graphics/jni/
DCameraTestHelpers.cpp62 &mDevice); in initCamera()
63 if (ret != AMEDIA_OK || mDevice == nullptr) { in initCamera()
64 ALOGE("Failed to open camera, ret=%d, mDevice=%p.", ret, mDevice); in initCamera()
98 ret = ACameraDevice_createCaptureSession(mDevice, mOutputs, &mSessionCb, in initCamera()
106 ret = ACameraDevice_createCaptureRequest(mDevice, TEMPLATE_RECORD, in initCamera()
164 if (mDevice) { in closeCamera()
165 ACameraDevice_close(mDevice); in closeCamera()
166 mDevice = nullptr; in closeCamera()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTest.java134 mDevice.waitForIdle(); in testOpenSimple()
140 mDevice.waitForIdle(); in testOpenSimple()
145 mDevice.waitForIdle(); in testOpenSimple()
147 mDevice.waitForIdle(); in testOpenSimple()
150 mDevice.waitForIdle(); in testOpenSimple()
174 mDevice.waitForIdle(); in testOpenVirtual()
177 mDevice.waitForIdle(); in testOpenVirtual()
215 mDevice.waitForIdle(); in testCreateNew()
218 mDevice.waitForIdle(); in testCreateNew()
239 mDevice.waitForIdle(); in testCreateExisting()
[all …]
/cts/tests/jank/src/android/jank/cts/
DCtsJankTestBase.java31 private UiDevice mDevice; field in CtsJankTestBase
57 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
58 mDevice.setOrientationNatural(); in setUp()
65 mDevice.unfreezeRotation(); in tearDown()
70 return mDevice; in getUiDevice()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStoreUiTest.java65 private UiDevice mDevice; field in MediaStoreUiTest
73 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
137 try { mDevice.findObject(sel).click(); } catch (Throwable ignored) { } in maybeClick()
141 try { mDevice.findObject(sel).click(); } catch (Throwable ignored) { } in maybeClick()
181 mDevice.waitForIdle(); in testImageCapture()
188 mDevice.pressKeyCode(KeyEvent.KEYCODE_CAMERA); in testImageCapture()
189 mDevice.waitForIdle(); in testImageCapture()
191 mDevice.pressKeyCode(KeyEvent.KEYCODE_DPAD_CENTER); in testImageCapture()
192 mDevice.waitForIdle(); in testImageCapture()
202 mDevice.waitForIdle(); in testImageCapture()
[all …]
/cts/hostsidetests/devicepolicy/app/CrossProfileAppsTest/src/com/android/cts/crossprofileappstest/
DCrossProfileAppsTargetUserTest.java58 private UiDevice mDevice; field in CrossProfileAppsTargetUserTest
69 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in wakeupDeviceAndPressHome()
70 mDevice.wakeUp(); in wakeupDeviceAndPressHome()
71 mDevice.pressMenu(); in wakeupDeviceAndPressHome()
72 mDevice.pressHome(); in wakeupDeviceAndPressHome()
87 mDevice.pressHome(); in pressHome()
105 UiObject2 textView = mDevice.wait( in testCanStartMainActivity()
/cts/hostsidetests/harmfulappwarning/src/android/harmfulappwarning/cts/
DHarmfulAppWarningTest.java74 private ITestDevice mDevice; field in HarmfulAppWarningTest
79 mDevice = getDevice(); in setUp()
80 mDevice.clearLogcat(); in setUp()
131 mDevice.executeShellCommand(SET_HARMFUL_APP_WARNING_COMMAND); in testLaunchAnyway()
143 mDevice.executeShellCommand(SET_HARMFUL_APP_WARNING_COMMAND); in testUninstall()
153 mDevice.executeShellCommand(SET_HARMFUL_APP_WARNING_COMMAND); in testDismissDialog()
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/
DStoragedDumpsysTest.java62 String result = mDevice.executeShellCommand("stat /proc/uid_io/stats"); in testStoragedOutput()
67 if (mDevice.getAppPackageInfo(DEVICE_SIDE_TEST_APK) != null) { in testStoragedOutput()
72 mDevice.installPackage(buildHelper.getTestFile(DEVICE_SIDE_TEST_APK), true); in testStoragedOutput()
74 mDevice.executeShellCommand("dumpsys storaged --force"); in testStoragedOutput()
81 String log = mDevice.executeAdbCommand( in testStoragedOutput()
93 String output = mDevice.executeShellCommand("dumpsys storaged --force --hours 0.01"); in testStoragedOutput()
/cts/hostsidetests/os/src/android/os/cts/
DOsHostTests.java60 private ITestDevice mDevice; field in OsHostTests
79 mDevice = getDevice(); in setUp()
91 mDevice.executeShellCommand(START_NON_EXPORTED_ACTIVITY_COMMAND, outputReceiver); in testNonExportedActivities()
101 mDevice.uninstallPackage(HOST_VERIFICATION_PKG); in testIntentFilterHostValidation()
105 mDevice.clearLogcat(); in testIntentFilterHostValidation()
112 String logs = mDevice.executeAdbCommand("logcat", "-v", "brief", "-d"); in testIntentFilterHostValidation()
139 mDevice.uninstallPackage(HOST_VERIFICATION_PKG); in testIntentFilterHostValidation()
DProcfsHostTests.java64 private ITestDevice mDevice; field in ProcfsHostTests
78 mDevice = getDevice(); in setUp()
153 mDevice.uninstallPackage(TEST_APP_PACKAGE); in startTestApp()
157 mDevice.installPackage(app, false, options); in startTestApp()
160 mDevice.executeAdbCommand("logcat", "-c"); in startTestApp()
162 String results = mDevice.executeShellCommand(START_TEST_APP_COMMAND); in startTestApp()
165 mDevice.executeAdbCommand("logcat", "-v", "brief", "-d", TEST_APP_CLASS + ":I", "*:S"); in startTestApp()
/cts/hostsidetests/ui/src/android/ui/cts/
DTaskSwitchingTest.java53 private ITestDevice mDevice; field in TaskSwitchingTest
81 mDevice = getDevice(); in setUp()
89 mDevice.uninstallPackage(PACKAGES[i]); in installPackages()
91 mDevice.installPackage(app, false, options); in installPackages()
99 mDevice.uninstallPackage(PACKAGES[i]); in tearDown()
118 mDevice.getIDevice()); in doTestTaskSwitching()
120 mDevice.runInstrumentationTests(testRunner, listener); in doTestTaskSwitching()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DManualPackageInstallTest.java101 mDevice.wait(Until.hasObject(INSTALL_BUTTON_SELECTOR), AUTOMATOR_WAIT_TIMEOUT); in automateInstallClick()
102 UiObject2 button = mDevice.findObject(INSTALL_BUTTON_SELECTOR); in automateInstallClick()
108 mDevice.wait(Until.hasObject(POPUP_IMAGE_SELECTOR), AUTOMATOR_WAIT_TIMEOUT); in automateDismissInstallBlockedDialog()
109 UiObject2 icon = mDevice.findObject(POPUP_IMAGE_SELECTOR); in automateDismissInstallBlockedDialog()
112 UiObject2 button = mDevice.findObject(POPUP_BUTTON_SELECTOR); in automateDismissInstallBlockedDialog()
/cts/suite/audio_quality/lib/src/
DAdb.cpp22 : mDevice(device) in Adb()
67 if (mDevice.empty()) { in executeCommand()
72 if (adbCommand.appendFormat("adb -s %s %s", mDevice.string(), in executeCommand()

1234