/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
CustomDeviceOwnerTest.java | 93 int userId = -1; 96 userId = createUser(); 100 removeUser(userId);
|
/frameworks/base/core/java/android/net/ |
UidRange.java | 41 public static UidRange createForUser(int userId) { 42 return new UidRange(userId * PER_USER_RANGE, (userId + 1) * PER_USER_RANGE - 1);
|
IConnectivityManager.aidl | 55 NetworkCapabilities[] getDefaultNetworkCapabilitiesForUser(int userId); 111 boolean prepareVpn(String oldPackage, String newPackage, int userId); 113 void setVpnPackageAuthorization(String packageName, int userId, boolean authorized); 117 VpnConfig getVpnConfig(int userId); 121 LegacyVpnInfo getLegacyVpnInfo(int userId); 126 boolean isAlwaysOnVpnPackageSupported(int userId, String packageName); 127 boolean setAlwaysOnVpnPackage(int userId, String packageName, boolean lockdown); 128 String getAlwaysOnVpnPackage(int userId);
|
/frameworks/base/core/java/com/android/internal/util/ |
UserIcons.java | 66 * @param userId the user id or {@code UserHandle.USER_NULL} for a non-user specific icon 69 public static Drawable getDefaultUserIcon(Resources resources, int userId, boolean light) { 71 if (userId != UserHandle.USER_NULL) { 73 colorResId = USER_ICON_COLORS[userId % USER_ICON_COLORS.length];
|
/frameworks/base/services/core/java/com/android/server/pm/ |
PackageInstallerService.java | 402 public int createSession(SessionParams params, String installerPackageName, int userId) { 404 return createSessionInternal(params, installerPackageName, userId); 410 private int createSessionInternal(SessionParams params, String installerPackageName, int userId) 414 callingUid, userId, true, true, "createSession"); 416 if (mPm.isUserRestricted(userId, UserManager.DISALLOW_INSTALL_APPS)) { 538 mInstallThread.getLooper(), sessionId, userId, installerPackageName, callingUid, 545 mCallbacks.notifySessionCreated(session.sessionId, session.userId); 674 public ParceledListSlice<SessionInfo> getAllSessions(int userId) { 676 Binder.getCallingUid(), userId, true, false, "getAllSessions"); 682 if (session.userId == userId) [all...] |
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
CreateManagedProfileTask.java | 64 public void run(int userId) { 66 final Set<String> nonRequiredApps = mNonRequiredAppsLogic.getSystemAppsToRemove(userId); 70 userId, nonRequiredApps.toArray(new String[nonRequiredApps.size()]));
|
/packages/apps/Settings/src/com/android/settings/location/ |
LocationSwitchBarController.java | 66 final int userId = UserHandle.myUserId(); 68 mLocationEnabler.getShareLocationEnforcedAdmin(userId); 70 mLocationEnabler.hasShareLocationRestriction(userId);
|
/frameworks/base/core/java/com/android/internal/app/ |
UnlaunchableAppActivity.java | 111 public static Intent createInQuietModeDialogIntent(int userId) { 114 intent.putExtra(Intent.EXTRA_USER_HANDLE, userId); 118 public static Intent createInQuietModeDialogIntent(int userId, IntentSender target) { 119 Intent intent = createInQuietModeDialogIntent(userId);
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
KeyguardSecurityContainer.java | 188 private void showTimeoutDialog(int userId, int timeoutMs) { 192 switch (mSecurityModel.getSecurityMode(userId)) { 212 KeyguardUpdateMonitor.getInstance(mContext).getFailedUnlockAttempts(userId), 256 private void reportFailedUnlockAttempt(int userId, int timeoutMs) { 258 final int failedAttempts = monitor.getFailedUnlockAttempts(userId) + 1; // +1 for this time 264 dpm.getMaximumFailedPasswordsForWipe(null, userId); 274 final int expiringUser = dpm.getProfileWithMinimumFailedPasswordsForWipe(userId); 276 if (expiringUser == userId) { 292 monitor.reportFailedStrongAuthUnlockAttempt(userId); 293 mLockPatternUtils.reportFailedPasswordAttempt(userId); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
NotificationPresenter.java | 88 * @param userId user id to query about 91 boolean isDeviceLocked(int userId);
|
/frameworks/base/services/core/java/com/android/server/policy/keyguard/ |
KeyguardStateMonitor.java | 77 public boolean isSecure(int userId) { 78 return mLockPatternUtils.isSecure(userId) || mSimSecure; 110 public synchronized void setCurrentUser(int userId) { 111 mCurrentUserId = userId;
|
/frameworks/base/services/core/java/com/android/server/slice/ |
SlicePermissionManager.java | 94 public void grantFullAccess(String pkg, int userId) { 95 PkgUser pkgUser = new PkgUser(pkg, userId); 100 public void grantSliceAccess(String pkg, int userId, String providerPkg, int providerUser, 102 PkgUser pkgUser = new PkgUser(pkg, userId); 113 public void revokeSliceAccess(String pkg, int userId, String providerPkg, int providerUser, 115 PkgUser pkgUser = new PkgUser(pkg, userId); 122 public void removePkg(String pkg, int userId) { 123 PkgUser pkgUser = new PkgUser(pkg, userId); 128 getClient(p).removeAuthority(authority.getAuthority(), userId); 146 public boolean hasFullAccess(String pkg, int userId) { [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
TaskSnapshotCache.java | 58 @Nullable TaskSnapshot getSnapshot(int taskId, int userId, boolean restoreFromDisk, 73 return tryRestoreFromDisk(taskId, userId, reducedResolution); 79 private TaskSnapshot tryRestoreFromDisk(int taskId, int userId, boolean reducedResolution) { 80 final TaskSnapshot snapshot = mLoader.loadTask(taskId, userId, reducedResolution);
|
TaskSnapshotLoader.java | 62 * @param userId The id of the user the task belonged to. 66 TaskSnapshot loadTask(int taskId, int userId, boolean reducedResolution) { 67 final File protoFile = mPersister.getProtoFile(taskId, userId); 69 ? mPersister.getReducedResolutionBitmapFile(taskId, userId) 70 : mPersister.getBitmapFile(taskId, userId);
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
BaseIDevicePolicyManager.java | 53 abstract void handleStartUser(int userId); 59 abstract void handleUnlockUser(int userId); 65 abstract void handleStopUser(int userId); 150 String packageName, int userId) {
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
UserLifecycleStressTest.java | 89 private void stopUser(int userId) throws RemoteException, InterruptedException { 93 stopUser(userId, true, 96 public void userStopped(int userId) throws RemoteException { 101 public void userStopAborted(int userId) throws RemoteException {
|
/packages/apps/Settings/src/com/android/settings/applications/ |
ApplicationFeatureProvider.java | 72 * @param userId ID of the user for which to find persistent preferred activities 77 List<UserAppInfo> findPersistentPreferredActivities(@UserIdInt int userId, Intent[] intents);
|
/packages/apps/Settings/src/com/android/settings/fingerprint/ |
FingerprintRemoveSidecar.java | 76 public void startRemove(Fingerprint fingerprint, int userId) { 81 if (userId != UserHandle.USER_NULL) { 82 mFingerprintManager.setActiveUser(userId); 85 mFingerprintManager.remove(fingerprint, userId, mRemoveCallback);;
|
FingerprintStatusPreferenceController.java | 82 final int userId = getUserId(); 83 final List<Fingerprint> items = mFingerprintManager.getEnrolledFingerprints(userId); 100 userId)) { 105 intent.putExtra(Intent.EXTRA_USER_ID, userId);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
ShadowLockPatternUtils.java | 38 public int getActivePasswordQuality(int userId) {
|
ShadowUserManager.java | 108 public boolean isManagedProfile(@UserIdInt int userId) { 109 return mManagedProfiles.contains(userId); 112 public void addManagedProfile(int userId) { 113 mManagedProfiles.add(userId);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
UserSwitchListenerService.java | 45 ON_BOOT_USER_ID_PREFERENCE = "UserSwitchOnBootBroadcastReceiver.userId"; 86 static void setBootUser(Context context, int userId) { 89 editor.putInt(ON_BOOT_USER_ID_PREFERENCE, userId); 99 private static void switchUserNow(int userId) { 101 ActivityManager.getService().switchUser(userId);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accessibility/ |
AccessibilityUtils.java | 68 * @return the set of enabled accessibility services for {@param userId}. If there are no 71 public static Set<ComponentName> getEnabledServicesFromSettings(Context context, int userId) { 74 userId); 115 * Changes an accessibility component's state for {@param userId}. 118 boolean enabled, int userId) { 121 context, userId); 163 enabledServicesBuilder.toString(), userId); 171 * @param userId The user whose settings should be checked 176 Context context, int userId) { 179 userId); [all...] |
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/ |
FinalizationController.java | 134 int userId = UserHandle.myUserId(); 135 Intent provisioningCompleteIntent = createProvisioningCompleteIntent(params, userId); 141 maybeLaunchDpc(params, userId); 171 private void maybeLaunchDpc(ProvisioningParams params, int userId) { 173 if (mUtils.canResolveIntentAsUser(mContext, dpcLaunchIntent, userId)) { 174 mContext.startActivityAsUser(dpcLaunchIntent, UserHandle.of(userId)); 175 ProvisionLogger.logd("Dpc was launched for user: " + userId); 180 @NonNull ProvisioningParams params, int userId) { 183 intent.setComponent(params.inferDeviceAdminComponentName(mUtils, mContext, userId));
|
/frameworks/base/core/java/android/app/ |
IActivityManager.aidl | 111 in String requiredPermission, int userId, int flags); 116 int appOp, in Bundle options, boolean serialized, boolean sticky, int userId); 117 void unbroadcastIntent(in IApplicationThread caller, in Intent intent, int userId); 135 in String name, int userId, boolean stable); 142 in String resolvedType, boolean requireForeground, in String callingPackage, int userId); 144 in String resolvedType, int userId); 147 in String callingPackage, int userId); 156 in IUiAutomationConnection connection, int userId, 181 int checkUriPermission(in Uri uri, int pid, int uid, int mode, int userId, 184 int mode, int userId); [all...] |