/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/ |
D | CarUiPortraitSystemUIInitializer.java | 50 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/ |
D | DeviceAdminAddPoliciesPreferenceController.java | 56 boolean isSystemUser = mUm.isSystemUser(); in getPolicyText() 60 int labelId = isSystemUser ? pi.label : pi.labelForSecondaryUsers; in getPolicyText()
|
/packages/services/Car/libs/procfs-inspector/server/ |
D | server.cpp | 23 static bool isSystemUser() { in isSystemUser() function 60 if (isSystemUser()) { in onTransact()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/ |
D | CarSystemUIInitializer.java | 48 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/ |
D | RestrictedProfilePinService.java | 43 mBinder = isSystemUser() ? new PinServiceImpl(this) : null; in onCreate() 56 private boolean isSystemUser() { in isSystemUser() method in RestrictedProfilePinService
|
D | UserSwitchListenerService.java | 63 if (UserManager.get(context).isSystemUser()) { in onReceive()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/ |
D | DeviceAdminAddPoliciesPreferenceControllerTest.java | 222 private void updateStateTest(boolean isSystemUser) { in updateStateTest() argument 224 if (isSystemUser) { in updateStateTest() 241 .getText(isSystemUser ? policy.label : policy.labelForSecondaryUsers); in updateStateTest()
|
D | BaseEnterpriseTestCase.java | 225 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/ |
D | FileUtils.java | 52 Preconditions.checkArgument(context.getSystemService(UserManager.class).isSystemUser(), in getPendingDir() 64 Preconditions.checkArgument(!context.getSystemService(UserManager.class).isSystemUser(), in getTempDir()
|
D | StartUpBootReceiver.java | 44 if (!userManager.isSystemUser()) { in onReceive()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastReceiver.java | 559 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()
|
D | CellBroadcastContentProvider.java | 459 if (!userManager.isSystemUser()) { in writeMessageToSmsInbox()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastReceiverTest.java | 140 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()
|
D | CellBroadcastContentProviderTest.java | 203 doReturn(true).when(mUserManager).isSystemUser(); in testWriteSmsInboxBeforeUserUnlock() 219 doReturn(false).when(mUserManager).isSystemUser(); in testWriteSmsInboxNonSystemUser()
|
D | CellBroadcastInternalReceiverTest.java | 62 doReturn(false).when(mUserManager).isSystemUser(); in setUp()
|
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/v35/ |
D | RetailDemoRoleBehavior.java | 62 return userUserManager.isSystemUser() || userUserManager.isMainUser() in isAvailableAsUser()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | ExperimentalCarUserServiceTest.java | 93 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/ |
D | SafetyCenterTestHelper.kt | 180 if (userManager.isSystemUser) { in setEnabledWaitingForSafetyCenterBroadcastIdle()
|
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/ |
D | ImsEntitlementReceiver.java | 74 if (!dependencies.userManager.isSystemUser() in onReceive()
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | VendorServiceController.java | 307 boolean isSystemUser = userId == UserHandle.SYSTEM.getIdentifier(); in isUserInScope() 310 return (isSystemUser && serviceInfo.isSystemUserService()) in isUserInScope()
|
/packages/services/Telephony/src/com/android/phone/ |
D | SpecialCharSequenceMgr.java | 243 if (userManager.isSystemUser()) { in handlePinEntry()
|
/packages/apps/Dialer/java/com/android/dialer/app/settings/ |
D | DialerSettingsActivity.java | 327 return getSystemService(UserManager.class).isSystemUser(); in isPrimaryUser()
|
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/ |
D | ImsEntitlementReceiverTest.java | 131 when(mMockUserManager.isSystemUser()).thenReturn(true); in setUp()
|
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/ |
D | SafetyCenterUnsupportedTest.kt | 183 assumeTrue(context.getSystemService(UserManager::class.java)!!.isSystemUser) in safetyCenterEnabledChanged_withImplicitReceiver_doesntCallReceiver()
|
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/ |
D | ProfileHelper.java | 325 if (!(mUserManager.isAdminUser() || mUserManager.isSystemUser())) { in createNewAdminProfile()
|