OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mUiDevice
(Results
1 - 21
of
21
) sorted by null
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
FbeHelper.java
35
private UiDevice
mUiDevice
;
43
mUiDevice
= UiDevice.getInstance(getInstrumentation());
44
assertNotNull(
mUiDevice
);
80
mUiDevice
.wakeUp();
81
mUiDevice
.waitForIdle();
82
mUiDevice
.pressMenu();
83
mUiDevice
.waitForIdle();
85
mUiDevice
.waitForIdle();
86
mUiDevice
.pressEnter();
87
mUiDevice
.waitForIdle()
[
all
...]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
LockTaskHostDrivenTest.java
56
private UiDevice
mUiDevice
;
88
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
105
mUiDevice
.waitForIdle();
114
mUiDevice
.waitForIdle();
125
mUiDevice
.pressBack();
126
mUiDevice
.waitForIdle();
129
mUiDevice
.pressHome();
130
mUiDevice
.waitForIdle();
133
mUiDevice
.pressRecentApps();
134
mUiDevice
.waitForIdle()
[
all
...]
/cts/tests/tests/packageinstaller/tapjacking/src/android/packageinstaller/tapjacking/cts/
TapjackingTest.java
62
private UiDevice
mUiDevice
;
68
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
69
if (!
mUiDevice
.isScreenOn()) {
70
mUiDevice
.wakeUp();
72
mUiDevice
.executeShellCommand(WM_DISMISS_KEYGUARD_COMMAND);
85
mUiDevice
.executeShellCommand(commandBuilder.toString());
103
return
mUiDevice
.wait(Until.findObject(selector), WAIT_FOR_UI_TIMEOUT);
120
assertFalse("Tap on install button succeeded",
mUiDevice
.wait(
123
mUiDevice
.pressBack();
128
mUiDevice
.pressHome()
[
all
...]
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/
UninstallTest.java
59
private UiDevice
mUiDevice
;
66
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
67
if (!
mUiDevice
.isScreenOn()) {
68
mUiDevice
.wakeUp();
70
mUiDevice
.executeShellCommand("wm dismiss-keyguard");
76
mUiDevice
.dumpWindowHierarchy(outputStream);
95
if (
mUiDevice
.wait(Until.findObject(By.text("Do you want to uninstall this app?")),
100
mUiDevice
.wait(Until.findObject(By.text("Do you want to uninstall this app?")),
103
assertNotNull(
mUiDevice
.findObject(By.text("Empty Test App")));
106
mUiDevice
.findObject(By.text("OK")).click()
[
all
...]
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DeviceStatesTest.java
36
private UiDevice
mUiDevice
;
42
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
75
mUiDevice
.executeShellCommand("cmd jobscheduler trigger-dock-state "
86
mUiDevice
.executeShellCommand("input keyevent KEYCODE_WAKEUP");
88
mUiDevice
.executeShellCommand("input keyevent KEYCODE_SLEEP");
98
mUiDevice
.executeShellCommand("cmd activity idle-maintenance");
JobThrottlingTest.java
78
private UiDevice
mUiDevice
;
117
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
129
mDeviceIdleEnabled = isDeviceIdleEnabled(
mUiDevice
);
343
final String output =
mUiDevice
.executeShellCommand("cmd deviceidle tempwhitelist").trim();
357
mUiDevice
.executeShellCommand("cmd deviceidle " + (idle ? "force-idle" : "unforce"));
367
mUiDevice
.executeShellCommand("cmd deviceidle tempwhitelist -d " + duration
372
mUiDevice
.executeShellCommand("am make-uid-idle --user current " + TEST_APP_PACKAGE);
396
mUiDevice
.executeShellCommand("am set-standby-bucket " + TEST_APP_PACKAGE
401
mUiDevice
.executeShellCommand("cmd deviceidle tempwhitelist -r " + TEST_APP_PACKAGE);
/cts/tests/tests/app.usage/src/android/app/usage/cts/
TaskRootActivity.java
33
private UiDevice
mUiDevice
;
38
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
48
mUiDevice
.wait(Until.hasObject(By.clazz(TEST_APP_PKG, TEST_APP_CLASS)), TIMEOUT);
UsageStatsTest.java
115
private UiDevice
mUiDevice
;
122
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
152
mUiDevice
.executeShellCommand(command);
157
return
mUiDevice
.executeShellCommand(USAGE_SOURCE_GET_SHELL_COMMAND);
162
mUiDevice
.executeShellCommand(USAGE_SOURCE_DELETE_SHELL_COMMAND);
166
mUiDevice
.executeShellCommand(command);
177
mUiDevice
.wait(Until.hasObject(By.clazz(clazz)), TIMEOUT);
195
mUiDevice
.wakeUp();
243
testActivityOnButton(
mUiDevice
::pressBack);
249
testActivityOnButton(
mUiDevice
::pressHome)
[
all
...]
UsageReportingTest.java
44
private UiDevice
mUiDevice
;
61
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
122
mUiDevice
.sleep();
206
mUiDevice
.sleep();
315
mUiDevice
.sleep();
348
mUiDevice
.sleep();
363
mUiDevice
.executeShellCommand("dumpsys usagestats apptimelimit actives");
/cts/tests/tests/text/src/android/text/cts/
ClipboardManagerTest.java
44
private UiDevice
mUiDevice
;
51
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
80
mUiDevice
.wait(Until.hasObject(By.clazz(clazz)), 5000);
/cts/tests/tests/content/src/android/content/cts/
ClipDescriptionTest.java
49
private UiDevice
mUiDevice
;
55
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
56
mUiDevice
.wakeUp();
101
mUiDevice
.wait(Until.hasObject(By.clazz(clazz)), 5000);
ClipboardManagerTest.java
54
private UiDevice
mUiDevice
;
60
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
61
mUiDevice
.wakeUp();
253
mUiDevice
.pressHome();
254
mUiDevice
.wait(Until.gone(By.clazz(MockActivity.class)), 5000);
289
mUiDevice
.wait(Until.hasObject(By.clazz(clazz)), 5000);
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
TestHelper.java
59
private final UiDevice
mUiDevice
;
94
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
104
return
mUiDevice
.executeShellCommand(command).trim();
123
mUiDevice
.wait(Until.hasObject(By.pkg(packageName).depth(0)), TIMEOUT);
132
return
mUiDevice
.findObject(By.res(resourceName));
/cts/tests/tests/view/src/android/view/cts/
ViewAttributeTest.java
56
private UiDevice
mUiDevice
;
60
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
61
mUiDevice
.executeShellCommand(ENABLE_SHELL_COMMAND);
67
mUiDevice
.executeShellCommand(DISABLE_SHELL_COMMAND);
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
BackgroundRestrictedAlarmsTest.java
68
private UiDevice
mUiDevice
;
85
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
166
mUiDevice
.executeShellCommand(cmd);
170
mUiDevice
.executeShellCommand("settings delete global alarm_manager_constants");
174
mUiDevice
.executeShellCommand("am set-standby-bucket " + TEST_APP_PACKAGE + " " + bucket);
184
mUiDevice
.executeShellCommand(commandBuilder.toString());
AppStandbyTests.java
138
private UiDevice
mUiDevice
;
166
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
491
final String output =
mUiDevice
.executeShellCommand(cmd).trim();
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/
QuietModeTest.java
71
private UiDevice
mUiDevice
;
91
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
92
mUiDevice
.wakeUp();
93
mUiDevice
.pressMenu();
207
mUiDevice
.executeShellCommand("am start -W -n " + activity);
/cts/tests/tests/permission/src/android/permission/cts/
PermissionGroupChange.java
55
private UiDevice
mUiDevice
;
60
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
103
mUiDevice
.findObject(new UiSelector().resourceId(
/cts/hostsidetests/appsecurity/test-apps/PackageAccessApp/src/com/android/cts/packageaccessapp/
PackageAccessTest.java
41
private UiDevice
mUiDevice
;
45
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
/cts/tests/tests/os/src/android/os/cts/
PowerManager_ThermalTest.java
46
private UiDevice
mUiDevice
;
59
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
/cts/tests/tests/net/src/android/net/wifi/cts/
WifiManagerTest.java
74
private UiDevice
mUiDevice
;
173
mUiDevice
= UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
[
all
...]
Completed in 1247 milliseconds