Home
last modified time | relevance | path

Searched refs:MY_USER_ID (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java55 private static final int MY_USER_ID = UserHandle.myUserId(); field in EnterprisePrivacyFeatureProviderImpl
136 return VpnUtils.isAlwaysOnVpnSet(mVm, MY_USER_ID); in isAlwaysOnVpnSetInCurrentUser()
150 owner = mDpm.getProfileOwnerAsUser(MY_USER_ID); in getMaximumFailedPasswordsBeforeWipeInCurrentUser()
155 return mDpm.getMaximumFailedPasswordsForWipe(owner, MY_USER_ID); in getMaximumFailedPasswordsBeforeWipeInCurrentUser()
177 Settings.Secure.DEFAULT_INPUT_METHOD, MY_USER_ID); in getImeLabelIfOwnerSet()
182 return mPm.getApplicationInfoAsUser(packageName, 0 /* flags */, MY_USER_ID) in getImeLabelIfOwnerSet()
191 final List<String> certs = mDpm.getOwnerInstalledCaCerts(new UserHandle(MY_USER_ID)); in getNumberOfOwnerInstalledCaCertsForCurrentUser()
214 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getNumberOfActiveDeviceAdminsForCurrentUserAndManagedProfile()
260 mDpm.getProfileOwnerOrDeviceOwnerSupervisionComponent(new UserHandle(MY_USER_ID)); in getParentalControlsIntent()
268 final List<ResolveInfo> activities = mPm.queryIntentActivitiesAsUser(intent, 0, MY_USER_ID); in getParentalControlsIntent()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java53 private static final int MY_USER_ID = UserHandle.myUserId(); field in EnterprisePrivacyFeatureProviderImpl
137 return mVm.getAlwaysOnVpnPackageForUser(MY_USER_ID) != null; in isAlwaysOnVpnSetInCurrentUser()
151 owner = mDpm.getProfileOwnerAsUser(MY_USER_ID); in getMaximumFailedPasswordsBeforeWipeInCurrentUser()
156 return mDpm.getMaximumFailedPasswordsForWipe(owner, MY_USER_ID); in getMaximumFailedPasswordsBeforeWipeInCurrentUser()
178 Settings.Secure.DEFAULT_INPUT_METHOD, MY_USER_ID); in getImeLabelIfOwnerSet()
183 return mPm.getApplicationInfoAsUser(packageName, 0 /* flags */, MY_USER_ID) in getImeLabelIfOwnerSet()
192 final List<String> certs = mDpm.getOwnerInstalledCaCerts(new UserHandle(MY_USER_ID)); in getNumberOfOwnerInstalledCaCertsForCurrentUser()
215 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getNumberOfActiveDeviceAdminsForCurrentUserAndManagedProfile()
260 mDpm.getProfileOwnerOrDeviceOwnerSupervisionComponent(new UserHandle(MY_USER_ID)); in getParentalControlsIntent()
268 final List<ResolveInfo> activities = mPm.queryIntentActivitiesAsUser(intent, 0, MY_USER_ID); in getParentalControlsIntent()
[all …]
/packages/apps/Settings/src/com/android/settings/security/screenlock/
DScreenLockSettings.java40 private static final int MY_USER_ID = UserHandle.myUserId(); field in ScreenLockSettings
73 context, MY_USER_ID, lockPatternUtils)); in buildPreferenceControllers()
75 context, MY_USER_ID, lockPatternUtils)); in buildPreferenceControllers()
77 context, MY_USER_ID, lockPatternUtils)); in buildPreferenceControllers()
DLockScreenPreferenceController.java35 private static final int MY_USER_ID = UserHandle.myUserId(); field in LockScreenPreferenceController
/packages/apps/Settings/src/com/android/settings/security/
DOwnerInfoPreferenceController.java42 private static final int MY_USER_ID = UserHandle.myUserId(); field in OwnerInfoPreferenceController
101 mOwnerInfoPref.setEnabled(!mLockPatternUtils.isLockScreenDisabled(MY_USER_ID)); in updateEnableState()
132 return mLockPatternUtils.isOwnerInfoEnabled(MY_USER_ID); in isOwnerInfoEnabled()
137 return mLockPatternUtils.getOwnerInfo(MY_USER_ID); in getOwnerInfo()
DShowPasswordPreferenceController.java31 private static final int MY_USER_ID = UserHandle.myUserId(); field in ShowPasswordPreferenceController
51 mLockPatternUtils.setVisiblePasswordEnabled(isChecked, MY_USER_ID); in setChecked()
DLockUnificationPreferenceController.java66 private static final int MY_USER_ID = UserHandle.myUserId(); field in LockUnificationPreferenceController
101 mProfileUserId = Utils.getManagedProfileId(mUm, MY_USER_ID); in LockUnificationPreferenceController()
135 .setUserId(MY_USER_ID) in onPreferenceChange()
/packages/apps/Settings/src/com/android/settings/utils/
DContentCaptureUtils.java33 private static final int MY_USER_ID = UserHandle.myUserId(); field in ContentCaptureUtils
37 Settings.Secure.CONTENT_CAPTURE_ENABLED, 1, MY_USER_ID) == 1; in isEnabledForUser()
43 Settings.Secure.CONTENT_CAPTURE_ENABLED, enabled ? 1 : 0, MY_USER_ID); in setEnabledForUser()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DWorkPolicyInfoPreferenceController.java44 private static final int MY_USER_ID = UserHandle.myUserId(); field in WorkPolicyInfoPreferenceController
63 LOG.d("Constructed on user " + MY_USER_ID + ": " + (mEnabled ? "enabled" : "disabled")); in WorkPolicyInfoPreferenceController()
94 LOG.d("no profile owner for user " + MY_USER_ID + ")"); in updateIntent()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/
DCrossProfileAppsPregrantControllerTest.java54 private static final int MY_USER_ID = 0; field in CrossProfileAppsPregrantControllerTest
155 MY_USER_ID, OTHER_USER_ID, /* profileName= */"otherUser", FLAG_MANAGED_PROFILE); in setRunningOnParentProfile()
160 MY_USER_ID, OTHER_USER_ID, /* profileName= */"otherUser", FLAG_MANAGED_PROFILE); in setRunningOnManagedProfile()
/packages/apps/Settings/src/com/android/settings/security/trustagent/
DManageTrustAgentsPreferenceController.java35 private static final int MY_USER_ID = UserHandle.myUserId(); field in ManageTrustAgentsPreferenceController
61 if (!mLockPatternUtils.isSecure(MY_USER_ID)) { in updateState()
DTrustAgentListPreferenceController.java62 private static final int MY_USER_ID = UserHandle.myUserId(); field in TrustAgentListPreferenceController
206 final boolean hasSecurity = mLockPatternUtils.isSecure(MY_USER_ID); in updateTrustAgents()
/packages/providers/MediaProvider/jni/
DFuseDaemon.cpp113 const int MY_USER_ID = MY_UID / PER_USER_RANGE; variable
2083 if (MY_USER_ID != 0 && mp.IsAppCloneUser(MY_USER_ID)) { in Start()