Home
last modified time | relevance | path

Searched refs:controlFd (Results 1 – 10 of 10) sorted by relevance

/frameworks/av/media/mtp/tests/MtpFuzzer/
Dmtp_handle_fuzzer.cpp112 int32_t controlFd = mFdp.ConsumeBool() in invokeWriteDescriptor() local
115 std::unique_ptr<MtpFfsHandle> handle(new MtpFfsHandle(controlFd)); in invokeWriteDescriptor()
118 close(controlFd); in invokeWriteDescriptor()
125 int32_t controlFd = open(kFuzzerTestFile.c_str(), O_CREAT | O_RDWR | O_NONBLOCK); in invokeMtpFfsHandle() local
126 writeInputFile(controlFd); in invokeMtpFfsHandle()
130 std::unique_ptr<IMtpHandle> mtpCompactHandle(new MtpFfsCompatHandle(controlFd)); in invokeMtpFfsHandle()
133 std::unique_ptr<IMtpHandle> mtpHandle(new MtpFfsHandle(controlFd)); in invokeMtpFfsHandle()
188 close(controlFd); in invokeMtpFfsHandle()
Dmtp_fuzzer.cpp53 int controlFd = -1; in MtpMockServer() local
67 mDatabase.get(), controlFd, mFdp.ConsumeBool() /* ptp */, in MtpMockServer()
/frameworks/base/media/java/android/mtp/
DMtpServer.java51 FileDescriptor controlFd, in MtpServer() argument
93 controlFd, in MtpServer()
149 FileDescriptor controlFd, in native_setup() argument
/frameworks/av/media/mtp/
DMtpFfsCompatHandle.h47 MtpFfsCompatHandle(int controlFd);
DMtpFfsCompatHandle.cpp64 MtpFfsCompatHandle::MtpFfsCompatHandle(int controlFd) : in MtpFfsCompatHandle() argument
65 MtpFfsHandle(controlFd), in MtpFfsCompatHandle()
DMtpFfsHandle.h105 MtpFfsHandle(int controlFd);
DMtpServer.h104 MtpServer(IMtpDatabase* database, int controlFd, bool ptp,
DMtpFfsHandle.cpp75 MtpFfsHandle::MtpFfsHandle(int controlFd) { in MtpFfsHandle() argument
76 mControl.reset(controlFd); in MtpFfsHandle()
DMtpServer.cpp107 MtpServer::MtpServer(IMtpDatabase* database, int controlFd, bool ptp, in MtpServer() argument
128 mHandle = aio_compat ? new MtpFfsCompatHandle(controlFd) : new MtpFfsHandle(controlFd); in MtpServer()
/frameworks/base/media/jni/
Dandroid_mtp_MtpServer.cpp91 int controlFd = dup(jniGetFDFromFileDescriptor(env, jControlFd)); in android_mtp_MtpServer_setup() local
92 MtpServer* server = new MtpServer(getMtpDatabase(env, javaDatabase), controlFd, in android_mtp_MtpServer_setup()