Home
last modified time | relevance | path

Searched refs:isPrimaryUser (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/app/settings/
DDialerSettingsActivity.java120 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() argument
184 if (!isPrimaryUser) { in addVoicemailSettings()
326 private boolean isPrimaryUser() { in isPrimaryUser() method in DialerSettingsActivity
/packages/services/Car/tests/robotests/src/com/android/car/testutils/shadow/
DShadowUserManager.java40 public boolean isPrimaryUser = true; field in ShadowUserManager
66 public boolean isPrimaryUser() { in isPrimaryUser() method in ShadowUserManager
67 return isPrimaryUser; in isPrimaryUser()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DLauncherAppsCompatVL.java75 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()
/packages/services/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java158 if (isPrimaryUser() && SipUtil.isVoipSupported(getActivity())) { in onResume()
519 private boolean isPrimaryUser() { in isPrimaryUser() method in PhoneAccountSettingsFragment
522 return userManager.isPrimaryUser(); in isPrimaryUser()
DVoicemailSettingsActivity.java215 if (!userManager.isPrimaryUser()) { in onCreate()
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java73 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()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberProvider.java455 return userManager.isPrimaryUser(); in canCurrentUserBlockUsers()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallsManager.java527 if (userManager.isPrimaryUser()) { in CallsManager()