/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerTest.java | 529 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/ |
D | ParcelFileDescriptorTest.java | 299 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 …]
|
D | SharedMemoryFileDescriptorTest.java | 61 assertFalse(fileDescriptor.getFileDescriptor().valid()); in testCreation() 89 assertTrue(fileDescriptor.getFileDescriptor().valid()); in testDuplication()
|
D | ParcelFileDescriptorPeer.java | 120 return new FileInputStream(mLocal.getFileDescriptor()).read(); in read() 129 new FileOutputStream(mLocal.getFileDescriptor()).write(oneByte); in write()
|
D | MessageQueueTest.java | 304 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/ |
D | IncrementalDeviceConnection.java | 72 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/ |
D | WallpaperManagerSdk33Test.java | 169 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/ |
D | DirectShellCommand.java | 175 shellCommand.invoke(service, emptyInput.getFileDescriptor(), in run() 176 out.getFileDescriptor(), err.getFileDescriptor(), args, null, resultReceiver); in run()
|
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/ |
D | TranscodeTestUtils.java | 146 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/ |
D | LocalSocketTest.java | 112 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/ |
D | LogcatHelper.java | 101 FileDescriptor fd = output.getFileDescriptor(); in assertLogcatMessage() 138 FileDescriptor fd = output.getFileDescriptor(); in assertNoLogcatMessage()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | MediaMetadataRetrieverTest.java | 49 … mRetriever.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in setDataSourceFd()
|
D | MediaServerCrashTest.java | 99 mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testIfMediaServerDied() 144 mMediaPlayer.setDataSource(flFd.getFileDescriptor(), 0, flFd.getStatSize()); in checkIfMediaServerDiedForDrm()
|
D | CVE_2021_39663.java | 61 FileDescriptor fd = pfd.getFileDescriptor(); in testPocCVE_2021_39663()
|
D | BitmapFactorySecurityTests.java | 58 return pfd.getFileDescriptor(); in getResource()
|
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/ |
D | MediaTranscodingTestUtil.java | 79 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/ |
D | InstrumentationShellCommandExecutor.java | 62 parcelFileDescriptor.getFileDescriptor())) { in readBytesAndClose()
|
/cts/tests/tests/telephony2/src/android/telephony2/cts/ |
D | PhoneNumberTest.java | 48 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in setDefaultSmsApp()
|
/cts/tests/providerui/src/android/providerui/cts/ |
D | MediaStoreUiTest.java | 167 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/ |
D | Utils.java | 53 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in executeShellCommand()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetFileDescriptorTest.java | 200 assertSame(mFd.getFileDescriptor(), mAssetFileDes.getFileDescriptor()); in testMiscMethod()
|
/cts/tests/tests/drm/src/android/drm/cts/ |
D | DRMTest.java | 271 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/ |
D | MediaPlayerSurfaceStubActivity.java | 61 afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in onCreate()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | MockContentProvider.java | 83 FileOutputStream outputStream = new FileOutputStream(output.getFileDescriptor()); in writeDataToPipe()
|
/cts/hostsidetests/backup/FullBackupOnly/src/ |
D | FullBackupOnlyBackupAgent.java | 96 FileOutputStream outstream = new FileOutputStream(newState.getFileDescriptor()); in onRestore()
|