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.java54 private ParcelFileDescriptor mFd = null; field in ReflectorVpnService
226 mFd = builder.establish(); in start()
227 if (mFd == null) { in start()
231 Log.i(TAG, "Established, fd=" + mFd.getFd()); in start()
233 mPingReflector = new PingReflector(mFd.getFileDescriptor(), MTU); in start()
243 if (mFd != null) { in stop()
245 mFd.close(); in stop()
250 mFd = null; in stop()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21000/src/android/security/cts/CVE_2023_21000/
DDeviceTest.java43 private ParcelFileDescriptor mFd = null; field in DeviceTest
65 mFd = mParcel.readFileDescriptor(); in testCVE_2023_21000()
70 assertNull(mFd); in testCVE_2023_21000()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptorTest.java63 private ParcelFileDescriptor mFd; field in AssetFileDescriptorTest
75 mFd = ParcelFileDescriptor.open(mFile, ParcelFileDescriptor.MODE_READ_WRITE); in initAssetFileDescriptor()
76 mAssetFileDes = new AssetFileDescriptor(mFd, START_OFFSET, LENGTH); in initAssetFileDescriptor()
199 assertSame(mFd, mAssetFileDes.getParcelFileDescriptor()); in testMiscMethod()
200 assertSame(mFd.getFileDescriptor(), mAssetFileDes.getFileDescriptor()); in testMiscMethod()
202 assertEquals(mFd.describeContents(), mAssetFileDes.describeContents()); in testMiscMethod()
DAssetFileDescriptor_AutoCloseInputStreamTest.java70 private AssetFileDescriptor mFd; field in AssetFileDescriptor_AutoCloseInputStreamTest
83 if (mFd != null) { in tearDown()
84 mFd.close(); in tearDown()
85 mFd = null; in tearDown()
199 AssetFileDescriptor fd2 = new AssetFileDescriptor(mFd.getParcelFileDescriptor(), in testTwoFileDescriptorsWorkIndependently()
236 assertEquals(writeSize, mFd.getLength()); in testReadLargeBytes()
242 if (mFd != null) { in openInput()
243 mFd.close(); in openInput()
244 mFd = null; in openInput()
248 mFd = new AssetFileDescriptor(fd, startOffset, length); in openInput()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9424/
Dpoc.cpp35 MyMemoryHeap(int fd) { mFd = fd; } in MyMemoryHeap()
36 int getHeapID() const { return mFd; } in getHeapID()
43 mutable int mFd; member in MyMemoryHeap
/cts/tests/tests/content/src/android/content/pm/cts/
DIncrementalDeviceConnection.java62 private final FileDescriptor mFd; field in IncrementalDeviceConnection
72 mFd = pfd.getFileDescriptor(); in IncrementalDeviceConnection()
74 mPollfds[0].fd = mFd; in IncrementalDeviceConnection()
97 return Os.read(mFd, buffer); in read()
119 return Os.write(mFd, buffer); in write()
/cts/tests/tests/media/decoder/jni/
Dnative-media-jni.cpp79 : mFd(dup(fd)), in FdDataSource()
95 if (lseek(mFd, mOffset + offset, SEEK_SET) < 0) { in readAt()
98 return read(mFd, data, ssize); in readAt()
106 ::close(mFd); in close()
111 int mFd; member