Home
last modified time | relevance | path

Searched refs:mAdmin (Results 1 – 25 of 32) sorted by relevance

12

/packages/services/Car/car-lib/src/android/car/user/
DUserCreationRequest.java41 private final boolean mAdmin; field in UserCreationRequest
47 this.mAdmin = builder.mAdmin; in UserCreationRequest()
55 private boolean mAdmin; field in UserCreationRequest.Builder
71 mAdmin = true; in setAdmin()
93 if (mGuest && mAdmin) { in build()
106 + "admin = " + mAdmin + ", " in toString()
135 return mAdmin; in isAdmin()
155 if (mAdmin) flg |= 0x2; in writeToParcel()
181 this.mAdmin = admin; in UserCreationRequest()
/packages/services/Car/tests/CarTestDpc/src/com/android/car/testdpc/remotedpm/
DLocalDevicePolicyManager.java30 private final ComponentName mAdmin; field in LocalDevicePolicyManager
35 mAdmin = admin; in LocalDevicePolicyManager()
46 int status = mDpm.startUserInBackground(mAdmin, target); in startUserInBackground()
53 Log.d(TAG, "Calling local reboot(" + mAdmin + ")"); in reboot()
54 mDpm.reboot(mAdmin); in reboot()
59 Log.d(TAG, "Calling local addUserRestriction(" + mAdmin + ", " + key + ")"); in addUserRestriction()
60 mDpm.addUserRestriction(mAdmin, key); in addUserRestriction()
DRemoteDevicePolicyManager.java50 private final ComponentName mAdmin; field in RemoteDevicePolicyManager
78 mAdmin = admin; in RemoteDevicePolicyManager()
137 run(remotedpm -> remotedpm.reboot(mAdmin), "reboot(%s)", mAdmin); in reboot()
142 run(remotedpm -> remotedpm.addUserRestriction(mAdmin, key), in addUserRestriction()
143 "addUserRestriction(%s, %s)", mAdmin, key); in addUserRestriction()
150 run(remotedpm -> mDpm.startUserInBackground(mAdmin, target), in startUserInBackground()
151 "startUserInBackground(%s, %s)", mAdmin, target); in startUserInBackground()
/packages/services/Car/tests/CarTestDpc/src/com/android/car/testdpc/
DDpcShellCommand.java45 private final ComponentName mAdmin; field in DpcShellCommand
75 mAdmin = new ComponentName(context, DpcReceiver.class.getName()); in DpcShellCommand()
80 Log.d(TAG, "user=" + Process.myUserHandle() + ", component=" + mAdmin in DpcShellCommand()
211 mDpm.clearUserRestriction(mAdmin, restriction); in runClearUserRestriction()
215 Bundle restrictions = mDpm.getUserRestrictions(mAdmin); in runGetUserRestrictions()
225 Set<String> ids = mDpm.getAffiliationIds(mAdmin); in runGetAffiliationIds()
245 mDpm.setAffiliationIds(mAdmin, idSet); in runSetAffiliationIds()
265 UserHandle user = mDpm.createAndManageUser(mAdmin, userId, mAdmin, in runCreateAndManageUser()
277 boolean success = mDpm.removeUser(mAdmin, user); in runRemoveUser()
288 int status = mDpm.startUserInBackground(mAdmin, user); in runStartUserBackground()
[all …]
DDpcFactory.java42 private final ComponentName mAdmin; field in DpcFactory
47 mAdmin = DpcReceiver.getComponentName(context); in DpcFactory()
58 List<UserHandle> targetUsers = mDpm.getBindDeviceAdminTargetUsers(mAdmin); in assignDevicePolicyManagers()
63 u -> u, u -> new RemoteDevicePolicyManager(mAdmin, mContext, u)) in assignDevicePolicyManagers()
67 new LocalDevicePolicyManager(mAdmin, mContext)); in assignDevicePolicyManagers()
72 new RemoteDevicePolicyManager(mAdmin, mContext, target)); in addProfileOwnerDpm()
94 new RemoteDevicePolicyManager(mAdmin, mContext, target)); in getDevicePolicyManager()
DDpcService.java44 private ComponentName mAdmin; field in DpcService
56 mAdmin = DpcReceiver.getComponentName(mContext); in onCreate()
59 mDpm.setAffiliationIds(mAdmin, AFFILIATION_IDS); in onCreate()
60 Log.i(TAG, "setAffiliationIds(" + mAdmin.flattenToShortString() + ", " in onCreate()
85 writer.printf("Admin Component Name: %s\n", mAdmin.flattenToShortString()); in printInternalState()
DDpcActivity.java41 private ComponentName mAdmin; field in DpcActivity
62 mAdmin = DpcReceiver.getComponentName(mContext); in onCreate()
64 Log.d(TAG, "onCreate(): user= " + Process.myUserHandle() + ", admin=" + mAdmin); in onCreate()
136 restrictions = dpm.getUserRestrictions(mAdmin); in uiDisplayUserRestrictions()
/packages/apps/Settings/src/com/android/settings/display/
DTimeoutListPreference.java44 private EnforcedAdmin mAdmin; field in TimeoutListPreference
58 if (mAdmin != null) { in onPrepareDialogBuilder()
83 if (mAdmin != null) { in onDialogCreated()
90 getContext(), mAdmin); in onDialogCreated()
103 if (admin == null && mAdmin == null && !isDisabledByAdmin()) { in removeUnusableTimeouts()
133 mAdmin = admin; in removeUnusableTimeouts()
DScreenTimeoutSettings.java93 @VisibleForTesting RestrictedLockUtils.EnforcedAdmin mAdmin; field in ScreenTimeoutSettings
233 if (mAdmin != null) { in updateCandidates()
268 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(getContext(), mAdmin); in setupDisabledFooterPreference()
323 mAdmin = RestrictedLockUtilsInternal.checkIfMaximumTimeToLockIsSet(context); in getMaxScreenTimeout()
324 if (mAdmin != null) { in getMaxScreenTimeout()
/packages/apps/Settings/src/com/android/settings/notification/app/
DAppChannelsBypassingDndPreferenceController.java85 mAllNotificationsToggle.setDisabledByAdmin(mAdmin); in displayPreference()
87 && (mAdmin == null || !mAllNotificationsToggle.isDisabledByAdmin())); in displayPreference()
187 channelPreference.setDisabledByAdmin(mAdmin); in populateList()
189 (mAdmin == null || !channelPreference.isDisabledByAdmin()) in populateList()
DBubblePreferenceController.java97 pref.setDisabledByAdmin(mAdmin); in updateState()
107 switchpref.setDisabledByAdmin(mAdmin); in updateState()
DNotificationPreferenceController.java52 protected RestrictedLockUtils.EnforcedAdmin mAdmin; field in NotificationPreferenceController
114 mAdmin = admin; in onResume()
DConversationPromotePreferenceController.java66 preference.setEnabled(mAdmin == null); in updateState()
DConversationDemotePreferenceController.java66 preference.setEnabled(mAdmin == null); in updateState()
DDndPreferenceController.java58 pref.setDisabledByAdmin(mAdmin); in updateState()
DInvalidConversationPreferenceController.java67 pref.setDisabledByAdmin(mAdmin); in updateState()
DVibrationPreferenceController.java65 pref.setDisabledByAdmin(mAdmin); in updateState()
DLightsPreferenceController.java65 pref.setDisabledByAdmin(mAdmin); in updateState()
DMinImportancePreferenceController.java71 preference.setEnabled(mAdmin == null && isChannelConfigurable(mChannel)); in updateState()
DHighImportancePreferenceController.java71 preference.setEnabled(mAdmin == null && isChannelConfigurable(mChannel)); in updateState()
DBadgePreferenceController.java86 pref.setDisabledByAdmin(mAdmin); in updateState()
DAllowSoundPreferenceController.java70 pref.setDisabledByAdmin(mAdmin); in updateState()
DConversationPriorityPreferenceController.java65 preference.setEnabled(mAdmin == null && isChannelConfigurable(mChannel)); in updateState()
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/
DUserTestingHelper.java220 private boolean mAdmin; field in UserTestingHelper.UserInfoBuilder
284 mAdmin = admin; in setAdmin()
306 if (mAdmin) { in build()
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DEditUserPhotoController.java424 private final RestrictedLockUtilsInternal.EnforcedAdmin mAdmin; field in EditUserPhotoController.RestrictedMenuItem
443 mAdmin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(context, in RestrictedMenuItem()
460 RestrictedLockUtilsInternal.sendShowAdminSupportDetailsIntent(mContext, mAdmin); in doAction()
468 return mAdmin != null; in isRestrictedByAdmin()

12