/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
H A D | ContactAggregatorHelper.java | 36 * If two connected components have disjoint accounts, merge them. 45 final Map<Long, Set<Integer>> accounts = new HashMap<>(); 52 Set<Integer> s = accounts.get(acctId); 57 accounts.put(acctId, s); 63 for (Long accountId : accounts.keySet()) { 64 final Set<Integer> s = accounts.get(accountId); 77 for (Long accountId : accounts.keySet()) { 78 final Set<Integer> s = accounts.get(accountId);
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
H A D | AccountsTestHelper.java | 21 import android.accounts.Account; 22 import android.accounts.AccountManager; 51 // to add and remove accounts. 73 // remember the most recent one. If the caller wants to add multiple accounts they will 101 final List<Account> accounts = Arrays.asList( 103 return accounts.contains(new Account(name, TEST_ACCOUNT_TYPE)); 130 final Account[] accounts = accountManager.getAccountsByType(TEST_ACCOUNT_TYPE); 131 for (Account account : accounts) {
|
/packages/apps/Contacts/src/com/android/contacts/preference/ |
H A D | DefaultAccountPreference.java | 48 public void setAccounts(List<AccountInfo> accounts) { argument 49 mAccounts = accounts; 51 mListAdapter.setAccounts(accounts, null);
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | SyncUtil.java | 18 import android.accounts.Account; 54 * {@link ContentResolver#isSyncActive(Account, String)} is true for any account in accounts 56 public static final boolean isAnySyncing(List<AccountWithDataSet> accounts) { argument 57 for (AccountWithDataSet accountWithDataSet : accounts) {
|
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
H A D | MockAccountTypeManager.java | 18 import android.accounts.Account; 41 public MockAccountTypeManager(AccountType[] types, AccountWithDataSet[] accounts) { argument 43 this.mAccounts = accounts;
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
H A D | SelectAccountDialogFragment.java | 19 import android.accounts.Account; 20 import android.accounts.AccountManager; 47 Account[] accounts = accountManager.getAccounts(); 54 android.R.layout.simple_list_item_2, accounts) {
|
/packages/apps/Contacts/tests/src/com/android/contacts/util/ |
H A D | SyncUtilTests.java | 18 import android.accounts.Account; 42 // The account names of mGoogleAccount and mOtherAccount are not valid, so both accounts
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
H A D | CopyAccountToUserTask.java | 25 import android.accounts.Account; 26 import android.accounts.AccountManager; 27 import android.accounts.AuthenticatorException; 28 import android.accounts.OperationCanceledException;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
H A D | RemoveUserFragmentTest.java | 17 package com.android.settings.accounts;
|
H A D | AccountPreferenceTest.java | 17 package com.android.settings.accounts; 19 import android.accounts.Account;
|
H A D | AccountSyncPreferenceControllerTest.java | 16 package com.android.settings.accounts; 21 import android.accounts.Account;
|
/packages/providers/ContactsProvider/tests/assets/upgradeTest/ |
H A D | contacts2_1108.sql | 14 CREATE TABLE accounts (_id INTEGER PRIMARY KEY AUTOINCREMENT,account_name TEXT, account_type TEXT, data_set TEXT); table 17 CREATE TABLE raw_contacts (_id INTEGER PRIMARY KEY AUTOINCREMENT,account_id INTEGER REFERENCES accounts(_id),sourceid TEXT,backup_id TEXT,raw_contact_is_read_only INTEGER NOT NULL DEFAULT 0,version INTEGER NOT NULL DEFAULT 1,dirty INTEGER NOT NULL DEFAULT 0,deleted INTEGER NOT NULL DEFAULT 0,metadata_dirty INTEGER NOT NULL DEFAULT 0,contact_id INTEGER REFERENCES contacts(_id),aggregation_mode INTEGER NOT NULL DEFAULT 0,aggregation_needed INTEGER NOT NULL DEFAULT 1,custom_ringtone TEXT,send_to_voicemail INTEGER NOT NULL DEFAULT 0,times_contacted INTEGER NOT NULL DEFAULT 0,last_time_contacted INTEGER,starred INTEGER NOT NULL DEFAULT 0,pinned INTEGER NOT NULL DEFAULT 0,display_name TEXT,display_name_alt TEXT,display_name_source INTEGER NOT NULL DEFAULT 0,phonetic_name TEXT,phonetic_name_style TEXT,sort_key TEXT COLLATE PHONEBOOK,phonebook_label TEXT,phonebook_bucket INTEGER,sort_key_alt TEXT COLLATE PHONEBOOK,phonebook_label_alt TEXT,phonebook_bucket_alt INTEGER,name_verified INTEGER NOT NULL DEFAULT 0,sync1 TEXT, sync2 TEXT, sync3 TEXT, sync4 TEXT ); 38 CREATE TABLE groups (_id INTEGER PRIMARY KEY AUTOINCREMENT,package_id INTEGER REFERENCES package(_id),account_id INTEGER REFERENCES accounts(_id),sourceid TEXT,version INTEGER NOT NULL DEFAULT 1,dirty INTEGER NOT NULL DEFAULT 0,title TEXT,title_res INTEGER,notes TEXT,system_id TEXT,deleted INTEGER NOT NULL DEFAULT 0,group_visible INTEGER NOT NULL DEFAULT 0,should_sync INTEGER NOT NULL DEFAULT 1,auto_add INTEGER NOT NULL DEFAULT 0,favorites INTEGER NOT NULL DEFAULT 0,group_is_read_only INTEGER NOT NULL DEFAULT 0,sync1 TEXT, sync2 TEXT, sync3 TEXT, sync4 TEXT ); 80 INSERT INTO "sqlite_stat1" VALUES('accounts',NULL,'3'); 115 INSERT INTO "sqlite_sequence" VALUES('accounts',1); 139 CREATE VIEW view_data AS SELECT data._id AS _id,hash_id, raw_contact_id, raw_contacts.contact_id AS contact_id, raw_contacts.account_id,accounts.account_name AS account_name,accounts.account_type AS account_type,accounts.data_set AS data_set,(CASE WHEN accounts.data_set IS NULL THEN accounts [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/ |
H A D | AccountTypeManager.java | 19 import android.accounts.Account; 20 import android.accounts.AccountManager; 21 import android.accounts.OnAccountsUpdateListener; 167 * Returns the list of all accounts (if contactWritableOnly is false) or just the list of 168 * contact writable accounts (if contactWritableOnly is true). 181 * Returns all contact writable accounts 184 * accounts in infrequently used features where refactoring to asynchronous loading is 194 * Loads accounts in background and returns future that will complete with list of all accounts 199 * Loads accounts an 438 onAccountsUpdated(Account[] accounts) argument 590 getAccountsWithDataSets(Account[] accounts, AccountTypeProvider typeProvider) argument [all...] |
H A D | Cp2DeviceLocalAccountLocator.java | 18 import android.accounts.AccountManager; 34 * Attempts to create accounts for "Device" contacts by querying 76 // Many device accounts have default groups associated with them. 84 private void addAccountsFromQuery(Uri uri, Set<AccountWithDataSet> accounts) { argument 90 addAccountsFromCursor(cursor, accounts); 96 private void addAccountsFromCursor(Cursor cursor, Set<AccountWithDataSet> accounts) { argument 104 accounts.add(new AccountWithDataSet(name, type, dataSet));
|
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/ |
H A D | OmtpVvmSyncReceiver.java | 45 List<PhoneAccountHandle> accounts = 47 for (PhoneAccountHandle phoneAccount : accounts) {
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
H A D | AccountSyncPreferenceController.java | 17 package com.android.settings.accounts; 21 import android.accounts.Account;
|
H A D | RemoveAccountPreferenceController.java | 16 package com.android.settings.accounts; 18 import android.accounts.Account; 19 import android.accounts.AccountManager; 20 import android.accounts.AccountManagerCallback; 21 import android.accounts.AccountManagerFuture; 22 import android.accounts.AuthenticatorException; 23 import android.accounts.OperationCanceledException;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/ |
H A D | SupportItemAdapterTest.java | 19 import android.accounts.Account; 154 * accounts} 157 * @param accounts holds the accounts info to be showed in spinner. 160 Account accounts[]) { 161 bindAccountPickerInner(viewHolder, accounts); 167 assertThat(adapter.getCount()).isEqualTo(accounts.length + 1); 168 for (int i = 0; i < accounts.length; i++) { 169 assertThat(adapter.getItem(i)).isEqualTo(accounts[i].name); 178 * @param accounts hold 159 testBindAccountPickerInner(SupportItemAdapter.ViewHolder viewHolder, Account accounts[]) argument 180 bindAccountPickerInner(SupportItemAdapter.ViewHolder viewHolder, Account accounts[]) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
H A D | AccountUtils.java | 19 import android.accounts.Account; 20 import android.accounts.AccountManager; 50 * Get all device accounts having specified domain name.
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
H A D | CalendarProvider2ForTesting.java | 3 import android.accounts.Account; 26 public void onAccountsUpdated(Account[] accounts) { argument
|
/packages/apps/Email/provider_src/com/android/email/service/ |
H A D | AuthenticatorService.java | 23 import android.accounts.AbstractAccountAuthenticator; 24 import android.accounts.Account; 25 import android.accounts.AccountAuthenticatorResponse; 26 import android.accounts.AccountManager; 27 import android.accounts.NetworkErrorException;
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | MailboxSelectionActivity.java | 49 * An activity that shows the list of all the available accounts and return the 149 // Only fetch the accounts, if we are not handling a response from the 207 private void completeSetupWithAccounts(final Cursor accounts) { argument 211 updateAccountList(accounts); 216 private void updateAccountList(final Cursor accounts) { argument 220 if (accounts == null || accounts.getCount() == 0) { 235 } else if (mConfigureWidget && accounts.getCount() == 1) { 239 accounts.moveToFirst(); 240 selectAccount(Account.builder().buildFrom(accounts)); [all...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
H A D | ContactEditorAccountsChangedActivity.java | 120 private void updateDisplayedAccounts(List<AccountInfo> accounts) { argument 121 final int numAccounts = accounts.size(); 123 throw new IllegalStateException("Cannot have a negative number of accounts"); 128 // When the user has 2+ writable accounts, show a list of accounts so the user can pick 141 mAccountListAdapter = new AccountsListAdapter(this, accounts); 144 } else if (numAccounts == 1 && !accounts.get(0).getAccount().isNullAccount()) { 154 final AccountInfo accountInfo = accounts.get(0); 173 // If the user has 0 writable accounts, we will just show the user a message with 2 230 public void onAccountsLoaded(List<AccountInfo> accounts) { argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
H A D | ImportRequest.java | 18 import android.accounts.Account;
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
H A D | AccountTypeManagerTest.java | 19 import android.accounts.Account; 20 import android.accounts.AccountManager; 86 private static Collection<AccountWithDataSet> buildAccounts(AccountWithDataSet... accounts) { argument 88 for (AccountWithDataSet account : accounts) {
|