/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | RedactingFileDescriptorTest.java | 80 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/ |
D | MtpFileWriter.java | 60 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/ |
D | IpSecManagerTest.java | 195 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/ |
D | EthernetTetheringTest.java | 234 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/ |
D | NetworkTest.java | 99 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/ |
D | LocalServerSocketTest.java | 57 assertNotNull(localServerSocket.getFileDescriptor()); in testLocalServerSocket() 59 assertNull(localServerSocket.getFileDescriptor()); in testLocalServerSocket()
|
D | ConnectivityDiagnosticsManagerTest.java | 193 mTestNetworkFD = setUpTestNetwork().getFileDescriptor(); in testRegisterConnectivityDiagnosticsCallback() 331 mTestNetworkFD = setUpTestNetwork().getFileDescriptor(); in testOnConnectivityReportAvailable() 380 mTestNetworkFD = setUpTestNetwork().getFileDescriptor(); in verifyOnDataStallSuspected() 412 mTestNetworkFD = setUpTestNetwork().getFileDescriptor(); in verifyOnNetworkConnectivityReported()
|
D | TunUtils.java | 90 FileInputStream in = new FileInputStream(mTunFd.getFileDescriptor()); in receiveFromTun() 247 FileOutputStream out = new FileOutputStream(mTunFd.getFileDescriptor()); in injectPacket()
|
D | LocalSocketTest.java | 90 FileDescriptor fd = clientSocket.getFileDescriptor(); in testLocalConnections() 298 FileDescriptor fileDescriptor = socketPair.clientSocket.getFileDescriptor(); in testLocalSocketCreatedFromFileDescriptor()
|
/packages/apps/Settings/src/com/android/settings/backup/ |
D | SettingsBackupHelper.java | 60 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/ |
D | IkeUdpEncapSocket.java | 87 FileDescriptor fd = udpEncapSocket.getFileDescriptor(); in getIkeUdpEncapSocket() 113 return mUdpEncapSocket.getFileDescriptor(); // Returns cached FD in getFd()
|
/packages/services/Mtp/tests/src/com/android/mtp/ |
D | MtpDocumentsProviderTest.java | 563 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/ |
D | AoapPhoneCompanionActivity.java | 155 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/ |
D | TunUtils.java | 98 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/ |
D | WifiAwareServiceImpl.java | 453 this, in.getFileDescriptor(), out.getFileDescriptor(), err.getFileDescriptor(), in handleShellCommand()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
D | CopyJob.java | 615 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/ |
D | UriImage.java | 176 jc, mFileDescriptor.getFileDescriptor(), false); in run() 197 mFileDescriptor.getFileDescriptor(), options, targetSize, mType); in run()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/ |
D | ArchiveHandle.java | 102 new FileInputStream(mParcelFileDescriptor.getFileDescriptor()); in recreateCommonArchiveStream() 305 new FileInputStream(parcelFileDescriptor.getFileDescriptor()); in create()
|
/packages/modules/Scheduling/service/java/com/android/server/scheduling/ |
D | RebootReadinessManagerService.java | 242 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/ |
D | BlockedNumberBackupAgent.java | 63 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/ |
D | IpSecServiceTest.java | 621 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/ |
D | DictionaryBackupAgent.java | 112 new FileInputStream(oldState.getFileDescriptor())); in readOldChecksums() 127 new FileOutputStream(newState.getFileDescriptor())); in writeNewChecksums()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | Network.java | 386 bindSocket(pfd.getFileDescriptor()); in bindSocket() 404 bindSocket(pfd.getFileDescriptor()); in bindSocket()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | MediaUtilImpl.java | 42 afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in playSound()
|
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/ |
D | BugReportInfoActivity.java | 309 fd.getFileDescriptor().sync(); in mergeFilesAndCopyToUsb() 327 fd.getFileDescriptor().sync(); in copyFileToUsb()
|