Searched refs:FUNCTION_NONE (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/tests/UsbTests/src/com/android/server/usb/ |
D | UsbHandlerTest.java | 190 assertEquals(mUsbHandler.getEnabledFunctions(), UsbManager.FUNCTION_NONE); in enableAdb() 216 assertEquals(mUsbHandler.getEnabledFunctions(), UsbManager.FUNCTION_NONE); in disableAdb() 227 assertEquals(mUsbHandler.getEnabledFunctions(), UsbManager.FUNCTION_NONE); in bootCompletedCharging() 239 assertEquals(mUsbHandler.getEnabledFunctions(), UsbManager.FUNCTION_NONE); in bootCompletedAdbEnabled() 255 assertEquals(mUsbHandler.getEnabledFunctions(), UsbManager.FUNCTION_NONE); in userSwitchedDisablesMtp() 267 assertEquals(mUsbHandler.getEnabledFunctions(), UsbManager.FUNCTION_NONE); in changedRestrictionsDisablesMtp() 281 assertEquals(mUsbHandler.getEnabledFunctions(), UsbManager.FUNCTION_NONE); in disconnectResetsCharging()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbDeviceManager.java | 420 long functions = UsbManager.FUNCTION_NONE; in startAccessoryMode() 428 if (functions != UsbManager.FUNCTION_NONE) { in startAccessoryMode() 682 setEnabledFunctions(UsbManager.FUNCTION_NONE, false); in notifyAccessoryModeExit() 794 if (functions == UsbManager.FUNCTION_NONE) { in getAppliedFunctions() 823 && mScreenUnlockedFunctions != UsbManager.FUNCTION_NONE) { in handleMessage() 826 setEnabledFunctions(UsbManager.FUNCTION_NONE, false); in handleMessage() 919 if (!mScreenLocked && mScreenUnlockedFunctions != UsbManager.FUNCTION_NONE) { in handleMessage() 934 setEnabledFunctions(UsbManager.FUNCTION_NONE, false); in handleMessage() 937 if (mScreenUnlockedFunctions != UsbManager.FUNCTION_NONE in handleMessage() 938 && mCurrentFunctions == UsbManager.FUNCTION_NONE) { in handleMessage() [all …]
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbManager.java | 301 public static final long FUNCTION_NONE = 0; field in UsbManager 866 return functions == FUNCTION_NONE in areSettableFunctions() 912 return FUNCTION_NONE; in usbFunctionsFromString()
|