Home
last modified time | relevance | path

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

123456

/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/services/Car/car-builtin-lib/src/android/car/builtin/os/
DBinderHelper.java113 errFd = out.getFileDescriptor(); in onTransactForCmd()
115 errFd = err.getFileDescriptor(); in onTransactForCmd()
124 inFd = in.getFileDescriptor(); in onTransactForCmd()
127 int r = cmdListener.onShellCommand(inFd, out.getFileDescriptor(), errFd, args); in onTransactForCmd()
/packages/modules/ConfigInfrastructure/service/java/com/android/server/deviceconfig/
DDeviceConfigServiceImpl.java77 this, in.getFileDescriptor(), out.getFileDescriptor(), err.getFileDescriptor(), in handleShellCommand()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DClatCoordinatorTest.java274 if (Objects.equals(RAW_SOCK_PFD.getFileDescriptor(), sock) in addAnycastSetsockopt()
286 if (Objects.equals(PACKET_SOCK_PFD.getFileDescriptor(), sock) in configurePacketSocket()
299 if (Objects.equals(TUN_PFD.getFileDescriptor(), tunfd) in startClatd()
300 && Objects.equals(PACKET_SOCK_PFD.getFileDescriptor(), readsock6) in startClatd()
301 && Objects.equals(RAW_SOCK_PFD.getFileDescriptor(), writesock6) in startClatd()
429 argThat(fd -> Objects.equals(RAW_SOCK_PFD.getFileDescriptor(), fd)), in testStartStopClatd()
432 argThat(fd -> Objects.equals(RAW_SOCK_PFD.getFileDescriptor(), fd))); in testStartStopClatd()
435 argThat(fd -> Objects.equals(PACKET_SOCK_PFD.getFileDescriptor(), fd)), in testStartStopClatd()
455 argThat(fd -> Objects.equals(TUN_PFD.getFileDescriptor(), fd)), in testStartStopClatd()
456 argThat(fd -> Objects.equals(PACKET_SOCK_PFD.getFileDescriptor(), fd)), in testStartStopClatd()
[all …]
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DThreadNetworkService.java101 in.getFileDescriptor(), in handleShellCommand()
102 out.getFileDescriptor(), in handleShellCommand()
103 err.getFileDescriptor(), in handleShellCommand()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DLocalServerSocketTest.java57 assertNotNull(localServerSocket.getFileDescriptor()); in testLocalServerSocket()
59 assertNull(localServerSocket.getFileDescriptor()); in testLocalServerSocket()
DRateLimitTest.java194 if (mTunInterface != null) mTunInterface.getFileDescriptor().close(); in tearDown()
221 Os.write(iface.getFileDescriptor().getFileDescriptor(), buffer.array(), 0, in sendPacketsToTunInterfaceForDuration()
DTunUtils.java91 FileInputStream in = new FileInputStream(mTunFd.getFileDescriptor()); in receiveFromTun()
251 FileOutputStream out = new FileOutputStream(mTunFd.getFileDescriptor()); in injectPacket()
/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/framework-t/src/android/net/
DIpSecManager.java410 applyTransportModeTransform(socket.getFileDescriptor$(), direction, transform); in applyTransportModeTransform()
444 applyTransportModeTransform(socket.getFileDescriptor$(), direction, transform); in applyTransportModeTransform()
519 removeTransportModeTransforms(socket.getFileDescriptor$()); in removeTransportModeTransforms()
536 removeTransportModeTransforms(socket.getFileDescriptor$()); in removeTransportModeTransforms()
624 public FileDescriptor getFileDescriptor() { in getFileDescriptor() method in IpSecManager.UdpEncapsulationSocket
628 return mPfd.getFileDescriptor(); in getFileDescriptor()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DOffloadHalAidlImpl.java75 handle1.getFileDescriptor().getInt$(), handle2.getFileDescriptor().getInt$(), in initOffload()
81 ParcelFileDescriptor.adoptFd(handle1.getFileDescriptor().getInt$()), in initOffload()
82 ParcelFileDescriptor.adoptFd(handle2.getFileDescriptor().getInt$()), in initOffload()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkTest.java101 assertTrue(mLocalClient.getFileDescriptor().valid()); in testBindSocketOfLocalSocketThrows()
104 mNetwork.bindSocket(mLocalClient.getFileDescriptor()); in testBindSocketOfLocalSocketThrows()
113 mNetwork.bindSocket(mLocalClient.getFileDescriptor()); in testBindSocketOfLocalSocketThrows()
/packages/services/Car/service/src/com/android/car/
DCarTestService.java124 mICarImpl.dumpVhal(pipe.getFileDescriptor(), options); in dumpVhal()
202 Looper.myQueue().addOnFileDescriptorEventListener(mReader.getFileDescriptor(), in NativePipe()
217 public ParcelFileDescriptor getFileDescriptor() { in getFileDescriptor() method in CarTestService.NativePipe
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DRemoteSocketFactoryClient.java88 final FileDescriptor fd = Os.dup(pfd.getFileDescriptor()); in openSocketFd()
98 final FileDescriptor fd = Os.dup(pfd.getFileDescriptor()); in openDatagramSocketFd()
/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/modules/OnDevicePersonalization/pluginlib/src/com/android/ondevicepersonalization/libraries/plugin/internal/
DPluginCode.java130 Lists.transform(fds, fd -> new FileInputStream(fd.nativeFd().getFileDescriptor())); in createFileInputStreamListFromNativeFds()
139 fds, fd -> new FileInputStream(fd.nonNativeFd().getFileDescriptor())); in createFileInputStreamListFromNonNativeFds()
/packages/modules/Connectivity/framework-t/api/
Dlint-baseline.txt54 MissingNullability: android.net.IpSecManager.UdpEncapsulationSocket#getFileDescriptor():
55 Missing nullability on method `getFileDescriptor` return
80 UseParcelFileDescriptor: android.net.IpSecManager.UdpEncapsulationSocket#getFileDescriptor():
81 …ead of FileDescriptor in method android.net.IpSecManager.UdpEncapsulationSocket.getFileDescriptor()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/backup/
DKitchenSinkBackupTransport.java229 StructStat ss = Os.fstat(data.getFileDescriptor()); in performBackupInternal()
326 BackupDataInput changeSet = new BackupDataInput(data.getFileDescriptor()); in parseBackupStream()
489 mSocket = ParcelFileDescriptor.dup(socket.getFileDescriptor()); in performFullBackup()
490 mSocketInputStream = new FileInputStream(mSocket.getFileDescriptor()); in performFullBackup()
710 BackupDataOutput out = new BackupDataOutput(outFd.getFileDescriptor()); in getRestoreData()
810 FileOutputStream stream = new FileOutputStream(socket.getFileDescriptor()); in getNextFullRestoreDataChunk()
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBluetoothServiceBinder.java320 in.getFileDescriptor(), in handleShellCommand()
321 out.getFileDescriptor(), in handleShellCommand()
322 err.getFileDescriptor(), in handleShellCommand()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadHalHidlImplTest.java109 assertEquals(nativeHandleCaptor1.getValue().getFileDescriptor().getInt$(), in createAndInitOffloadHal()
110 handle1.getFileDescriptor().getInt$()); in createAndInitOffloadHal()
111 assertEquals(nativeHandleCaptor2.getValue().getFileDescriptor().getInt$(), in createAndInitOffloadHal()
112 handle2.getFileDescriptor().getInt$()); in createAndInitOffloadHal()
/packages/modules/Connectivity/framework/src/android/net/
DQosSocketFilter.java125 final FileDescriptor fd = parcelFileDescriptor.getFileDescriptor(); in getLocalAddressFromFileDescriptor()
150 final FileDescriptor fd = parcelFileDescriptor.getFileDescriptor(); in getRemoteAddressFromFileDescriptor()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DClatCoordinator.java628 mDeps.addAnycastSetsockopt(writeSock6.getFileDescriptor(), v6Str, ifIndex); in clatStart()
630 cookie = mDeps.getSocketCookie(writeSock6.getFileDescriptor()); in clatStart()
634 mDeps.configurePacketSocket(readSock6.getFileDescriptor(), v6Str, ifIndex); in clatStart()
662 final int pid = mDeps.startClatd(tunFd.getFileDescriptor(), in clatStart()
663 readSock6.getFileDescriptor(), writeSock6.getFileDescriptor(), iface, pfx96Str, in clatStart()
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java209 FileDescriptor fd = downstreamIface.getFileDescriptor().getFileDescriptor(); in testVirtualEthernetAlreadyExists()
242 FileDescriptor fd = downstreamIface.getFileDescriptor().getFileDescriptor(); in testVirtualEthernet()
290 FileDescriptor fd = downstreamIface.getFileDescriptor().getFileDescriptor(); in testStaticIpv4()
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DTunUtils.java97 FileInputStream in = new FileInputStream(mTunFd.getFileDescriptor()); in receiveFromTun()
268 FileOutputStream out = new FileOutputStream(mTunFd.getFileDescriptor()); in injectPacket()
/packages/services/Car/tests/usb/AoapPhoneCompanionApp/src/com/google/android/car/usb/aoap/companion/
DAoapPhoneCompanionActivity.java163 mInputStream = new FileInputStream(fd.getFileDescriptor()); in ProcessorThread()
164 mOutputStream = new FileOutputStream(fd.getFileDescriptor()); in ProcessorThread()

123456