Home
last modified time | relevance | path

Searched refs:getFd (Results 1 – 25 of 30) sorted by relevance

12

/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DBpfMap.java138 nativeWriteToMapEntry(mMapFd.getFd(), key.writeToBytes(), value.writeToBytes(), BPF_ANY); in updateEntry()
149 nativeWriteToMapEntry(mMapFd.getFd(), key.writeToBytes(), value.writeToBytes(), in insertEntry()
166 nativeWriteToMapEntry(mMapFd.getFd(), key.writeToBytes(), value.writeToBytes(), in replaceEntry()
185 nativeWriteToMapEntry(mMapFd.getFd(), key.writeToBytes(), value.writeToBytes(), in insertOrReplaceEntry()
192 nativeWriteToMapEntry(mMapFd.getFd(), key.writeToBytes(), value.writeToBytes(), in insertOrReplaceEntry()
210 return nativeDeleteMapEntry(mMapFd.getFd(), key.writeToBytes()); in deleteEntry()
216 if (!nativeGetNextMapKey(mMapFd.getFd(), in getNextKeyInternal()
249 return nativeFindMapEntry(mMapFd.getFd(), key.writeToBytes(), rawValue); in containsKey()
258 if (!nativeFindMapEntry(mMapFd.getFd(), key.writeToBytes(), rawValue)) return null; in getValue()
/packages/services/Car/cpp/car_binder_lib/largeParcelable/include/
DSharedMemory.h66 inline int getFd() const { in getFd() function
74 unique_fd fd(dup(getFd())); in getDupFd()
81 return std::unique_ptr<MappedFile>(new MappedFile(getFd(), mSize, writable)); in mapReadWrite()
86 return std::unique_ptr<MappedFile>(new MappedFile(getFd(), mSize, writable)); in mapReadOnly()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSocket.java167 network.bindSocket(getFd()); in bindToNetwork()
171 FileInputStream in = new FileInputStream(getFd()); in receiveFromFd()
193 InetSocketAddress localAddr = (InetSocketAddress) Os.getsockname(getFd()); in getLocalPort()
197 protected abstract FileDescriptor getFd(); in getFd() method in IkeSocket
200 return getFd(); in createFd()
DIkeUdpEncapSocket.java64 mUdpEncapPortPacketHandler = new IkeUdpEncapPortPacketHandler(getFd()); in IkeUdpEncapSocket()
112 protected FileDescriptor getFd() { in getFd() method in IkeUdpEncapSocket
DIkeUdp6WithEncapPortSocket.java59 mUdpEncapPortPacketHandler = new IkeUdpEncapPortPacketHandler(getFd()); in IkeUdp6WithEncapPortSocket()
DIkeUdpSocket.java52 protected FileDescriptor getFd() { in getFd() method in IkeUdpSocket
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSocketTestBase.java253 assertTrue(isFdOpen(ikeSocketOne.getFd())); in verifyGetAndCloseIkeSocketSameConfig()
257 verifyCloseFd(ikeSocketTwo.getFd()); in verifyGetAndCloseIkeSocketSameConfig()
288 FileDescriptor fdOne = ikeSocketOne.getFd(); in verifyGetAndCloseIkeSocketDifferentConfig()
289 FileDescriptor fdTwo = ikeSocketTwo.getFd(); in verifyGetAndCloseIkeSocketDifferentConfig()
296 verifyCloseFd(ikeSocketOne.getFd()); in verifyGetAndCloseIkeSocketDifferentConfig()
300 verifyCloseFd(ikeSocketTwo.getFd()); in verifyGetAndCloseIkeSocketDifferentConfig()
/packages/modules/Virtualization/java/framework/src/android/system/virtualmachine/
DVirtualizationService.java70 IBinder binder = nativeConnect(mClientFd.getFd()); in VirtualizationService()
88 return nativeIsOk(mClientFd.getFd()); in isOk()
/packages/modules/ImsMedia/test/imsmediahal/src/com/android/telephony/testimsmediahal/
DIImsMediaImpl.java82 final int socketFdRtp = (localEndPoint.rtpFd != null) ? localEndPoint.rtpFd.getFd() : -1; in openSession()
83 final int socketFdRtcp = (localEndPoint.rtcpFd != null) ? localEndPoint.rtcpFd.getFd() : -1; in openSession()
/packages/services/Car/cpp/car_binder_lib/largeParcelable/
DSharedMemory.cpp88 int result = ashmem_set_prot_region(getFd(), PROT_READ); in lock()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/common/
DFileUtils.java98 LogUtil.e(TAG, e, "Failed to read the content of binary file %d", fd.getFd()); in readFileDescriptorAsByteArray()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DVpnServiceTest.java131 assertFalse(mVpnService.protect(descriptor.getFd())); in testProtect_int()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadHalAidlImplTest.java102 assertEquals(fdCaptor1.getValue().getFd(), fd1.getInt$()); in initAndValidateOffloadHal()
103 assertEquals(fdCaptor2.getValue().getFd(), fd2.getInt$()); in initAndValidateOffloadHal()
/packages/modules/NeuralNetworks/runtime/
DManager.cpp679 if (!fence.hasFd() || fence.getFd() < 0) { in executeFenced()
684 LOG(ERROR) << "syncWait failed, fd: " << fence.getFd() << ", state: " << r; in executeFenced()
700 syncFenceFd = dup(syncFence.getFd()); in executeFenced()
823 if (!fence.hasFd() || fence.getFd() < 0) { in computeFenced()
828 LOG(ERROR) << "syncWait failed, fd: " << fence.getFd() << ", state: " << r; in computeFenced()
842 syncFenceFd = dup(syncFence.getFd()); in computeFenced()
/packages/services/Car/cpp/car_binder_lib/largeParcelable/tests/
DMappedFileSharedMemoryTest.cpp157 int fd = sm.getFd(); in TEST()
/packages/apps/Messaging/src/com/android/messaging/util/
DFileUtil.java145 int fd = pfd.getFd(); in isContentUriInPrivateDir()
/packages/modules/NeuralNetworks/common/types/src/
DTypes.cpp189 int SyncFence::getFd() const { in getFd() function in android::nn::SyncFence
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DMyVpnService.java194 Log.i(TAG, "Established, fd=" + (mFd == null ? "null" : mFd.getFd())); in start()
/packages/providers/MediaProvider/src/com/android/providers/media/fuse/
DFuseDaemon.java205 return native_check_fd_access(mPtr, fileDescriptor.getFd(), uid); in checkFdAccess()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/training/
DIsolatedTrainingServiceImpl.java243 return "fd:///" + parcelFileDescriptor.getFd(); in getFileDescriptorForTensorflow()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarBugreportManagerTest.java188 int fd = pfd.getFd(); in assertFdIsClosed()
/packages/modules/Connectivity/service/src/com/android/server/
DTestNetworkService.java406 nativeSetTunTapCarrierEnabled(iface.getInterfaceName(), iface.getFileDescriptor().getFd(), in setCarrierEnabled()
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DTypes.h973 int getFd() const;
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/jni/
DFlRunnerWrapperTest.java298 return "fd:///" + parcelFileDescriptor.getFd(); in getFileDescriptorForTensorflow()
/packages/modules/Media/apex/framework/java/android/media/
DMediaTranscodingManager.java729 if (fileDescriptor == null || fileDescriptor.getFd() < 0) { in setSourceFileDescriptor()
752 if (fileDescriptor == null || fileDescriptor.getFd() < 0) { in setDestinationFileDescriptor()

12