Home
last modified time | relevance | path

Searched refs:executeCommandBlocking (Results 1 – 11 of 11) sorted by relevance

/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DIncidentReportListenerTest.java84 .executeCommandBlocking(matches("rm -rf .*")); in testCreateDirectoryAtStart()
96 .executeCommandBlocking(matches("incident -b -p .*")); in testCollectFullReportAtEnd()
98 .executeCommandBlocking(matches("rm -rf .*")); in testCollectFullReportAtEnd()
112 .executeCommandBlocking(matches("incident -b -p .*")); in testFailCollectIfNoDestinationDirectory()
138 .executeCommandBlocking(matches("incident -b -p .*")); in testCollectEmptyReportFails()
140 .executeCommandBlocking(matches("rm -rf .*")); in testCollectEmptyReportFails()
155 .executeCommandBlocking(matches("incident -b -p .*")); in testReportMetricsAsData()
157 .executeCommandBlocking(matches("rm -rf .*")); in testReportMetricsAsData()
DBatteryStatsListenerTest.java85 doReturn(new byte[0]).when(listener).executeCommandBlocking(anyString()); in initListener()
159 verify(mListener, times(i)).executeCommandBlocking(BatteryStatsListener.CMD_DUMPSYS); in testTestRunToBytesCollector()
165 … verify(mListener, times(numTestCase)).executeCommandBlocking(BatteryStatsListener.CMD_DUMPSYS); in testTestRunToBytesCollector()
DScheduledRunCollectionListenerTest.java121 mListener.executeCommandBlocking("rm -rf " + outputFilePath.toString()); in tearDown()
DGcaEventLogCollectorTest.java76 Mockito.doReturn(new byte[10]).when(listener).executeCommandBlocking(Mockito.anyString()); in initListener()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DGcaEventLogCollector.java175 executeCommandBlocking(cmd); in copyEventLogToSharedStorage()
180 executeCommandBlocking("rm " + mEventLogPath); in cleanUpEventLog()
187 executeCommandBlocking("getprop camera.use_local_logger"), in getCameraEventLogProperty()
196 executeCommandBlocking("setprop camera.use_local_logger " + value); in setCameraEventLogProperty()
201 executeCommandBlocking("am force-stop " + mGcaPkg); in killGoogleCameraApp()
209 new String(executeCommandBlocking("getenforce"), StandardCharsets.UTF_8).trim(); in getSeLinuxEnforceProperty()
216 executeCommandBlocking("setenforce " + value.getProperty()); in setSeLinuxEnforceProperty()
235 byte[] lsResult = executeCommandBlocking("ls " + targetPath); in logListResult()
DBatteryStatsListener.java103 executeCommandBlocking("dumpsys battery unplug"); in onTestRunStart()
140 byte[] proto = executeCommandBlocking(CMD_DUMPSYS); in onTestEnd()
162 byte[] proto = executeCommandBlocking(CMD_DUMPSYS); in onTestRunEnd()
169 executeCommandBlocking("dumpsys battery reset"); in onTestRunEnd()
DMobilityChangeCollector.java62 executeCommandBlocking( in onTestRunEnd()
DIncidentReportListener.java83 byte[] output = executeCommandBlocking(fullReportCmd); in onTestRunEnd()
DBaseMetricListener.java275 public byte[] executeCommandBlocking(String command) { in executeCommandBlocking() method in BaseMetricListener
302 executeCommandBlocking("rm -rf " + destDir.getAbsolutePath()); in createAndEmptyDirectory()
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
DMetricUtility.java82 public static byte[] executeCommandBlocking(String command, Instrumentation instr) { in executeCommandBlocking() method in MetricUtility
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DFreeMemHelper.java122 byte[] dumpsysMemInfoBytes = MetricUtility.executeCommandBlocking(DUMPSYS_MEMIFNO, in getMetrics()