Home
last modified time | relevance | path

Searched refs:isSystemUser (Results 1 – 20 of 20) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DUserSwitchListenerService.java48 boolean isSystemUser = UserManager.get(context).isSystemUser(); in onReceive()
49 if (isSystemUser) { in onReceive()
DRestrictedProfilePinService.java43 mBinder = isSystemUser() ? new PinServiceImpl(this) : null; in onCreate()
56 private boolean isSystemUser() { in isSystemUser() method in RestrictedProfilePinService
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastReceiver.java370 if (isSystemUser()) { in initializeSharedPreference()
545 private boolean isSystemUser() { in isSystemUser() method in CellBroadcastReceiver
546 return isSystemUser(mContext); in isSystemUser()
562 private static boolean isSystemUser(Context context) { in isSystemUser() method in CellBroadcastReceiver
564 return userManager.isSystemUser(); in isSystemUser()
572 if (isSystemUser(context)) { in startConfigService()
DCellBroadcastContentProvider.java452 if (!userManager.isSystemUser()) { in writeMessageToSmsInbox()
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/
DImsEntitlementReceiverTest.java119 when(mMockUserManager.isSystemUser()).thenReturn(true); in setUp()
170 when(mMockUserManager.isSystemUser()).thenReturn(true); in onReceive_isSystemUser_jobScheduled()
180 when(mMockUserManager.isSystemUser()).thenReturn(false); in onReceive_notSystemUser_noJobScheduled()
/packages/services/Car/procfs-inspector/server/
Dserver.cpp23 static bool isSystemUser() { in isSystemUser() function
61 if (isSystemUser()) { in onTransact()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastReceiverTest.java127 doReturn(false).when(mUserManager).isSystemUser(); in setUp()
214 doReturn(true).when(mUserManager).isSystemUser(); in testInitializeSharedPreference_ifSystemUser_invalidSub()
234 doReturn(true).when(mUserManager).isSystemUser(); in testInitializeSharedPreference_ifSystemUser_firstSub()
267 doReturn(true).when(mUserManager).isSystemUser(); in testInitializeSharedPreference_ifSystemUser_carrierChange()
291 doReturn(false).when(mUserManager).isSystemUser(); in testInitializeSharedPreference_ifNotSystemUser()
DCellBroadcastContentProviderTest.java203 doReturn(true).when(mUserManager).isSystemUser(); in testWriteSmsInboxBeforeUserUnlock()
219 doReturn(false).when(mUserManager).isSystemUser(); in testWriteSmsInboxNonSystemUser()
/packages/apps/Car/SystemUI/src/com/android/systemui/
DCarSystemUIFactory.java69 boolean isSystemUser = UserHandle.myUserId() == UserHandle.USER_SYSTEM; in prepareSysUIComponentBuilder()
71 isSystemUser ? Optional.of(carWm.getRootTaskDisplayAreaOrganizer()) in prepareSysUIComponentBuilder()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DStartUpBootReceiver.java44 if (!userManager.isSystemUser()) { in onReceive()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMapUtils.java36 static boolean isSystemUser() { in isSystemUser() method in MapUtils
DMapClientService.java465 if (!(MapUtils.isSystemUser() || Utils.checkCallerIsSystemOrActiveUser(TAG)) in getService()
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/
DImsEntitlementReceiver.java70 if (!dependencies.userManager.isSystemUser() in onReceive()
/packages/services/Telephony/src/com/android/phone/
DSpecialCharSequenceMgr.java239 if (userManager.isSystemUser()) { in handlePinEntry()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java263 return userManager.isManagedProfile() && !userManager.isSystemUser();
/packages/apps/Dialer/java/com/android/dialer/app/settings/
DDialerSettingsActivity.java327 return getSystemService(UserManager.class).isSystemUser(); in isPrimaryUser()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileHelper.java293 if (!(mUserManager.isAdminUser() || mUserManager.isSystemUser())) { in createNewAdminProfile()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DCallLogProvider.java959 if (userManager.isSystemUser()) { in syncEntries()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java662 when(mMockedUserManager.isSystemUser()).thenReturn(true); in testCreateAdminDriver_IfCurrentUserIsAdminUser()
676 when(mMockedUserManager.isSystemUser()).thenReturn(false); in testCreateAdminDriver_IfCurrentUserIsNotSystemUser()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java500 if (!(mUserManager.isAdminUser() || mUserManager.isSystemUser())) { in createDriver()