Home
last modified time | relevance | path

Searched refs:mFd (Results 1 – 8 of 8) sorted by relevance

/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DPingReflector.java34 private FileDescriptor mFd; field in PingReflector
39 mFd = fd; in PingReflector()
44 Log.i(TAG, "PingReflector starting fd=" + mFd + " valid=" + mFd.valid()); in run()
45 while (!interrupted() && mFd.valid()) { in run()
60 Log.i(TAG, "PingReflector exiting fd=" + mFd + " valid=" + mFd.valid()); in run()
92 Os.write(mFd, buf, 0, buf.length); in writePacket()
100 return Os.read(mFd, buf, 0, buf.length); in readPacket()
DReflectorVpnService.java51 private ParcelFileDescriptor mFd = null; field in ReflectorVpnService
188 mFd = builder.establish(); in start()
189 if (mFd == null) { in start()
193 Log.i(TAG, "Established, fd=" + mFd.getFd()); in start()
195 mPingReflector = new PingReflector(mFd.getFileDescriptor(), MTU); in start()
205 if (mFd != null) { in stop()
207 mFd.close(); in stop()
212 mFd = null; in stop()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DMyVpnService.java35 private ParcelFileDescriptor mFd = null; field in MyVpnService
126 mFd = builder.establish(); in start()
127 Log.i(TAG, "Established, fd=" + (mFd == null ? "null" : mFd.getFd())); in start()
129 mPacketReflector = new PacketReflector(mFd.getFileDescriptor(), MTU); in start()
139 if (mFd != null) { in stop()
141 mFd.close(); in stop()
145 mFd = null; in stop()
DPacketReflector.java55 private FileDescriptor mFd; field in PacketReflector
60 mFd = fd; in PacketReflector()
177 Os.write(mFd, buf, 0, len); in writePacket()
186 len = Os.read(mFd, buf, 0, buf.length); in readPacket()
237 Log.i(TAG, "PacketReflector starting fd=" + mFd + " valid=" + mFd.valid()); in run()
238 while (!interrupted() && mFd.valid()) { in run()
241 Log.i(TAG, "PacketReflector exiting fd=" + mFd + " valid=" + mFd.valid()); in run()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptor_AutoCloseInputStreamTest.java38 private AssetFileDescriptor mFd; field in AssetFileDescriptor_AutoCloseInputStreamTest
53 if (mFd != null) { in tearDown()
54 mFd.close(); in tearDown()
55 mFd = null; in tearDown()
157 if (mFd != null) { in openInput()
158 mFd.close(); in openInput()
159 mFd = null; in openInput()
163 mFd = new AssetFileDescriptor(fd, startOffset, length); in openInput()
164 mInput = new AssetFileDescriptor.AutoCloseInputStream(mFd); in openInput()
DAssetFileDescriptorTest.java42 private ParcelFileDescriptor mFd; field in AssetFileDescriptorTest
55 mFd = ParcelFileDescriptor.open(mFile, ParcelFileDescriptor.MODE_READ_WRITE); in initAssetFileDescriptor()
56 mAssetFileDes = new AssetFileDescriptor(mFd, START_OFFSET, LENGTH); in initAssetFileDescriptor()
189 assertSame(mFd, mAssetFileDes.getParcelFileDescriptor()); in testMiscMethod()
190 assertSame(mFd.getFileDescriptor(), mAssetFileDes.getFileDescriptor()); in testMiscMethod()
192 assertEquals(mFd.describeContents(), mAssetFileDes.describeContents()); in testMiscMethod()
/cts/tests/tests/net/src/android/net/cts/
DIpSecBaseTest.java116 public FileDescriptor mFd; field in IpSecBaseTest.NativeSocket
119 mFd = fd; in NativeSocket()
124 Os.write(mFd, data, 0, data.length); in send()
136 bytesRead.set(Os.recvfrom(mFd, in, 0, DATA_BUFFER_LEN, 0, null)); in receive()
155 return IpSecBaseTest.getPort(mFd); in getPort()
160 Os.close(mFd); in close()
166 ism.applyTransportModeTransform(mFd, direction, transform); in applyTransportModeTransform()
171 ism.removeTransportModeTransforms(mFd); in removeTransportModeTransforms()
188 Os.sendto(mFd, data, 0, data.length, 0, dstAddr, port); in sendTo()
322 Os.bind(sock.mFd, localAddr, 0); in getNativeUdpSocketPair()
[all …]
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp85 : mFd(fd), in FdDataSource()
98 if (lseek(mFd, mOffset + offset, SEEK_SET) < 0) { in readAt()
101 return read(mFd, data, ssize); in readAt()
109 ::close(mFd); in close()
114 int mFd; member