Home
last modified time | relevance | path

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

/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()
DLogcatCollectorHostTest.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/device-collectors/src/main/java/android/device/collectors/
DScreenRecordCollector.java134 public UiDevice getDevice() { in getDevice() method in ScreenRecordCollector
170 getDevice() in run()
184 String[] pids = getDevice().executeShellCommand("pidof screenrecord").split(" "); in cancel()
191 getDevice().executeShellCommand(String.format("kill -2 %s", pid)); in cancel()
DScreenshotOnFailureCollector.java176 getDevice().dumpWindowHierarchy(uixFile); in collectUiXml()
184 private UiDevice getDevice() { in getDevice() method in ScreenshotOnFailureCollector
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DSfStatsCollectionHelper.java76 getDevice().executeShellCommand(SFSTATS_COMMAND_ENABLE_AND_CLEAR); in startCollecting()
89 output = getDevice().executeShellCommand(SFSTATS_COMMAND_DUMP); in getMetrics()
154 getDevice().executeShellCommand(SFSTATS_COMMAND_DISABLE_AND_CLEAR); in stopCollecting()
164 protected UiDevice getDevice() { in getDevice() method in SfStatsCollectionHelper
DJankCollectionHelper.java279 String output = getDevice().executeShellCommand(command); in clearGfxInfo()
285 String output = getDevice().executeShellCommand(command); in clearGfxInfo()
306 String output = getDevice().executeShellCommand(command); in getGfxInfoMetrics()
365 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.java99 String output = getDevice().executeShellCommand(LOAD_CMD); in getProcLoadInLastMinute()
121 private UiDevice getDevice() { in getDevice() method in ProcLoadHelper
DTimeInStateHelper.java68 result = getDevice().executeShellCommand(cmd); in setUp()
99 protected UiDevice getDevice() { in getDevice() method in TimeInStateHelper
133 timeInStateData = getDevice().executeShellCommand(cmd); in readFreqStats()
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DThermalHelper.java72 String[] output = getDevice().executeShellCommand(DUMP_THERMALSERVICE_CMD).split("\n"); in startCollecting()
133 String output = getDevice().executeShellCommand(DUMP_THERMALSERVICE_CMD); in updateTemperatureMetrics()
241 private UiDevice getDevice() { in getDevice() method in ThermalHelper
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/
DBinderCollectionHelperTest.java94 when(mHelper.getDevice()).thenReturn(mUiDevice); in setUp()
DSfStatsCollectionHelperTest.java141 when(mHelper.getDevice()).thenReturn(mUiDevice); in setUp()
DJankCollectionHelperTest.java104 when(mHelper.getDevice()).thenReturn(mUiDevice); in setUp()
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DHelperTest.java128 public UiDevice getDevice() { in getDevice() method in HelperTest
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/generic/
DOpenAppsFromHome.java88 sLauncher.getDevice().executeShellCommand("pm clear com.google.android.apps.nexuslauncher"); in closeAppAndRemoveIcon()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DScreenRecordCollectorTest.java93 doReturn(mDevice).when(listener).getDevice(); in initListener()