/frameworks/base/core/java/android/app/admin/ |
IDevicePolicyManager.aidl | 28 void setPasswordQuality(in ComponentName who, int quality, int userHandle); 29 int getPasswordQuality(in ComponentName who, int userHandle); 31 void setPasswordMinimumLength(in ComponentName who, int length, int userHandle); 32 int getPasswordMinimumLength(in ComponentName who, int userHandle); 34 void setPasswordMinimumUpperCase(in ComponentName who, int length, int userHandle); 35 int getPasswordMinimumUpperCase(in ComponentName who, int userHandle); 37 void setPasswordMinimumLowerCase(in ComponentName who, int length, int userHandle); 38 int getPasswordMinimumLowerCase(in ComponentName who, int userHandle); 40 void setPasswordMinimumLetters(in ComponentName who, int length, int userHandle); 41 int getPasswordMinimumLetters(in ComponentName who, int userHandle); [all...] |
DevicePolicyManager.java | 32 import android.os.UserHandle; 142 return mService.isAdminActive(who, UserHandle.myUserId()); 158 return mService.getActiveAdmins(UserHandle.myUserId()); 174 return mService.packageHasActiveAdmins(packageName, UserHandle.myUserId()); 191 mService.removeActiveAdmin(who, UserHandle.myUserId()); 210 return mService.hasGrantedPolicy(admin, usesPolicy, UserHandle.myUserId()); 302 mService.setPasswordQuality(admin, quality, UserHandle.myUserId()); 316 return getPasswordQuality(admin, UserHandle.myUserId()); 320 public int getPasswordQuality(ComponentName admin, int userHandle) { 323 return mService.getPasswordQuality(admin, userHandle); [all...] |
/frameworks/base/core/java/android/os/ |
IUserManager.aidl | 31 boolean removeUser(int userHandle); 32 void setUserName(int userHandle, String name); 33 void setUserIcon(int userHandle, in Bitmap icon); 34 Bitmap getUserIcon(int userHandle); 36 UserInfo getUserInfo(int userHandle); 40 void wipeUser(int userHandle); 41 int getUserSerialNumber(int userHandle); 43 Bundle getUserRestrictions(int userHandle); 44 void setUserRestrictions(in Bundle restrictions, int userHandle); 46 int userHandle); [all...] |
UserManager.java | 181 return UserHandle.myUserId(); 231 public boolean isUserRunning(UserHandle user) { 242 * This is like {@link #isUserRunning(UserHandle)}, but will also return 247 public boolean isUserRunningOrStopping(UserHandle user) { 259 * @param userHandle the user handle of the user whose information is being requested. 263 public UserInfo getUserInfo(int userHandle) { 265 return mService.getUserInfo(userHandle); 281 * Returns the user-wide restrictions imposed on the user specified by <code>userHandle</code>. 282 * @param userHandle the UserHandle of the user for whom to retrieve the restrictions [all...] |
/frameworks/base/services/java/com/android/server/ |
RecognitionManagerService.java | 32 import android.os.UserHandle; 51 int userHandle = getChangingUserId(); 52 if (DEBUG) Slog.i(TAG, "onSomePackagesChanged user=" + userHandle); 53 ComponentName comp = getCurRecognizer(userHandle); 56 comp = findAvailRecognizer(null, userHandle); 58 setCurRecognizer(comp, userHandle); 67 setCurRecognizer(findAvailRecognizer(null, userHandle), userHandle); 70 setCurRecognizer(findAvailRecognizer(comp.getPackageName(), userHandle), 71 userHandle); [all...] |
DevicePolicyManagerService.java | 76 import android.os.UserHandle; 172 public DevicePolicyData(int userHandle) { 173 mUserHandle = userHandle; 185 final int userHandle = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 190 + action + " for user " + userHandle); 193 handlePasswordExpirationNotification(getUserData(userHandle)); 202 removeUserData(userHandle); 211 mUserData.remove(userHandle); 215 handlePackagesChanged(userHandle); 278 public UserHandle getUserHandle() [all...] |
/frameworks/base/core/java/android/nfc/ |
INfcCardEmulation.aidl | 28 boolean isDefaultServiceForCategory(int userHandle, in ComponentName service, String category); 29 boolean isDefaultServiceForAid(int userHandle, in ComponentName service, String aid); 30 boolean setDefaultServiceForCategory(int userHandle, in ComponentName service, String category); 31 boolean setDefaultForNextTap(int userHandle, in ComponentName service); 32 List<ApduServiceInfo> getServices(int userHandle, in String category);
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
StorageItemPreference.java | 24 import android.os.UserHandle; 31 public final int userHandle; 34 this(context, context.getText(titleRes), colorRes, UserHandle.USER_NULL); 38 Context context, CharSequence title, int colorRes, int userHandle) { 55 this.userHandle = userHandle;
|
/frameworks/base/core/java/android/content/pm/ |
PackageStats.java | 21 import android.os.UserHandle; 32 public int userHandle; 125 userHandle = UserHandle.myUserId(); 129 public PackageStats(String pkgName, int userHandle) { 131 this.userHandle = userHandle; 136 userHandle = source.readInt(); 149 userHandle = pStats.userHandle; [all...] |
PackageManager.java | 31 import android.os.UserHandle; [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
SettingsProvider.java | 52 import android.os.UserHandle; 226 private void sendNotify(Uri uri, int userHandle) { 259 final int notifyTarget = isGlobal ? UserHandle.USER_ALL : userHandle; 302 public SettingsFileObserver(int userHandle, String path) { 306 mUserHandle = userHandle; 335 establishDbTracking(UserHandle.USER_OWNER); 343 final int userHandle = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 344 UserHandle.USER_OWNER); 345 if (userHandle != UserHandle.USER_OWNER) [all...] |
/frameworks/base/core/java/android/app/ |
ISearchManager.aidl | 33 ComponentName getAssistIntent(int userHandle);
|
TaskStackBuilder.java | 26 import android.os.UserHandle; 215 public void startActivities(Bundle options, UserHandle userHandle) { 221 mSourceContext.startActivitiesAsUser(getIntents(), options, userHandle); 232 startActivities(options, new UserHandle(UserHandle.myUserId())); 280 UserHandle user) {
|
/frameworks/base/core/java/android/provider/ |
Settings.java | 48 import android.os.UserHandle; 895 final int userHandle) { 899 arg.putInt(CALL_METHOD_USER_KEY, userHandle); 909 public String getStringForUser(ContentResolver cr, String name, final int userHandle) { 910 final boolean isSelf = (userHandle == UserHandle.myUserId()); 931 if (LOCAL_LOGV) Log.v(TAG, "get setting for user " + userHandle 932 + " by user " + UserHandle.myUserId() + " so skipping cache"); 946 args.putInt(CALL_METHOD_USER_KEY, userHandle); [all...] |
/frameworks/base/services/java/com/android/server/content/ |
ContentService.java | 41 import android.os.UserHandle; 162 * @param userHandle the user whose view of the provider is to be observed. May be 169 IContentObserver observer, int userHandle) { 174 final int callingUser = UserHandle.getCallingUserId(); 175 if (callingUser != userHandle) { 180 if (userHandle < 0) { 181 if (userHandle == UserHandle.USER_CURRENT) { 182 userHandle = ActivityManager.getCurrentUser(); 183 } else if (userHandle != UserHandle.USER_ALL) [all...] |
/frameworks/base/core/java/android/content/ |
IContentService.aidl | 38 * @param userHandle the user whose view of the provider is to be observed. May be 44 IContentObserver observer, int userHandle); 48 * @param userHandle the user whose view of the provider is to be notified. May be 55 int userHandle);
|
/packages/apps/Settings/src/com/android/settings/net/ |
UidDetailProvider.java | 45 public static int buildKeyForUser(int userHandle) { 46 return -(2000 + userHandle); 119 final int userHandle = (-uid) - 2000; 121 final UserInfo info = um.getUserInfo(userHandle);
|
/frameworks/base/cmds/settings/src/com/android/commands/settings/ |
SettingsCmd.java | 27 import android.os.UserHandle; 117 mUser = UserHandle.USER_OWNER; 126 "settings", UserHandle.USER_OWNER, token); 168 String getForUser(IContentProvider provider, int userHandle, 182 arg.putInt(Settings.CALL_METHOD_USER_KEY, userHandle); 188 System.err.println("Can't read key " + key + " in " + table + " for user " + userHandle); 193 void putForUser(IContentProvider provider, int userHandle, 207 arg.putInt(Settings.CALL_METHOD_USER_KEY, userHandle); 210 System.err.println("Can't set key " + key + " in " + table + " for user " + userHandle);
|
/frameworks/base/services/java/com/android/server/am/ |
UriPermission.java | 21 import android.os.UserHandle; 46 final int userHandle; 87 this.userHandle = UserHandle.getUserId(targetUid); 288 pw.print("userHandle=" + userHandle); 333 final int userHandle; 341 this.userHandle = perm.userHandle;
|
/frameworks/base/core/java/com/android/internal/view/ |
RotationPolicy.java | 27 import android.os.UserHandle; 78 UserHandle.USER_CURRENT) == 0; 86 Settings.System.ACCELEROMETER_ROTATION, 0, UserHandle.USER_CURRENT) == 0; 97 UserHandle.USER_CURRENT); 125 UserHandle.USER_CURRENT); 149 registerRotationPolicyListener(context, listener, UserHandle.getCallingUserId()); 157 RotationPolicyListener listener, int userHandle) { 160 false, listener.mObserver, userHandle); 163 false, listener.mObserver, userHandle);
|
/frameworks/base/services/java/com/android/server/pm/ |
UserManagerService.java | 43 import android.os.UserHandle; 238 null, UserHandle.ALL, false); 239 userForeground(UserHandle.USER_OWNER); 271 return getUserInfoLocked(UserHandle.getCallingUserId()).isRestricted(); 334 mContext.sendBroadcastAsUser(changedIntent, UserHandle.ALL); 385 public void wipeUser(int userHandle) { 567 UserInfo user = mUsers.get(UserHandle.USER_OWNER); 577 UserInfo user = mUsers.get(UserHandle.USER_OWNER); 601 UserInfo primary = new UserInfo(UserHandle.USER_OWNER, 609 mUserRestrictions.append(UserHandle.USER_OWNER, restrictions) [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
LockPatternUtils.java | 32 import android.os.UserHandle; 156 private static volatile int sCurrentUserId = UserHandle.USER_NULL; 256 if (sCurrentUserId != UserHandle.USER_NULL) { 263 return UserHandle.USER_OWNER; 281 return UserHandle.getCallingUserId(); 620 * @param userHandle The userId of the user to change the password for 622 public void saveLockPassword(String password, int quality, boolean isFallback, int userHandle) { 624 getLockSettings().setLockPassword(password, userHandle); 627 if (userHandle == UserHandle.USER_OWNER) [all...] |
/frameworks/base/services/java/com/android/server/search/ |
SearchManagerService.java | 38 import android.os.UserHandle; 79 new MyPackageMonitor().register(context, null, UserHandle.ALL, true); 105 if (userId != UserHandle.USER_OWNER) { 132 onUserRemoved(intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_OWNER)); 166 mContext.sendBroadcastAsUser(intent, new UserHandle(changingUserId)); 191 mContext.sendBroadcastAsUser(intent, UserHandle.ALL); 212 return getSearchables(UserHandle.getCallingUserId()).getSearchableInfo(launchActivity); 219 return getSearchables(UserHandle.getCallingUserId()).getSearchablesInGlobalSearchList(); 223 return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivities(); 230 return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivity() [all...] |
/frameworks/base/core/java/android/appwidget/ |
AppWidgetManager.java | 27 import android.os.UserHandle; 768 * @param userHandle The user to bind to. 772 UserHandle userHandle) { 775 userHandle.getIdentifier()); [all...] |
/frameworks/base/core/java/android/database/ |
AbstractCursor.java | 22 import android.os.UserHandle; 354 setNotificationUri(cr, notifyUri, UserHandle.myUserId()); 358 public void setNotificationUri(ContentResolver cr, Uri notifyUri, int userHandle) { 366 mContentResolver.registerContentObserver(mNotifyUri, true, mSelfObserver, userHandle);
|