Home
last modified time | relevance | path

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

12345678

/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/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;
/platform_testing/libraries/audio-test-harness/proto/
Daudio_device.proto23 // Models an audio device within the Audio Test Harness service.
25 // Capabilities that an audio device can have.
29 // Indicates that a given device can capture audio.
33 // The name of the device.
36 // The serial number of the device, if available.
39 // The capabilities of the device.
/platform_testing/libraries/device-collectors/src/main/java/android/device/preparers/
DMemhogPreparer.java16 package android.device.preparers;
18 import android.device.collectors.BaseMetricListener;
19 import android.device.collectors.DataRecord;
20 import android.device.collectors.annotations.OptionClass;
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/flicker/src/com/android/server/wm/flicker/rules/
DChangeDisplayOrientationRule.kt53 val device: UiDevice = UiDevice.getInstance(instrumentation) in setRotation() constant
57 Surface.ROTATION_270 -> device.setOrientationRight() in setRotation()
58 Surface.ROTATION_90 -> device.setOrientationLeft() in setRotation()
59 Surface.ROTATION_0 -> device.setOrientationNatural() in setRotation()
60 else -> device.setOrientationNatural() in setRotation()
/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;
DStatsdMetadataListener.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;
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DLyricCpuUtilizationCollector.java17 package android.device.collectors;
19 import android.device.collectors.annotations.OptionClass;
DPwrStatsUtilListener.java16 package android.device.collectors;
18 import android.device.collectors.annotations.OptionClass;
DSfStatsListener.java17 package android.device.collectors;
19 import android.device.collectors.annotations.OptionClass;
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/service/
DRotationMockTest.kt46 val device = UiDevice.getInstance(instrumentation) in startRotationServiceTest() constant
49 device.wakeUpAndGoToHomeScreen() in startRotationServiceTest()
52 device.setOrientationLeft() in startRotationServiceTest()
54 device.setOrientationNatural() in startRotationServiceTest()
DFassMockTest.kt45 val device = UiDevice.getInstance(instrumentation) in startServiceTest() constant
47 device.wakeUp() in startServiceTest()
48 device.pressHome() in startServiceTest()
/platform_testing/tests/microbenchmarks/uibench/
DAndroid.bp24 "collector-device-lib",
27 "microbenchmark-device-lib",
45 test_suites: ["device-tests"],
53 "collector-device-lib",
56 "microbenchmark-device-lib",
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DScreenRecordRule.java57 UiDevice device = UiDevice.getInstance(inst); in apply() local
60 device.executeShellCommand("killall screenrecord"); in apply()
63 String screenRecordPid = device.executeShellCommand("pidof screenrecord"); in apply()
67 device.executeShellCommand("kill -INT " + screenRecordPid); in apply()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/monitor/
DTraceMonitorTest.kt39 protected val device = UiDevice.getInstance(instrumentation) in getMonitor() constant in com.android.server.wm.flicker.monitor.TraceMonitorTest
47 device.pressHome() in teardown()
104 device.pressHome() in withTracing()
105 device.pressRecentApps() in withTracing()
114 device.pressHome() in recordTraces()
115 device.pressRecentApps() in recordTraces()
DLayersTraceMonitorTest.kt51 val device = UiDevice.getInstance(instrumentation) in withSFTracing() constant
52 device.pressHome() in withSFTracing()
53 device.pressRecentApps() in withSFTracing()
/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/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/javasound/
DJavaAudioSystemService.java85 public AudioCapturer createCapturerFor(AudioDevice device, AudioFormat audioFormat) in createCapturerFor() argument
90 device, audioFormat)); in createCapturerFor()
98 mixerInfo = mDeviceMixerMap.get(device); in createCapturerFor()
104 mixerInfo = findClosestMatchingMixer(device, /* exactName= */ false); in createCapturerFor()
135 return mAudioCapturerFactory.build(device, audioFormat, targetDataLine); in createCapturerFor()
155 AudioDevice device = audioDeviceBuilder.build(); in rebuildMixerCache() local
157 mDeviceMixerMap.put(device, mixerInfo); in rebuildMixerCache()
/platform_testing/tests/apphealth/scenarios/tests/
DAndroid.bp24 "collector-device-lib-platform",
30 "longevity-device-lib",
31 "microbenchmark-device-lib",
39 test_suites: ["device-tests"],
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DDeviceConfigHelper.java29 UiDevice device = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setConfigValue() local
31 return device.executeShellCommand(command); in setConfigValue()

12345678