Home
last modified time | relevance | path

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

123

/cts/hostsidetests/services/activitymanager/src/android/server/cts/
DActivityManagerDockedStackTests.java36 mAmWmState.computeState(mDevice, new String[] {TEST_ACTIVITY_NAME}); in testStackList()
45 mAmWmState.computeState(mDevice, new String[] {TEST_ACTIVITY_NAME}); in testDockActivity()
52 mAmWmState.computeState(mDevice, new String[] {NON_RESIZEABLE_ACTIVITY_NAME}); in testNonResizeableNotDocked()
63 mAmWmState.computeState(mDevice, new String[] {LAUNCH_TO_SIDE_ACTIVITY_NAME}); in testLaunchToSide()
77 mAmWmState.computeState(mDevice, waitForFirstVisible); in testLaunchToSideAndBringToFront()
85 mAmWmState.computeState(mDevice, waitForSecondVisible); in testLaunchToSideAndBringToFront()
95 mAmWmState.computeState(mDevice, waitForFirstVisible); in testLaunchToSideAndBringToFront()
110 mAmWmState.computeState(mDevice, waitForActivitiesVisible); in testLaunchToSideMultiple()
119 mAmWmState.computeState(mDevice, waitForActivitiesVisible); in testLaunchToSideMultiple()
149 mAmWmState.computeState(mDevice, waitForActivitiesVisible); in launchTargetToSide()
[all …]
DDisplaySizeTest.java37 private ITestDevice mDevice; field in DisplaySizeTest
43 mDevice = getDevice(); in setUp()
94 mDevice.executeShellCommand("input keyevent 4"); in testCompatibilityDialogAfterReturn()
111 if (mDevice.getSerialNumber().startsWith("emulator-")) { in getStableDensity()
117 return Integer.parseInt(mDevice.getProperty(densityProp)); in getStableDensity()
124 mDevice.executeShellCommand("wm density " + targetDensity); in setDensity()
127 final String output = mDevice.executeShellCommand("wm density"); in setDensity()
134 mDevice.executeShellCommand("wm density reset"); in resetDensity()
139 mDevice.executeShellCommand(forceStopCmd); in forceStopPackage()
144 mDevice.executeShellCommand(getStartCommand(packageName, activityName)); in startActivity()
[all …]
DActivityManagerActivityVisiblityTests.java35 mAmWmState.waitForValidState(mDevice, true, new String[] {VISIBLE_BEHIND_ACTIVITY}, in testVisibleBehindHomeActivity()
39 mAmWmState.waitForHomeActivityVisible(mDevice); in testVisibleBehindHomeActivity()
41 mAmWmState.computeState(mDevice, null); in testVisibleBehindHomeActivity()
53 mAmWmState.computeState(mDevice, in testVisibleBehindOtherActivity_NotOverHome()
63 mAmWmState.computeState(mDevice, in testVisibleBehindOtherActivity_OverHome()
79 mAmWmState.computeState(mDevice, new String[] {PIP_ON_PIP_ACTIVITY, TRANSLUCENT_ACTIVITY}); in testTranslucentActivityOnTopOfPinnedStack()
93 mAmWmState.computeState(mDevice, new String[]{TRANSLUCENT_ACTIVITY}); in testTranslucentActivityOnTopOfHome()
116 mAmWmState.computeState(mDevice, new String[]{TRANSLUCENT_ACTIVITY}); in testHomeVisibleOnActivityTaskPinned()
128 mAmWmState.computeState(mDevice, new String[] {TEST_ACTIVITY_NAME, DOCKED_ACTIVITY_NAME, in testTranslucentActivityOverDockedStack()
141 mAmWmState.computeState(mDevice, new String[] { TURN_SCREEN_ON_ACTIVITY_NAME }); in testTurnScreenOnActivity()
DActivityManagerFreeformStackTests.java39 mAmWmState.computeState(mDevice, new String[] {FREEFORM_ACTIVITY, TEST_ACTIVITY}); in testFreeformWindowManagementSupport()
60 mAmWmState.computeState(mDevice, new String[] {NON_RESIZEABLE_ACTIVITY}); in testNonResizeableActivityNotLaunchedToFreeform()
72 mAmWmState.computeState(mDevice, new String[]{TEST_ACTIVITY, NO_RELAUNCH_ACTIVITY}); in testActivityLifeCycleOnResizeFreeformTask()
85 mAmWmState.computeState(mDevice, new String[]{TEST_ACTIVITY, NO_RELAUNCH_ACTIVITY}); in testActivityLifeCycleOnResizeFreeformTask()
92 mAmWmState.computeState(mDevice, new String[]{TEST_ACTIVITY, NO_RELAUNCH_ACTIVITY}); in testActivityLifeCycleOnResizeFreeformTask()
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
DEncryptionAppTest.java62 private UiDevice mDevice; field in EncryptionAppTest
73 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
74 assertNotNull(mDevice); in setUp()
95 mDevice.waitForIdle(); in testSetUp()
101 mDevice.waitForIdle(); in testSetUp()
108 mDevice.waitForIdle(); in testSetUp()
115 mDevice.waitForIdle(); in testSetUp()
127 mDevice.pressBack(); in testSetUp()
136 mDevice.waitForIdle(); in testTearDown()
142 mDevice.waitForIdle(); in testTearDown()
[all …]
/cts/hostsidetests/security/src/android/security/cts/
DEncryptionHostTest.java33 ITestDevice mDevice; field in EncryptionHostTest
39 mDevice = getDevice(); in setUp()
40 … mUserDebug = "userdebug".equals(mDevice.executeShellCommand("getprop ro.build.type").trim()); in setUp()
44 mDevice.enableAdbRoot(); in setUp()
50 mDevice.disableAdbRoot(); in tearDown()
56 if (!mUserDebug || !mDevice.isDeviceEncrypted()) { in testEncrypted()
DSELinuxHostTest.java76 private ITestDevice mDevice; field in SELinuxHostTest
92 mDevice = device; in setDevice()
118 mDevice.pullFile("/sys/fs/selinux/policy", devicePolicyFile); in setUp()
128 mDevice.executeShellCommand("cat /sys/fs/selinux/enforce", out); in testGlobalEnforcing()
206 mDevice.pullFile("/seapp_contexts", deviceSeappFile); in testValidSeappContexts()
265 mDevice.pullFile("/seapp_contexts", deviceSeappFile); in testAospSeappContexts()
288 mDevice.pullFile("/file_contexts.bin", deviceFcFile); in testAospFileContexts()
319 mDevice.pullFile("/property_contexts", devicePcFile); in testAospPropertyContexts()
338 mDevice.pullFile("/service_contexts", deviceSvcFile); in testAospServiceContexts()
360 mDevice.pullFile("/file_contexts.bin", deviceFcFile); in testValidFileContexts()
[all …]
/cts/hostsidetests/usb/src/com/android/cts/usb/
DTestUsbTest.java46 private ITestDevice mDevice; field in TestUsbTest
63 mDevice = getDevice(); in setUp()
64 mDevice.uninstallPackage(PACKAGE_NAME); in setUp()
67 mDevice.installPackage(app, false, options); in setUp()
73 mDevice.uninstallPackage(PACKAGE_NAME); in tearDown()
81 String adbSerial = mDevice.getSerialNumber().toLowerCase().trim(); in testUsbSerial()
85 if (mDevice.isAdbTcp()) { // adb over WiFi, no point checking it in testUsbSerial()
89 String roSerial = mDevice.executeShellCommand("getprop ro.serialno").toLowerCase(). in testUsbSerial()
113 mDevice.getIDevice()); in testUsbSerial()
114 mDevice.runInstrumentationTests(testRunner, listener); in testUsbSerial()
[all …]
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/
DFailureListener.java32 private ITestDevice mDevice; field in FailureListener
42 mDevice = device; in FailureListener()
57 InputStreamSource bugSource = mDevice.getBugreport(); in testFailed()
65 InputStreamSource logSource = mDevice.getLogcat(MAX_LOGCAT_BYTES); in testFailed()
72 InputStreamSource screenSource = mDevice.getScreenshot(); in testFailed()
79 mDevice.getSerialNumber()); in testFailed()
86 if ("user".equals(mDevice.getProperty("ro.build.type"))) { in testFailed()
90 mDevice.reboot(); in testFailed()
95 mDevice.getSerialNumber()); in testFailed()
/cts/hostsidetests/usage/src/android/app/usage/cts/
DAppIdleHostTest.java34 private ITestDevice mDevice; field in AppIdleHostTest
40 mDevice = getDevice(); in setUp()
50 … String result = mDevice.executeShellCommand(String.format("am get-inactive %s", appPackage)); in isAppIdle()
60 mDevice.executeShellCommand(String.format("settings put global %s \"%s\"", in setAppIdleSettings()
69 String result = mDevice.executeShellCommand(String.format("settings get global %s", in getAppIdleSettings()
80 mDevice.executeShellCommand( in startAndStopTestApp()
88 mDevice.executeShellCommand( in startAndStopTestApp()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DKeySetHostTest.java206 mDevice.uninstallPackage(pkgName); in testPackageUpgrade()
208 installResult = mDevice.installPackage(getTestAppFile(firstApk), in testPackageUpgrade()
215 installResult = mDevice.installPackage(getTestAppFile(secondApk), in testPackageUpgrade()
218 mDevice.uninstallPackage(pkgName); in testPackageUpgrade()
225 private ITestDevice mDevice; field in KeySetHostTest
240 mDevice = getDevice(); in setUp()
370 mDevice.uninstallPackage(KEYSET_PKG); in testKeyRotationPerm()
371 mDevice.uninstallPackage(KEYSET_PERM_DEF_PKG); in testKeyRotationPerm()
372 mDevice.uninstallPackage(KEYSET_TEST_PKG); in testKeyRotationPerm()
375 String installResult = mDevice.installPackage( in testKeyRotationPerm()
[all …]
/cts/hostsidetests/compilation/src/android/cts/compilation/
DAdbRootDependentCompilationTest.java66 private ITestDevice mDevice; field in AdbRootDependentCompilationTest
78 mDevice = getDevice(); in setUp()
80 String buildType = mDevice.getProperty("ro.build.type"); in setUp()
83 boolean wasRoot = mDevice.isAdbRoot(); in setUp()
87 mDevice.executeAdbCommand("root"); in setUp()
95 mDevice.uninstallPackage(APPLICATION_PACKAGE); // in case it's still installed in setUp()
96 mDevice.installPackage(apkFile, false); in setUp()
109 if (mDevice.doesFileExist(clientPath)) { in setUp()
123 mDevice.executeAdbCommand("unroot"); in tearDown()
127 mDevice.uninstallPackage(APPLICATION_PACKAGE); in tearDown()
[all …]
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DGeeTest.java54 private ITestDevice mDevice; field in GeeTest
132 if (!mDevice.pushFile(nativeExe, devicePath)) { in installTest()
140 if (mDevice.doesFileExist(remoteFilePath)) { in createRemoteDir()
143 if (!(mDevice.doesFileExist(NATIVE_TESTS_DIRECTORY_TMP))) { in createRemoteDir()
148 mDevice.executeShellCommand(String.format("mkdir %s", remoteFilePath)); in createRemoteDir()
149 return mDevice.doesFileExist(remoteFilePath); in createRemoteDir()
159 CLog.v("Running gtest %s %s on %s", fullPath, flags, mDevice.getSerialNumber()); in runTest()
161 CLog.v("%s", mDevice.executeShellCommand(String.format("chmod 755 %s", fullPath))); in runTest()
164 mDevice.executeShellCommand(String.format("%s %s", fullPath, flags), resultParser, in runTest()
184 mDevice = device; in setDevice()
[all …]
DWrappedGTest.java45 private ITestDevice mDevice; field in WrappedGTest
74 mDevice = device; in setDevice()
79 return mDevice; in getDevice()
96 String installCode = mDevice.installPackage(testApp, true, options); in installTest()
100 mDevice.getSerialNumber(), installCode); in installTest()
118 mDevice.executeShellCommand(command, resultParser, mMaxTestTimeMs, 0); in runTest()
129 mDevice.uninstallPackage(mAppNameSpace); in uninstallTest()
/cts/hostsidetests/monkey/src/com/android/cts/monkey/
DAbstractMonkeyTest.java27 ITestDevice mDevice; field in AbstractMonkeyTest
42 mDevice = getDevice(); in setUp()
45 mDevice.uninstallPackage(PKGS[i]); in setUp()
47 mDevice.installPackage(app, false, options); in setUp()
56 mDevice.uninstallPackage(PKGS[i]); in tearDown()
61 mDevice.executeAdbCommand("logcat", "-c"); in clearLogCat()
DCategoryTest.java22 String out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] + " 5000"); in testDefaultCategories()
28 String out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] in testSingleCategory()
33 out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] in testSingleCategory()
40 String out = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] in testMultipleCategories()
DSeedTest.java25 String out1 = mDevice.executeShellCommand(cmd1); in testSeed()
26 String out2 = mDevice.executeShellCommand(cmd1); in testSeed()
30 String out3 = mDevice.executeShellCommand(cmd2); in testSeed()
31 String out4 = mDevice.executeShellCommand(cmd2); in testSeed()
DMonkeyTest.java29 mDevice.executeShellCommand(MONKEY_CMD + " -p " + PKGS[0] + " 500"); in testIsMonkey()
34 mDevice.executeShellCommand("am start -W -a android.intent.action.MAIN " in testNotMonkey()
40 String logs = mDevice.executeAdbCommand( in assertIsUserAMonkey()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTest.java101 mDevice.waitForIdle(); in testOpenSimple()
107 mDevice.waitForIdle(); in testOpenSimple()
112 mDevice.waitForIdle(); in testOpenSimple()
114 mDevice.waitForIdle(); in testOpenSimple()
117 mDevice.waitForIdle(); in testOpenSimple()
141 mDevice.waitForIdle(); in testOpenVirtual()
144 mDevice.waitForIdle(); in testOpenVirtual()
182 mDevice.waitForIdle(); in testCreateNew()
185 mDevice.waitForIdle(); in testCreateNew()
206 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/hostsidetests/ui/src/android/ui/cts/
DTaskSwitchingTest.java50 private ITestDevice mDevice; field in TaskSwitchingTest
78 mDevice = getDevice(); in setUp()
81 mDevice.uninstallPackage(PACKAGES[i]); in setUp()
83 mDevice.installPackage(app, false, options); in setUp()
91 mDevice.uninstallPackage(PACKAGES[i]); in tearDown()
98 mDevice.getIDevice()); in testTaskSwitching()
100 mDevice.runInstrumentationTests(testRunner, listener); in testTaskSwitching()
/cts/hostsidetests/theme/src/android/theme/cts/
DThemeHostTest.java83 private ITestDevice mDevice; field in ThemeHostTest
103 mDevice = getDevice(); in setUp()
104 mDevice.uninstallPackage(APP_PACKAGE_NAME); in setUp()
109 mDevice.installPackage(app, true, true, options); in setUp()
111 final String density = getDensityBucketForDevice(mDevice); in setUp()
159 mDevice.uninstallPackage(APP_PACKAGE_NAME); in tearDown()
162 mDevice.executeShellCommand(CLEAR_GENERATED_CMD); in tearDown()
168 if (checkHardwareTypeSkipTest(mDevice.executeShellCommand(HARDWARE_TYPE_CMD).trim())) { in testThemes()
184 mDevice.pullFile(GENERATED_ASSETS_ZIP, localZip)); in testThemes()
235 mDevice.executeShellCommand(STOP_CMD); in generateDeviceImages()
[all …]
/cts/hostsidetests/os/src/android/os/cts/
DOsHostTests.java62 private ITestDevice mDevice; field in OsHostTests
81 mDevice = getDevice(); in setUp()
92 mDevice.executeShellCommand(START_NON_EXPORTED_ACTIVITY_COMMAND, outputReceiver); in testNonExportedActivities()
102 mDevice.uninstallPackage(HOST_VERIFICATION_PKG); in testIntentFilterHostValidation()
106 mDevice.clearLogcat(); in testIntentFilterHostValidation()
113 String logs = mDevice.executeAdbCommand("logcat", "-v", "brief", "-d"); in testIntentFilterHostValidation()
141 mDevice.uninstallPackage(HOST_VERIFICATION_PKG); in testIntentFilterHostValidation()
/cts/hostsidetests/security/src/android/cts/security/
DPerfEventParanoidTest.java27 private ITestDevice mDevice; field in PerfEventParanoidTest
34 mDevice = getDevice(); in setUp()
39 String output = mDevice.executeShellCommand(cmd); in testPerfEventRestricted()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DManualPackageInstallTest.java102 mDevice.wait(Until.hasObject(INSTALL_BUTTON_SELECTOR), AUTOMATOR_WAIT_TIMEOUT); in automateInstallClick()
103 UiObject2 button = mDevice.findObject(INSTALL_BUTTON_SELECTOR); in automateInstallClick()
109 mDevice.wait(Until.hasObject(POPUP_IMAGE_SELECTOR), AUTOMATOR_WAIT_TIMEOUT); in automateDismissInstallBlockedDialog()
110 UiObject2 icon = mDevice.findObject(POPUP_IMAGE_SELECTOR); in automateDismissInstallBlockedDialog()
113 UiObject2 button = mDevice.findObject(POPUP_BUTTON_SELECTOR); in automateDismissInstallBlockedDialog()

123