Home
last modified time | relevance | path

Searched refs:getDevice (Results 1 – 23 of 23) sorted by relevance

/platform_testing/libraries/aoa-helper/src/com/android/helper/aoa/
DUsbHelper.java127 public UsbDevice getDevice(@Nonnull String serialNumber) { in getDevice() method in UsbHelper
156 public UsbDevice getDevice(@Nonnull String serialNumber, @Nonnull Duration timeout) { in getDevice() method in UsbHelper
158 UsbDevice device = getDevice(serialNumber); in getDevice()
162 device = getDevice(serialNumber); in getDevice()
188 UsbDevice device = getDevice(serialNumber, timeout); in getAoaDevice()
DAoaDevice.java117 mDelegate = mHelper.getDevice(mSerialNumber, CONNECTION_TIMEOUT); in initialize()
159 mDelegate = mHelper.getDevice(mSerialNumber, CONNECTION_TIMEOUT); in resetConnection()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DScreenRecordCollector.java130 getDevice().executeShellCommand(String.format("screenrecord %s", output)); in startScreenRecordThread()
144 String[] pids = getDevice().executeShellCommand("pidof screenrecord").split(" "); in killScreenRecordProcesses()
151 getDevice().executeShellCommand(String.format("kill -2 %s", pid)); in killScreenRecordProcesses()
166 public UiDevice getDevice() { in getDevice() method in ScreenRecordCollector
DScreenshotOnFailureCollector.java176 getDevice().dumpWindowHierarchy(uixFile); in collectUiXml()
184 private UiDevice getDevice() { in getDevice() method in ScreenshotOnFailureCollector
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/collectors/
DDeviceCollectorsTest.java70 new RemoteAndroidTestRunner(PACKAGE_NAME, AJUR_RUNNER, getDevice().getIDevice()); in setUp()
75 doReturn(Arrays.asList(getDevice())).when(mContext).getDevices(); in setUp()
87 assertTrue(getDevice().runInstrumentationTests(mTestRunner, listener)); in testBaseListenerRuns()
114 assertTrue(getDevice().runInstrumentationTests(mTestRunner, listener)); in testBaseListenerRuns_withExcludeFilters()
144 assertTrue(getDevice().runInstrumentationTests(mTestRunner, listener)); in testBaseListenerRuns_withIncludeAndExcludeFilters()
174 assertTrue(getDevice().runInstrumentationTests(mTestRunner, listener)); in testBaseListenerRuns_withIncludeFilters()
210 assertTrue(getDevice().runInstrumentationTests(mTestRunner, listener)); in testScheduledListenerRuns()
233 assertTrue(getDevice().runInstrumentationTests(mTestRunner, listener)); in testScheduledListenerRuns_defaultValue()
DScreenshotOnFailureCollectorHostTest.java67 new RemoteAndroidTestRunner(PACKAGE_NAME, AJUR_RUNNER, getDevice().getIDevice()); in setUp()
70 doReturn(Arrays.asList(getDevice())).when(mContext).getDevices(); in setUp()
110 assertTrue(getDevice().runInstrumentationTests(mTestRunner, collector)); in testScreenshotListener()
DBatterystatsCollectorHostTest.java76 new RemoteAndroidTestRunner(PACKAGE_NAME, AJUR_RUNNER, getDevice().getIDevice()); in setUp()
78 doReturn(Arrays.asList(getDevice())).when(mContext).getDevices(); in setUp()
120 assertTrue(getDevice().runInstrumentationTests(mTestRunner, collector)); in testBatteryStatsListener_perRun()
167 assertTrue(getDevice().runInstrumentationTests(mTestRunner, collector)); in testBatteryStatsListener_perTest()
DLogcatOnFailureCollectorHostTest.java75 doReturn(Arrays.asList(getDevice())).when(mContext).getDevices(); in setUp()
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/loggers/
DDeviceFileLoggerHostTest.java62 new RemoteAndroidTestRunner(PACKAGE_NAME, AJUR_RUNNER, getDevice().getIDevice()); in setUp()
66 doReturn(Arrays.asList(getDevice())).when(mContext).getDevices(); in setUp()
75 assertTrue(getDevice().runInstrumentationTests(mTestRunner, listener)); in testFileIsLogged()
/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/
DHandheldHelperTest.java26 getDevice().setOrientationNatural(); in initialize()
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DSfStatsCollectionHelper.java74 getDevice().executeShellCommand(SFSTATS_COMMAND_ENABLE_AND_CLEAR); in startCollecting()
87 output = getDevice().executeShellCommand(SFSTATS_COMMAND_DUMP); in getMetrics()
137 getDevice().executeShellCommand(SFSTATS_COMMAND_DISABLE_AND_CLEAR); in stopCollecting()
147 protected UiDevice getDevice() { in getDevice() method in SfStatsCollectionHelper
DJankCollectionHelper.java256 String output = getDevice().executeShellCommand(command); in clearGfxInfo()
262 String output = getDevice().executeShellCommand(command); in clearGfxInfo()
283 String output = getDevice().executeShellCommand(command); in getGfxInfoMetrics()
342 protected UiDevice getDevice() { in getDevice() method in JankCollectionHelper
DBinderCollectionHelper.java92 getDevice() in getMetrics()
126 protected UiDevice getDevice() { in getDevice() method in BinderCollectionHelper
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/
DProcLoadHelper.java98 String output = getDevice().executeShellCommand(LOAD_CMD); in getProcLoadInLastMinute()
120 private UiDevice getDevice() { in getDevice() method in ProcLoadHelper
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DThermalHelper.java57 String[] output = getDevice().executeShellCommand("dumpsys thermalservice").split("\n"); in startCollecting()
162 private UiDevice getDevice() { in getDevice() method in ThermalHelper
/platform_testing/libraries/aoa-helper/tests/src/com/android/helper/aoa/
DUsbHelperTest.java141 assertEquals(mDevice, mHelper.getDevice(SERIAL_NUMBER)); in testGetDevice()
153 assertNull(mHelper.getDevice(SERIAL_NUMBER)); in testGetDevice_invalid()
DAoaDeviceTest.java97 when(mHelper.getDevice(anyString(), any())).thenReturn(mDelegate); in setUp()
153 verify(mHelper, times(1)).getDevice(eq(SERIAL_NUMBER), any()); in testResetConnection()
297 verify(mHelper, times(1)).getDevice(eq(SERIAL_NUMBER), any()); in testRetryAction()
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/
DBinderCollectionHelperTest.java94 when(mHelper.getDevice()).thenReturn(mUiDevice); in setUp()
DSfStatsCollectionHelperTest.java137 when(mHelper.getDevice()).thenReturn(mUiDevice); in setUp()
DJankCollectionHelperTest.java95 when(mHelper.getDevice()).thenReturn(mUiDevice); in setUp()
/platform_testing/libraries/aoa-helper/
DREADME.md8 AoaDevice device = manager.getDevice("SERIAL");
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DHelperTest.java128 public UiDevice getDevice() { in getDevice() method in HelperTest
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DScreenRecordCollectorTest.java94 doReturn(mDevice).when(listener).getDevice(); in initListener()