Home
last modified time | relevance | path

Searched refs:isPrimaryUser (Results 1 – 9 of 9) 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/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/bluetoothKeystore/
DBluetoothKeystoreServiceTest.java122 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
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DLauncherAppsCompatVL.java80 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()
/packages/services/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java157 if (isPrimaryUser() && SipUtil.isVoipSupported(getActivity())) { in onResume()
518 private boolean isPrimaryUser() { in isPrimaryUser() method in PhoneAccountSettingsFragment
521 return userManager.isPrimaryUser(); in isPrimaryUser()
DVoicemailSettingsActivity.java216 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.java580 if (userManager.isPrimaryUser()) { in CallsManager()