HomeSort by relevance Sort by last modified time
    Searched refs:UserHandle (Results 1 - 25 of 308) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/base/core/java/android/os/
UserHandle.aidl 19 parcelable UserHandle;
UserHandle.java 24 public final class UserHandle implements Parcelable {
34 public static final UserHandle ALL = new UserHandle(USER_ALL);
40 public static final UserHandle CURRENT = new UserHandle(USER_CURRENT);
50 public static final UserHandle CURRENT_OR_SELF = new UserHandle(USER_CURRENT_OR_SELF);
59 public static final UserHandle OWNER = new UserHandle(USER_OWNER);
216 public UserHandle(int h)
    [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...]
  /packages/services/Telephony/src/com/android/phone/
PhoneApp.java 21 import android.os.UserHandle;
34 if (UserHandle.myUserId() == 0) {
  /frameworks/base/media/java/android/media/
IRingtonePlayer.aidl 20 import android.os.UserHandle;
32 void playAsync(in Uri uri, in UserHandle user, boolean looping, int streamType);
  /frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
SingleUserReceiver.java 24 import android.os.UserHandle;
30 res.putInt("user", UserHandle.myUserId());
ServiceUserTarget.java 23 import android.os.UserHandle;
33 "Service created as user " + UserHandle.myUserId(),
SingleUserService.java 23 import android.os.UserHandle;
33 "Service created as user " + UserHandle.myUserId(),
UserTarget.java 24 import android.os.UserHandle;
32 res.putInt("user", UserHandle.myUserId());
  /packages/apps/Settings/src/com/android/settings/
BrightnessPreference.java 21 import android.os.UserHandle;
34 getContext().sendBroadcastAsUser(intent, UserHandle.CURRENT_OR_SELF);
  /frameworks/base/services/java/com/android/server/am/
UserStartedState.java 23 import android.os.UserHandle;
35 public final UserHandle mHandle;
43 public UserStartedState(UserHandle handle, boolean initial) {
  /packages/apps/Nfc/src/com/android/nfc/
NfcRootActivity.java 24 import android.os.UserHandle;
38 startActivityAsUser(launchIntent, UserHandle.CURRENT);
NfcApplication.java 23 import android.os.UserHandle;
58 if (UserHandle.myUserId() == 0 && isMainProcess) {
  /frameworks/base/core/tests/coretests/src/android/os/
ProcessTest.java 21 import android.os.UserHandle;
35 assertEquals(UserHandle.getUid(1, Process.SYSTEM_UID), Process.getUidForName("u1_system"));
36 assertEquals(UserHandle.getUid(2, Process.FIRST_ISOLATED_UID),
38 assertEquals(UserHandle.getUid(3, Process.FIRST_APPLICATION_UID + 100),
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
Recents.java 29 import android.os.UserHandle;
65 mContext.startActivityAsUser(intent, opts.toBundle(), new UserHandle(
66 UserHandle.USER_CURRENT));
69 mContext.startActivityAsUser(intent, new UserHandle(
70 UserHandle.USER_CURRENT));
181 new UserHandle(UserHandle.USER_CURRENT));
185 mContext.startActivityAsUser(intent, opts.toBundle(), new UserHandle(
186 UserHandle.USER_CURRENT));
199 mContext.sendBroadcastAsUser(intent, new UserHandle(UserHandle.USER_CURRENT))
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/
AccessibilityManagerTest.java 29 import android.os.UserHandle;
74 UserHandle.USER_OWNER)).andReturn(
76 expect(mockServiceInterface.getInstalledAccessibilityServiceList(UserHandle.USER_OWNER))
82 UserHandle.USER_OWNER);
98 UserHandle.USER_OWNER)).andReturn(
100 mockServiceInterface.interrupt(UserHandle.USER_OWNER);
105 UserHandle.USER_OWNER);
117 UserHandle.USER_OWNER)).andReturn(
123 UserHandle.USER_OWNER);
154 UserHandle.USER_OWNER)).andReturn
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
CurrentUserTracker.java 24 import android.os.UserHandle;
60 return mCurrentUserId == UserHandle.USER_OWNER;
  /frameworks/base/core/java/com/android/internal/statusbar/
StatusBarIcon.java 21 import android.os.UserHandle;
25 public UserHandle user;
32 public StatusBarIcon(String iconPackage, UserHandle user, int iconId, int iconLevel, int number,
67 this.user = (UserHandle) in.readParcelable(null);
  /frameworks/base/core/java/android/app/admin/
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/nfc/cardemulation/
CardEmulation.java 29 import android.os.UserHandle;
198 return sService.isDefaultServiceForCategory(UserHandle.myUserId(), service, category);
207 return sService.isDefaultServiceForCategory(UserHandle.myUserId(), service,
229 return sService.isDefaultServiceForAid(UserHandle.myUserId(), service, aid);
238 return sService.isDefaultServiceForAid(UserHandle.myUserId(), service, aid);
278 return sService.setDefaultServiceForCategory(UserHandle.myUserId(), service, category);
287 return sService.setDefaultServiceForCategory(UserHandle.myUserId(), service,
301 return sService.setDefaultForNextTap(UserHandle.myUserId(), service);
310 return sService.setDefaultForNextTap(UserHandle.myUserId(), service);
323 return sService.getServices(UserHandle.myUserId(), category)
    [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/service/notification/
StatusBarNotification.java 22 import android.os.UserHandle;
37 private final UserHandle user;
44 Notification notification, UserHandle user) {
50 int initialPid, int score, Notification notification, UserHandle user) {
56 int initialPid, int score, Notification notification, UserHandle user,
88 this.user = UserHandle.readFromParcel(in);
172 /** Returns a userHandle for the instance of the app that posted this notification. */
215 * The {@link android.os.UserHandle} for whom this notification is intended.
218 public UserHandle getUser() {
  /frameworks/base/core/java/android/app/
NotificationManager.java 25 import android.os.UserHandle;
137 notification, idOut, UserHandle.myUserId());
148 public void notifyAsUser(String tag, int id, Notification notification, UserHandle user)
191 service.cancelNotificationWithTag(pkg, tag, id, UserHandle.myUserId());
199 public void cancelAsUser(String tag, int id, UserHandle user)
220 service.cancelAllNotifications(pkg, UserHandle.myUserId());
  /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/core/java/android/service/dreams/
Sandman.java 26 import android.os.UserHandle;
113 UserHandle.USER_CURRENT) != 0;
121 UserHandle.USER_CURRENT) != 0;

Completed in 497 milliseconds

1 2 3 4 5 6 7 8 91011>>