Home
last modified time | relevance | path

Searched refs:Account (Results 1 – 25 of 66) sorted by relevance

123

/frameworks/base/core/java/android/accounts/
DIAccountManager.aidl20 import android.accounts.Account;
34 String getPassword(in Account account); in getPassword()
35 String getUserData(in Account account, String key); in getUserData()
37 Account[] getAccounts(String accountType, String opPackageName); in getAccounts()
38 Account[] getAccountsForPackage(String packageName, int uid, String opPackageName); in getAccountsForPackage()
39 Account[] getAccountsByTypeForPackage(String type, String packageName, String opPackageName); in getAccountsByTypeForPackage()
40 Account[] getAccountsAsUser(String accountType, int userId, String opPackageName); in getAccountsAsUser()
41 void hasFeatures(in IAccountManagerResponse response, in Account account, in String[] features, in hasFeatures()
47 boolean addAccountExplicitly(in Account account, String password, in Bundle extras); in addAccountExplicitly()
48 void removeAccount(in IAccountManagerResponse response, in Account account, in removeAccount()
[all …]
DAccount.java38 public class Account implements Parcelable { class
42 private static final Set<Account> sAccessedAccounts = new ArraySet<>();
50 if (!(o instanceof Account)) return false; in equals()
51 final Account other = (Account)o; in equals()
62 public Account(String name, String type) { in Account() method in Account
69 public Account(@NonNull Account other, @NonNull String accessId) { in Account() method in Account
76 public Account(String name, String type, String accessId) { in Account() method in Account
88 public Account(Parcel in) { in Account() method in Account
122 public static final Creator<Account> CREATOR = new Creator<Account>() {
123 public Account createFromParcel(Parcel source) {
[all …]
DIAccountAuthenticator.aidl20 import android.accounts.Account;
37 void confirmCredentials(in IAccountAuthenticatorResponse response, in Account account, in confirmCredentials()
43 void getAuthToken(in IAccountAuthenticatorResponse response, in Account account, in getAuthToken()
54 void updateCredentials(in IAccountAuthenticatorResponse response, in Account account, in updateCredentials()
66 void hasFeatures(in IAccountAuthenticatorResponse response, in Account account, in hasFeatures()
72 void getAccountRemovalAllowed(in IAccountAuthenticatorResponse response, in Account account); in getAccountRemovalAllowed()
78 in Account account); in getAccountCredentialsForCloning()
84 void addAccountFromCredentials(in IAccountAuthenticatorResponse response, in Account account, in addAccountFromCredentials()
97 … void startUpdateCredentialsSession(in IAccountAuthenticatorResponse response, in Account account, in startUpdateCredentialsSession()
111 void isCredentialsUpdateSuggested(in IAccountAuthenticatorResponse response, in Account account, in isCredentialsUpdateSuggested()
DAccountManager.java473 public String getPassword(final Account account) { in getPassword()
503 public String getUserData(final Account account, final String key) { in getUserData()
566 public Account[] getAccounts() { in getAccounts()
586 public Account[] getAccountsAsUser(int userId) { in getAccountsAsUser()
603 public Account[] getAccountsForPackage(String packageName, int uid) { in getAccountsForPackage()
625 public Account[] getAccountsByTypeForPackage(String type, String packageName) { in getAccountsByTypeForPackage()
674 public Account[] getAccountsByType(String type) { in getAccountsByType()
680 public Account[] getAccountsByTypeAsUser(String type, UserHandle userHandle) { in getAccountsByTypeAsUser()
700 public void updateAppPermission(Account account, String authTokenType, int uid, boolean value) { in updateAppPermission()
761 public AccountManagerFuture<Boolean> hasFeatures(final Account account,
[all …]
DChooseTypeAndAccountActivity.java119 private Set<Account> mSetOfAllowableAccounts;
125 private LinkedHashMap<Account, Integer> mAccounts;
129 private ArrayList<Account> mPossiblyVisibleAccounts;
188 mAccounts.put((Account) accounts[i], visibility.get(i)); in onCreate()
195 Account selectedAccount = (Account) intent.getParcelableExtra(EXTRA_SELECTED_ACCOUNT); in onCreate()
207 for (Map.Entry<Account, Integer> entry : mAccounts.entrySet()) { in onCreate()
283 for (Map.Entry<Account, Integer> e : mAccounts.entrySet()) { in onSaveInstanceState()
352 Account[] currentAccounts = AccountManager.get(this).getAccountsForPackage( in onActivityResult()
354 Set<Account> preExistingAccounts = new HashSet<Account>(); in onActivityResult()
356 preExistingAccounts.add((Account) accountParcel); in onActivityResult()
[all …]
DAbstractAccountAuthenticator.java186 Account account, Bundle options) throws RemoteException { in confirmCredentials()
236 Account account, String authTokenType, Bundle loginOptions) in getAuthToken()
263 public void updateCredentials(IAccountAuthenticatorResponse response, Account account, in updateCredentials()
308 Account account, String[] features) throws RemoteException { in hasFeatures()
323 Account account) throws RemoteException { in getAccountRemovalAllowed()
338 Account account) throws RemoteException { in getAccountCredentialsForCloning()
354 Account account, in addAccountFromCredentials()
403 Account account, in startUpdateCredentialsSession()
469 Account account, in isCredentialsUpdateSuggested()
584 Account account, Bundle options) in confirmCredentials()
[all …]
DAccountManagerInternal.java42 public void onAppPermissionChanged(Account account, int uid); in onAppPermissionChanged()
56 public abstract void requestAccountAccess(@NonNull Account account, in requestAccountAccess()
67 public abstract boolean hasAccountAccess(@NonNull Account account, @IntRange(from = 0) int uid); in hasAccountAccess()
/frameworks/base/core/java/android/content/
DIContentService.aidl19 import android.accounts.Account;
58 void requestSync(in Account account, String authority, in Bundle extras); in requestSync()
64 void cancelSync(in Account account, String authority, in ComponentName cname); in cancelSync()
65 void cancelSyncAsUser(in Account account, String authority, in ComponentName cname, int userId); in cancelSyncAsUser()
75 boolean getSyncAutomatically(in Account account, String providerName); in getSyncAutomatically()
76 boolean getSyncAutomaticallyAsUser(in Account account, String providerName, int userId); in getSyncAutomaticallyAsUser()
84 void setSyncAutomatically(in Account account, String providerName, boolean sync); in setSyncAutomatically()
85 void setSyncAutomaticallyAsUser(in Account account, String providerName, boolean sync, in setSyncAutomaticallyAsUser()
95 List<PeriodicSync> getPeriodicSyncs(in Account account, String providerName, in getPeriodicSyncs()
105 void addPeriodicSync(in Account account, String providerName, in Bundle extras, in addPeriodicSync()
[all …]
DAbstractThreadedSyncAdapter.java19 import android.accounts.Account;
110 private final HashMap<Account, SyncThread> mSyncThreads = new HashMap<Account, SyncThread>();
154 private Account toSyncKey(Account account) { in toSyncKey()
164 public void startSync(ISyncContext syncContext, String authority, Account account, in startSync()
171 final Account threadsKey = toSyncKey(account); in startSync()
226 public void initialize(Account account, String authority) throws RemoteException { in initialize()
241 private final Account mAccount;
243 private final Account mThreadsKey;
246 Account account, Bundle extras) { in SyncThread()
322 public abstract void onPerformSync(Account account, Bundle extras, in onPerformSync()
[all …]
DSyncInfo.java19 import android.accounts.Account;
32 private static final Account REDACTED_ACCOUNT = new Account("*****", "*****");
40 public final Account account;
66 public SyncInfo(int authorityId, Account account, String authority, long startTime) { in SyncInfo()
76 this.account = new Account(other.account.name, other.account.type); in SyncInfo()
97 account = parcel.readParcelable(Account.class.getClassLoader()); in SyncInfo()
DISyncAdapter.aidl19 import android.accounts.Account;
39 in Account account, in Bundle extras); in startSync()
54 void initialize(in Account account, String authority); in initialize()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTestFixtures.java18 import android.accounts.Account;
71 public static final Account ACCOUNT_SUCCESS =
72 new Account(ACCOUNT_NAME_SUCCESS, ACCOUNT_TYPE_1);
73 public static final Account ACCOUNT_SUCCESS_2 =
74 new Account(ACCOUNT_NAME_SUCCESS_2, ACCOUNT_TYPE_1);
75 public static final Account ACCOUNT_INTERVENE =
76 new Account(ACCOUNT_NAME_INTERVENE, ACCOUNT_TYPE_1);
77 public static final Account ACCOUNT_ERROR =
78 new Account(ACCOUNT_NAME_ERROR, ACCOUNT_TYPE_1);
79 public static final Account ACCOUNT_SUCCESS_TYPE_2 =
[all …]
DAccountsDbTest.java20 import android.accounts.Account;
88 Account account = new Account("name", "example.com"); in testCeNotAvailableInitially()
95 Account account = new Account("name", "example.com"); in testDeAccountInsertFindDelete()
109 Account account = new Account("name", "example.com"); in testCeAccountInsertFindDelete()
122 Account account = new Account("name", "example.com"); in testAuthTokenInsertFindDelete()
144 Account account = new Account("name", "example.com"); in testAuthTokenDeletes()
150 Account account2 = new Account("name", "example2.com"); in testAuthTokenDeletes()
174 Account account = new Account("name", "example.com"); in testExtrasInsertFindDelete()
201 Account account = new Account("name", "example.com"); in testGrantsInsertFindDelete()
234 Account account = new Account("name", "example.com"); in testSharedAccountsInsertFindDelete()
[all …]
DTestAccountType2Authenticator.java19 import android.accounts.Account;
66 Account account, in confirmCredentials()
75 Account account, in getAuthToken()
91 Account account, in updateCredentials()
101 Account account, in hasFeatures()
121 Account account, in startUpdateCredentialsSession()
141 Account account, in isCredentialsUpdateSuggested()
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncOperationTest.java19 import android.accounts.Account;
40 Account mDummy;
50 mDummy = new Account("account1", "type1"); in setUp()
57 Account account1 = new Account("account1", "type1"); in testToKey()
58 Account account2 = new Account("account2", "type2"); in testToKey()
111 Account account1 = new Account("account1", "type1"); in testConversionToExtras()
144 SyncStorageEngine.EndPoint ep = new SyncStorageEngine.EndPoint(new Account("name", "type"), in testFailedPeriodicConversion()
DSyncStorageEngineTest.java19 import android.accounts.Account;
46 protected Account account1;
47 protected Account account2;
68 account1 = new Account("a@example.com", "example.type"); in setUp()
69 account2 = new Account("b@example.com", "example.type"); in setUp()
89 final Account account = new Account("a@example.com", "example.type"); in testPurgeActiveSync()
109 final Account account1 = new Account("a@example.com", "example.type"); in testAuthorityPersistence()
110 final Account account2 = new Account("b@example.com", "example.type.2"); in testAuthorityPersistence()
172 final Account account1 = new Account("acc1", "type1"); in testAuthorityRenaming()
173 final Account account2 = new Account("acc2", "type2"); in testAuthorityRenaming()
[all …]
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java27 import android.accounts.Account;
137 public Account[] getAccounts() { in getAccounts()
138 return new Account[]{}; in getAccounts()
141 public AccountManagerFuture<Account[]> getAccountsByTypeAndFeatures( in getAccountsByTypeAndFeatures()
143 AccountManagerCallback<Account[]> callback, Handler handler) { in getAccountsByTypeAndFeatures()
144 return new MockAccountManagerFuture<Account[]>(new Account[0]); in getAccountsByTypeAndFeatures()
147 public String blockingGetAuthToken(Account account, String authTokenType, in blockingGetAuthToken()
DSyncBaseInstrumentation.java24 import android.accounts.Account;
56 Account account = new Account(accountName, "com.google"); in syncProvider()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java21 import android.accounts.Account;
201 private final HashMap<Pair<Pair<Account, String>, Integer>, NotificationId>
203 private final HashMap<Account, NotificationId> signinRequiredNotificationIds
208 final HashMap<String, Account[]> accountCache = new LinkedHashMap<>();
210 private final Map<Account, Map<String, String>> userDataCache = new HashMap<>();
212 private final Map<Account, Map<String, String>> authTokenCache = new HashMap<>();
216 private final Map<Account, Map<String, Integer>> visibilityCache = new HashMap<>();
236 private final HashMap<Account, AtomicReference<String>> previousNameCache =
237 new HashMap<Account, AtomicReference<String>>();
260 private static final Account[] EMPTY_ACCOUNT_ARRAY = new Account[]{};
[all …]
DTokenCache.java19 import android.accounts.Account;
49 public final Account account;
54 public Key(Account account, String tokenType, String packageName, byte[] sigDigest) { in Key()
109 private HashMap<Account, Evictor> mAccountEvictors = new HashMap<>();
164 public void evict(Account account) { in evict()
189 Account account, in put()
212 public void remove(Account account) { in remove()
219 public String get(Account account, String tokenType, String packageName, byte[] sigDigest) { in get()
DAccountsDb.java19 import android.accounts.Account;
335 Map<String, String> findAuthTokensByAccount(Account account) { in findAuthTokensByAccount()
438 Map<String, String> findUserExtrasForAccount(Account account) { in findUserExtrasForAccount()
456 long findCeAccountId(Account account) { in findCeAccountId()
484 long insertCeAccount(Account account, String password) { in insertCeAccount()
683 long insertSharedAccount(Account account) { in insertSharedAccount()
692 boolean deleteSharedAccount(Account account) { in deleteSharedAccount()
698 int renameSharedAccount(Account account, String newName) { in renameSharedAccount()
708 List<Account> getSharedAccounts() { in getSharedAccounts()
710 ArrayList<Account> accountList = new ArrayList<>(); in getSharedAccounts()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DAuthenticatorService.java19 import android.accounts.Account;
70 Account account, Bundle bundle) in confirmCredentials()
77 Account account, String s, Bundle bundle) in getAuthToken()
89 Account account, String s, Bundle bundle) in updateCredentials()
96 Account account, String[] strings) in hasFeatures()
/frameworks/base/core/java/com/android/server/backup/
DAccountSyncSettingsBackupHelper.java19 import android.accounts.Account;
127 Account[] accounts = mAccountManager.getAccounts(); in serializeAccountSyncSettingsToJSON()
152 for (Account account : accounts) { in serializeAccountSyncSettingsToJSON()
277 HashSet<Account> currentAccounts = getAccounts(); in restoreFromJsonArray()
284 Account account = null; in restoreFromJsonArray()
286 account = new Account(accountName, accountType); in restoreFromJsonArray()
356 private HashSet<Account> getAccounts() { in getAccounts()
357 Account[] accounts = mAccountManager.getAccounts(); in getAccounts()
358 HashSet<Account> accountHashSet = new HashSet<Account>(); in getAccounts()
359 for (Account account : accounts) { in getAccounts()
[all …]
/frameworks/base/core/java/android/provider/
DSyncStateContract.java24 import android.accounts.Account;
74 Account account) throws RemoteException { in get()
104 Account account, byte[] data) throws RemoteException { in set()
113 Account account, byte[] data) throws RemoteException { in insert()
129 Account account) throws RemoteException { in getWithUri()
159 Account account, byte[] data) { in newSetOperation()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardEntryConstructor.java18 import android.accounts.Account;
54 private final Account mAccount;
66 public VCardEntryConstructor(final int vcardType, final Account account) { in VCardEntryConstructor()
75 public VCardEntryConstructor(final int vcardType, final Account account, in VCardEntryConstructor()

123