Home
last modified time | relevance | path

Searched refs:AutoCloseInputStream (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/base/core/java/android/content/res/
DAssetFileDescriptor.java173 return new ParcelFileDescriptor.AutoCloseInputStream(mFd); in createInputStream()
175 return new AutoCloseInputStream(this); in createInputStream()
204 public static class AutoCloseInputStream class in AssetFileDescriptor
205 extends ParcelFileDescriptor.AutoCloseInputStream {
208 public AutoCloseInputStream(AssetFileDescriptor fd) throws IOException { in AutoCloseInputStream() method in AssetFileDescriptor.AutoCloseInputStream
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DFullRestoreEngineThread.java4 import android.os.ParcelFileDescriptor.AutoCloseInputStream;
22 mEngineStream = new AutoCloseInputStream(engineSocket); in FullRestoreEngineThread()
/frameworks/base/apct-tests/perftests/core/src/android/mtp_perf/
DAppFusePerfTest.java54 try (final ParcelFileDescriptor.AutoCloseInputStream stream = in testReadWriteFile()
55 new ParcelFileDescriptor.AutoCloseInputStream(fd)) { in testReadWriteFile()
/frameworks/base/tests/BlobStoreTestUtils/src/com/android/utils/blob/
DFakeBlobData.java188 try (FileInputStream in = new ParcelFileDescriptor.AutoCloseInputStream( in readFromSessionAndVerifyBytes()
211 try (FileInputStream in = new ParcelFileDescriptor.AutoCloseInputStream( in readFromSessionAndVerifyDigest()
221 try (FileInputStream in = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in verifyBlob()
DUtils.java62 try (FileInputStream in = new ParcelFileDescriptor.AutoCloseInputStream(input)) { in writeToSession()
72 try (FileInputStream in = new ParcelFileDescriptor.AutoCloseInputStream(input)) { in writeToSession()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DWindowPerfTestBase.java82 return new ParcelFileDescriptor.AutoCloseInputStream( in stopAsyncAtraceWithStream()
123 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in executeShellCommand()
DShellHelper.java52 try(FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in runShellCommandRaw()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerBaseTest.java32 import android.os.ParcelFileDescriptor.AutoCloseInputStream;
355 AutoCloseInputStream input = new ParcelFileDescriptor.AutoCloseInputStream(actual); in verifyFileContents()
394 AutoCloseInputStream input = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in verifyFileContents()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsRttTextHandlerTest.java99 new ParcelFileDescriptor.AutoCloseInputStream(fromTextHandler[0])); in setUp()
103 new ParcelFileDescriptor.AutoCloseInputStream(toTextHandler[1])); in setUp()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DATraceRunner.java72 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(fd))); in doInBackground()
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/
DAtraceUtils.java100 InputStream inputStream = new ParcelFileDescriptor.AutoCloseInputStream(pfDescriptor); in writeDataToBuf()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DNetworkWatchlistShellCommand.java77 try (InputStream inputStream = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in runSetTestConfig()
/frameworks/base/apct-tests/perftests/blobstore/src/com/android/perftests/blob/
DAtraceUtils.java112 InputStream inputStream = new ParcelFileDescriptor.AutoCloseInputStream(pfDescriptor); in writeDataToBuf()
/frameworks/base/media/java/android/media/midi/
DMidiOutputPort.java106 mInputStream = new ParcelFileDescriptor.AutoCloseInputStream(new ParcelFileDescriptor(fd)); in MidiOutputPort()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageUtil.java84 InputStream fr = new ParcelFileDescriptor.AutoCloseInputStream(fd); in getFileFromFd()
DInstallTask.java140 inputStream = new ParcelFileDescriptor.AutoCloseInputStream(mParcelFileDescriptor); in writeToOutputStreamFromAsset()
/frameworks/base/core/java/com/android/internal/infra/
DRemoteStream.java102 return new ParcelFileDescriptor.AutoCloseInputStream(fd); in receiveBytes()
/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/
DPlatformCompatCommandNotInstalledTest.kt136 return String(ParcelFileDescriptor.AutoCloseInputStream(fileDescriptor).use { in <lambda>()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DUpdateInstaller.java132 InputStream in = new ParcelFileDescriptor.AutoCloseInputStream( in copyToFile()
/frameworks/opt/bitmap/src/com/android/bitmap/
DDecodeTask.java25 import android.os.ParcelFileDescriptor.AutoCloseInputStream;
169 in = new AutoCloseInputStream(orientationFd); in decode()
/frameworks/base/tests/benchmarks/internal/src/com/android/internal/
DLambdaPerfTest.java297 final ParcelFileDescriptor.AutoCloseInputStream stream = in shell()
298 new ParcelFileDescriptor.AutoCloseInputStream( in shell()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DSysuiTestCase.java162 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand()
/frameworks/base/packages/FusedLocation/test/src/com/android/location/fused/tests/
DFusedLocationServiceTest.java212 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in setMockLocation()
/frameworks/base/core/java/android/os/incremental/
DV4Signature.java131 try (InputStream stream = new ParcelFileDescriptor.AutoCloseInputStream(pfd.dup())) { in readFrom()
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/
DBackgroundDexOptServiceIntegrationTests.java151 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand()

12