HomeSort by relevance Sort by last modified time
    Searched full:userhandle (Results 176 - 200 of 995) sorted by null

1 2 3 4 5 6 78 91011>>

  /packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
CallLogManagerTest.java 31 import android.os.UserHandle;
112 UserHandle.of(CURRENT_USER_ID)
118 UserHandle.of(OTHER_USER_ID)
124 UserHandle.of(MANAGED_USER_ID)
140 when(userManager.isUserRunning(any(UserHandle.class))).thenReturn(true);
141 when(userManager.isUserUnlocked(any(UserHandle.class))).thenReturn(true);
142 when(userManager.hasUserRestriction(any(String.class), any(UserHandle.class)))
164 UserHandle.of(CURRENT_USER_ID)
187 UserHandle.of(CURRENT_USER_ID)
211 UserHandle.of(CURRENT_USER_ID
    [all...]
InCallControllerTests.java 30 import android.os.UserHandle;
91 private UserHandle mUserHandle = UserHandle.of(CURRENT_USER_ID);
128 eq(UserHandle.CURRENT));
159 eq(UserHandle.CURRENT));
186 anyInt(), eq(UserHandle.CURRENT))).thenReturn(true);
209 eq(UserHandle.CURRENT));
237 eq(UserHandle.CURRENT))).thenReturn(true);
261 eq(UserHandle.CURRENT));
288 any(Intent.class), any(ServiceConnection.class), anyInt(), any(UserHandle.class))
    [all...]
CallScreeningServiceFilterTest.java 28 import android.os.UserHandle;
95 when(mCallsManager.getCurrentUserHandle()).thenReturn(UserHandle.CURRENT);
112 eq(mContext), eq(UserHandle.USER_CURRENT))).thenReturn(PKG_NAME);
118 anyInt(), eq(UserHandle.CURRENT))).thenReturn(true);
124 eq(mContext), eq(UserHandle.USER_CURRENT))).thenReturn(null);
154 anyInt(), eq(UserHandle.CURRENT))).thenReturn(false);
204 eq(UserHandle.CURRENT));
  /frameworks/base/core/java/android/nfc/cardemulation/
NfcFCardEmulation.java 28 import android.os.UserHandle;
121 return sService.getSystemCodeForService(UserHandle.myUserId(), service);
130 return sService.getSystemCodeForService(UserHandle.myUserId(), service);
167 return sService.registerSystemCodeForService(UserHandle.myUserId(),
177 return sService.registerSystemCodeForService(UserHandle.myUserId(),
198 return sService.removeSystemCodeForService(UserHandle.myUserId(), service);
207 return sService.removeSystemCodeForService(UserHandle.myUserId(), service);
233 return sService.getNfcid2ForService(UserHandle.myUserId(), service);
242 return sService.getNfcid2ForService(UserHandle.myUserId(), service);
276 return sService.setNfcid2ForService(UserHandle.myUserId()
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
OwnersTest.java 22 import android.os.UserHandle;
60 assertEquals(UserHandle.USER_NULL, owners.getDeviceOwnerUserId());
77 assertEquals(UserHandle.USER_NULL, owners.getDeviceOwnerUserId());
114 assertEquals(UserHandle.USER_SYSTEM, owners.getDeviceOwnerUserId());
134 assertEquals(UserHandle.USER_SYSTEM, owners.getDeviceOwnerUserId());
170 assertEquals(UserHandle.USER_NULL, owners.getDeviceOwnerUserId());
198 assertEquals(UserHandle.USER_NULL, owners.getDeviceOwnerUserId());
250 assertEquals(UserHandle.USER_SYSTEM, owners.getDeviceOwnerUserId());
282 assertEquals(UserHandle.USER_SYSTEM, owners.getDeviceOwnerUserId());
358 assertEquals(UserHandle.USER_NULL, owners.getDeviceOwnerUserId())
    [all...]
  /frameworks/base/core/java/android/service/notification/
StatusBarNotification.java 25 import android.os.UserHandle;
43 private final UserHandle user;
50 int initialPid, int score, Notification notification, UserHandle user) {
57 int initialPid, Notification notification, UserHandle user, String overrideGroupKey,
77 int initialPid, int score, Notification notification, UserHandle user,
107 this.user = UserHandle.readFromParcel(in);
248 * Returns a userHandle for the instance of the app that posted this notification.
294 * The {@link android.os.UserHandle} for whom this notification is intended.
296 public UserHandle getUser() {
  /frameworks/base/services/core/java/com/android/server/
ServiceWatcher.java 34 import android.os.UserHandle;
74 private int mCurrentUserId = UserHandle.USER_SYSTEM;
85 private int mBoundUserId = UserHandle.USER_NULL;
159 UserHandle.USER_NULL);
166 }, UserHandle.ALL, intentFilter, null, mHandler);
170 mPackageMonitor.register(mContext, null, UserHandle.ALL, true);
250 final int userId = bestIsMultiuser ? UserHandle.USER_SYSTEM : mCurrentUserId;
266 mBoundUserId = UserHandle.USER_NULL;
283 new UserHandle(userId));
  /packages/apps/Settings/src/com/android/settings/
