Home
last modified time | relevance | path

Searched refs:FUNCTION_MTP (Results 1 – 8 of 8) 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()
264 UsbManager.FUNCTION_MTP)); in userSwitchedDisablesMtp()
265 assertNotEquals(mUsbHandler.getEnabledFunctions() & UsbManager.FUNCTION_MTP, 0); in userSwitchedDisablesMtp()
277 UsbManager.FUNCTION_MTP)); in changedRestrictionsDisablesMtp()
278 assertNotEquals(mUsbHandler.getEnabledFunctions() & UsbManager.FUNCTION_MTP, 0); in changedRestrictionsDisablesMtp()
291 UsbManager.FUNCTION_MTP)); in disconnectResetsCharging()
292 assertNotEquals(mUsbHandler.getEnabledFunctions() & UsbManager.FUNCTION_MTP, 0); in disconnectResetsCharging()
304 UsbManager.FUNCTION_MTP)); in configuredSendsBroadcast()
305 assertNotEquals(mUsbHandler.getEnabledFunctions() & UsbManager.FUNCTION_MTP, 0); in configuredSendsBroadcast()
[all …]
DUsbManagerNoPermTest.java100 assertSettableFunctions(true, UsbManager.FUNCTION_MTP); in testUsbManager_AreSettableFunctions()
107 assertSettableFunctions(false, UsbManager.FUNCTION_MTP | UsbManager.FUNCTION_PTP); in testUsbManager_AreSettableFunctions()
/frameworks/base/tests/UsbManagerTests/lib/src/com/android/server/usblib/
DUsbManagerTestLib.java116 testGetCurrentFunctionsMock_Matched(UsbManager.FUNCTION_MTP); in testGetCurrentFunctions_shouldMatched()
124 testSetCurrentFunctionsMock_Matched(UsbManager.FUNCTION_MTP); in testSetCurrentFunctions_shouldMatched()
/frameworks/base/core/java/android/hardware/usb/
DUsbManager.java570 public static final long FUNCTION_MTP = GadgetFunction.MTP; field in UsbManager
621 private static final long SETTABLE_FUNCTIONS = FUNCTION_MTP | FUNCTION_PTP | FUNCTION_RNDIS
627 FUNCTION_NAME_TO_CODE.put(UsbManager.USB_FUNCTION_MTP, FUNCTION_MTP); in FUNCTION_NAME_TO_CODE.put() argument
640 FUNCTION_MTP,
1319 if ((functions & FUNCTION_MTP) != 0) { in usbFunctionsToString()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDeviceManager.java304 mControlFds.put(UsbManager.FUNCTION_MTP, mtpFd); in UsbDeviceManager()
1132 return (functions & UsbManager.FUNCTION_MTP) != 0 in isUsbDataTransferActive()
1187 if (mCurrentFunctions == UsbManager.FUNCTION_MTP) { in updateUsbNotification()
1345 return UsbManager.FUNCTION_MTP; in getChargingFunctions()
2241 } else if (functions == UsbManager.FUNCTION_MTP) { in setCurrentFunctions()
/frameworks/base/core/proto/android/service/
Dusb.proto52 FUNCTION_MTP = 4; enumerator
/frameworks/base/core/api/
Dsystem-current.txt4482 field public static final long FUNCTION_MTP = 4L; // 0x4L
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt25290 Landroid/hardware/usb/UsbManager;->FUNCTION_MTP:J