Set attribution tag.

Set an attribution tag on the context so that location knows what the
location request is for.

Bug: 193044528
Test: atest DeviceIdleTest
Test: atest FrameworksMockingServicesTests:DeviceIdleControllerTest
Change-Id: Idc9d839ea2bf2d098748e324868764fa6febb78c
This commit is contained in:
Kweku Adams
2021-07-07 12:14:41 -07:00
parent 7a1c5d3854
commit 1335006759

View File

@@ -2150,7 +2150,7 @@ public class DeviceIdleController extends SystemService
private LocationManager mLocationManager;
Injector(Context ctx) {
mContext = ctx;
mContext = ctx.createAttributionContext(TAG);
}
AlarmManager getAlarmManager() {