USB: minor cleanup work

Bug: 4067029

Change-Id: Icd8f912ab8732b5f770a217b9b3731092597ce02
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
Mike Lockwood
2011-03-11 18:39:03 -05:00
parent 14c875eac7
commit 62cfeeb821
8 changed files with 40 additions and 8 deletions

View File

@ -44,9 +44,9 @@ interface IUsbManager
/* Sets the default package for a USB device
* (or clears it if the package name is null)
*/
oneway void setDevicePackage(in UsbDevice device, String packageName);
void setDevicePackage(in UsbDevice device, String packageName);
/* Sets the default package for a USB device
/* Sets the default package for a USB accessory
* (or clears it if the package name is null)
*/
void setAccessoryPackage(in UsbAccessory accessory, String packageName);
@ -80,5 +80,5 @@ interface IUsbManager
boolean hasDefaults(String packageName);
/* Clears default preferences and permissions for the package */
oneway void clearDefaults(String packageName);
void clearDefaults(String packageName);
}

View File

@ -367,7 +367,7 @@ public class UsbManager {
* This may result in a system dialog being displayed to the user
* if permission had not already been granted.
* Success or failure is returned via the {@link android.app.PendingIntent} pi.
* If successful, this grants the caller permission to access the device only
* If successful, this grants the caller permission to access the accessory only
* until the device is disconnected.
*
* The following extras will be added to pi: