Home
last modified time | relevance | path

Searched refs:FUNCTION_PTP (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/hardware/usb/
DUsbManager.java313 public static final long FUNCTION_PTP = GadgetFunction.PTP; field in UsbManager
345 private static final long SETTABLE_FUNCTIONS = FUNCTION_MTP | FUNCTION_PTP | FUNCTION_RNDIS
352 FUNCTION_NAME_TO_CODE.put(UsbManager.USB_FUNCTION_PTP, FUNCTION_PTP); in FUNCTION_NAME_TO_CODE.put() argument
882 if ((functions & FUNCTION_PTP) != 0) { in usbFunctionsToString()
/frameworks/base/tests/UsbTests/src/com/android/server/usb/
DUsbHandlerTest.java163 UsbManager.FUNCTION_PTP)); in setFunctionsPtp()
164 assertNotEquals(mUsbHandler.getEnabledFunctions() & UsbManager.FUNCTION_PTP, 0); in setFunctionsPtp()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDeviceManager.java285 mControlFds.put(UsbManager.FUNCTION_PTP, ptpFd); in UsbDeviceManager()
1041 || (functions & UsbManager.FUNCTION_PTP) != 0; in isUsbDataTransferActive()
1078 } else if (mCurrentFunctions == UsbManager.FUNCTION_PTP) { in updateUsbNotification()
2025 } else if (functions == UsbManager.FUNCTION_PTP) { in setCurrentFunctions()
/frameworks/base/core/proto/android/service/
Dusb.proto53 FUNCTION_PTP = 16; enumerator