Lines Matching defs:usb
17 package com.android.server.usb;
31 import android.hardware.usb.UsbAccessory;
32 import android.hardware.usb.UsbManager;
337 // persist.sys.usb.config should never be unset. But if it is, set it to "adb"
339 mDefaultFunctions = SystemProperties.get("persist.sys.usb.config", "adb");
344 // sanity check the sys.usb.config system property
346 String config = SystemProperties.get("sys.usb.config", "none");
349 SystemProperties.set("sys.usb.config", mDefaultFunctions);
438 // State transition is done when sys.usb.state is set to the new configuration
439 if (state.equals(SystemProperties.get("sys.usb.state"))) return true;
449 SystemProperties.set("sys.usb.config", config);
457 // Due to the persist.sys.usb.config property trigger, changing adb state requires
471 // Do not update persystent.sys.usb.config if the device is booted up
489 SystemProperties.set("persist.sys.usb.config", functions);
496 SystemProperties.set("persist.sys.usb.config", mDefaultFunctions);
504 // Override with bootmode specific usb mode if needed