/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsActor.java | 50 import android.os.UserHandle; 193 public UserInfo getUserInfo(int userHandle) { 195 if (ui.id == userHandle) { 203 public UserInfo getProfileParent(int userHandle) { 204 final UserInfo child = getUserInfo(userHandle); 209 if (ui.id != userHandle && ui.id == child.profileGroupId) { 222 public Bundle getUserRestrictions(UserHandle userHandle) { 232 public boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) { [all...] |
/frameworks/base/services/core/java/com/android/server/ |
TelephonyRegistry.java | 35 import android.os.UserHandle; 257 int userHandle = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0); 258 if (DBG) log("onReceive: userHandle=" + userHandle); 259 mHandler.sendMessage(mHandler.obtainMessage(MSG_USER_SWITCHED, userHandle, 0)); 355 int callerUserId = UserHandle.getCallingUserId(); 357 log("listen oscl: E pkg=" + callingPackage + " myUserId=" + UserHandle.myUserId() 469 int callerUserId = UserHandle.getCallingUserId(); 473 + UserHandle.myUserId() + " callerUserId=" + callerUserId); [all...] |
/frameworks/base/services/core/java/com/android/server/dreams/ |
DreamManagerService.java | 47 import android.os.UserHandle; 125 mDozeEnabledObserver, UserHandle.USER_ALL); 507 final int userId = UserHandle.getCallingUserId(); 520 final int userId = UserHandle.getCallingUserId(); 533 final int userId = UserHandle.getCallingUserId(); 573 final int callingUserId = UserHandle.getCallingUserId();
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
BaseShortcutManagerTest.java | 73 import android.os.UserHandle; 154 public Intent registerReceiverAsUser(BroadcastReceiver receiver, UserHandle user, 193 return UserHandle.USER_SYSTEM; 419 return UserHandle.getUserId(mInjectedCallingUid); 557 protected static final int USER_0 = UserHandle.USER_SYSTEM; 562 protected static final UserHandle HANDLE_USER_0 = UserHandle.of(USER_0); 563 protected static final UserHandle HANDLE_USER_10 = UserHandle.of(USER_10); 564 protected static final UserHandle HANDLE_USER_11 = UserHandle.of(USER_11) [all...] |
/frameworks/base/docs/html/reference/android/support/wearable/watchface/ |
CanvasWatchFaceService.html | [all...] |
Gles2WatchFaceService.html | [all...] |
/cts/hostsidetests/devicepolicy/app/WidgetProvider/src/com/android/cts/widgetprovider/ |
SimpleAppWidgetHostService.java | 35 import android.os.UserHandle; 73 private UserHandle mUserHandle; 173 private UserHandle getUserHandleArgument(Context context, String key,
|
/frameworks/base/core/java/android/app/ |
UiAutomationConnection.java | 31 import android.os.UserHandle; 173 int callingUserId = UserHandle.getCallingUserId(); 193 int callingUserId = UserHandle.getCallingUserId();
|
/frameworks/base/core/java/android/database/ |
ContentObserver.java | 21 import android.os.UserHandle; 140 * user or {@link UserHandle#USER_ALL}. 178 dispatchChange(selfChange, uri, UserHandle.getCallingUserId());
|
AbstractCursor.java | 22 import android.os.UserHandle; 390 setNotificationUri(cr, notifyUri, UserHandle.myUserId()); 394 public void setNotificationUri(ContentResolver cr, Uri notifyUri, int userHandle) { 402 mContentResolver.registerContentObserver(mNotifyUri, true, mSelfObserver, userHandle);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
TileServiceManager.java | 29 import android.os.UserHandle; 78 new UserHandle(ActivityManager.getCurrentUser()))); 93 new UserHandle(ActivityManager.getCurrentUser()), filter, null, mHandler);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
KeyguardBouncer.java | 21 import android.os.UserHandle; 83 if (keyguardUserId == UserHandle.USER_SYSTEM && UserManager.isSplitSystemUser()) { 100 !(UserManager.isSplitSystemUser() && activeUserId == UserHandle.USER_SYSTEM)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
ZenModeControllerImpl.java | 31 import android.os.UserHandle; 95 new UserHandle(mUserId)); 147 mContext.registerReceiverAsUser(mReceiver, new UserHandle(mUserId), filter, null, null);
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
NetworkNotificationManager.java | 27 import android.os.UserHandle; 184 mNotificationManager.notifyAsUser(NOTIFICATION_ID, id, notification, UserHandle.ALL); 195 mNotificationManager.cancelAsUser(NOTIFICATION_ID, id, UserHandle.ALL);
|
/frameworks/base/services/core/java/com/android/server/tv/ |
PersistentDataStore.java | 25 import android.os.UserHandle; 225 TvInputManager.ACTION_PARENTAL_CONTROLS_ENABLED_CHANGED), UserHandle.ALL); 230 UserHandle.ALL);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
CarrierServiceBindHelper.java | 31 import android.os.UserHandle; 102 context, mHandler.getLooper(), UserHandle.ALL, false /* externalStorage */); 103 mContext.registerReceiverAsUser(mUserUnlockedReceiver, UserHandle.SYSTEM,
|
/packages/apps/Settings/src/com/android/settings/ |
ResetNetwork.java | 23 import android.os.UserHandle; 192 getActivity(), UserManager.DISALLOW_NETWORK_RESET, UserHandle.myUserId()); 194 UserManager.DISALLOW_NETWORK_RESET, UserHandle.myUserId())) {
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
AddAccountSettings.java | 30 import android.os.UserHandle; 58 * An extra {@link UserHandle} can be specified in the intent as {@link EXTRA_USER}, if the user for 130 private UserHandle mUserHandle;
|
/packages/apps/Settings/src/com/android/settings/notification/ |
ZenModeEventRuleSettings.java | 23 import android.os.UserHandle; 180 for (UserHandle user : UserManager.get(context).getUserProfiles()) { 190 private static Context getContextForUser(Context context, UserHandle user) {
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
WifiEnabler.java | 29 import android.os.UserHandle; 170 UserManager.DISALLOW_CONFIG_TETHERING, UserHandle.myUserId())) { 174 UserManager.DISALLOW_CONFIG_TETHERING, UserHandle.myUserId());
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MtpService.java | 28 import android.os.UserHandle; 142 final boolean isCurrentUser = UserHandle.myUserId() == ActivityManager.getCurrentUser(); 154 final boolean isCurrentUser = UserHandle.myUserId() == ActivityManager.getCurrentUser();
|
/platform_testing/tests/functional/appsmoke/src/android/test/appsmoke/ |
AppSmokeTest.java | 29 import android.os.UserHandle; 181 for (UserHandle handle : um.getUserProfiles()) { 221 mAppInfo.packageName, UserHandle.USER_ALL);
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
SecurityLoggingTest.java | 19 import android.os.UserHandle;
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
CrossProfileWidgetTest.java | 27 import android.os.UserHandle;
|
/frameworks/base/core/java/android/app/usage/ |
UsageStatsManager.java | 23 import android.os.UserHandle; 232 return mService.isAppInactive(packageName, UserHandle.myUserId()); 244 mService.setAppInactive(packageName, inactive, UserHandle.myUserId()); 264 public void whitelistAppTemporarily(String packageName, long duration, UserHandle user) {
|