1 package com.android.settings.testutils.shadow; 2 3 import android.content.Context; 4 import com.android.settings.network.RestrictedLockUtilsWrapper; 5 import org.robolectric.annotation.Implements; 6 7 /** 8 * Shadow for the wrapper around RestrictedLockUtils. Should be removed/updated once robolectric is 9 * updated to allow usage of new UserManager API's. see 10 * {@link com.android.settingslib.RestrictedLockUtils} and 11 * {@link com.android.settings.network.RestrictedLockUtilsWrapper} 12 */ 13 @Implements(RestrictedLockUtilsWrapper.class) 14 public class ShadowRestrictedLockUtilsWrapper { 15 16 private boolean isRestricted; 17 18 public boolean hasBaseUserRestriction(Context context, String userRestriction, int userId) { 19 return isRestricted; 20 } 21 22 public void setRestricted(boolean restricted) { 23 isRestricted = restricted; 24 } 25 } 26