/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/ |
D | FdEventsReader.java | 85 private FileDescriptor mFd; field in FdEventsReader 188 if (mFd != null) return; in createAndRegisterFd() 191 mFd = createFd(); in createAndRegisterFd() 194 closeFd(mFd); in createAndRegisterFd() 195 mFd = null; in createAndRegisterFd() 198 if (mFd == null) return; in createAndRegisterFd() 201 mFd, in createAndRegisterFd() 217 return (mFd != null) && mFd.valid(); in isRunning() 226 bytesRead = readPacket(mFd, mBuffer); in handleInput() 259 if (mFd == null) return; in unregisterAndDestroyFd() [all …]
|
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
D | PacketReflector.java | 58 private FileDescriptor mFd; field in PacketReflector 63 mFd = fd; in PacketReflector() 188 Os.write(mFd, buf, 0, len); in writePacket() 197 len = Os.read(mFd, buf, 0, buf.length); in readPacket() 248 Log.i(TAG, "PacketReflector starting fd=" + mFd + " valid=" + mFd.valid()); in run() 249 while (!interrupted() && mFd.valid()) { in run() 252 Log.i(TAG, "PacketReflector exiting fd=" + mFd + " valid=" + mFd.valid()); in run()
|
D | MyVpnService.java | 42 private ParcelFileDescriptor mFd = null; field in MyVpnService 147 mFd = builder.establish(); in start() 148 Log.i(TAG, "Established, fd=" + (mFd == null ? "null" : mFd.getFd())); in start() 152 mPacketReflector = new PacketReflector(mFd.getFileDescriptor(), MTU); in start() 169 if (mFd != null) { in stop() 171 mFd.close(); in stop() 175 mFd = null; in stop()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | IpSecBaseTest.java | 181 public FileDescriptor mFd; field in IpSecBaseTest.NativeSocket 184 mFd = fd; in NativeSocket() 189 Os.write(mFd, data, 0, data.length); in send() 201 bytesRead.set(Os.recvfrom(mFd, in, 0, DATA_BUFFER_LEN, 0, null)); in receive() 220 return IpSecBaseTest.getPort(mFd); in getPort() 225 Os.close(mFd); in close() 231 ism.applyTransportModeTransform(mFd, direction, transform); in applyTransportModeTransform() 236 ism.removeTransportModeTransforms(mFd); in removeTransportModeTransforms() 247 FileDescriptor newFd = Os.accept(mFd, peer); in acceptToJavaSocket() 259 Os.sendto(mFd, data, 0, data.length, 0, dstAddr, port); in sendTo() [all …]
|
/packages/modules/Connectivity/Tethering/src/android/net/ip/ |
D | NeighborPacketForwarder.java | 57 private FileDescriptor mFd; field in NeighborPacketForwarder 121 mFd = Os.socket(AF_PACKET, SOCK_DGRAM | SOCK_NONBLOCK, 0); in createFd() 125 TetheringUtils.setupNaSocket(mFd); in createFd() 127 TetheringUtils.setupNsSocket(mFd); in createFd() 132 Os.bind(mFd, bindAddress); in createFd() 135 closeSocketQuietly(mFd); in createFd() 139 return mFd; in createFd()
|
/packages/services/Car/tests/usb/AoapPhoneCompanionApp/src/com/google/android/car/usb/aoap/companion/ |
D | AoapPhoneCompanionActivity.java | 49 private ParcelFileDescriptor mFd; field in AoapPhoneCompanionActivity 99 if (mFd != null) { in onDestroy() 101 mFd.close(); in onDestroy() 131 mFd = mUsbManager.openAccessory(accessory); in onAccessoryAttached() 132 if (mFd == null) { in onAccessoryAttached() 138 mProcessorThread = new ProcessorThread(mFd); in onAccessoryAttached()
|
/packages/services/Car/cpp/computepipe/runner/input_manager/ |
D | VideoDecoder.cpp | 104 mFd = open(mVideoPath.c_str(), 0, O_RDONLY); in initializeMediaExtractor() 109 int size = lseek(mFd, 0, SEEK_END); in initializeMediaExtractor() 111 lseek(mFd, 0, SEEK_SET); in initializeMediaExtractor() 112 media_status_t status = AMediaExtractor_setDataSourceFd(mExtractor, mFd, 0, size); in initializeMediaExtractor() 189 close(mFd); in releaseResources()
|
D | VideoDecoder.h | 86 int mFd; variable
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | EffectsRecorder.java | 91 private FileDescriptor mFd; field in EffectsRecorder 182 mFd = null; in setOutputFile() 196 mFd = fd; in setOutputFile() 654 if ((mOutputFile == null) && (mFd == null)) { in startRecording() 663 if (mFd != null) { in startRecording() 664 recorder.setInputValue("outputFileDescriptor", mFd); in startRecording() 874 if (mFd != null) { in raiseError()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | KeepaliveTracker.java | 138 private final FileDescriptor mFd; field in KeepaliveTracker.KeepaliveInfo 181 mFd = Os.dup(fd); in KeepaliveInfo() 192 mFd = null; in KeepaliveInfo() 340 mTcpController.startSocketMonitor(mFd, this, mSlot); in start() 404 if (mFd != null) { in stop() 406 Os.close(mFd); in stop()
|
/packages/services/Car/cpp/evs/sampleDriver/ |
D | EvsEnumerator.cpp | 591 FileHandleWrapper(int fd) { mFd = fd; } in qualifyCaptureDevice() 592 ~FileHandleWrapper() { if (mFd > 0) close(mFd); } in qualifyCaptureDevice() 593 operator int() const { return mFd; } in qualifyCaptureDevice() 595 int mFd = -1; in qualifyCaptureDevice() member in android::hardware::automotive::evs::V1_1::implementation::EvsEnumerator::qualifyCaptureDevice::FileHandleWrapper
|
/packages/modules/NeuralNetworks/runtime/test/ |
D | TestUtils.h | 37 : mFd(std::move(fd)), mMapped(std::move(mapped)), mMemory(std::move(memory)) {} in TestAshmem() 75 ::android::base::unique_fd mFd;
|
D | SupportLibraryTestUtils.h | 36 : mFd(std::move(fd)), mMapped(std::move(mapped)), mMemory(std::move(memory)) {} in TestAshmem() 76 ::android::base::unique_fd mFd;
|