AdapterService: Small refactor and fix log errors
* In multiple instances, setValue(value) which set mValue to value prints log with existing value instead of the incoming new value. This CLs corrects this issue in enable() and setAdapterService() * Use range based for loop when possible * Compare GattService class name by calling GattService.class.getName() or getSimpleName() instead of using the raw string * Remove redundant logic in dump() * Make mUidTraffic final as it is never re-assigned Test: make, runtest -j40 bluetooth, turnning Bluetooth on/off Change-Id: I707dff79373a70c5f14d9c136e8fa05752a74f42
Loading
Please register or sign in to comment