MasterClear.java 32 import android.os.UserHandle;
207 final List<UserInfo> profiles = um.getProfiles(UserHandle.myUserId());
219 final UserHandle userHandle = new UserHandle(profileId);
255 0, userHandle);
257 authContext.getDrawable(desc.iconId), userHandle);
290 getActivity(), UserManager.DISALLOW_FACTORY_RESET, UserHandle.myUserId());
293 UserManager.DISALLOW_FACTORY_RESET, UserHandle.myUserId())) {
ScreenPinningSettings.java 23 import android.os.UserHandle;
118 .getKeyguardStoredPasswordQuality(UserHandle.myUserId());
143 UserHandle.myUserId())
153 UserHandle.myUserId());
164 if (mLockPatternUtils.isLockPatternEnabled(UserHandle.myUserId())) {
TrustedCredentialsSettings.java 36 import android.os.UserHandle;
191 UserHandle.USER_NULL);
193 mConfirmingCredentialUser = UserHandle.USER_NULL;
196 UserHandle.USER_NULL);
257 mConfirmingCredentialUser = UserHandle.USER_NULL;
351 public UserHandle getGroup(int groupPosition) {
352 return new UserHandle(mData.mCertHoldersByUserId.keyAt(groupPosition));
445 final UserHandle groupUser = getGroup(groupPosition);
490 new UserHandle(certHolder.mProfileId)));
659 List<UserHandle> profiles = mUserManager.getUserProfiles()
    [all...]
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
CustomizationRestrictionsTest.java 26 import android.os.UserHandle;
97 UserHandle userHandle = Process.myUserHandle();
99 Class<?> userHandleClass = userHandle.getClass();
101 return (Integer) methodGetIdentifier.invoke(userHandle, null);
  /frameworks/base/cmds/dpm/src/com/android/commands/dpm/
