Home
last modified time | relevance | path

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

12

/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/
DCarUiPortraitSystemUIInitializer.java50 boolean isSystemUser = UserHandle.myUserId() == UserHandle.USER_SYSTEM; in prepareSysUIComponentBuilder()
52 if (mRegisterCarSystemUIProxy && isSystemUser) { in prepareSysUIComponentBuilder()
56 isSystemUser ? Optional.of(carWm.getRootTaskDisplayAreaOrganizer()) in prepareSysUIComponentBuilder()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DDeviceAdminAddPoliciesPreferenceController.java56 boolean isSystemUser = mUm.isSystemUser(); in getPolicyText()
60 int labelId = isSystemUser ? pi.label : pi.labelForSecondaryUsers; in getPolicyText()
/packages/services/Car/libs/procfs-inspector/server/
Dserver.cpp23 static bool isSystemUser() { in isSystemUser() function
60 if (isSystemUser()) { in onTransact()
/packages/apps/Car/SystemUI/src/com/android/systemui/
DCarSystemUIInitializer.java48 boolean isSystemUser = UserHandle.myUserId() == UserHandle.USER_SYSTEM; in prepareSysUIComponentBuilder()
50 isSystemUser ? Optional.of(carWm.getRootTaskDisplayAreaOrganizer()) in prepareSysUIComponentBuilder()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictedProfilePinService.java43 mBinder = isSystemUser() ? new PinServiceImpl(this) : null; in onCreate()
56 private boolean isSystemUser() { in isSystemUser() method in RestrictedProfilePinService
DUserSwitchListenerService.java63 if (UserManager.get(context).isSystemUser()) { in onReceive()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DDeviceAdminAddPoliciesPreferenceControllerTest.java222 private void updateStateTest(boolean isSystemUser) { in updateStateTest() argument
224 if (isSystemUser) { in updateStateTest()
241 .getText(isSystemUser ? policy.label : policy.labelForSecondaryUsers); in updateStateTest()
DBaseEnterpriseTestCase.java225 when(mUm.isSystemUser()).thenReturn(true); in mockSystemUser()
229 when(mUm.isSystemUser()).thenReturn(false); in mockNonSystemUser()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DFileUtils.java52 Preconditions.checkArgument(context.getSystemService(UserManager.class).isSystemUser(), in getPendingDir()
64 Preconditions.checkArgument(!context.getSystemService(UserManager.class).isSystemUser(), in getTempDir()
DStartUpBootReceiver.java44 if (!userManager.isSystemUser()) { in onReceive()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastReceiver.java559 if (isSystemUser()) { in initializeSharedPreference()
735 private boolean isSystemUser() { in isSystemUser() method in CellBroadcastReceiver
736 return isSystemUser(mContext); in isSystemUser()
752 private static boolean isSystemUser(Context context) { in isSystemUser() method in CellBroadcastReceiver
754 return userManager.isSystemUser(); in isSystemUser()
763 if (isSystemUser(context)) { in startConfigService()
DCellBroadcastContentProvider.java459 if (!userManager.isSystemUser()) { in writeMessageToSmsInbox()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastReceiverTest.java140 doReturn(false).when(mUserManager).isSystemUser(); in setUp()
237 doReturn(true).when(mUserManager).isSystemUser(); in testInitializeSharedPreference_ifSystemUser_invalidSub()
269 doReturn(true).when(mUserManager).isSystemUser(); in testInitializeSharedPreference_ifSystemUser_firstSub()
302 doReturn(true).when(mUserManager).isSystemUser(); in testInitializeSharedPreference_ifSystemUser_carrierChange()
332 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()
DCellBroadcastInternalReceiverTest.java62 doReturn(false).when(mUserManager).isSystemUser(); in setUp()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/v35/
DRetailDemoRoleBehavior.java62 return userUserManager.isSystemUser() || userUserManager.isMainUser() in isAvailableAsUser()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DExperimentalCarUserServiceTest.java93 when(mMockedUserManager.isSystemUser()).thenReturn(true); in testCreateAdminDriver_IfCurrentUserIsAdminUser()
109 when(mMockedUserManager.isSystemUser()).thenReturn(false); in testCreateAdminDriver_IfCurrentUserIsNotSystemUser()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DSafetyCenterTestHelper.kt180 if (userManager.isSystemUser) { in setEnabledWaitingForSafetyCenterBroadcastIdle()
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/
DImsEntitlementReceiver.java74 if (!dependencies.userManager.isSystemUser() in onReceive()
/packages/services/Car/service/src/com/android/car/pm/
DVendorServiceController.java307 boolean isSystemUser = userId == UserHandle.SYSTEM.getIdentifier(); in isUserInScope()
310 return (isSystemUser && serviceInfo.isSystemUserService()) in isUserInScope()
/packages/services/Telephony/src/com/android/phone/
DSpecialCharSequenceMgr.java243 if (userManager.isSystemUser()) { in handlePinEntry()
/packages/apps/Dialer/java/com/android/dialer/app/settings/
DDialerSettingsActivity.java327 return getSystemService(UserManager.class).isSystemUser(); in isPrimaryUser()
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/
DImsEntitlementReceiverTest.java131 when(mMockUserManager.isSystemUser()).thenReturn(true); in setUp()
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetyCenterUnsupportedTest.kt183 assumeTrue(context.getSystemService(UserManager::class.java)!!.isSystemUser) in safetyCenterEnabledChanged_withImplicitReceiver_doesntCallReceiver()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfileHelper.java325 if (!(mUserManager.isAdminUser() || mUserManager.isSystemUser())) { in createNewAdminProfile()

12