Searched refs:containsFunction (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbDeviceManager.java | 405 mAdbEnabled = UsbManager.containsFunction( in UsbHandler() 414 if (UsbManager.containsFunction(persisted, UsbManager.USB_FUNCTION_MTP) in UsbHandler() 415 || UsbManager.containsFunction(persisted, UsbManager.USB_FUNCTION_PTP)) { in UsbHandler() 645 if (UsbManager.containsFunction(functions, UsbManager.USB_FUNCTION_MTP) in trySetEnabledFunctions() 646 || UsbManager.containsFunction(functions, UsbManager.USB_FUNCTION_PTP)) { in trySetEnabledFunctions() 786 boolean enabled = UsbManager.containsFunction(mCurrentFunctions, in updateAudioSourceFunction() 812 boolean enabled = UsbManager.containsFunction(mCurrentFunctions, in updateMidiFunction() 848 if (UsbManager.containsFunction(mCurrentFunctions, in handleMessage() 944 return UsbManager.containsFunction(mCurrentFunctions, UsbManager.USB_FUNCTION_MTP) in isUsbDataTransferActive() 945 || UsbManager.containsFunction(mCurrentFunctions, UsbManager.USB_FUNCTION_PTP); in isUsbDataTransferActive() [all …]
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbManager.java | 671 if (!containsFunction(functions, function)) { in addFunction() 705 public static boolean containsFunction(String functions, String function) { in containsFunction() method in UsbManager
|