Home
last modified time | relevance | path

Searched refs:AutoCloseInputStream (Results 1 – 25 of 39) 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/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DPipeManagerTest.java85 try (final ParcelFileDescriptor.AutoCloseInputStream stream = in assertDescriptor()
86 new ParcelFileDescriptor.AutoCloseInputStream(descriptor)) { in assertDescriptor()
DTestMtpManager.java166 try (final ParcelFileDescriptor.AutoCloseInputStream inputStream = in createDocument()
167 new ParcelFileDescriptor.AutoCloseInputStream(source)) { in createDocument()
DMtpDocumentsProviderTest.java621 try (ParcelFileDescriptor.AutoCloseInputStream stream = in testOpenDocument_writing()
622 new ParcelFileDescriptor.AutoCloseInputStream(fd)) { in testOpenDocument_writing()
/frameworks/base/packages/MtpDocumentsProvider/perf_tests/src/com/android/mtp/
DAppFusePerfTest.java54 try (final ParcelFileDescriptor.AutoCloseInputStream stream = in testReadWriteFile()
55 new ParcelFileDescriptor.AutoCloseInputStream(fd)) { in testReadWriteFile()
/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/apct-tests/perftests/utils/src/android/perftests/utils/
DShellHelper.java52 try(FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in runShellCommandRaw()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DATraceRunner.java72 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(fd))); in doInBackground()
/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/
DLocalOverlayManager.java66 try (InputStream in = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in executeShellCommand()
/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/packages/SystemUI/tests/src/com/android/systemui/
DSysuiTestCase.java100 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand()
/frameworks/opt/bitmap/src/com/android/bitmap/
DDecodeTask.java25 import android.os.ParcelFileDescriptor.AutoCloseInputStream;
169 in = new AutoCloseInputStream(orientationFd); in decode()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DUpdateInstaller.java132 InputStream in = new ParcelFileDescriptor.AutoCloseInputStream( in copyToFile()
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/
DBackgroundDexOptServiceIntegrationTests.java150 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand()
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java937 public static class AutoCloseInputStream extends FileInputStream { class in ParcelFileDescriptor
940 public AutoCloseInputStream(ParcelFileDescriptor pfd) { in AutoCloseInputStream() method in ParcelFileDescriptor.AutoCloseInputStream
DDropBoxManager.java233 is = new ParcelFileDescriptor.AutoCloseInputStream(mFileDescriptor); in getInputStream()
DIncidentManager.java333 return new ParcelFileDescriptor.AutoCloseInputStream(mFileDescriptor); in getInputStream()
/frameworks/base/services/core/java/com/android/server/am/
DProcessStatsService.java570 InputStream is = new ParcelFileDescriptor.AutoCloseInputStream(pfd);
714 InputStream stream = new ParcelFileDescriptor.AutoCloseInputStream(pfd);
1210 InputStream stream = new ParcelFileDescriptor.AutoCloseInputStream(pfd);
/frameworks/base/core/java/android/permission/
DPermissionControllerService.java284 try (InputStream backup = new ParcelFileDescriptor.AutoCloseInputStream(pipe)) { in onBind()
/frameworks/base/tests/DynamicCodeLoggerIntegrationTests/src/com/android/server/pm/dex/
DDynamicCodeLoggerIntegrationTests.java438 try (InputStream input = new ParcelFileDescriptor.AutoCloseInputStream(fd)) { in runCommand()
/frameworks/base/media/java/android/media/
DRingtoneManager.java943 return new ParcelFileDescriptor.AutoCloseInputStream(player.openRingtone(uri)); in openRingtone()

12