Home
last modified time | relevance | path

Searched full:account (Results 1 – 25 of 14756) sorted by relevance

12345678910>>...591

/aosp_15_r20/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
H A DShadowAccountManagerTest.java10 import android.accounts.Account;
62 Account a1 = new Account("name_a", "type_a"); in testGetAccounts()
68 Account a2 = new Account("name_b", "type_b"); in testGetAccounts()
77 shadowOf(am).addAccount(new Account("name_1", "type_1")); in getAccountsByType_nullTypeReturnsAllAccounts()
78 shadowOf(am).addAccount(new Account("name_2", "type_2")); in getAccountsByType_nullTypeReturnsAllAccounts()
79 shadowOf(am).addAccount(new Account("name_3", "type_3")); in getAccountsByType_nullTypeReturnsAllAccounts()
89 Account a1 = new Account("name_a", "type_a"); in testGetAccountsByType()
91 Account[] accounts = am.getAccountsByType("type_a"); in testGetAccountsByType()
96 Account a2 = new Account("name_b", "type_b"); in testGetAccountsByType()
103 Account a3 = new Account("name_c", "type_a"); in testGetAccountsByType()
[all …]
/aosp_15_r20/frameworks/base/core/java/android/accounts/
H A DAccountManager.java85 * per account, granting applications access to online resources with
89 * authentication, so the account manager uses pluggable <em>authenticator</em>
90 * modules for different <em>account types</em>. Authenticators (which may be
91 * written by third parties) handle the actual details of validating account
92 * credentials and storing account information. For example, Google, Facebook,
113 * identifies the authenticator. Account <em>features</em> are used to
114 * identify particular account subtypes and capabilities. Both the account
121 * account of the appropriate type.
124 * account selection, it must make sure the account is still in the list
126 * for an account no longer on the device results in an undefined failure.
[all …]
H A DIAccountManager.aidl20 import android.accounts.Account;
30 * Central application service that provides account management.
34 String getPassword(in Account account); in getPassword() argument
35 String getUserData(in Account account, String key); in getUserData() argument
37 Account[] getAccountsForPackage(String packageName, int uid, String opPackageName); in getAccountsForPackage()
38 Account[] getAccountsByTypeForPackage(String type, String packageName, String opPackageName); in getAccountsByTypeForPackage()
39 Account[] getAccountsAsUser(String accountType, int userId, String opPackageName); in getAccountsAsUser()
40 void hasFeatures(in IAccountManagerResponse response, in Account account, in String[] features, in hasFeatures() argument
46 …boolean addAccountExplicitly(in Account account, String password, in Bundle extras, in String opPa… in addAccountExplicitly() argument
47 void removeAccountAsUser(in IAccountManagerResponse response, in Account account, in removeAccountAsUser() argument
[all …]
H A DAbstractAccountAuthenticator.java45 * &lt;account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
56 * corresponds to {@link Account#type} for your accounts. One user of the android:icon is the
57 * "Account & Sync" settings page and one user of the android:smallIcon is the Contact Application's
118 * Bundle key used for the {@link String} account type in session bundle.
139 * Bundle key used for the {@link Account} account in session bundle. This is used
185 Account account, Bundle options) throws RemoteException { in confirmCredentials() argument
189 Log.v(TAG, "confirmCredentials: " + account); in confirmCredentials()
193 new AccountAuthenticatorResponse(response), account, options); in confirmCredentials()
205 handleException(response, "confirmCredentials", account.toString(), e); in confirmCredentials()
239 Account account, String authTokenType, Bundle loginOptions) in getAuthToken() argument
[all …]
/aosp_15_r20/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
H A DShadowAccountManager.java6 import android.accounts.Account;
42 private List<Account> accounts = new ArrayList<>();
43 private Map<Account, Map<String, String>> authTokens = new HashMap<>();
47 * Maps listeners to a set of account types. If null, the listener should be notified for changes
53 private Map<Account, Map<String, String>> userData = new HashMap<>();
54 private Map<Account, String> passwords = new HashMap<>();
55 private Map<Account, Set<String>> accountFeatures = new HashMap<>();
56 private Map<Account, Set<String>> packageVisibleAccounts = new HashMap<>();
90 protected Account[] getAccounts() { in getAccounts()
91 return accounts.toArray(new Account[accounts.size()]); in getAccounts()
[all …]
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/accounts/
H A DAccountManagerService.java25 import android.accounts.Account;
155 * A system service that provides account, password, and authtoken management for all
242 private final HashMap<Pair<Pair<Account, String>, Integer>, NotificationId>
244 private final HashMap<Account, NotificationId> signinRequiredNotificationIds
249 final HashMap<String, Account[]> accountCache = new LinkedHashMap<>();
251 private final Map<Account, Map<String, String>> userDataCache = new HashMap<>();
253 private final Map<Account, Map<String, String>> authTokenCache = new HashMap<>();
257 private final Map<Account, Map<String, Integer>> visibilityCache = new HashMap<>();
261 * type == null is used to get notifications about all account types
268 * Caches the previous names associated with an account. Previous names
[all …]
/aosp_15_r20/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
H A DAccountsDbTest.java28 import android.accounts.Account;
106 Account account = new Account("name", "example.com"); in testCeNotAvailableInitially() local
107 long id = mAccountsDb.insertCeAccount(account, ""); in testCeNotAvailableInitially()
113 Account account = new Account("name", "example.com"); in testDeAccountInsertFindDelete() local
115 mAccountsDb.insertDeAccount(account, accId); in testDeAccountInsertFindDelete()
116 long actualId = mAccountsDb.findDeAccountId(account); in testDeAccountInsertFindDelete()
118 // Delete and verify that account no longer exists in testDeAccountInsertFindDelete()
120 actualId = mAccountsDb.findDeAccountId(account); in testDeAccountInsertFindDelete()
127 Account account = new Account("name", "example.com"); in testCeAccountInsertFindDelete() local
128 long accId = mAccountsDb.insertCeAccount(account, "password"); in testCeAccountInsertFindDelete()
[all …]
/aosp_15_r20/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2DefaultAccountTest.java24 import android.accounts.Account;
60 * Unit tests for {@link ContactsProvider2} Default Account Handling.
72 static final Account SYSTEM_CLOUD_ACCOUNT_1 = new Account("sourceName1", "com.google");
73 static final Account SYSTEM_CLOUD_ACCOUNT_2 = new Account("sourceName2", "com.google");
74 static final Account SYSTEM_CLOUD_ACCOUNT_NOT_SIGNED_IN = new Account("sourceName3",
76 static final Account NON_SYSTEM_CLOUD_ACCOUNT_1 = new Account("sourceName1", "com.whatsapp");
77 static final Account SIM_ACCOUNT_1 = new Account("simName1", "SIM");
136 private void createSimAccount(Account account) { in createSimAccount() argument
138 new AccountWithDataSet(account.name, account.type, null); in createSimAccount()
153 // Default account is Unknown initially. in testSetAndGetDefaultAccountForNewContacts_flagOff()
[all …]
DMoveRawContactsTest.java23 import android.accounts.Account;
75 static final Account SOURCE_ACCOUNT = new Account("sourceName", "sourceType");
76 static final Account DEST_ACCOUNT = new Account("destName", "destType");
77 static final Account DEST_ACCOUNT_WITH_SOURCE_TYPE = new Account("destName", "sourceType");
78 static final Account DEST_CLOUD_ACCOUNT = new Account("destName", CLOUD_ACCOUNT_TYPE);
79 static final Account SIM_ACCOUNT = new Account("simName", "simType");
103 mActor.setAccounts(new Account[]{SOURCE_ACCOUNT, DEST_ACCOUNT}); in setUp()
125 private AccountWithDataSet createSimAccount(Account account) { in createSimAccount() argument
127 new AccountWithDataSet(account.name, account.type, null); in createSimAccount()
140 private void setDefaultAccountManagerAccounts(Account[] accounts) { in setDefaultAccountManagerAccounts()
[all …]
DDefaultAccountManagerTest.java23 import android.accounts.Account;
40 private static final Account SYSTEM_CLOUD_ACCOUNT_1 = new Account("[email protected]",
42 private static final Account NON_SYSTEM_CLOUD_ACCOUNT_1 = new Account("[email protected]",
45 private static final Account SIM_ACCOUNT_1 = new Account("SIM_ACCOUNT_NAME",
63 setAccounts(new Account[0]); in setUp()
68 private void setAccounts(Account[] accounts) { in setAccounts()
71 // Construsts a map between the account type and account list, so that we could mock in setAccounts()
73 Map<String, List<Account>> accountTypeMap = new HashMap<>(); in setAccounts()
74 for (Account account : accounts) { in setAccounts()
75 if (accountTypeMap.containsKey(account.type)) { in setAccounts()
[all …]
/aosp_15_r20/external/python/google-api-python-client/docs/dyn/
Diam_v1.projects.serviceAccounts.html90account, you might not be able to undelete it. If you know that you need to re-enable the service
93account to authenticate, that application can no longer call Google APIs or access Google Cloud re…
96account is already enabled, then this method has no effect. If the service account was disabled by…
102 …e account. This method does not tell you whether the service account has been granted any roles on…
114account. For example, you could grant a principal the ability to impersonate the service account. …
117 …dentials/v1/projects.serviceAccounts/signBlob) method in the IAM Service Account Credentials API i…
120 …edentials/v1/projects.serviceAccounts/signJwt) method in the IAM Service Account Credentials API i…
126account. Use this method only as a last resort. After you delete a service account, IAM permanentl…
145 { # The service account create request.
146 …tId&quot;: &quot;A String&quot;, # Required. The account id that is used to generate the service a…
[all …]
Dcontent_v2.accounts.html82 <p class="firstline">Claims the website of a Merchant Center sub-account.</p>
91 <p class="firstline">Deletes a Merchant Center sub-account.</p>
94 <p class="firstline">Retrieves a Merchant Center account.</p>
97 <p class="firstline">Creates a Merchant Center sub-account.</p>
103 <p class="firstline">Lists the sub-accounts in your Merchant Center account.</p>
109 <p class="firstline">Updates a Merchant Center account. Any fields that are not provided are delete…
125 …countIdentifiers&quot;: [ # The account identifiers corresponding to the authenticated user. - For…
128 …&quot;merchantId&quot;: &quot;A String&quot;, # The merchant account ID, set for individual accoun…
137 <pre>Claims the website of a Merchant Center sub-account.
140account. If this parameter is not the same as accountId, then this account must be a multi-client
[all …]
Dcontent_v2_1.accounts.html97 <p class="firstline">Claims the website of a Merchant Center sub-account.</p>
106 <p class="firstline">Deletes a Merchant Center sub-account.</p>
109 <p class="firstline">Retrieves a Merchant Center account.</p>
112 <p class="firstline">Creates a Merchant Center sub-account.</p>
118 <p class="firstline">Lists the sub-accounts in your Merchant Center account.</p>
124 <p class="firstline">Returns the list of accounts linked to your Merchant Center account.</p>
133 <p class="firstline">Updates a Merchant Center account. Any fields that are not provided are delete…
136 <p class="firstline">Updates labels that are assigned to the Merchant Center account by CSS user.</…
139 <p class="firstline">Validates verification code to verify phone number for the account. If success…
155 …countIdentifiers&quot;: [ # The account identifiers corresponding to the authenticated user. - For…
[all …]
/aosp_15_r20/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/
DPbapClientContactsStorageTest.java28 import android.accounts.Account;
73 private static final String ACCOUNT_TYPE = "com.android.bluetooth.pbapclient.account";
87 private List<Account> mMockedAccounts = new ArrayList<>();
109 Account account = (Account) invocation.getArgument(0); in setUp()
110 mMockedAccounts.add(account); in setUp()
114 .addAccount(any(Account.class)); in setUp()
118 Account account = (Account) invocation.getArgument(0); in setUp()
119 mMockedAccounts.remove(account); in setUp()
123 .removeAccount(any(Account.class)); in setUp()
163 startStorage(new ArrayList<Account>()); in testStartStorage_withoutExistingAccounts_storageReadyWithNoAccounts()
[all …]
/aosp_15_r20/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/
DPbapClientAccountManager.java19 import android.accounts.Account;
45 * This class abstracts away interactions and management of the AccountManager Account objects that
47 * an account, as well as remove or cleanup accounts.
50 * with the authenticator that owns the specified account. AccountManager knowing this is contingent
57 * <p>Once the account list has been intitialized, clients can begin making calls to add, remove and
75 private final Set<Account> mAccounts = new HashSet<Account>();
83 /** A Callback interface so clients can receive structured events from this account manager */
86 * Receive account visibility updates
89 * first account update after initialization
92 void onAccountsChanged(List<Account> oldAccounts, List<Account> newAccounts); in onAccountsChanged()
[all …]
DPbapClientContactsStorage.java19 import android.accounts.Account;
55 * <p>All contacts on Android are stored against an AccountManager Framework Account object. These
56 * Accounts should be created by devices upon connecting. This Account is used on many of the
84 * Receive account visibility updates
89 void onStorageAccountsChanged(List<Account> oldAccounts, List<Account> newAccounts); in onStorageAccountsChanged()
94 public void onAccountsChanged(List<Account> oldAccounts, List<Account> newAccounts) { in onAccountsChanged()
151 * and initializes our storage state based on this account list, using the following
159 * @param accounts The list of accounts that exist following start up of the account manager
161 private void initialize(List<Account> accounts) { in initialize()
168 for (Account account : accounts) { in initialize()
[all …]
/aosp_15_r20/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
H A DContactsContract_DefaultAccountTest.java30 import android.accounts.Account;
43 import android.provider.cts.contacts.account.StaticAccountAuthenticator;
64 // Using unique account name and type because these tests may break or be broken by
66 private static final Account ACCT_1 = new Account("DAT test for default account1",
68 private static final Account ACCT_2 = new Account("DAT test for default account2",
70 … private static final Account ACCT_NOT_PRESENT = new Account("DAT test for account not signed in",
72 private static final String SIM_ACCT_NAME = "sim account name for DAT test";
73 private static final String SIM_ACCT_TYPE = "sim account type for DAT test";
74 private static final Account SIM_ACCT = new Account(SIM_ACCT_NAME, SIM_ACCT_TYPE);
149 // SIM_ACCT is not a SIM account, which cannot be set as default account with the state SIM. in testDefaultAccount_cloud_invalidCloudAccounts()
[all …]
/aosp_15_r20/cts/tests/tests/accounts/src/android/accounts/cts/
H A DAccountManagerTest.java19 import android.accounts.Account;
61 public static final String ACCOUNT_NAME = "android.accounts.cts.account.name";
62 public static final String ACCOUNT_NEW_NAME = "android.accounts.cts.account.name.rename";
63 public static final String ACCOUNT_NAME_OTHER = "android.accounts.cts.account.name.other";
65 public static final String ACCOUNT_TYPE = "android.accounts.cts.account.type";
66 public static final String ACCOUNT_TYPE_CUSTOM = "android.accounts.cts.custom.account.type";
67 public static final String ACCOUNT_TYPE_ABSENT = "android.accounts.cts.account.type.absent";
69 public static final String ACCOUNT_PASSWORD = "android.accounts.cts.account.password";
71 public static final String ACCOUNT_STATUS_TOKEN = "android.accounts.cts.account.status.token";
99 public static final Account ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE); field in AccountManagerTest
[all …]
/aosp_15_r20/external/aws-sdk-java-v2/services/account/src/main/resources/codegen-resources/
H A Dservice-2.json5 "endpointPrefix":"account",
8 "serviceFullName":"AWS Account",
9 "serviceId":"Account",
11 "signingName":"account",
12 "uid":"account-2021-02-01"
30account.</p> <p>For complete details about how to use the alternate contact operations, see <a hre…
48 "documentation":"<p>Disables (opts-out) a particular Region for an account.</p>"
65 "documentation":"<p>Enables (opts-in) a particular Region for an account.</p>"
83account.</p> <p>For complete details about how to use the alternate contact operations, see <a hre…
101 …:"<p>Retrieves the primary contact information of an Amazon Web Services account.</p> <p>For compl…
[all …]
/aosp_15_r20/packages/apps/Contacts/tests/src/com/android/contacts/util/
DAccountDisplayInfoFactoryTests.java27 import com.android.contacts.model.account.AccountDisplayInfo;
28 import com.android.contacts.model.account.AccountDisplayInfoFactory;
29 import com.android.contacts.model.account.AccountType;
30 import com.android.contacts.model.account.AccountWithDataSet;
53 addTypeMapping(account("user", "com.example"), "title", comExampleIcon); in test_displayableAccount_hasIconFromAccountType()
54 addTypeMapping(account(null, null), "device", someDrawable()); in test_displayableAccount_hasIconFromAccountType()
55 addTypeMapping(account("foo", "bar.type"), "bar", someDrawable()); in test_displayableAccount_hasIconFromAccountType()
56 addTypeMapping(account("user2", "com.example"), "title", comExampleIcon); in test_displayableAccount_hasIconFromAccountType()
61 account("user", "com.example")); in test_displayableAccount_hasIconFromAccountType()
68 addTypeMapping(account("[email protected]", "com.example"), "title", comExampleIcon); in test_displayableAccount_hasNameFromAccount()
[all …]
/aosp_15_r20/cts/tests/tests/calendarprovider/src/android/provider/cts/calendar/
H A DCalendarTest.java127 static String generateCalendarOwnerEmail(String account) { in generateCalendarOwnerEmail() argument
128 return "OWNER_" + account + "@example.com"; in generateCalendarOwnerEmail()
135 * @param account The account name to create this calendar with
140 String account, int seed) { in getNewCalendarValues() argument
145 values.put(Calendars.ACCOUNT_NAME, account); in getNewCalendarValues()
150 values.put(Calendars.OWNER_ACCOUNT, generateCalendarOwnerEmail(account)); in getNewCalendarValues()
203 public static int deleteCalendarByAccount(ContentResolver resolver, String account) { in deleteCalendarByAccount() argument
205 new String[] { account }); in deleteCalendarByAccount()
208 public static Cursor getCalendarsByAccount(ContentResolver resolver, String account) { in getCalendarsByAccount() argument
211 if (account != null) { in getCalendarsByAccount()
[all …]
/aosp_15_r20/external/mobly-bundled-snippets/src/main/java/com/google/android/mobly/snippet/bundled/
H A DAccountSnippet.java19 import android.accounts.Account;
49 * apps by implementing a {@link android.content.ContentProvider} for a particular account type.
81 * Adds a Google account to the device.
83 * @param username Username of the account to add (including @gmail.com).
84 * @param password Password of the account to add.
88 "Add a Google (GMail) account to the device, with account data sync disabled.")
91 // Check for existing account. If we try to re-add an existing account, Android throws an in addAccount()
92 // exception that says "Account does not exist or not visible. Maybe change pwd?" which is in addAccount()
96 "Account " + username + " already exists on the device"); in addAccount()
115 "Failed to add account due to code %d: %s", in addAccount()
[all …]
/aosp_15_r20/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DAccountResolver.java18 import android.accounts.Account;
40 private static Account getLocalAccount() { in getLocalAccount()
43 // the NULL account. in getLocalAccount()
47 // the customized local account. in getLocalAccount()
48 return new Account(AccountWithDataSet.LOCAL.getAccountName(), in getLocalAccount()
54 * Resolves the account and builds an {@link AccountWithDataSet} based on the data set specified
60 * @param applyDefaultAccount Whether to look up default account during
61 * account resolution.
62 * @param shouldValidateAccountForContactAddition Whether to validate the account accepts new
67 final Account[] accounts = resolveAccount(uri, values); in resolveAccountWithDataSet()
[all …]
/aosp_15_r20/external/aws-sdk-java-v2/services/chime/src/main/resources/codegen-resources/
H A Ddocs-2.json5account. For more information about different account types, see <a href=\"http://docs.aws.amazon.…
6account. Only users on <code>EnterpriseLWA</code> accounts can be unsuspended using this action. F…
7 …RequestItem</a> object for up to 20 users for the specified Amazon Chime account. Currently, only …
8account under the administrator's AWS account. Only <code>Team</code> account types are currently …
9account. You must suspend all users before deleting a <code>Team</code> account. You can use the <…
10 …"GetAccount": "<p>Retrieves details for the specified Amazon Chime account, such as account type a…
11 …"GetAccountSettings": "<p>Retrieves account settings for the specified Amazon Chime account ID, su…
13 …ing them to the specified Amazon Chime <code>Team</code> account. Only <code>Team</code> account t…
14account. You can filter accounts by account name prefix. To find out which Amazon Chime account a …
15 …"ListUsers": "<p>Lists the users that belong to the specified Amazon Chime account. You can specif…
[all …]
/aosp_15_r20/external/aws-sdk-java-v2/services/detective/src/main/resources/codegen-resources/
H A Dservice-2.json29account to contribute data to a behavior graph. This operation can only be called by an invited me…
61 "documentation":"<p>Gets information on the data source package history for an account.</p>"
77account, and sets that account as the administrator account. This operation is called by the accou…
94account uses <code>CreateMembers</code> to enable organization accounts as member accounts.</p> <p…
109 …h from each member account's list of behavior graphs.</p> <p> <code>DeleteGraph</code> can only be…
126account for the behavior graph.</p> <p>For invited accounts, the removed accounts are deleted from…
142 …ember accounts.</p> <p>Can only be called by the Detective administrator account for the organizat…
156account in the current Region. Deletes the organization behavior graph.</p> <p>Can only be called …
172account from the specified behavior graph. This operation can only be called by an invited member
187account for the organization in the current Region.</p> <p>If the account does not have Detective …
[all …]

12345678910>>...591