Searched refs:isSystemUser (Results 1 – 8 of 8) sorted by relevance
236 when(userManager.isSystemUser()).thenReturn(false); in testCanCurrentUserOpenBlockSettings_M_SecondaryUser()239 verify(userManager).isSystemUser(); in testCanCurrentUserOpenBlockSettings_M_SecondaryUser()248 when(userManager.isSystemUser()).thenReturn(true); in testCanCurrentUserOpenBlockSettings_M_PrimaryUser()251 verify(userManager).isSystemUser(); in testCanCurrentUserOpenBlockSettings_M_PrimaryUser()260 when(userManager.isSystemUser()).thenReturn(false); in testCanAttemptBlockOperations_M_SecondaryUser()263 verify(userManager).isSystemUser(); in testCanAttemptBlockOperations_M_SecondaryUser()272 when(userManager.isSystemUser()).thenReturn(true); in testCanAttemptBlockOperations_M_PrimaryUser()275 verify(userManager).isSystemUser(); in testCanAttemptBlockOperations_M_PrimaryUser()
52 boolean isSystemUser = UserManager.get(context).isSystemUser(); in onReceive()54 if (isSystemUser) { in onReceive()
45 public static boolean isSystemUser(UserManager userManager) { in isSystemUser() method in UserManagerCompat47 return userManager.isSystemUser(); in isSystemUser()
347 return UserManagerCompat.isSystemUser(366 return UserManagerCompat.isSystemUser(
68 (UserManager.get(context).isSystemUser())) { in onReceiveWithPrivilege()78 if (UserManager.get(context).isSystemUser()) { in onReceiveWithPrivilege()
153 static bool isSystemUser() { in isSystemUser() function172 if (!isSystemUser()) { in onTransact()
174 return UserManagerCompat.isSystemUser((UserManager) getSystemService(Context.USER_SERVICE)); in isPrimaryUser()
517 if (userManager.isSystemUser()) { in syncEntries()