Searched refs:getEnabledFunctions (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/tests/UsbTests/src/com/android/server/usb/ |
D | UsbHandlerTest.java | 156 assertNotEquals(mUsbHandler.getEnabledFunctions() & UsbManager.FUNCTION_MTP, 0); in setFunctionsMtp() 164 assertNotEquals(mUsbHandler.getEnabledFunctions() & UsbManager.FUNCTION_PTP, 0); in setFunctionsPtp() 172 assertNotEquals(mUsbHandler.getEnabledFunctions() & UsbManager.FUNCTION_MIDI, 0); in setFunctionsMidi() 180 assertNotEquals(mUsbHandler.getEnabledFunctions() & UsbManager.FUNCTION_RNDIS, 0); in setFunctionsRndis() 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() 250 assertNotEquals(mUsbHandler.getEnabledFunctions() & UsbManager.FUNCTION_MTP, 0); in userSwitchedDisablesMtp() 255 assertEquals(mUsbHandler.getEnabledFunctions(), UsbManager.FUNCTION_NONE); in userSwitchedDisablesMtp() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbDeviceManager.java | 1259 public long getEnabledFunctions() { in getEnabledFunctions() method in UsbDeviceManager.UsbHandler 1989 return mHandler.getEnabledFunctions(); in getCurrentFunctions()
|