• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.android.settings.network;
2 
3 import android.content.Context;
4 import com.android.settingslib.RestrictedLockUtils;
5 
6 /**
7  * Wrapper class needed to be able to test classes which use RestrictedLockUtils methods.
8  * Unfortunately there is no way to deal with this until robolectric is updated due to the fact
9  * that it is a static method and it uses new API's.
10  */
11 public class RestrictedLockUtilsWrapper {
hasBaseUserRestriction(Context context, String userRestriction, int userId)12     public boolean hasBaseUserRestriction(Context context, String userRestriction, int userId) {
13         return RestrictedLockUtils.hasBaseUserRestriction(context, userRestriction, userId);
14     }
15 }