HomeSort by relevance Sort by last modified time
    Searched refs:userId (Results 101 - 125 of 1170) sorted by null

1 2 3 45 6 7 8 91011>>

  /frameworks/base/services/core/java/com/android/server/am/
UserController.java 272 for (Integer userId : mUserLru) {
273 UserState uss = mStartedUsers.get(userId);
283 if (userId == UserHandle.USER_SYSTEM) {
285 if (UserInfo.isSystemOnly(userId)) {
289 runningUsers.add(userId);
298 Integer userId = iterator.next();
299 if (userId == UserHandle.USER_SYSTEM || userId == mCurrentUserId) {
303 if (stopUsersLU(userId, false, null) == USER_OP_SUCCESS) {
323 final int userId = uss.mHandle.getIdentifier()
    [all...]
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowKeyguardManager.java 157 protected boolean isDeviceSecure(int userId) {
158 return deviceSecureForUsers.contains(userId);
166 public void setIsDeviceSecure(int userId, boolean isDeviceSecure) {
168 deviceSecureForUsers.add(userId);
170 deviceSecureForUsers.remove(userId);
193 public void setIsDeviceLocked(int userId, boolean isLocked) {
195 deviceLockedForUsers.add(userId);
197 deviceLockedForUsers.remove(userId);
202 protected boolean isDeviceLocked(int userId) {
203 return deviceLockedForUsers.contains(userId);
    [all...]
  /frameworks/base/core/java/android/content/pm/
IPackageInstaller.aidl 31 int createSession(in PackageInstaller.SessionParams params, String installerPackageName, int userId);
42 ParceledListSlice getAllSessions(int userId);
43 ParceledListSlice getMySessions(String installerPackageName, int userId);
45 void registerCallback(IPackageInstallerCallback callback, int userId);
49 in IntentSender statusReceiver, int userId);
ShortcutServiceInternal.java 41 void onShortcutChanged(@NonNull String packageName, @UserIdInt int userId);
49 int userId, int callingPid, int callingUid);
53 @NonNull String packageName, @NonNull String id, int userId);
57 @NonNull List<String> shortcutIds, int userId);
61 @NonNull String packageName, @NonNull String shortcutId, int userId,
67 @NonNull String packageName, @NonNull String shortcutId, int userId);
71 @NonNull String packageName, @NonNull String shortcutId, int userId);
77 int userId);
81 @Nullable IntentSender resultIntent, int userId);
  /frameworks/base/core/java/android/util/
IconDrawableFactory.java 51 protected boolean needsBadging(ApplicationInfo appInfo, @UserIdInt int userId) {
52 return appInfo.isInstantApp() || mUm.isManagedProfile(userId);
59 public Drawable getBadgedIcon(ApplicationInfo appInfo, @UserIdInt int userId) {
60 return getBadgedIcon(appInfo, appInfo, userId);
64 @UserIdInt int userId) {
66 if (!mEmbedShadow && !needsBadging(appInfo, userId)) {
78 if (mUm.isManagedProfile(userId)) {
81 getUserBadgeColor(mUm, userId));
101 public static int getUserBadgeColor(UserManager um, @UserIdInt int userId) {
102 int badge = um.getManagedProfileBadge(userId);
    [all...]
  /packages/apps/Launcher3/quickstep/src/com/android/quickstep/
NormalizedIconLoader.java 54 public Drawable getDefaultIcon(int userId) {
56 BitmapInfo info = mDefaultIcons.get(userId);
59 .getDrawable(android.R.drawable.sym_def_app_icon), userId, 0, false);
60 mDefaultIcons.put(userId, info);
68 protected Drawable createBadgedDrawable(Drawable drawable, int userId, TaskDescription desc) {
69 return new FastBitmapDrawable(getBitmapInfo(drawable, userId, desc.getPrimaryColor(),
73 private synchronized BitmapInfo getBitmapInfo(Drawable drawable, int userId,
81 return mLauncherIcons.createBadgedIconBitmap(drawable, UserHandle.of(userId),
86 protected Drawable getBadgedActivityIcon(ActivityInfo activityInfo, int userId,
90 userId,
    [all...]
  /packages/apps/Settings/src/com/android/settings/vpn2/
VpnUtils.java 63 final int userId = context.getUserId();
67 return getConnectivityManager(context).getAlwaysOnVpnPackageForUser(userId) != null
69 Settings.Secure.ALWAYS_ON_VPN_LOCKDOWN, /* default */ 0, userId) != 0;
76 public static String getConnectedPackage(IConnectivityManager service, final int userId)
78 final VpnConfig config = service.getVpnConfig(userId);
91 public static boolean isAlwaysOnVpnSet(ConnectivityManager cm, final int userId) {
92 return cm.getAlwaysOnVpnPackageForUser(userId) != null;
97 int userId = context.getUserId();
99 LegacyVpnInfo currentLegacyVpn = connectivityService.getLegacyVpnInfo(userId);
102 connectivityService.prepareVpn(null, VpnConfig.LEGACY_VPN, userId);
    [all...]
  /frameworks/base/packages/SettingsLib/src/com/android/settingslib/
RestrictedLockUtils.java 69 * admin userId.
72 * @param userId User which we need to check if restriction is enforced on.
75 * and profile owner, then the admin component will be set to {@code null} and userId to
79 String userRestriction, int userId) {
88 um.getUserRestrictionSources(userRestriction, UserHandle.of(userId));
101 if (adminUserId == userId) {
107 return (parentUser != null && parentUser.id == userId)
113 // if the admin is for the {@param userId} otherwise return a default EnforcedAdmin.
114 return adminUserId == userId
124 String userRestriction, int userId) {
    [all...]
  /frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DeviceAdminServiceController.java 69 public DevicePolicyServiceConnection(int userId, @NonNull ComponentName componentName) {
70 super(TAG, mContext, mHandler, userId, componentName,
102 private ServiceInfo findService(@NonNull String packageName, int userId) {
108 .queryIntentServices(intent, null, /* flags=*/ 0, userId);
143 public void startServiceForOwner(@NonNull String packageName, int userId,
148 final ServiceInfo service = findService(packageName, userId);
151 packageName, userId);
152 disconnectServiceOnUserLocked(userId, actionForLog);
157 mConnections.get(userId);
163 packageName, userId);
    [all...]
  /cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
UserRestrictionsTest.java 70 @Nullable String method, int userId) throws DeviceNotAvailableException {
71 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, "." + className, method, userId);
74 private void runTests(@Nonnull String className, int userId)
76 runTests(className, null, userId);
258 private void setPoAsUser(int userId) throws Exception {
259 installAppAsUser(DEVICE_ADMIN_APK, userId);
262 userId, /* expectFailure */ false));
264 if (userId == mDeviceOwnerUserId) {
291 for (int userId : usersToCheck) {
292 runGlobalRestrictionsTest(ENSURE_GLOBAL_RESTRICTIONS_TEST, userId);
    [all...]
  /frameworks/base/services/core/java/com/android/server/slice/
SliceFullAccessList.java 52 public boolean hasFullAccess(String pkg, int userId) {
53 ArraySet<String> pkgs = mFullAccessPkgs.get(userId, null);
57 public void grantFullAccess(String pkg, int userId) {
58 ArraySet<String> pkgs = mFullAccessPkgs.get(userId, null);
61 mFullAccessPkgs.put(userId, pkgs);
66 public void removeGrant(String pkg, int userId) {
67 ArraySet<String> pkgs = mFullAccessPkgs.get(userId, null);
70 mFullAccessPkgs.put(userId, pkgs);
81 final int userId = mFullAccessPkgs.keyAt(i);
83 if (user != UserHandle.USER_ALL && user != userId) {
    [all...]
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/
OtaController.java 100 void addDeviceOwnerTasks(final int userId, Context context) {
114 mTaskExecutor.execute(userId,
116 mTaskExecutor.execute(userId,
120 void addManagedProfileTasks(final int userId, Context context) {
122 UserHandle.of(userId));
124 mTaskExecutor.execute(userId,
127 ComponentName profileOwner = mDevicePolicyManager.getProfileOwnerAsUser(userId);
130 ProvisionLogger.loge("No profile owner on managed profile " + userId);
139 mTaskExecutor.execute(userId,
141 mTaskExecutor.execute(userId,
    [all...]
  /frameworks/base/services/core/java/com/android/server/om/
OverlayManagerSettings.java 67 void init(@NonNull final String packageName, final int userId,
70 remove(packageName, userId);
72 new SettingsItem(packageName, userId, targetPackageName, baseCodePath,
99 boolean remove(@NonNull final String packageName, final int userId) {
100 final int idx = select(packageName, userId);
109 @NonNull OverlayInfo getOverlayInfo(@NonNull final String packageName, final int userId)
111 final int idx = select(packageName, userId);
113 throw new BadKeyException(packageName, userId);
121 boolean setBaseCodePath(@NonNull final String packageName, final int userId,
123 final int idx = select(packageName, userId);
    [all...]
  /frameworks/base/core/java/android/content/
IContentService.aidl 63 void syncAsUser(in SyncRequest request, int userId);
65 void cancelSyncAsUser(in Account account, String authority, in ComponentName cname, int userId);
76 boolean getSyncAutomaticallyAsUser(in Account account, String providerName, int userId);
86 int userId);
122 int getIsSyncableAsUser(in Account account, String providerName, int userId);
131 void setMasterSyncAutomaticallyAsUser(boolean flag, int userId);
134 boolean getMasterSyncAutomaticallyAsUser(int userId);
137 List<SyncInfo> getCurrentSyncsAsUser(int userId);
144 SyncAdapterType[] getSyncAdapterTypesAsUser(int userId);
146 String[] getSyncAdapterPackagesForAuthorityAsUser(String authority, int userId);
    [all...]
  /frameworks/base/telephony/java/com/android/internal/telephony/
CarrierAppUtils.java 76 ContentResolver contentResolver, int userId) {
86 contentResolver, userId, systemCarrierAppsDisabledUntilUsed,
102 IPackageManager packageManager, ContentResolver contentResolver, int userId) {
114 null /* telephonyManager */, contentResolver, userId,
122 ContentResolver contentResolver, int userId,
126 userId, systemCarrierAppsDisabledUntilUsed);
133 userId,
139 contentResolver, Settings.Secure.CARRIER_APPS_HANDLED, 0, userId) == 1;
157 + userId);
162 userId,
    [all...]
  /frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
RecoverableKeyStoreDb.java 88 * @param userId The uid of the profile the application is running under.
96 public long insertKey(int userId, int uid, String alias, WrappedKey wrappedKey) {
99 values.put(KeysEntry.COLUMN_NAME_USER_ID, userId);
236 * Returns all keys for the given {@code userId} {@code recoveryAgentUid}
239 * @param userId User id of the profile to which all the keys are associated.
247 public Map<String, WrappedKey> getAllKeys(int userId, int recoveryAgentUid,
261 Integer.toString(userId),
294 * Sets the {@code generationId} of the platform key for user {@code userId}.
298 public long setPlatformKeyGenerationId(int userId, int generationId) {
301 values.put(UserMetadataEntry.COLUMN_NAME_USER_ID, userId);
    [all...]
  /frameworks/base/services/core/java/com/android/server/pm/
ShortcutService.java 485 public String injectGetLocaleTagsForUser(@UserIdInt int userId) {
585 public void onUnlockUser(int userId) {
586 mService.handleUnlockUser(userId);
606 void handleUnlockUser(int userId) {
608 Slog.d(TAG, "handleUnlockUser: user=" + userId);
611 mUnlockedUsers.put(userId, true);
625 getUserShortcutsLocked(userId);
631 void handleStopUser(int userId) {
633 Slog.d(TAG, "handleStopUser: user=" + userId);
636 unloadUserLocked(userId);
    [all...]
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/nonrequiredapps/
NonRequiredAppsLogic.java 99 public Set<String> getSystemAppsToRemove(int userId) {
100 if (!shouldDeleteSystemApps(userId)) {
105 Set<String> newSystemApps = mUtils.getCurrentSystemApps(mIPackageManager, userId);
109 newSystemApps.removeAll(mSnapshot.getSnapshot(userId));
114 mUtils, mContext, userId);
121 deviceAdminComponentName, userId, mParams.provisioningAction);
129 public void maybeTakeSystemAppsSnapshot(int userId) {
130 if (shouldDeleteSystemApps(userId)) {
131 mSnapshot.takeNewSnapshot(userId);
135 private boolean shouldDeleteSystemApps(int userId) {
    [all...]
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
StartManagedProfileTask.java 66 public void run(int userId) {
68 UserUnlockedReceiver unlockedReceiver = new UserUnlockedReceiver(userId);
69 mContext.registerReceiverAsUser(unlockedReceiver, new UserHandle(userId), UNLOCK_FILTER,
72 if (!mIActivityManager.startUserInBackground(userId)) {
73 ProvisionLogger.loge("Unable to start user in background: " + userId);
79 ProvisionLogger.loge("Timeout whilst waiting for unlock of user: " + userId);
84 ProvisionLogger.loge("Exception when starting user in background: " + userId, e);
113 UserUnlockedReceiver(int userId) {
114 mUserId = userId;
  /packages/services/Car/tests/robotests/src/com/android/car/testutils/shadow/
ShadowUserManager.java 86 public boolean isManagedProfile(int userId) {
101 public boolean isUserUnlockingOrUnlocked(int userId) {
111 public boolean removeUser(int userId) {
112 mUserInfos.remove(userId);
124 public void switchUser(int userId) {
125 if (!mUserInfos.containsKey(userId)) {
128 mCurrentUser = userId;
135 public void setCurrentUser(int userId) {
136 mCurrentUser = userId;
  /frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
IconLoader.java 62 activityInfo = PackageManagerWrapper.getInstance().getActivityInfo(cn, taskKey.userId);
107 int userId = taskKey.userId;
110 return createDrawableFromBitmap(tdIcon, userId, desc);
118 return createBadgedDrawable(res.getDrawable(desc.getIconResource(), null), userId,
126 desc.getIconFilename(), userId);
128 return createDrawableFromBitmap(tdIcon, userId, desc);
134 Drawable icon = getBadgedActivityIcon(activityInfo, userId, desc);
141 return returnDefault ? getDefaultIcon(userId) : null;
144 public abstract Drawable getDefaultIcon(int userId);
    [all...]
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
SettingsFacade.java 35 public void setUserSetupCompleted(Context context, int userId) {
36 ProvisionLogger.logd("Setting USER_SETUP_COMPLETE to 1 for user " + userId);
37 Secure.putIntForUser(context.getContentResolver(), USER_SETUP_COMPLETE, 1, userId);
72 public void setProfileContactRemoteSearch(Context context, boolean allowed, int userId) {
74 MANAGED_PROFILE_CONTACT_REMOTE_SEARCH, allowed ? 1 : 0, userId);
  /packages/apps/Settings/src/com/android/settings/accounts/
AccountRestrictionHelper.java 37 * @param userId The user that we retrieve user restriction of.
40 String userRestriction, @UserIdInt int userId) {
44 if (hasBaseUserRestriction(userRestriction, userId)) {
47 preference.checkRestrictionAndSetDisabled(userRestriction, userId);
51 public boolean hasBaseUserRestriction(String userRestriction, @UserIdInt int userId) {
52 return RestrictedLockUtils.hasBaseUserRestriction(mContext, userRestriction, userId);
RemoveUserFragment.java 30 private static final String ARG_USER_ID = "userId";
32 static RemoveUserFragment newInstance(int userId) {
34 args.putInt(ARG_USER_ID, userId);
42 final int userId = getArguments().getInt(ARG_USER_ID);
43 return UserDialogs.createRemoveDialog(getActivity(), userId,
49 um.removeUser(userId);
  /packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
ActionDisabledByAdminDialogTest.java 44 final int userId = 123;
46 final EnforcedAdmin expectedAdmin = new EnforcedAdmin(component, userId);
50 intent.putExtra(Intent.EXTRA_USER_ID, userId);
56 final int userId = UserHandle.myUserId();
57 final EnforcedAdmin expectedAdmin = new EnforcedAdmin(null, userId);

Completed in 879 milliseconds

1 2 3 45 6 7 8 91011>>