Dpm.java 27 import android.os.UserHandle;
50 private int mUserId = UserHandle.USER_SYSTEM;
115 mUserId = UserHandle.USER_CURRENT;
119 if (mUserId == UserHandle.USER_CURRENT) {
154 mDevicePolicyManager.removeActiveAdmin(mComponent, UserHandle.USER_SYSTEM);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/
GuestResumeSessionReceiver.java 29 import android.os.UserHandle;
50 context.registerReceiverAsUser(this, UserHandle.SYSTEM,
61 int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL);
62 if (userId == UserHandle.USER_NULL) {
125 ActivityManagerNative.getDefault().switchUser(UserHandle.USER_SYSTEM);
  /frameworks/base/services/core/java/com/android/server/trust/
TrustArchive.java 21 import android.os.UserHandle;
104 addEvent(new Event(TYPE_POLICY_CHANGED, UserHandle.USER_ALL, null, null, 0, 0, false));
120 if (userId != UserHandle.USER_ALL && userId != ev.userId
121 && ev.userId != UserHandle.USER_ALL) {
128 if (userId == UserHandle.USER_ALL) {
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
WifiNotificationControllerTest.java 36 import android.os.UserHandle;
115 any(UserHandle.class));
130 any(UserHandle.class));
132 .cancelAsUser(any(String.class), anyInt(), any(UserHandle.class));
138 .cancelAsUser(any(String.class), anyInt(), any(UserHandle.class));
  /packages/apps/Launcher3/src/com/android/launcher3/compat/
AppWidgetManagerCompatVL.java 36 import android.os.UserHandle;
65 for (UserHandle user : mUserManager.getUserProfiles()) {
166 for (UserHandle user : mUserManager.getUserProfiles()) {
167 UserHandleCompat userHandle = UserHandleCompat.fromUser(user);
170 result.put(new ComponentKey(info.provider, userHandle), info);
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
InputOptionsFragment.java 22 import android.os.UserHandle;
68 TvInputInfo.TvInputSettings.getCustomLabels(context, UserHandle.USER_SYSTEM);
70 TvInputInfo.TvInputSettings.getHiddenTvInputIds(context, UserHandle.USER_SYSTEM);
167 .putCustomLabels(getContext(), mCustomLabels, UserHandle.USER_SYSTEM);
184 .putHiddenTvInputs(getContext(), mHiddenIds, UserHandle.USER_SYSTEM);
  /packages/apps/Settings/src/com/android/settings/location/
SettingsInjector.java 36 import android.os.UserHandle;
116 private List<InjectedSetting> getSettings(final UserHandle userHandle) {
120 final int profileId = userHandle.getIdentifier();
129 InjectedSetting setting = parseServiceInfo(resolveInfo, userHandle, pm);
154 private static InjectedSetting parseServiceInfo(ResolveInfo service, UserHandle userHandle,
190 userHandle.getIdentifier());
191 return parseAttributes(si.packageName, si.name, userHandle, res, attrs);
206 UserHandle userHandle, Resources res, AttributeSet attrs)
    [all...]
  /frameworks/base/core/java/android/service/dreams/
Sandman.java 26 import android.os.UserHandle;
114 UserHandle.USER_CURRENT) != 0;
122 UserHandle.USER_CURRENT) != 0;
  /frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
UsbResolverActivity.java 31 import android.os.UserHandle;
102 final int userId = UserHandle.myUserId();
125 target.startAsUser(this, null, new UserHandle(userId));
  /frameworks/base/services/core/java/com/android/server/am/
UserState.java 24 import android.os.UserHandle;
49 public final UserHandle mHandle;
65 public UserState(UserHandle handle) {
  /frameworks/base/services/core/java/com/android/server/notification/
ValidateNotificationPeople.java 28 import android.os.UserHandle;
114 mObserver, UserHandle.USER_ALL);
127 if (record.getUserId() == UserHandle.USER_ALL) {
150 public float getContactAffinity(UserHandle userHandle, Bundle extras, int timeoutMs,
152 if (DEBUG) Slog.d(TAG, "checking affinity for " + userHandle);
156 Context context = getContextAsUser(userHandle);
192 private Context getContextAsUser(UserHandle userHandle) {
193 Context context = mUserToContextMap.get(userHandle.getIdentifier())
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/content/
ObserverNodeTest.java 24 import android.os.UserHandle;
38 final int myUserHandle = UserHandle.myUserId();
72 final int myUserHandle = UserHandle.myUserId();
  /frameworks/base/services/tests/servicestests/src/com/android/server/notification/
RankingHelperTest.java 22 import android.os.UserHandle;
48 UserHandle user = UserHandle.ALL;
  /frameworks/base/services/tests/servicestests/src/com/android/server/pm/
UserManagerServiceTest.java 23 import android.os.UserHandle;
37 private int tempUserId = UserHandle.USER_NULL;
49 if (tempUserId != UserHandle.USER_NULL) {

Completed in 463 milliseconds

1 2 3 4 5 6 78 91011>>