Searched refs:ptp (Results 1 – 12 of 12) sorted by relevance
/frameworks/base/services/core/jni/ |
D | com_android_server_UsbDeviceManager.cpp | 124 bool ptp = false; in android_server_UsbDeviceManager_openControl() local 127 ptp = true; in android_server_UsbDeviceManager_openControl() 129 if (!strcmp(function, "mtp") || ptp) { in android_server_UsbDeviceManager_openControl() 130 fd = TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP0 : FFS_MTP_EP0, O_RDWR)); in android_server_UsbDeviceManager_openControl() 135 if (!writeDescriptors(fd, ptp)) { in android_server_UsbDeviceManager_openControl()
|
/frameworks/av/media/mtp/ |
D | MtpFfsHandle.h | 55 bool openEndpoints(bool ptp); 93 int start(bool ptp) override; 96 bool writeDescriptors(bool ptp);
|
D | MtpFfsHandle.cpp | 87 bool MtpFfsHandle::openEndpoints(bool ptp) { in openEndpoints() argument 89 mBulkIn.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_IN : FFS_MTP_EP_IN, O_RDWR))); in openEndpoints() 91 PLOG(ERROR) << (ptp ? FFS_PTP_EP_IN : FFS_MTP_EP_IN) << ": cannot open bulk in ep"; in openEndpoints() 97 mBulkOut.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_OUT : FFS_MTP_EP_OUT, O_RDWR))); in openEndpoints() 99 PLOG(ERROR) << (ptp ? FFS_PTP_EP_OUT : FFS_MTP_EP_OUT) << ": cannot open bulk out ep"; in openEndpoints() 105 mIntr.reset(TEMP_FAILURE_RETRY(open(ptp ? FFS_PTP_EP_INTR : FFS_MTP_EP_INTR, O_RDWR))); in openEndpoints() 107 PLOG(ERROR) << (ptp ? FFS_PTP_EP_INTR : FFS_MTP_EP_INTR) << ": cannot open intr ep"; in openEndpoints() 125 bool MtpFfsHandle::writeDescriptors(bool ptp) { in writeDescriptors() argument 126 return ::android::writeDescriptors(mControl, ptp); in writeDescriptors() 268 int MtpFfsHandle::start(bool ptp) { in start() argument [all …]
|
D | MtpDescriptors.cpp | 263 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()
|
D | MtpDevHandle.h | 39 int start(bool ptp);
|
D | IMtpHandle.h | 35 virtual int start(bool ptp) = 0;
|
D | MtpFfsCompatHandle.h | 45 int start(bool ptp) override;
|
D | MtpFfsCompatHandle.cpp | 112 int MtpFfsCompatHandle::start(bool ptp) { in start() argument 113 if (!openEndpoints(ptp)) in start()
|
D | MtpDescriptors.h | 104 bool writeDescriptors(int fd, bool ptp);
|
D | MtpServer.h | 101 MtpServer(IMtpDatabase* database, int controlFd, bool ptp,
|
D | MtpServer.cpp | 105 MtpServer::MtpServer(IMtpDatabase* database, int controlFd, bool ptp, in MtpServer() argument 111 mPtp(ptp), in MtpServer()
|
/frameworks/base/proto/src/metrics_constants/ |
D | metrics_constants.proto | 5320 // ACTION: Usb config has been changed to ptp (photo transfer)
|