Follow error prone recommendation
In bluetooth/Utils.java:
```
134: warning: Parameter name `testEnabled` is unknown.
* @param testEnabled if the profile should enter or exit a testing mode
^
235: warning: Method setComponentAvailable() annotated [none] but too narrow;
invokes method requiring {allOf=[android.permission.CHANGE_COMPONENT_ENABLED_STATE]}
setComponentAvailable(component, enable);
^
255: warning: Method setComponentAvailable() annotated [none] but too narrow;
invokes method requiring {allOf=[android.permission.CHANGE_COMPONENT_ENABLED_STATE]}
getPackageManager().setComponentEnabledSetting(
^
355: warning: Method doStart() annotated [none] but too narrow;
invokes method requiring {allOf=[] anyOf=[android.permission.INTERACT_ACROSS_USERS,
android.permission.MANAGE_USERS]}
if (userManager.isUserUnlocked(UserHandle.of(currentUserId))) {
^
```
Bug: 236759221
Test: m RUN_ERROR_PRONE=true Bluetooth
Change-Id: I018b517a1cc7d9f2f2dd379b78ee320d62f2dc30
Loading
Please register or sign in to comment