Lines Matching defs:function
370 public boolean isFunctionEnabled(String function) {
372 return mDeviceManager != null && mDeviceManager.isFunctionEnabled(function);
376 public void setCurrentFunction(String function, boolean usbDataUnlocked) {
379 if (!isSupportedCurrentFunction(function)) {
380 Slog.w(TAG, "Caller of setCurrentFunction() requested unsupported USB function: "
381 + function);
382 function = UsbManager.USB_FUNCTION_NONE;
386 mDeviceManager.setCurrentFunctions(function, usbDataUnlocked);
392 private static boolean isSupportedCurrentFunction(String function) {
393 if (function == null) return true;
395 switch (function) {
669 pw.println("Example USB OTG port where id pin determines function:");