/packages/apps/Settings/src/com/android/settings/utils/ |
ProfileSettingsPreferenceFragment.java | 22 import android.os.UserHandle; 50 UserHandle selectedUser = profileSpinnerAdapter.getUserHandle(position); 51 if (selectedUser.getIdentifier() != UserHandle.myUserId()) {
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
RestrictionUtils.java | 23 import android.os.UserHandle; 50 public static ArrayList<RestrictionEntry> getRestrictions(Context context, UserHandle user) { 70 UserHandle user) {
|
UserSwitchListenerService.java | 31 import android.os.UserHandle; 59 "boot completed, user is " + UserHandle.myUserId() 63 if (UserHandle.myUserId() != bootUserId) { 97 return prefs.getInt(ON_BOOT_USER_ID_PREFERENCE, UserHandle.USER_SYSTEM);
|
/packages/services/Telephony/src/com/android/phone/ |
RestrictedSwitchPreference.java | 20 import android.os.UserHandle; 71 UserHandle user = UserHandle.of(um.getUserHandle());
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
AccountManagerServiceTest.java | 40 import android.os.UserHandle; 73 SQLiteDatabase.deleteDatabase(new File(mAms.getCeDatabaseName(UserHandle.USER_SYSTEM))); 74 SQLiteDatabase.deleteDatabase(new File(mAms.getDeDatabaseName(UserHandle.USER_SYSTEM))); 75 SQLiteDatabase.deleteDatabase(new File(mAms.getPreNDatabaseName(UserHandle.USER_SYSTEM))); 227 Account[] accounts = ams2.getAccounts(UserHandle.USER_SYSTEM, mContext.getOpPackageName()); 232 String ceDatabaseName = mAms.getCeDatabaseName(UserHandle.USER_SYSTEM); 237 ams2.onUserUnlocked(newIntentForUser(UserHandle.USER_SYSTEM)); 240 accounts = ams2.getAccounts(UserHandle.USER_SYSTEM, mContext.getOpPackageName()); 246 String preNDatabaseName = mAms.getPreNDatabaseName(UserHandle.USER_SYSTEM); 267 String deDatabaseName = mAms.getDeDatabaseName(UserHandle.USER_SYSTEM) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
BridgePackageManager.java | 53 import android.os.UserHandle; 109 public int getPackageUidAsUser(String packageName, int userHandle) throws NameNotFoundException { 114 public int getPackageUidAsUser(String packageName, int flags, int userHandle) throws NameNotFoundException { 221 public void grantRuntimePermission(String packageName, String permissionName, UserHandle user) { 226 UserHandle user) { 230 public int getPermissionFlags(String permissionName, String packageName, UserHandle user) { 236 int flagValues, UserHandle user) { 499 public Drawable getUserBadgedIcon(Drawable icon, UserHandle user) { 504 public Drawable getUserBadgedDrawableForDensity(Drawable drawable, UserHandle user, 510 public Drawable getUserBadgeForDensity(UserHandle user, int density) [all...] |
/frameworks/base/services/core/java/com/android/server/ |
LockSettingsService.java | 56 import android.os.UserHandle; 181 public void onUnlockUser(int userHandle) { 182 mLockSettingsService.onUnlockUser(userHandle); 186 public void onCleanupUser(int userHandle) { 187 mLockSettingsService.onCleanupUser(userHandle); 273 mContext.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL, filter, null, null); 302 UserHandle userHandle = user.getUserHandle(); 303 if (!mUserManager.isUserUnlockingOrUnlocked(userHandle)) { 305 showEncryptionNotification(userHandle); [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
DevicePolicyManagerTest.java | 33 import android.os.UserHandle; 131 final Map<Pair<String, UserHandle>, Bundle> appRestrictions = new HashMap<>(); 139 UserHandle user = (UserHandle) invocation.getArguments()[2]; 146 anyString(), any(Bundle.class), any(UserHandle.class)); 153 UserHandle user = (UserHandle) invocation.getArguments()[1]; 158 anyString(), any(UserHandle.class)); 315 final int ANOTHER_ADMIN_UID = UserHandle.getUid(ANOTHER_USER_ID, 20456); 553 dpm.setActiveAdmin(admin2, /* refreshing= */ true, UserHandle.USER_SYSTEM) 2140 Settings.Secure.getUriFor(Settings.Secure.USER_SETUP_COMPLETE), userhandle); local [all...] |
/frameworks/base/core/java/android/hardware/fingerprint/ |
IFingerprintServiceLockoutResetCallback.aidl | 20 import android.os.UserHandle;
|
/frameworks/base/core/java/android/service/trust/ |
ITrustAgentServiceCallback.aidl | 20 import android.os.UserHandle;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
RestrictedLockUtils.java | 28 import android.os.UserHandle; 67 * {@link UserHandle#USER_NULL}. 78 UserHandle.of(userId)); 106 return um.hasBaseUserRestriction(userRestriction, UserHandle.of(userId)); 117 * {@link UserHandle#USER_NULL}. 275 UserHandle userHandle = UserHandle.of(userId); 276 if (dpm.getCrossProfileContactsSearchDisabled(userHandle) 277 && dpm.getCrossProfileCallerIdDisabled(userHandle)) { [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/ |
UserGridView.java | 20 import android.os.UserHandle; 40 private int mPendingUserId = UserHandle.USER_NULL; 55 mPendingUserId = UserHandle.USER_NULL; 107 mPendingUserId = UserHandle.USER_NULL;
|
/frameworks/base/services/core/java/com/android/server/location/ |
LocationBlacklist.java | 23 import android.os.UserHandle; 53 private int mCurrentUserId = UserHandle.USER_SYSTEM; 62 BLACKLIST_CONFIG_NAME), false, this, UserHandle.USER_ALL); 64 // WHITELIST_CONFIG_NAME), false, this, UserHandle.USER_ALL);
|
/frameworks/base/test-runner/src/android/test/mock/ |
MockContext.java | 43 import android.os.UserHandle; 396 public void sendBroadcastAsUser(Intent intent, UserHandle user) { 401 public void sendBroadcastAsUser(Intent intent, UserHandle user, 408 public void sendBroadcastAsUser(Intent intent, UserHandle user, 414 public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, 422 public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, 430 public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, 454 public void sendStickyBroadcastAsUser(Intent intent, UserHandle user) { 460 public void sendStickyBroadcastAsUser(Intent intent, UserHandle user, Bundle options) { 466 UserHandle user, BroadcastReceiver resultReceiver [all...] |
/frameworks/base/services/backup/java/com/android/server/backup/ |
Trampoline.java | 32 import android.os.UserHandle; 67 if (whichUser == UserHandle.USER_SYSTEM) { 84 public void setBackupServiceActive(final int userHandle, boolean makeActive) { 97 if (userHandle == UserHandle.USER_SYSTEM) { 99 if (makeActive != isBackupServiceActive(userHandle)) { 101 + (makeActive ? "" : "in") + "active in user " + userHandle); 121 * @param userHandle The user in which the activity state of backup service is queried. 124 public boolean isBackupServiceActive(final int userHandle) { 126 if (userHandle == UserHandle.USER_SYSTEM) [all...] |
/packages/apps/Settings/src/com/android/settings/notification/ |
ConfigureNotificationSettings.java | 26 import android.os.UserHandle; 78 UserManager.get(mContext), UserHandle.myUserId()); 84 mSecure = utils.isSecure(UserHandle.myUserId()); 85 mSecureProfile = (mProfileChallengeUserId != UserHandle.USER_NULL) 93 if (mProfileChallengeUserId != UserHandle.USER_NULL) { 282 mContext, keyguardNotificationFeatures, UserHandle.myUserId()); 288 if (mProfileChallengeUserId != UserHandle.USER_NULL) { 304 final boolean enabled = getLockscreenNotificationsEnabled(UserHandle.myUserId()); 306 || getLockscreenAllowPrivateNotifications(UserHandle.myUserId()); 314 if (mProfileChallengeUserId == UserHandle.USER_NULL) [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
SettingsFacade.java | 27 import android.os.UserHandle; 230 // mLockPatternUtils.setLockPatternEnabled(true, UserHandle.myUserId()); 231 mLockPatternUtils.setLockScreenDisabled(false, UserHandle.myUserId()); 234 DevicePolicyManager.PASSWORD_QUALITY_NUMERIC, UserHandle.myUserId()); 240 // mLockPatternUtils.setLockPatternEnabled(false, UserHandle.myUserId()); 241 mLockPatternUtils.setLockScreenDisabled(true, UserHandle.myUserId()); 244 mLockPatternUtils.clearLock(UserHandle.myUserId()); 245 mLockPatternUtils.setLockScreenDisabled(true, UserHandle.myUserId());
|
/frameworks/base/core/java/android/content/pm/ |
UserInfo.java | 22 import android.os.UserHandle; 90 public static final int NO_PROFILE_GROUP_ID = UserHandle.USER_NULL; 171 return userId == UserHandle.USER_SYSTEM && UserManager.isSplitSystemUser(); 192 return (!hideSystemUser || id != UserHandle.USER_SYSTEM) && supportsSwitchTo(); 201 return id != UserHandle.USER_SYSTEM; 203 return id == UserHandle.USER_SYSTEM; 225 public UserHandle getUserHandle() { 226 return new UserHandle(id);
|
/frameworks/base/docs/html/sdk/api_diff/n-preview-4-incr/changes/ |
android.content.pm.LauncherApps.html | 93 <A NAME="android.content.pm.LauncherApps.getShortcutIconFd_removed(java.lang.String, java.lang.String, android.os.UserHandle)"></A> 94 <nobr><code>ParcelFileDescriptor</code> getShortcutIconFd(<code>String,</nobr> String<nobr>,</nobr> UserHandle<nobr><nobr></code>)</nobr> 100 <A NAME="android.content.pm.LauncherApps.getShortcuts_removed(android.content.pm.LauncherApps.ShortcutQuery, android.os.UserHandle)"></A> 101 <nobr><code>List<ShortcutInfo></code> getShortcuts(<code>ShortcutQuery,</nobr> UserHandle<nobr><nobr></code>)</nobr> 114 <A NAME="android.content.pm.LauncherApps.pinShortcuts_removed(java.lang.String, java.util.List<java.lang.String>, android.os.UserHandle)"></A> 115 <nobr><code>void</code> pinShortcuts(<code>String,</nobr> List<String><nobr>,</nobr> UserHandle<nobr><nobr></code>)</nobr> 128 <A NAME="android.content.pm.LauncherApps.startShortcut_removed(java.lang.String, java.lang.String, android.graphics.Rect, android.os.Bundle, android.os.UserHandle)"></A> 129 <nobr><code>boolean</code> startShortcut(<code>String,</nobr> String<nobr>,</nobr> Rect<nobr>,</nobr> Bundle<nobr>,</nobr> UserHandle<nobr><nobr></code>)</nobr>
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/ |
AuthenticatorHelper.java | 32 import android.os.UserHandle; 43 * {@link OnAccountsUpdateListener#onAccountsUpdate(UserHandle)} will then be 56 private final UserHandle mUserHandle; 62 void onAccountsUpdate(UserHandle userHandle); 65 public AuthenticatorHelper(Context context, UserHandle userHandle, 68 mUserHandle = userHandle;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
RotationLockControllerImpl.java | 20 import android.os.UserHandle; 74 UserHandle.USER_ALL);
|
/frameworks/base/services/core/java/com/android/server/am/ |
UidRecord.java | 21 import android.os.UserHandle; 64 UserHandle.formatUid(sb, uid);
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
SingleUserProvider.java | 24 import android.os.UserHandle; 63 res.putInt("user", UserHandle.myUserId());
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiConfigurationUtil.java | 21 import android.os.UserHandle; 41 final int creatorUserId = UserHandle.getUserId(config.creatorUid);
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastBackupAgent.java | 22 import android.os.UserHandle; 52 sendBroadcastAsUser(intent, UserHandle.SYSTEM);
|