Home
last modified time | relevance | path

Searched refs:pfd (Results 1 – 25 of 70) sorted by relevance

123

/cts/tests/tests/os/src/android/os/cts/
DParcelFileDescriptorTest.java74 ParcelFileDescriptor pfd = new ParcelFileDescriptor(tempFile); in testConstructorAndOpen() local
75 AutoCloseInputStream in = new AutoCloseInputStream(pfd); in testConstructorAndOpen()
128 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); in testFromSocket() local
129 AutoCloseInputStream in = new AutoCloseInputStream(pfd); in testFromSocket()
133 pfd.close(); in testFromSocket()
158 ParcelFileDescriptor pfd = makeParcelFileDescriptor(getContext()); in testToString() local
159 assertNotNull(pfd.toString()); in testToString()
169 ParcelFileDescriptor pfd = ParcelFileDescriptor.CREATOR.createFromParcel(pl); in testWriteToParcel() local
170 AutoCloseInputStream in = new AutoCloseInputStream(pfd); in testWriteToParcel()
213 ParcelFileDescriptor pfd = makeParcelFileDescriptor(getContext()); in testGetFileDescriptor() local
[all …]
DParcelFileDescriptor_AutoCloseOutputStreamTest.java48 ParcelFileDescriptor pfd = ParcelFileDescriptorTest.makeParcelFileDescriptor(getContext()); in testCloseOrdering() local
50 try (FileOutputStream out = new AutoCloseOutputStream(pfd)) { in testCloseOrdering()
DIParcelFileDescriptorPeer.aidl32 void set(in ParcelFileDescriptor pfd); in set() argument
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontFileUpdateRequestTest.java42 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(robotoFile, in construct() local
47 FontFileUpdateRequest request = new FontFileUpdateRequest(pfd, signature); in construct()
48 assertThat(request.getParcelFileDescriptor()).isEqualTo(pfd); in construct()
52 assertThrows(NullPointerException.class, () -> new FontFileUpdateRequest(pfd, null)); in construct()
DFontManagerTest.java193 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(robotoFile, in fontManager_updateFontFile_negativeBaseVersion() local
197 updateFontFile(fm, new FontFileUpdateRequest(pfd, new byte[256]), -1); in fontManager_updateFontFile_negativeBaseVersion()
211 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(robotoFile, in fontManager_updateFontFile_permissionEnforce() local
216 updateFontFile(fm, new FontFileUpdateRequest(pfd, randomSignature), in fontManager_updateFontFile_permissionEnforce()
/cts/tests/tests/graphics/src/android/graphics/cts/
DAImageDecoderTest.java168 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, in open() local
170 assertNotNull(pfd); in open()
171 return pfd; in open()
181 try (ParcelFileDescriptor pfd = open(record.resId)) { in testCreateFdResources() argument
182 long aimagedecoder = nCreateFromFd(pfd.getFd()); in testCreateFdResources()
196 try (ParcelFileDescriptor pfd = open(record.resId, offset)) { in testCreateFdOffset() argument
197 FileDescriptor fd = pfd.getFileDescriptor(); in testCreateFdOffset()
199 long aimagedecoder = nCreateFromFd(pfd.getFd()); in testCreateFdOffset()
236 try (ParcelFileDescriptor pfd = open(record.resId)) { in testSetFormatResources() argument
237 long aimagedecoder = nCreateFromFd(pfd.getFd()); in testSetFormatResources()
[all …]
/cts/hostsidetests/dumpsys/apps/ProcStatsTestApp/src/com/android/server/cts/procstats/
DProcStatsTest.java87 static List<String> readAll(ParcelFileDescriptor pfd) { in readAll() argument
92 new FileReader(pfd.getFileDescriptor()))) { in readAll()
101 pfd.close(); in readAll()
/cts/hostsidetests/blobstore/test-apps/BlobStoreHostTestHelper/src/com/android/cts/device/blob/
DDataCleanupTest.java112 try (ParcelFileDescriptor pfd = mBlobStoreManager.openBlob(blobHandle)) { in testOpenBlob() argument
113 assertThat(pfd).isNotNull(); in testOpenBlob()
127 try (ParcelFileDescriptor pfd = mBlobStoreManager.openBlob(blobHandle)) { in testRecommitBlob() argument
128 assertThat(pfd).isNotNull(); in testRecommitBlob()
133 Utils.writeToSession(session, pfd); in testRecommitBlob()
/cts/tests/tests/telephony2/src/android/telephony2/cts/
DPhoneNumberTest.java45 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in setDefaultSmsApp() local
48 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in setDefaultSmsApp()
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/util/
DUtils.java49 ParcelFileDescriptor pfd = InstrumentationRegistry in executeShellCommand() local
53 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in executeShellCommand()
/cts/tests/tests/view/src/android/view/cts/util/
DDisableFixedToUserRotationRule.java62 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand(cmd);
67 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(pfd))) {
/cts/tests/BlobStore/src/com/android/cts/blob/
DBlobStoreManagerTest.java597 final ParcelFileDescriptor pfd = session.openWrite( in testSessionCommit() local
599 assertThat(pfd).isNotNull(); in testSessionCommit()
600 blobData.writeToFd(pfd.getFileDescriptor(), 0 /* offset */, 100 /* length */); in testSessionCommit()
606 pfd.getFileDescriptor() /* length */, 0 /* offset */, 100 /* length */)); in testSessionCommit()
664 try (ParcelFileDescriptor pfd = mBlobStoreManager.openBlob(blobData.getBlobHandle())) { in testRecommitBlob() argument
665 assertThat(pfd).isNotNull(); in testRecommitBlob()
666 blobData.verifyBlob(pfd); in testRecommitBlob()
671 try (ParcelFileDescriptor pfd = mBlobStoreManager.openBlob(blobData.getBlobHandle())) { in testRecommitBlob() argument
672 assertThat(pfd).isNotNull(); in testRecommitBlob()
673 blobData.verifyBlob(pfd); in testRecommitBlob()
[all …]
DDumpOnFailureRule.java66 final ParcelFileDescriptor pfd = InstrumentationRegistry.getInstrumentation() in dumpCommandOutput() local
68 try (FileInputStream in = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in dumpCommandOutput()
/cts/tests/tests/security/src/android/security/cts/
DBitmapFactorySecurityTests.java48 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, in getResource() local
50 return pfd.getFileDescriptor(); in getResource()
DAslrTest.java48 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in readMappingAddress() local
53 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(pfd)))) { in readMappingAddress()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java195 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doMediaNone() argument
197 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doMediaNone() argument
201 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaNone() argument
285 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doMediaRead() argument
287 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doMediaRead() argument
289 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaRead() argument
320 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doMediaWrite() argument
322 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doMediaWrite() argument
325 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaWrite() argument
328 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaWrite() argument
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyUtils.java136 final ParcelFileDescriptor pfd = in executeShellCommand() local
139 try (InputStream in = new FileInputStream(pfd.getFileDescriptor())) { in executeShellCommand()
151 closeQuietly(pfd); in executeShellCommand()
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/
DMyProvider.java90 final ParcelFileDescriptor pfd = extras.getParcelable("fd"); in call() local
91 TrafficStats.tagFileDescriptor(pfd.getFileDescriptor()); in call()
/cts/tests/tests/car/src/android/car/cts/
DCarRotaryImeTest.java92 ParcelFileDescriptor pfd = uiAutomation.executeShellCommand( in dumpsysRotaryServiceProto() local
95 try (FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in dumpsysRotaryServiceProto()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DUtils.java173 ParcelFileDescriptor pfd = getUiAutomation() in getProtoDump() local
177 try (FileInputStream is = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in getProtoDump()
/cts/tests/tests/contactsproviderwipe/src/android/provider/cts/contactsproviderwipe/
DContactsContract_Wipe.java102 static List<String> readAll(ParcelFileDescriptor pfd) { in readAll() argument
107 new FileReader(pfd.getFileDescriptor()))) { in readAll()
116 pfd.close(); in readAll()
/cts/tests/tests/content/src/android/content/pm/cts/
DIncrementalDeviceConnection.java70 ParcelFileDescriptor pfd) { in IncrementalDeviceConnection() argument
73 mPfd = pfd; in IncrementalDeviceConnection()
74 mFd = pfd.getFileDescriptor(); in IncrementalDeviceConnection()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DCaptioningManagerTest.java157 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand(cmd); in execShellCommand() local
158 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in execShellCommand()
/cts/hostsidetests/backup/OtherSoundsSettingsApp/src/android/cts/backup/othersoundssettingsapp/
DOtherSoundsSettingsTest.java72 ParcelFileDescriptor pfd = in setUp()
74 return new ParcelFileDescriptor.AutoCloseInputStream(pfd); in setUp()
/cts/hostsidetests/incident/apps/boundwidgetapp/src/android/appwidget/cts/
DAppWidgetTest.java122 ParcelFileDescriptor pfd = getInstrumentation().getUiAutomation() in runShellCommand() local
128 new InputStreamReader(new ParcelFileDescriptor.AutoCloseInputStream(pfd)))) { in runShellCommand()

123