/platform_testing/libraries/aoa-helper/src/com/android/helper/aoa/ |
D | UsbHelper.java | 127 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()
|
D | AoaDevice.java | 117 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/ |
D | ScreenRecordCollector.java | 130 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
|
D | ScreenshotOnFailureCollector.java | 176 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/ |
D | DeviceCollectorsTest.java | 70 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()
|
D | ScreenshotOnFailureCollectorHostTest.java | 67 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()
|
D | BatterystatsCollectorHostTest.java | 76 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()
|
D | LogcatOnFailureCollectorHostTest.java | 75 doReturn(Arrays.asList(getDevice())).when(mContext).getDevices(); in setUp()
|
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/loggers/ |
D | DeviceFileLoggerHostTest.java | 62 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/ |
D | HandheldHelperTest.java | 26 getDevice().setOrientationNatural(); in initialize()
|
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/ |
D | SfStatsCollectionHelper.java | 74 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
|
D | JankCollectionHelper.java | 256 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
|
D | BinderCollectionHelper.java | 92 getDevice() in getMetrics() 126 protected UiDevice getDevice() { in getDevice() method in BinderCollectionHelper
|
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/ |
D | ProcLoadHelper.java | 98 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/ |
D | ThermalHelper.java | 57 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/ |
D | UsbHelperTest.java | 141 assertEquals(mDevice, mHelper.getDevice(SERIAL_NUMBER)); in testGetDevice() 153 assertNull(mHelper.getDevice(SERIAL_NUMBER)); in testGetDevice_invalid()
|
D | AoaDeviceTest.java | 97 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/ |
D | BinderCollectionHelperTest.java | 94 when(mHelper.getDevice()).thenReturn(mUiDevice); in setUp()
|
D | SfStatsCollectionHelperTest.java | 137 when(mHelper.getDevice()).thenReturn(mUiDevice); in setUp()
|
D | JankCollectionHelperTest.java | 95 when(mHelper.getDevice()).thenReturn(mUiDevice); in setUp()
|
/platform_testing/libraries/aoa-helper/ |
D | README.md | 8 AoaDevice device = manager.getDevice("SERIAL");
|
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/ |
D | HelperTest.java | 128 public UiDevice getDevice() { in getDevice() method in HelperTest
|
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | ScreenRecordCollectorTest.java | 94 doReturn(mDevice).when(listener).getDevice(); in initListener()
|