Home
last modified time | relevance | path

Searched refs:ptp (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/services/core/jni/
Dcom_android_server_UsbDeviceManager.cpp126 bool ptp = false; in android_server_UsbDeviceManager_openControl() local
129 ptp = true; in android_server_UsbDeviceManager_openControl()
131 if (!strcmp(function.c_str(), "mtp") || ptp) { in android_server_UsbDeviceManager_openControl()
132 fd = TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP0 : FFS_MTP_EP0, O_RDWR)); in android_server_UsbDeviceManager_openControl()
137 if (!writeDescriptors(fd, ptp)) { in android_server_UsbDeviceManager_openControl()
/frameworks/av/media/mtp/
DMtpFfsHandle.h56 bool openEndpoints(bool ptp);
96 int start(bool ptp) override;
99 bool writeDescriptors(bool ptp);
DMtpFfsHandle.cpp88 bool MtpFfsHandle::openEndpoints(bool ptp) { in openEndpoints() argument
90 mBulkIn.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_IN : FFS_MTP_EP_IN, O_RDWR))); in openEndpoints()
92 PLOG(ERROR) << (ptp ? FFS_PTP_EP_IN : FFS_MTP_EP_IN) << ": cannot open bulk in ep"; in openEndpoints()
98 mBulkOut.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_OUT : FFS_MTP_EP_OUT, O_RDWR))); in openEndpoints()
100 PLOG(ERROR) << (ptp ? FFS_PTP_EP_OUT : FFS_MTP_EP_OUT) << ": cannot open bulk out ep"; in openEndpoints()
106 mIntr.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_INTR : FFS_MTP_EP_INTR, O_RDWR))); in openEndpoints()
108 PLOG(ERROR) << (ptp ? FFS_PTP_EP_INTR : FFS_MTP_EP_INTR) << ": cannot open intr ep"; in openEndpoints()
126 bool MtpFfsHandle::writeDescriptors(bool ptp) { in writeDescriptors() argument
127 return ::android::writeDescriptors(mControl, ptp); in writeDescriptors()
269 int MtpFfsHandle::start(bool ptp) { in start() argument
[all …]
DMtpDescriptors.cpp263 bool writeDescriptors(int fd, bool ptp) { in writeDescriptors() argument
265 &(ptp ? ptp_desc_v2 : mtp_desc_v2), sizeof(desc_v2))); in writeDescriptors()
269 &(ptp ? ptp_desc_v1 : mtp_desc_v1), sizeof(desc_v1))); in writeDescriptors()
DMtpDevHandle.h39 int start(bool ptp);
DIMtpHandle.h35 virtual int start(bool ptp) = 0;
DMtpFfsCompatHandle.h45 int start(bool ptp) override;
DMtpDescriptors.h104 bool writeDescriptors(int fd, bool ptp);
DMtpFfsCompatHandle.cpp112 int MtpFfsCompatHandle::start(bool ptp) { in start() argument
113 if (!openEndpoints(ptp)) in start()
DMtpServer.h104 MtpServer(IMtpDatabase* database, int controlFd, bool ptp,
DMtpServer.cpp107 MtpServer::MtpServer(IMtpDatabase* database, int controlFd, bool ptp, in MtpServer() argument
113 mPtp(ptp), in MtpServer()
/frameworks/av/media/mtp/tests/MtpFuzzer/
Dmtp_fuzzer.cpp50 bool ptp = false; in MtpMockServer() local
65 mMtp = std::make_unique<MtpServer>(mDatabase.get(), controlFd, ptp, manu, model, version, in MtpMockServer()
DMtpMockHandle.h86 int start(bool ptp) { return 0; } in start() argument
/frameworks/base/proto/src/metrics_constants/
Dmetrics_constants.proto5327 // ACTION: Usb config has been changed to ptp (photo transfer)