Searched refs:isPrimaryUser (Results 1 – 9 of 9) 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()
122 Assume.assumeTrue("Ignore test when the user is not primary.", isPrimaryUser()); in setUp()137 if (!isPrimaryUser()) { in tearDown()152 private boolean isPrimaryUser() { in isPrimaryUser() method in BluetoothKeystoreServiceTest
80 final boolean isPrimaryUser = Process.myUserHandle().equals(user); in getApplicationInfo()81 if (!isPrimaryUser && (flags == 0)) { in getApplicationInfo()93 if (isPrimaryUser && ((info.flags & ApplicationInfo.FLAG_INSTALLED) == 0) in getApplicationInfo()
157 if (isPrimaryUser() && SipUtil.isVoipSupported(getActivity())) { in onResume()518 private boolean isPrimaryUser() { in isPrimaryUser() method in PhoneAccountSettingsFragment521 return userManager.isPrimaryUser(); in isPrimaryUser()
216 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()
580 if (userManager.isPrimaryUser()) { in CallsManager()