Home
last modified time | relevance | path

Searched refs:getFileDescriptor (Results 1 – 25 of 122) sorted by relevance

12345

/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java529 Os.read(appleFd.getFileDescriptor(), bytes, 0, 100); in testOpenProxyFileDescriptor()
535 Os.read(orangeFd.getFileDescriptor(), bytes, 0, 100); in testOpenProxyFileDescriptor()
541 Os.read(cherryFd.getFileDescriptor(), bytes, 0, 100); in testOpenProxyFileDescriptor()
548 Os.pread(appleFd.getFileDescriptor(), bytes, 0, 100, 500); in testOpenProxyFileDescriptor()
553 Os.pread(orangeFd.getFileDescriptor(), bytes, 0, 100, 500); in testOpenProxyFileDescriptor()
558 Os.pread(cherryFd.getFileDescriptor(), bytes, 0, 100, 500); in testOpenProxyFileDescriptor()
569 Os.write(appleFd.getFileDescriptor(), bytes, 0, 100); in testOpenProxyFileDescriptor()
575 Os.write(orangeFd.getFileDescriptor(), bytes, 0, 100); in testOpenProxyFileDescriptor()
580 Os.lseek(cherryFd.getFileDescriptor(), 0, OsConstants.SEEK_SET); in testOpenProxyFileDescriptor()
582 Os.write(cherryFd.getFileDescriptor(), bytes, 0, 100); in testOpenProxyFileDescriptor()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DParcelFileDescriptorTest.java299 assertNotNull(pfd.getFileDescriptor()); in testGetFileDescriptor()
302 assertSame(pfd.getFileDescriptor(), p.getFileDescriptor()); in testGetFileDescriptor()
317 new FileOutputStream(pfd.getFileDescriptor()).write(oneByte); in write()
327 return new FileInputStream(pfd.getFileDescriptor()).read(); in read()
528 assertTrue(checkIsValid(pfd.getFileDescriptor())); in testCheckFinalizerBehavior()
531 assertTrue(checkIsValid(wrappedPfd.getFileDescriptor())); in testCheckFinalizerBehavior()
533 FileDescriptor fd = pfd.getFileDescriptor(); in testCheckFinalizerBehavior()
539 checkIsValid(wrappedPfd.getFileDescriptor())); in testCheckFinalizerBehavior()
581 try (var pfd2 = ParcelFileDescriptor.dup(pfd1.getFileDescriptor())) { in testDupStatic()
603 return Os.lseek(pfd.getFileDescriptor(), pos, OsConstants.SEEK_SET); in seekTo()
[all …]
DSharedMemoryFileDescriptorTest.java61 assertFalse(fileDescriptor.getFileDescriptor().valid()); in testCreation()
89 assertTrue(fileDescriptor.getFileDescriptor().valid()); in testDuplication()
DParcelFileDescriptorPeer.java120 return new FileInputStream(mLocal.getFileDescriptor()).read(); in read()
129 new FileOutputStream(mLocal.getFileDescriptor()).write(oneByte); in write()
DMessageQueueTest.java304 queue.addOnFileDescriptorEventListener(reader.getFileDescriptor(), 0, null); in testRegisterFileDescriptorCallbackThrowsWhenCallbackIsNull()
332 queue.removeOnFileDescriptorEventListener(reader.getFileDescriptor()); in testUnregisterFileDescriptorCallbackDoesNothingWhenFdNotRegistered()
361 assertEquals(pipe[1].getFileDescriptor(), fd); in testFileDescriptorCallbacks()
398 assertEquals(pipe[0].getFileDescriptor(), fd); in testFileDescriptorCallbacks()
671 queue.addOnFileDescriptorEventListener(pipe2[0].getFileDescriptor(), in testPathologicalFileDescriptorReuseCallbacks3()
920 Os.dup2(newPipe[0].getFileDescriptor(), fd); in hijackFd()
/cts/tests/tests/content/src/android/content/pm/cts/
DIncrementalDeviceConnection.java72 mFd = pfd.getFileDescriptor(); in IncrementalDeviceConnection()
182 IoUtils.setBlocking(pipe[0].getFileDescriptor(), false); in connectToService()
183 IoUtils.setBlocking(pipe[1].getFileDescriptor(), false); in connectToService()
202 final FileDescriptor processFd = processPfd.getFileDescriptor(); in connectToService()
/cts/tests/app/WallpaperTest/testsdk33/src/android/app/cts/wallpapers/
DWallpaperManagerSdk33Test.java169 parcelFileDescriptor.getFileDescriptor()); in getWallpaperFile_system_noPermission_returnsDefault()
186 parcelFileDescriptor.getFileDescriptor()); in getWallpaperFile_lock_noPermission_returnsDefault()
203 parcelFileDescriptor.getFileDescriptor()); in getWallpaperFile_system_withPermission_returnsCurrent()
219 parcelFileDescriptor.getFileDescriptor()); in getWallpaperFile_lock_withPermission_doesNotReturnDefault()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DDirectShellCommand.java175 shellCommand.invoke(service, emptyInput.getFileDescriptor(), in run()
176 out.getFileDescriptor(), err.getFileDescriptor(), args, null, resultReceiver); in run()
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTestUtils.java146 Os.lseek(parcelFileDescriptor.getFileDescriptor(), fileOffset, OsConstants.SEEK_SET); in read()
149 int numBytesRead = Os.read(parcelFileDescriptor.getFileDescriptor(), bytes, in read()
160 Os.lseek(parcelFileDescriptor.getFileDescriptor(), fileOffset, OsConstants.SEEK_SET); in write()
162 int numBytesWritten = Os.write(parcelFileDescriptor.getFileDescriptor(), bytes, in write()
237 uiAutomation.executeShellCommand(cmd).getFileDescriptor())) { in executeShellCommandInternal()
401 size1 = Os.read(pfd1.getFileDescriptor(), bytes1, 0, len); in assertFileContent()
402 size2 = Os.read(pfd2.getFileDescriptor(), bytes2, 0, len); in assertFileContent()
430 assertEquals(10, Os.pread(pfd.getFileDescriptor(), new byte[10], 0, 10, 0)); in assertTranscode()
/cts/tests/net/src/android/net/cts/
DLocalSocketTest.java112 FileDescriptor fd = clientSocket.getFileDescriptor(); in testLocalConnections()
298 FileDescriptor fileDescriptor = socketPair.clientSocket.getFileDescriptor(); in testLocalSocketCreatedFromFileDescriptor()
402 noteFd(s.getFileDescriptor().getInt$()); in noteFd()
432 final SocketAddress sockAddr = Os.getsockname(server.getFileDescriptor()); in testCreateFromFd()
440 assertEquals(ls.getFileDescriptor().getInt$(), fd.getInt$()); in testCreateFromFd()
447 assertNull(accepted.getFileDescriptor()); in testCreateFromFd()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/util/
DLogcatHelper.java101 FileDescriptor fd = output.getFileDescriptor(); in assertLogcatMessage()
138 FileDescriptor fd = output.getFileDescriptor(); in assertNoLogcatMessage()
/cts/tests/tests/security/src/android/security/cts/
DMediaMetadataRetrieverTest.java49 … mRetriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in setDataSourceFd()
DMediaServerCrashTest.java99 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testIfMediaServerDied()
144 mMediaPlayer.setDataSource(flFd.getFileDescriptor(), 0, flFd.getStatSize()); in checkIfMediaServerDiedForDrm()
DCVE_2021_39663.java61 FileDescriptor fd = pfd.getFileDescriptor(); in testPocCVE_2021_39663()
DBitmapFactorySecurityTests.java58 return pfd.getFileDescriptor(); in getResource()
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DMediaTranscodingTestUtil.java79 retriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in extractVideoFileInfo()
134 FileInputStream fis = new FileInputStream(pfd.getFileDescriptor()); in dumpYuvToExternal()
188 extractor.setDataSource(fileFd.getFileDescriptor(), fileFd.getStartOffset(), in decodeMp4ToYuv()
219 out = new FileOutputStream(yuvFd.getFileDescriptor()); in decodeMp4ToYuv()
440 InputStream referenceStream = new FileInputStream(referenceFd.getFileDescriptor()); in computePsnr()
444 InputStream decodedStream = new FileInputStream(decodedFd.getFileDescriptor()); in computePsnr()
/cts/tests/tests/time/shell_utils/device/android/app/time/cts/shell/device/
DInstrumentationShellCommandExecutor.java62 parcelFileDescriptor.getFileDescriptor())) { in readBytesAndClose()
/cts/tests/tests/telephony2/src/android/telephony2/cts/
DPhoneNumberTest.java48 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in setDefaultSmsApp()
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java167 Os.read(fd.getFileDescriptor(), actual, 0, actual.length); in testGetDocumentUri()
173 Os.write(fd.getFileDescriptor(), expected, 0, expected.length); in testGetDocumentUri()
262 Os.read(fd.getFileDescriptor(), actual, 0, actual.length); in testOpenFile_onMediaDocumentsProvider_success()
271 Os.write(fd.getFileDescriptor(), writtenText, 0, writtenText.length); in testOpenFile_onMediaDocumentsProvider_success()
275 Os.read(fd.getFileDescriptor(), readText, 0, readText.length); in testOpenFile_onMediaDocumentsProvider_success()
537 try (InputStream in = new FileInputStream(pfd.getFileDescriptor());) { in executeShellCommand()
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/util/
DUtils.java53 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in executeShellCommand()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptorTest.java200 assertSame(mFd.getFileDescriptor(), mAssetFileDes.getFileDescriptor()); in testMiscMethod()
/cts/tests/tests/drm/src/android/drm/cts/
DDRMTest.java271 player.setDataSource(flFd.getFileDescriptor(), 0, flFd.getStatSize()); in testForwardLockAccess()
286 retriever.setDataSource(flFd.getFileDescriptor()); in testForwardLockAccess()
297 ex.setDataSource(flFd.getFileDescriptor()); in testForwardLockAccess()
/cts/tests/tests/media/player/src/android/media/player/cts/
DMediaPlayerSurfaceStubActivity.java61 afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in onCreate()
/cts/tests/tests/webkit/src/android/webkit/cts/
DMockContentProvider.java83 FileOutputStream outputStream = new FileOutputStream(output.getFileDescriptor()); in writeDataToPipe()
/cts/hostsidetests/backup/FullBackupOnly/src/
DFullBackupOnlyBackupAgent.java96 FileOutputStream outstream = new FileOutputStream(newState.getFileDescriptor()); in onRestore()

12345