Home
last modified time | relevance | path

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

/frameworks/base/tests/UsbTests/src/com/android/server/usb/
DUsbHandlerTest.java155 UsbManager.FUNCTION_MTP)); in setFunctionsMtp()
156 assertNotEquals(mUsbHandler.getEnabledFunctions() & UsbManager.FUNCTION_MTP, 0); in setFunctionsMtp()
249 UsbManager.FUNCTION_MTP)); in userSwitchedDisablesMtp()
250 assertNotEquals(mUsbHandler.getEnabledFunctions() & UsbManager.FUNCTION_MTP, 0); in userSwitchedDisablesMtp()
262 UsbManager.FUNCTION_MTP)); in changedRestrictionsDisablesMtp()
263 assertNotEquals(mUsbHandler.getEnabledFunctions() & UsbManager.FUNCTION_MTP, 0); in changedRestrictionsDisablesMtp()
276 UsbManager.FUNCTION_MTP)); in disconnectResetsCharging()
277 assertNotEquals(mUsbHandler.getEnabledFunctions() & UsbManager.FUNCTION_MTP, 0); in disconnectResetsCharging()
289 UsbManager.FUNCTION_MTP)); in configuredSendsBroadcast()
290 assertNotEquals(mUsbHandler.getEnabledFunctions() & UsbManager.FUNCTION_MTP, 0); in configuredSendsBroadcast()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DUsbManager.java307 public static final long FUNCTION_MTP = GadgetFunction.MTP; field in UsbManager
345 private static final long SETTABLE_FUNCTIONS = FUNCTION_MTP | FUNCTION_PTP | FUNCTION_RNDIS
351 FUNCTION_NAME_TO_CODE.put(UsbManager.USB_FUNCTION_MTP, FUNCTION_MTP); in FUNCTION_NAME_TO_CODE.put() argument
879 if ((functions & FUNCTION_MTP) != 0) { in usbFunctionsToString()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDeviceManager.java280 mControlFds.put(UsbManager.FUNCTION_MTP, mtpFd); in UsbDeviceManager()
1040 return (functions & UsbManager.FUNCTION_MTP) != 0 in isUsbDataTransferActive()
1075 if (mCurrentFunctions == UsbManager.FUNCTION_MTP) { in updateUsbNotification()
1243 return UsbManager.FUNCTION_MTP; in getChargingFunctions()
2023 } else if (functions == UsbManager.FUNCTION_MTP) { in setCurrentFunctions()
/frameworks/base/core/proto/android/service/
Dusb.proto51 FUNCTION_MTP = 4; enumerator