Lines Matching defs:function

63      * adb function is enabled
65 * RNDIS ethernet function is enabled
67 * MTP function is enabled
69 * PTP function is enabled
71 * accessory function is enabled
73 * audio source function is enabled
75 * MIDI function is enabled
78 * USB is not configued, MTP function is enabled, and all the other functions are disabled.
196 * A placeholder indicating that no USB function is being specified.
197 * Used to distinguish between selecting no function vs. the default function in
205 * Name of the adb USB function.
213 * Name of the RNDIS ethernet USB function.
221 * Name of the MTP USB function.
229 * Name of the PTP USB function.
237 * Name of the audio source USB function.
245 * Name of the MIDI USB function.
253 * Name of the Accessory USB function.
478 * Only system components can call this function.
489 * Only system components can call this function.
505 * Only system components can call this function, as it requires the MANAGE_USB permission.
522 * Returns true if the specified USB function is currently enabled when in device mode.
528 * @param function name of the USB function
529 * @return true if the USB function is enabled
533 public boolean isFunctionEnabled(String function) {
535 return mService.isFunctionEnabled(function);
542 * Sets the current USB function when in device mode.
560 * Note: This function is asynchronous and may fail silently without applying
564 * @param function name of the USB function, or null to restore the default function
569 public void setCurrentFunction(String function, boolean usbDataUnlocked) {
571 mService.setCurrentFunction(function, usbDataUnlocked);
623 * Note: This function is asynchronous and may fail silently without applying
624 * the requested changes. If this function does cause a status change to occur then
651 * Only system components can call this function, as it requires the MANAGE_USB permission.
667 public static String addFunction(String functions, String function) {
669 return function;
671 if (!containsFunction(functions, function)) {
675 functions += function;
681 public static String removeFunction(String functions, String function) {
684 if (function.equals(split[i])) {
705 public static boolean containsFunction(String functions, String function) {
706 int index = functions.indexOf(function);
709 int charAfter = index + function.length();