Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 131) sorted by relevance

123456

/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/helpers/
DAutomationUtils.java57 UiDevice device = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in wakeUpAndGoToHomeScreen() local
59 device.wakeUp(); in wakeUpAndGoToHomeScreen()
63 device.pressHome(); in wakeUpAndGoToHomeScreen()
81 public static boolean isQuickstepEnabled(UiDevice device) { in isQuickstepEnabled() argument
82 boolean enabled = device.findObject(By.res(SYSTEMUI_PACKAGE, "recent_apps")) == null; in isQuickstepEnabled()
87 public static void openQuickstep(UiDevice device) { in openQuickstep() argument
88 if (isQuickstepEnabled(device)) { in openQuickstep()
89 int height = device.getDisplayHeight(); in openQuickstep()
90 UiObject2 navBar = device.findObject(By.res(SYSTEMUI_PACKAGE, "navigation_bar_frame")); in openQuickstep()
103 device.swipe( in openQuickstep()
[all …]
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DUiWatchers.java43 final UiDevice device = UiDevice.getInstance(instr); in registerAnrAndCrashWatchers() local
46 device.registerWatcher("AnrWatcher", new UiWatcher() { in registerAnrAndCrashWatchers()
49 UiObject2 window = device.findObject( in registerAnrAndCrashWatchers()
54 postHandler(device); in registerAnrAndCrashWatchers()
61 device.registerWatcher("CrashWatcher", new UiWatcher() { in registerAnrAndCrashWatchers()
64 UiObject2 window = device.findObject( in registerAnrAndCrashWatchers()
69 postHandler(device); in registerAnrAndCrashWatchers()
80 final UiDevice device = UiDevice.getInstance(instr); in removeAnrAndCrashWatchers() local
81 device.removeWatcher("AnrWatcher"); in removeAnrAndCrashWatchers()
82 device.removeWatcher("CrashWatcher"); in removeAnrAndCrashWatchers()
[all …]
/platform_testing/libraries/aoa-helper/
DREADME.md2device](https://developer.android.com/guide/topics/connectivity/usb/) using [Android Open Accessor…
5 Connect to a device using its serial number.
8 AoaDevice device = manager.getDevice("SERIAL");
13 device.click(new Point(0, 0));
14 device.scroll(new Point(0, 0), new Point(360, 640));
19 device.write("hello world");
20 device.key(0x52, 0x52, 0x51, 0x51, 0x50, 0x4F, 0x50, 0x4F, 0x05, 0x04);
23 Press the power `device.wakeUp()`, home `device.goHome()`, or back `device.goBack()` buttons.
/platform_testing/libraries/aoa-helper/src/com/android/helper/aoa/
DUsbHelper.java108 try (UsbDevice device = connect(devicePointer)) { in getSerialNumbers() argument
109 String serialNumber = device.getSerialNumber(); in getSerialNumbers()
110 if (serialNumber != null && (!aoaOnly || device.isAoaCompatible())) { in getSerialNumbers()
131 UsbDevice device = connect(devicePointer); in getDevice() local
132 if (serialNumber.equals(device.getSerialNumber())) { in getDevice()
133 return device; in getDevice()
135 device.close(); in getDevice()
158 UsbDevice device = getDevice(serialNumber); in getDevice() local
160 while (device == null && timeout.compareTo(Duration.between(start, Instant.now())) > 0) { in getDevice()
162 device = getDevice(serialNumber); in getDevice()
[all …]
/platform_testing/libraries/device-collectors/src/main/java/android/device/loggers/
DLogFileLogger.java16 package android.device.loggers;
18 import android.device.collectors.BaseMetricListener;
19 import android.device.collectors.DataRecord;
20 import android.device.collectors.util.SendToInstrumentation;
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DTotalPssMetricListenerTest.java17 package android.device.collectors;
19 import static android.device.collectors.TotalPssMetricListener.PROCESS_NAMES_KEY;
20 import static android.device.collectors.TotalPssMetricListener.PROCESS_SEPARATOR;
21 import static android.device.collectors.TotalPssMetricListener.MIN_ITERATIONS_KEY;
22 import static android.device.collectors.TotalPssMetricListener.MAX_ITERATIONS_KEY;
23 import static android.device.collectors.TotalPssMetricListener.SLEEP_TIME_KEY;
24 import static android.device.collectors.TotalPssMetricListener.THRESHOLD_KEY;
DShowmapSnapshotListenerTest.java17 package android.device.collectors;
19 import static android.device.collectors.ShowmapSnapshotListener.DROP_CACHE_KEY;
20 import static android.device.collectors.ShowmapSnapshotListener.METRIC_NAME_INDEX;
21 import static android.device.collectors.ShowmapSnapshotListener.OUTPUT_DIR_KEY;
22 import static android.device.collectors.ShowmapSnapshotListener.PROCESS_NAMES_KEY;
23 import static android.device.collectors.ShowmapSnapshotListener.PROCESS_SEPARATOR;
DProcLoadListenerTest.java17 package android.device.collectors;
19 import static android.device.collectors.ProcLoadListener.PROC_LOAD_THRESHOLD;
20 import static android.device.collectors.ProcLoadListener.PROC_THRESHOLD_TIMEOUT;
21 import static android.device.collectors.ProcLoadListener.PROC_LOAD_INTERVAL;
DProcessShowmapListenerTest.java17 package android.device.collectors;
19 import static android.device.collectors.ProcessShowmapListener.PROCESS_NAMES_KEY;
20 import static android.device.collectors.ProcessShowmapListener.PROCESS_SEPARATOR;
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/
DThermalListener.java16 package android.device.collectors;
18 import android.device.collectors.annotations.OptionClass;
DCrashListener.java16 package android.device.collectors;
18 import android.device.collectors.annotations.OptionClass;
DAppStartupListener.java16 package android.device.collectors;
18 import android.device.collectors.annotations.OptionClass;
DCpuUsageListener.java16 package android.device.collectors;
18 import android.device.collectors.annotations.OptionClass;
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DPwrStatsUtilListener.java16 package android.device.collectors;
18 import android.device.collectors.annotations.OptionClass;
DFreeMemListener.java17 package android.device.collectors;
19 import android.device.collectors.annotations.OptionClass;
DSfStatsListener.java17 package android.device.collectors;
19 import android.device.collectors.annotations.OptionClass;
DDumpsysMeminfoListener.java17 package android.device.collectors;
19 import android.device.collectors.annotations.OptionClass;
DProcessShowmapListener.java17 package android.device.collectors;
19 import android.device.collectors.annotations.OptionClass;
DProcLoadListener.java17 package android.device.collectors;
19 import android.device.collectors.annotations.OptionClass;
DJankListener.java17 package android.device.collectors;
19 import android.device.collectors.annotations.OptionClass;
/platform_testing/libraries/device-collectors/src/main/java/android/device/preparers/
DGarbageCollectionPreparer.java17 package android.device.preparers;
19 import android.device.collectors.BaseMetricListener;
20 import android.device.collectors.DataRecord;
21 import android.device.collectors.ProcessShowmapListener;
22 import android.device.collectors.annotations.OptionClass;
/platform_testing/libraries/device-collectors/src/test/java/android/device/loggers/test/
DStubInstrumentationAnnotatedTest.java16 package android.device.loggers.test;
18 import android.device.loggers.TestLogData;
/platform_testing/tests/microbenchmarks/uibench/
DAndroid.bp20 "collector-device-lib",
23 "microbenchmark-device-lib",
33 test_suites: ["device-tests"],
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/
DUiBenchJankTestsHelper.java60 private UiBenchJankTestsHelper(UiDevice device, Context context) { in UiBenchJankTestsHelper() argument
61 mDevice = device; in UiBenchJankTestsHelper()
65 public static UiBenchJankTestsHelper getInstance(UiDevice device) { in getInstance() argument
66 return new UiBenchJankTestsHelper(device, null); in getInstance()
69 public static UiBenchJankTestsHelper getInstance(UiDevice device, Context context) { in getInstance() argument
71 mInstance = new UiBenchJankTestsHelper(device, context); in getInstance()
/platform_testing/tests/health/scenarios/tests/
DAndroid.bp51 "longevity-device-lib",
52 "microbenchmark-device-lib",
63 "collector-device-lib-platform",
69 "longevity-device-lib",
70 "microbenchmark-device-lib",
76 test_suites: ["device-tests"],

123456