/frameworks/base/core/java/com/android/internal/widget/ |
ILockSettings.aidl | 23 void setBoolean(in String key, in boolean value, in int userId); 24 void setLong(in String key, in long value, in int userId); 25 void setString(in String key, in String value, in int userId); 26 boolean getBoolean(in String key, in boolean defaultValue, in int userId); 27 long getLong(in String key, in long defaultValue, in int userId); 28 String getString(in String key, in String defaultValue, in int userId); 29 void setLockPattern(in String pattern, in String savedPattern, int userId); 30 VerifyCredentialResponse checkPattern(in String pattern, int userId); 31 VerifyCredentialResponse verifyPattern(in String pattern, long challenge, int userId); 32 void setLockPassword(in String password, in String savedPassword, int userId); [all...] |
LockPatternUtils.java | 188 public int getRequestedMinimumPasswordLength(int userId) { 189 return getDevicePolicyManager().getPasswordMinimumLength(null, userId); 196 public int getRequestedPasswordQuality(int userId) { 197 return getDevicePolicyManager().getPasswordQuality(null, userId); 200 private int getRequestedPasswordHistoryLength(int userId) { 201 return getDevicePolicyManager().getPasswordHistoryLength(null, userId); 204 public int getRequestedPasswordMinimumLetters(int userId) { 205 return getDevicePolicyManager().getPasswordMinimumLetters(null, userId); 208 public int getRequestedPasswordMinimumUpperCase(int userId) { 209 return getDevicePolicyManager().getPasswordMinimumUpperCase(null, userId); [all...] |
/frameworks/base/media/java/android/media/tv/ |
ITvInputManager.aidl | 42 List<TvInputInfo> getTvInputList(int userId); 43 TvInputInfo getTvInputInfo(in String inputId, int userId); 44 int getTvInputState(in String inputId, int userId); 46 List<TvContentRatingSystemInfo> getTvContentRatingSystemList(int userId); 48 void registerCallback(in ITvInputManagerCallback callback, int userId); 49 void unregisterCallback(in ITvInputManagerCallback callback, int userId); 51 boolean isParentalControlsEnabled(int userId); 52 void setParentalControlsEnabled(boolean enabled, int userId); 53 boolean isRatingBlocked(in String rating, int userId); 54 List<String> getBlockedRatings(int userId); [all...] |
/frameworks/base/core/java/android/print/ |
IPrintManager.aidl | 35 List<PrintJobInfo> getPrintJobInfos(int appId, int userId); 36 PrintJobInfo getPrintJobInfo(in PrintJobId printJobId, int appId, int userId); 38 in PrintAttributes attributes, String packageName, int appId, int userId); 39 void cancelPrintJob(in PrintJobId printJobId, int appId, int userId); 40 void restartPrintJob(in PrintJobId printJobId, int appId, int userId); 43 int appId, int userId); 45 int userId); 47 List<PrintServiceInfo> getInstalledPrintServices(int userId); 48 List<PrintServiceInfo> getEnabledPrintServices(int userId); 50 void createPrinterDiscoverySession(in IPrinterDiscoveryObserver observer, int userId); [all...] |
/frameworks/base/services/core/java/com/android/server/ |
LockSettingsStorage.java | 104 public void writeKeyValue(String key, String value, int userId) { 105 writeKeyValue(mOpenHelper.getWritableDatabase(), key, value, userId); 108 public void writeKeyValue(SQLiteDatabase db, String key, String value, int userId) { 111 cv.put(COLUMN_USERID, userId); 117 new String[] {key, Integer.toString(userId)}); 120 mCache.putKeyValue(key, value, userId); 127 public String readKeyValue(String key, String defaultValue, int userId) { 130 if (mCache.hasKeyValue(key, userId)) { 131 return mCache.peekKeyValue(key, defaultValue, userId); 141 new String[] { Integer.toString(userId), key } [all...] |
LockSettingsService.java | 79 void setCredential(String credential, String savedCredential, int userId) 81 byte[] toHash(String credential, int userId); 168 final int userId = users.get(user).id; 170 String ownerInfo = Settings.Secure.getStringForUser(cr, OWNER_INFO, userId); 172 setString(OWNER_INFO, ownerInfo, userId); 173 Settings.Secure.putStringForUser(cr, ownerInfo, "", userId); 182 int ivalue = Settings.Secure.getIntForUser(cr, OWNER_INFO_ENABLED, userId); 184 setLong(OWNER_INFO_ENABLED, enabled ? 1 : 0, userId); 188 setLong(OWNER_INFO_ENABLED, 1, userId); 191 Settings.Secure.putIntForUser(cr, OWNER_INFO_ENABLED, 0, userId); [all...] |
/frameworks/base/core/java/com/android/server/ |
AppWidgetBackupBridge.java | 34 public static List<String> getWidgetParticipants(int userId) { 36 ? sAppWidgetService.getWidgetParticipants(userId) 40 public static byte[] getWidgetState(String packageName, int userId) { 42 ? sAppWidgetService.getWidgetState(packageName, userId) 46 public static void restoreStarting(int userId) { 48 sAppWidgetService.restoreStarting(userId); 52 public static void restoreWidgetState(String packageName, byte[] restoredState, int userId) { 54 sAppWidgetService.restoreWidgetState(packageName, restoredState, userId); 58 public static void restoreFinished(int userId) { 60 sAppWidgetService.restoreFinished(userId); [all...] |
WidgetBackupProvider.java | 29 public List<String> getWidgetParticipants(int userId); 30 public byte[] getWidgetState(String packageName, int userId); 31 public void restoreStarting(int userId); 32 public void restoreWidgetState(String packageName, byte[] restoredState, int userId); 33 public void restoreFinished(int userId);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
PermissionsState.java | 149 * @param userId The device user id. 154 public int grantRuntimePermission(BasePermission permission, int userId) { 155 enforceValidUserId(userId); 156 if (userId == UserHandle.USER_ALL) { 159 return grantPermission(permission, userId); 166 * @param userId The device user id. 171 public int revokeRuntimePermission(BasePermission permission, int userId) { 172 enforceValidUserId(userId); 173 if (userId == UserHandle.USER_ALL) { 176 return revokePermission(permission, userId); [all...] |
DefaultPermissionGrantPolicy.java | 164 public void grantDefaultPermissions(int userId) { 165 grantPermissionsToSysComponentsAndPrivApps(userId); 166 grantDefaultSystemHandlerPermissions(userId); 169 private void grantPermissionsToSysComponentsAndPrivApps(int userId) { 170 Log.i(TAG, "Granting permissions to platform components for user " + userId); 189 grantRuntimePermissionsLPw(pkg, permissions, true, userId); 195 private void grantDefaultSystemHandlerPermissions(int userId) { 196 Log.i(TAG, "Granting permissions to default platform handlers for user " + userId); 217 ? imePackagesProvider.getPackages(userId) : null; 219 ? voiceInteractionPackagesProvider.getPackages(userId) : null [all...] |
PackageSettingBase.java | 244 private PackageUserState modifyUserState(int userId) { 245 PackageUserState state = userState.get(userId); 248 userState.put(userId, state); 253 public PackageUserState readUserState(int userId) { 254 PackageUserState state = userState.get(userId); 261 void setEnabled(int state, int userId, String callingPackage) { 262 PackageUserState st = modifyUserState(userId); 267 int getEnabled(int userId) { 268 return readUserState(userId).enabled; 271 String getLastDisabledAppCaller(int userId) { [all...] |
/frameworks/base/core/java/android/app/trust/ |
ITrustManager.aidl | 27 void reportUnlockAttempt(boolean successful, int userId); 28 void reportEnabledTrustAgentsChanged(int userId); 29 void reportRequireCredentialEntry(int userId); 33 boolean isDeviceLocked(int userId); 34 boolean isDeviceSecure(int userId); 35 boolean hasUserAuthenticatedSinceBoot(int userId);
|
TrustManager.java | 48 * Reports that user {@param userId} has tried to unlock the device. 54 public void reportUnlockAttempt(boolean successful, int userId) { 56 mService.reportUnlockAttempt(successful, userId); 63 * Reports that the list of enabled trust agents changed for user {@param userId}. 67 public void reportEnabledTrustAgentsChanged(int userId) { 69 mService.reportEnabledTrustAgentsChanged(userId); 76 * Reports that trust is disabled until credentials have been entered for user {@param userId}. 80 * @param userId either an explicit user id or {@link android.os.UserHandle#USER_ALL} 82 public void reportRequireCredentialEntry(int userId) { 84 mService.reportRequireCredentialEntry(userId); [all...] |
/frameworks/base/core/java/android/accounts/ |
AccountAndUser.java | 20 * Used to store the Account and the UserId this account is associated with. 26 public int userId; 28 public AccountAndUser(Account account, int userId) { 30 this.userId = userId; 38 && this.userId == other.userId; 43 return account.hashCode() + userId; 47 return account.toString() + " u" + userId;
|
/frameworks/base/services/core/java/com/android/server/trust/ |
TrustManagerService.java | 165 int userId; 173 return component.equals(o.component) && userId == o.userId; 178 return component.hashCode() * 31 + userId; 189 public void updateTrust(int userId, int flags) { 190 dispatchOnTrustManagedChanged(aggregateIsTrustManaged(userId), userId); 191 boolean trusted = aggregateIsTrusted(userId); 194 changed = mUserIsTrusted.get(userId) != trusted; 195 mUserIsTrusted.put(userId, trusted) [all...] |
TrustArchive.java | 45 final int userId; 57 private Event(int type, int userId, ComponentName agent, String message, 60 this.userId = userId; 72 public void logGrantTrust(int userId, ComponentName agent, String message, 74 addEvent(new Event(TYPE_GRANT_TRUST, userId, agent, message, duration, 78 public void logRevokeTrust(int userId, ComponentName agent) { 79 addEvent(new Event(TYPE_REVOKE_TRUST, userId, agent, null, 0, 0, false)); 82 public void logTrustTimeout(int userId, ComponentName agent) { 83 addEvent(new Event(TYPE_TRUST_TIMEOUT, userId, agent, null, 0, 0, false)) [all...] |
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
CardEmulationManager.java | 93 public void onUserSwitched(int userId) { 94 mServiceCache.invalidateCache(userId); 95 mPreferredServices.onUserSwitched(userId); 114 public void onServicesUpdated(int userId, List<ApduServiceInfo> services) { 116 verifyDefaults(userId, services); 118 mAidCache.onServicesUpdated(userId, services); 123 void verifyDefaults(int userId, List<ApduServiceInfo> services) { 125 getDefaultServiceForCategory(userId, CardEmulation.CATEGORY_PAYMENT, false); 129 ApduServiceInfo serviceInfo = mServiceCache.getService(userId, defaultPaymentService); 149 setDefaultServiceForCategoryChecked(userId, null, CardEmulation.CATEGORY_PAYMENT) [all...] |
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
FingerprintUtils.java | 54 public List<Fingerprint> getFingerprintsForUser(Context ctx, int userId) { 55 return getStateForUser(ctx, userId).getFingerprints(); 58 public void addFingerprintForUser(Context ctx, int fingerId, int userId) { 59 getStateForUser(ctx, userId).addFingerprint(fingerId, userId); 62 public void removeFingerprintIdForUser(Context ctx, int fingerId, int userId) { 63 getStateForUser(ctx, userId).removeFingerprint(fingerId); 66 public void renameFingerprintForUser(Context ctx, int fingerId, int userId, CharSequence name) { 67 getStateForUser(ctx, userId).renameFingerprint(fingerId, name); 84 private FingerprintsUserState getStateForUser(Context ctx, int userId) { [all...] |
/frameworks/base/core/java/android/content/pm/ |
PackageCleanItem.java | 24 public final int userId; 28 public PackageCleanItem(int userId, String packageName, boolean andCode) { 29 this.userId = userId; 42 return userId == other.userId && packageName.equals(other.packageName) 53 result = 31 * result + userId; 64 dest.writeInt(userId); 81 userId = source.readInt();
|
IPackageManager.aidl | 63 boolean isPackageAvailable(String packageName, int userId); 64 PackageInfo getPackageInfo(String packageName, int flags, int userId); 65 int getPackageUid(String packageName, int userId); 66 int[] getPackageGids(String packageName, int userId); 79 ApplicationInfo getApplicationInfo(String packageName, int flags ,int userId); 81 ActivityInfo getActivityInfo(in ComponentName className, int flags, int userId); 86 ActivityInfo getReceiverInfo(in ComponentName className, int flags, int userId); 88 ServiceInfo getServiceInfo(in ComponentName className, int flags, int userId); 90 ProviderInfo getProviderInfo(in ComponentName className, int flags, int userId); 92 int checkPermission(String permName, String pkgName, int userId); [all...] |
IPackageInstaller.aidl | 30 int createSession(in PackageInstaller.SessionParams params, String installerPackageName, int userId); 41 ParceledListSlice getAllSessions(int userId); 42 ParceledListSlice getMySessions(String installerPackageName, int userId); 44 void registerCallback(IPackageInstallerCallback callback, int userId); 48 in IntentSender statusReceiver, int userId);
|
/frameworks/base/core/java/android/view/accessibility/ |
IAccessibilityManager.aidl | 38 int addClient(IAccessibilityManagerClient client, int userId); 40 boolean sendAccessibilityEvent(in AccessibilityEvent uiEvent, int userId); 42 List<AccessibilityServiceInfo> getInstalledAccessibilityServiceList(int userId); 44 List<AccessibilityServiceInfo> getEnabledAccessibilityServiceList(int feedbackType, int userId); 46 void interrupt(int userId); 49 in IAccessibilityInteractionConnection connection, int userId);
|
/frameworks/base/services/core/java/com/android/server/am/ |
ProviderMap.java | 66 ContentProviderRecord getProviderByName(String name, int userId) { 77 return getProvidersByName(userId).get(name); 84 ContentProviderRecord getProviderByClass(ComponentName name, int userId) { 95 return getProvidersByClass(userId).get(name); 106 final int userId = UserHandle.getUserId(record.appInfo.uid); 107 getProvidersByName(userId).put(name, record); 119 final int userId = UserHandle.getUserId(record.appInfo.uid); 120 getProvidersByClass(userId).put(name, record); 124 void removeProviderByName(String name, int userId) { 130 if (userId < 0) throw new IllegalArgumentException("Bad user " + userId) [all...] |
/packages/apps/Nfc/src/com/android/nfc/ |
NfcPermissions.java | 21 public static void validateUserId(int userId) { 22 if (userId != UserHandle.getCallingUserId()) { 23 throw new SecurityException("userId passed in is not the calling user.");
|
/frameworks/base/services/core/java/com/android/server/telecom/ |
TelecomLoaderService.java | 84 final int userid = mDefaultSmsAppRequests.get(i); local 87 smsComponent.getPackageName(), userid); local 98 final int userId = mDefaultDialerAppRequests.get(i); 101 packageName, userId); 114 final int userId = mDefaultSimCallManagerRequests.get(i); 118 packageName, userId); 206 public String[] getPackages(int userId) { 212 mDefaultSmsAppRequests.add(userId); 229 public String[] getPackages(int userId) { 235 mDefaultDialerAppRequests.add(userId); [all...] |