Home
last modified time | relevance | path

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

/aosp_15_r20/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
H A DIncidentReportListenerTest.java88 .executeCommandBlocking(matches("rm -rf .*")); in testCreateDirectoryAtStart()
100 .executeCommandBlocking(matches("incident -b -p .*")); in testCollectFullReportAtEnd()
102 .executeCommandBlocking(matches("rm -rf .*")); in testCollectFullReportAtEnd()
116 .executeCommandBlocking(matches("incident -b -p .*")); in testFailCollectIfNoDestinationDirectory()
142 .executeCommandBlocking(matches("incident -b -p .*")); in testCollectEmptyReportFails()
144 .executeCommandBlocking(matches("rm -rf .*")); in testCollectEmptyReportFails()
159 .executeCommandBlocking(matches("incident -b -p .*")); in testReportMetricsAsData()
161 .executeCommandBlocking(matches("rm -rf .*")); in testReportMetricsAsData()
H A 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()
H A DGcaEventLogCollectorTest.java66 Mockito.doReturn(new byte[10]).when(listener).executeCommandBlocking(Mockito.anyString()); in initListener()
/aosp_15_r20/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
H A 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()
H A 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()
H A DBaseMetricListener.java336 public byte[] executeCommandBlocking(String command) { in executeCommandBlocking() method in BaseMetricListener
355 final byte[] cmdOut = executeCommandBlocking("ls -d " + file.getAbsolutePath()); in fileExists()
370 executeCommandBlocking("rm -rf " + destDir.getAbsolutePath()); in createDirectory()
373 executeCommandBlocking("mkdir -p " + destDir.getAbsolutePath()); in createDirectory()
426 executeCommandBlocking("rm -r " + rootDir.getAbsolutePath()); in recursiveDelete()
H A DMobilityChangeCollector.java62 executeCommandBlocking( in onTestRunEnd()
H A DIncidentReportListener.java83 byte[] output = executeCommandBlocking(fullReportCmd); in onTestRunEnd()
/aosp_15_r20/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
H A DMetricUtility.java125 public static byte[] executeCommandBlocking(String command, Instrumentation instr) { in executeCommandBlocking() method in MetricUtility
/aosp_15_r20/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
H A DFreeMemHelper.java122 byte[] dumpsysMemInfoBytes = MetricUtility.executeCommandBlocking(DUMPSYS_MEMIFNO, in getMetrics()