Home
last modified time | relevance | path

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

/frameworks/base/tests/UsbTests/src/com/android/server/usb/
DUsbHandlerTest.java187 assertEquals(mUsbHandler.getEnabledFunctions(), UsbManager.FUNCTION_NONE); in enableAdb()
212 assertEquals(mUsbHandler.getEnabledFunctions(), UsbManager.FUNCTION_NONE); in disableAdb()
222 assertEquals(mUsbHandler.getEnabledFunctions(), UsbManager.FUNCTION_NONE); in bootCompletedCharging()
234 assertEquals(mUsbHandler.getEnabledFunctions(), UsbManager.FUNCTION_NONE); in bootCompletedAdbEnabled()
249 assertEquals(mUsbHandler.getEnabledFunctions(), UsbManager.FUNCTION_NONE); in userSwitchedDisablesMtp()
261 assertEquals(mUsbHandler.getEnabledFunctions(), UsbManager.FUNCTION_NONE); in changedRestrictionsDisablesMtp()
275 assertEquals(mUsbHandler.getEnabledFunctions(), UsbManager.FUNCTION_NONE); in disconnectResetsCharging()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDeviceManager.java405 long functions = UsbManager.FUNCTION_NONE; in startAccessoryMode()
413 if (functions != UsbManager.FUNCTION_NONE) { in startAccessoryMode()
662 setEnabledFunctions(UsbManager.FUNCTION_NONE, false); in notifyAccessoryModeExit()
787 if (functions == UsbManager.FUNCTION_NONE) { in getAppliedFunctions()
816 && mScreenUnlockedFunctions != UsbManager.FUNCTION_NONE) { in handleMessage()
819 setEnabledFunctions(UsbManager.FUNCTION_NONE, false); in handleMessage()
909 if (!mScreenLocked && mScreenUnlockedFunctions != UsbManager.FUNCTION_NONE) { in handleMessage()
924 setEnabledFunctions(UsbManager.FUNCTION_NONE, false); in handleMessage()
927 if (mScreenUnlockedFunctions != UsbManager.FUNCTION_NONE in handleMessage()
928 && mCurrentFunctions == UsbManager.FUNCTION_NONE) { in handleMessage()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DUsbManager.java322 public static final long FUNCTION_NONE = 0; field in UsbManager
899 return functions == FUNCTION_NONE in areSettableFunctions()
945 return FUNCTION_NONE; in usbFunctionsFromString()
/frameworks/base/services/core/java/com/android/server/connectivity/
DTethering.java969 : UsbManager.FUNCTION_NONE); in setUsbTethering()