public class UsbDeviceManager extends Object
Constructor and Description |
---|
UsbDeviceManager(Context context,
UsbAlsaManager alsaManager) |
Modifier and Type | Method and Description |
---|---|
void |
allowUsbDebugging(boolean alwaysAllow,
String publicKey) |
void |
bootCompleted() |
void |
clearUsbDebuggingKeys() |
void |
denyUsbDebugging() |
void |
dump(IndentingPrintWriter pw) |
UsbAccessory |
getCurrentAccessory() |
boolean |
isFunctionEnabled(String function) |
ParcelFileDescriptor |
openAccessory(UsbAccessory accessory) |
void |
setCurrentFunctions(String functions) |
void |
setCurrentUser(int userId,
com.android.server.usb.UsbSettingsManager settings) |
void |
setUsbDataUnlocked(boolean unlocked) |
void |
systemReady() |
void |
updateUserRestrictions() |
public UsbDeviceManager(Context context, UsbAlsaManager alsaManager)
public void systemReady()
public void bootCompleted()
public void setCurrentUser(int userId, com.android.server.usb.UsbSettingsManager settings)
public void updateUserRestrictions()
public UsbAccessory getCurrentAccessory()
public ParcelFileDescriptor openAccessory(UsbAccessory accessory)
public boolean isFunctionEnabled(String function)
public void setCurrentFunctions(String functions)
public void setUsbDataUnlocked(boolean unlocked)
public void allowUsbDebugging(boolean alwaysAllow, String publicKey)
public void denyUsbDebugging()
public void clearUsbDebuggingKeys()
public void dump(IndentingPrintWriter pw)