Home
last modified time | relevance | path

Searched refs:ParcelFileDescriptor (Results 1 – 22 of 22) sorted by relevance

/platform_testing/libraries/flicker/utils/src/android/tools/traces/
DUtils.kt23 import android.os.ParcelFileDescriptor in <lambda>()
52 ParcelFileDescriptor.AutoCloseInputStream(fileDescriptor).use { inputStream -> in executeShellCommand()
59 val pipe = ParcelFileDescriptor.createPipe() in doBinderDump()
76 ParcelFileDescriptor.AutoCloseInputStream(source).use { inputStream -> in doBinderDump()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DDittoBenchRule.java19 import android.os.ParcelFileDescriptor;
34 ParcelFileDescriptor mOutputFd;
DInputDeviceRule.kt19 import android.os.ParcelFileDescriptor in <lambda>()
58 private lateinit var inputStream: ParcelFileDescriptor.AutoCloseInputStream in <lambda>()
59 private lateinit var outputStream: ParcelFileDescriptor.AutoCloseOutputStream in <lambda>()
84 inputStream = ParcelFileDescriptor.AutoCloseInputStream(stdOut) in <lambda>()
85 outputStream = ParcelFileDescriptor.AutoCloseOutputStream(stdIn) in <lambda>()
DArtifactSaver.java21 import android.os.ParcelFileDescriptor;
168 try (ParcelFileDescriptor.AutoCloseInputStream in = in dumpCommandOutput()
169 new ParcelFileDescriptor.AutoCloseInputStream( in dumpCommandOutput()
DScreenRecordRule.kt19 import android.os.ParcelFileDescriptor in <lambda>()
20 import android.os.ParcelFileDescriptor.AutoCloseInputStream in <lambda>()
235 private fun ParcelFileDescriptor.readAllAndClose(): String = in <lambda>() method
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/
DTimingHelper.java20 import android.os.ParcelFileDescriptor;
109 private ParcelFileDescriptor.AutoCloseInputStream streamLogcat() { in streamLogcat()
111 return new ParcelFileDescriptor.AutoCloseInputStream( in streamLogcat()
DBugReportDurationHelper.java20 import android.os.ParcelFileDescriptor;
307 new ParcelFileDescriptor.AutoCloseInputStream( in extractAndFilterBugReport()
352 new ParcelFileDescriptor.AutoCloseInputStream( in extractAndFilterDumpstateBoard()
385 new ParcelFileDescriptor.AutoCloseInputStream( in dumpBugReportEntries()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DFontsUtils.kt21 import android.os.ParcelFileDescriptor
51 var pfd: ParcelFileDescriptor? = null in createAndApplyResourcesProvider()
58 pfd = ParcelFileDescriptor.dup(arscFile) in createAndApplyResourcesProvider()
/platform_testing/libraries/collectors-helper/perfetto/src/com/android/helpers/
DPerfettoHelper.java20 import android.os.ParcelFileDescriptor;
163 ParcelFileDescriptor[] fileDescriptor = uiAutomation.executeShellCommandRw(perfettoCmd); in startCollectingFromConfig()
164 ParcelFileDescriptor inputStreamDescriptor = fileDescriptor[0]; in startCollectingFromConfig()
165 ParcelFileDescriptor outputStreamDescriptor = fileDescriptor[1]; in startCollectingFromConfig()
167 try (ParcelFileDescriptor.AutoCloseOutputStream outputStream = in startCollectingFromConfig()
168 new ParcelFileDescriptor.AutoCloseOutputStream(outputStreamDescriptor)) { in startCollectingFromConfig()
172 try (ParcelFileDescriptor.AutoCloseInputStream inputStream = in startCollectingFromConfig()
173 new ParcelFileDescriptor.AutoCloseInputStream(inputStreamDescriptor)) { in startCollectingFromConfig()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DFilesystemUtil.java22 import android.os.ParcelFileDescriptor;
56 ParcelFileDescriptor pfd = instr.getUiAutomation().executeShellCommand(command); in saveProcessOutput()
57 pipe(new ParcelFileDescriptor.AutoCloseInputStream(pfd), out); in saveProcessOutput()
DProcessStatusTracker.java21 import android.os.ParcelFileDescriptor;
232 ParcelFileDescriptor stdout = getUiAutomation().executeShellCommand(command); in executeShellCommand()
235 new ParcelFileDescriptor.AutoCloseInputStream(stdout))); in executeShellCommand()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DBatteryStatsListener.java22 import android.os.ParcelFileDescriptor;
184 InputStream is = new ParcelFileDescriptor.AutoCloseInputStream( in dumpBatteryStats()
210 InputStream is = new ParcelFileDescriptor.AutoCloseInputStream( in resetBatteryStats()
DOatDumpCollector.java22 import android.os.ParcelFileDescriptor;
107 ParcelFileDescriptor pfd = in collectOatDumpAndMetrics()
DBaseMetricListener.java23 import android.os.ParcelFileDescriptor;
335 InputStream is = new ParcelFileDescriptor.AutoCloseInputStream( in executeCommandBlocking()
/platform_testing/tests/perf/PowerPerfTest/src/com/android/powerperf/tests/
DPowerPerfTest.java28 import android.os.ParcelFileDescriptor;
/platform_testing/utils/wifistrengthscanner/src/com/android/test/util/wifistrengthscanner/
DWifiStrengthScannerInstrumentation.java30 import android.os.ParcelFileDescriptor;
172 ParcelFileDescriptor pfd = getUiAutomation().executeShellCommand(cmd); in executeCommand()
175 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in executeCommand()
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
DMetricUtility.java4 import android.os.ParcelFileDescriptor;
126 try (InputStream is = new ParcelFileDescriptor.AutoCloseInputStream(instr.getUiAutomation() in executeCommandBlocking()
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DDumpsysMeminfoHelper.java20 import android.os.ParcelFileDescriptor;
119 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand(cmd); in getRawDumpsysMeminfo()
120 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in getRawDumpsysMeminfo()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/
DCommonUtils.java37 import android.os.ParcelFileDescriptor;
293 ParcelFileDescriptor fileDescriptor = in executeShellCommandWithDetailedOutput()
297 FileInputStream inputStream = new ParcelFileDescriptor.AutoCloseInputStream( in executeShellCommandWithDetailedOutput()
/platform_testing/tests/perf/PerformanceAppTest/src/com/android/performanceapp/tests/
DAppLaunchTests.java30 import android.os.ParcelFileDescriptor;
336 ParcelFileDescriptor pfDescriptor, ByteArrayOutputStream outputStream) in writeDataToByteStream()
338 InputStream inputStream = new ParcelFileDescriptor.AutoCloseInputStream(pfDescriptor); in writeDataToByteStream()
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/
DAppTransitionTests.java25 import android.os.ParcelFileDescriptor;
492 ParcelFileDescriptor parcelDesc = getInstrumentation().getUiAutomation() in run()
502 private String parseLaunchTime(ParcelFileDescriptor parcelDesc) { in parseLaunchTime()
/platform_testing/libraries/system-helpers/permission-helper/src/android/system/helpers/
DPermissionHelper.java27 import android.os.ParcelFileDescriptor;
107 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand("pm list permissions -g -d"); in populateDangerousPermissionGroupInfo()