Searched refs:isPrimaryUser (Results 1 – 8 of 8) sorted by relevance
120 boolean isPrimaryUser = isPrimaryUser(); in onBuildHeaders()121 if (isPrimaryUser && TelephonyManagerCompat.getPhoneCount(telephonyManager) <= 1) { in onBuildHeaders()146 addVoicemailSettings(target, isPrimaryUser); in onBuildHeaders()148 if (isPrimaryUser in onBuildHeaders()183 private void addVoicemailSettings(List<Header> target, boolean isPrimaryUser) { in addVoicemailSettings() argument184 if (!isPrimaryUser) { in addVoicemailSettings()326 private boolean isPrimaryUser() { in isPrimaryUser() method in DialerSettingsActivity
40 public boolean isPrimaryUser = true; field in ShadowUserManager66 public boolean isPrimaryUser() { in isPrimaryUser() method in ShadowUserManager67 return isPrimaryUser; in isPrimaryUser()
75 final boolean isPrimaryUser = Process.myUserHandle().equals(user); in getApplicationInfo()76 if (!isPrimaryUser && (flags == 0)) { in getApplicationInfo()88 if (isPrimaryUser && ((info.flags & ApplicationInfo.FLAG_INSTALLED) == 0) in getApplicationInfo()
158 if (isPrimaryUser() && SipUtil.isVoipSupported(getActivity())) { in onResume()519 private boolean isPrimaryUser() { in isPrimaryUser() method in PhoneAccountSettingsFragment522 return userManager.isPrimaryUser(); in isPrimaryUser()
215 if (!userManager.isPrimaryUser()) { in onCreate()
73 when(mMockContext.mUserManager.isPrimaryUser()).thenReturn(true); in setUp()636 when(mMockContext.mUserManager.isPrimaryUser()).thenReturn(false); in testPrivilegedAppAccessingApisAsSecondaryUser()673 when(mMockContext.mUserManager.isPrimaryUser()).thenReturn(false); in testRegularAppAccessingApisAsSecondaryUser()
455 return userManager.isPrimaryUser(); in canCurrentUserBlockUsers()
527 if (userManager.isPrimaryUser()) { in CallsManager()