Home
last modified time | relevance | path

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

1234

/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DRedactingFileDescriptorTest.java80 new long[] { 10, 11 }, new long[] {}).getFileDescriptor(); in testSingleByte()
96 new long[] { 100, 200, 300, 400 }, new long[] {}).getFileDescriptor(); in testRanges()
118 new long[] { 0, 5_000_000 }, new long[] {}).getFileDescriptor(); in testEntireFile()
131 new long[] { 100, 200, 300, 400 }, new long[] {}).getFileDescriptor(); in testReadWrite()
188 new long[] { 1, 10 }, new long[] {1}).getFileDescriptor(); in testFreeAtStart()
200 new long[] { 1, 10 }, new long[] {3}).getFileDescriptor(); in testFreeAtOffset()
212 new long[] { 1, 10 }, new long[] {0}).getFileDescriptor(); in testFreeAcrossRedactionStart()
224 new long[] { 1, 3 }, new long[] {2}).getFileDescriptor(); in testFreeAcrossRedactionEnd()
236 new long[] { 1, 8 }, new long[] { 8 }).getFileDescriptor(); in testFreeOutsideRedaction()
248 new long[] { 1, 2, 3, 4 }, new long[] { 0 }).getFileDescriptor(); in testFreeMultipleRedactions()
/packages/services/Mtp/src/com/android/mtp/
DMtpFileWriter.java60 Os.lseek(mCacheFd.getFileDescriptor(), offset, OsConstants.SEEK_SET); in write()
61 return Os.write(mCacheFd.getFileDescriptor(), bytes, 0, size); in write()
80 final long size = Os.lseek(mCacheFd.getFileDescriptor(), 0, OsConstants.SEEK_END); in flush()
85 Os.lseek(mCacheFd.getFileDescriptor(), 0, OsConstants.SEEK_SET); in flush()
/packages/modules/Connectivity/tests/unit/java/android/net/
DIpSecManagerTest.java195 assertNotNull(encapSocket.getFileDescriptor()); in testOpenEncapsulationSocket()
215 assertNotNull(socket.getFileDescriptor$()); in testApplyTransportModeTransformEnsuresSocketCreation()
227 assertNotNull(socket.getFileDescriptor$()); in testRemoveTransportModeTransformsForcesSocketCreation()
245 assertNotNull(encapSocket.getFileDescriptor()); in testOpenEncapsulationSocketOnRandomPort()
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java234 FileDescriptor fd = mTestIface.getFileDescriptor().getFileDescriptor(); in testStaticIpv4()
315 FileDescriptor fd = mTestIface.getFileDescriptor().getFileDescriptor(); in testLocalOnlyTethering()
515 FileDescriptor fd = iface.getFileDescriptor().getFileDescriptor(); in checkVirtualEthernet()
701 mTestIface.getFileDescriptor().close(); in maybeDeleteTestInterface()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkTest.java99 assertTrue(mLocalClient.getFileDescriptor().valid()); in testBindSocketOfLocalSocketThrows()
102 mNetwork.bindSocket(mLocalClient.getFileDescriptor()); in testBindSocketOfLocalSocketThrows()
111 mNetwork.bindSocket(mLocalClient.getFileDescriptor()); in testBindSocketOfLocalSocketThrows()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DLocalServerSocketTest.java57 assertNotNull(localServerSocket.getFileDescriptor()); in testLocalServerSocket()
59 assertNull(localServerSocket.getFileDescriptor()); in testLocalServerSocket()
DConnectivityDiagnosticsManagerTest.java193 mTestNetworkFD = setUpTestNetwork().getFileDescriptor(); in testRegisterConnectivityDiagnosticsCallback()
331 mTestNetworkFD = setUpTestNetwork().getFileDescriptor(); in testOnConnectivityReportAvailable()
380 mTestNetworkFD = setUpTestNetwork().getFileDescriptor(); in verifyOnDataStallSuspected()
412 mTestNetworkFD = setUpTestNetwork().getFileDescriptor(); in verifyOnNetworkConnectivityReported()
DTunUtils.java90 FileInputStream in = new FileInputStream(mTunFd.getFileDescriptor()); in receiveFromTun()
247 FileOutputStream out = new FileOutputStream(mTunFd.getFileDescriptor()); in injectPacket()
DLocalSocketTest.java90 FileDescriptor fd = clientSocket.getFileDescriptor(); in testLocalConnections()
298 FileDescriptor fileDescriptor = socketPair.clientSocket.getFileDescriptor(); in testLocalSocketCreatedFromFileDescriptor()
/packages/apps/Settings/src/com/android/settings/backup/
DSettingsBackupHelper.java60 try (FileOutputStream out = new FileOutputStream(newState.getFileDescriptor())) { in performBackup()
82 try (FileInputStream in = new FileInputStream(state.getFileDescriptor())) { in getVersionCode()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeUdpEncapSocket.java87 FileDescriptor fd = udpEncapSocket.getFileDescriptor(); in getIkeUdpEncapSocket()
113 return mUdpEncapSocket.getFileDescriptor(); // Returns cached FD in getFd()
/packages/services/Mtp/tests/src/com/android/mtp/
DMtpDocumentsProviderTest.java563 assertEquals(6, Os.lseek(fd.getFileDescriptor(), 6, OsConstants.SEEK_SET)); in testOpenDocument()
564 assertEquals(5, Os.read(fd.getFileDescriptor(), readBytes, 0, 5)); in testOpenDocument()
567 assertEquals(0, Os.lseek(fd.getFileDescriptor(), 0, OsConstants.SEEK_SET)); in testOpenDocument()
568 assertEquals(5, Os.read(fd.getFileDescriptor(), readBytes, 0, 5)); in testOpenDocument()
601 assertEquals(11, Os.read(fd.getFileDescriptor(), readBytes, 0, readBytes.length)); in testOpenDocument_shortBytes()
616 fd.getFileDescriptor().sync(); in testOpenDocument_writing()
/packages/services/Car/tests/usb/AoapPhoneCompanionApp/src/com/google/android/car/usb/aoap/companion/
DAoapPhoneCompanionActivity.java155 mInputStream = new FileInputStream(fd.getFileDescriptor()); in ProcessorThread()
156 mOutputStream = new FileOutputStream(fd.getFileDescriptor()); in ProcessorThread()
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DTunUtils.java98 FileInputStream in = new FileInputStream(mTunFd.getFileDescriptor()); in receiveFromTun()
253 FileOutputStream out = new FileOutputStream(mTunFd.getFileDescriptor()); in injectPacket()
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareServiceImpl.java453 this, in.getFileDescriptor(), out.getFileDescriptor(), err.getFileDescriptor(), in handleShellCommand()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DCopyJob.java615 final FileDescriptor dstFd = dstFile.getFileDescriptor(); in copyFileHelper()
636 Os.fsync(dstFile.getFileDescriptor()); in copyFileHelper()
647 Os.close(dstFile.getFileDescriptor()); in copyFileHelper()
887 StructStat sourceStat = Os.fstat(sourceFd.getFileDescriptor()); in isRecursiveCopy()
897 StructStat targetNodeStat = Os.fstat(targetFd.getFileDescriptor()); in isRecursiveCopy()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DUriImage.java176 jc, mFileDescriptor.getFileDescriptor(), false); in run()
197 mFileDescriptor.getFileDescriptor(), options, targetSize, mType); in run()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchiveHandle.java102 new FileInputStream(mParcelFileDescriptor.getFileDescriptor()); in recreateCommonArchiveStream()
305 new FileInputStream(parcelFileDescriptor.getFileDescriptor()); in create()
/packages/modules/Scheduling/service/java/com/android/server/scheduling/
DRebootReadinessManagerService.java242 return new RebootReadinessShellCommand(this, mContext).exec(this, in.getFileDescriptor(), in handleShellCommand()
243 out.getFileDescriptor(), err.getFileDescriptor(), args); in handleShellCommand()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberBackupAgent.java63 new DataInputStream(new FileInputStream(oldState.getFileDescriptor())); in onBackup()
74 new DataOutputStream(new FileOutputStream(newState.getFileDescriptor())); in onBackup()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DIpSecServiceTest.java621 FileDescriptor sockFd = udpEncapResp.fileDescriptor.getFileDescriptor();
637 FileDescriptor sockFd = udpEncapResp.fileDescriptor.getFileDescriptor(); in testOpenUdpEncapsulationSocketCallsSetEncapSocketOwner()
641 StructStat argStat = Os.fstat(arg.getFileDescriptor()); in testOpenUdpEncapsulationSocketCallsSetEncapSocketOwner()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java112 new FileInputStream(oldState.getFileDescriptor())); in readOldChecksums()
127 new FileOutputStream(newState.getFileDescriptor())); in writeNewChecksums()
/packages/modules/Connectivity/framework/src/android/net/
DNetwork.java386 bindSocket(pfd.getFileDescriptor()); in bindSocket()
404 bindSocket(pfd.getFileDescriptor()); in bindSocket()
/packages/apps/Messaging/src/com/android/messaging/util/
DMediaUtilImpl.java42 afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in playSound()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DBugReportInfoActivity.java309 fd.getFileDescriptor().sync(); in mergeFilesAndCopyToUsb()
327 fd.getFileDescriptor().sync(); in copyFileToUsb()

1234