Rename DISALLOW_CONFIG_LOCATION_MODE to DISALLOW_CONFIG_LOCATION.

Bug: 72732481
Test: CtsVerifier test already in
Change-Id: I12a0593eba270727808588efc4c42c4e066c9446
This commit is contained in:
yuemingw
2018-02-01 17:52:50 +00:00
committed by Yueming Wang
parent 7142be5630
commit a1416d2849
2 changed files with 2 additions and 2 deletions

View File

@@ -169,7 +169,7 @@ public class LocationEnabler implements LifecycleObserver, OnResume, OnPause {
if (admin == null) {
admin = RestrictedLockUtils.checkIfRestrictionEnforced(
mContext, UserManager.DISALLOW_CONFIG_LOCATION_MODE, userId);
mContext, UserManager.DISALLOW_CONFIG_LOCATION, userId);
}
return admin;
}

View File

@@ -252,7 +252,7 @@ public class LocationEnablerTest {
enforcingUsers.add(new UserManager.EnforcingUser(userId,
UserManager.RESTRICTION_SOURCE_PROFILE_OWNER));
when(mUserManager.getUserRestrictionSources(
UserManager.DISALLOW_CONFIG_LOCATION_MODE, UserHandle.of(userId)))
UserManager.DISALLOW_CONFIG_LOCATION, UserHandle.of(userId)))
.thenReturn(enforcingUsers);
assertThat(mEnabler.getShareLocationEnforcedAdmin(userId) != null).isTrue();