/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
ContactManager.java | 22 import android.accounts.Account; 69 public static long ensureSampleGroupExists(Context context, Account account) { 77 new String[] { account.name, account.type, SAMPLE_GROUP_NAME }, null); 91 contentValues.put(Groups.ACCOUNT_NAME, account.name); 92 contentValues.put(Groups.ACCOUNT_TYPE, account.type); 108 * @param account The username for the account 114 public static synchronized long updateContacts(Context context, String account, [all...] |
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/ |
CalendarUtilities.java | 42 import com.android.emailcommon.provider.Account; [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
GroupEditorFragment.java | 19 import android.accounts.Account; 70 import com.android.contacts.model.account.AccountType; 71 import com.android.contacts.model.account.AccountWithDataSet; 162 SELECTING_ACCOUNT, // Account select dialog is showing 230 // Account select dialog is showing. Don't setup the editor yet. 239 final Account account = mIntentExtras == null ? null : local 240 (Account) mIntentExtras.getParcelable(Intents.Insert.ACCOUNT); 244 if (account != null) [all...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
ContactDetailActivity.java | 50 import com.android.contacts.model.account.AccountWithDataSet; 290 ArrayList<ContentValues> values, AccountWithDataSet account) { 294 ContactDetailActivity.this, values, account,
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
RawContactReadOnlyEditorView.java | 45 import com.android.contacts.model.account.AccountType; 46 import com.android.contacts.model.account.AccountWithDataSet; 75 void onExternalEditorRequest(AccountWithDataSet account, Uri uri);
|
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
UtilityMediumTests.java | 21 import com.android.emailcommon.provider.Account; 62 Account account1 = ProviderTestUtils.setupAccount("account1", false, mMockContext); 66 Account account2 = ProviderTestUtils.setupAccount("account2", false, mMockContext); 71 Account acct = Utility.findExistingAccount(mMockContext, -1, "address-ha1", "login-ha1"); 77 // We shouldn't find account 85 Account account3 = ProviderTestUtils.setupAccount("account3", false, mMockContext); 96 Account account = ProviderTestUtils.setupAccount("account", true, mMockContext); local 101 ProviderTestUtils.setupMailbox("mailbox", account.mId, true, mMockContext) [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
GoogleSource.java | 23 import android.accounts.Account; 169 public static final void createMyContactsIfNotExist(Account account, Context context) { 170 attemptMyContactsMembership(null, account.name, account.type, context, true);
|
Sources.java | 24 import android.accounts.Account; 176 public void onAccountsUpdated(Account[] accounts) { 233 * that matches the given account type. 242 throw new IllegalStateException("Couldn't find authenticator for specific account type"); 249 public ArrayList<Account> getAccounts(boolean writableOnly) { 251 final Account[] accounts = am.getAccounts(); 252 final ArrayList<Account> matching = Lists.newArrayList(); 254 for (Account account : accounts) { 255 // Ensure we have details loaded for each account [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
GlobalSearchSupportTest.java | 19 import android.accounts.Account; 46 Account account = new Account("actname", "acttype"); local 49 createGroup(account, "any", "any", 0 /* visible */, true /* auto-add */, false /* fav */); 51 long rawContactId = createRawContact(account);
|
/frameworks/base/core/java/android/provider/ |
ContactsContract.java | 19 import android.accounts.Account; 74 * person and associated with a single account (for example, one of the user's 148 * A query parameter specifing a primary account. This parameter should be used with 152 * For example, in an email composition screen, its implementation can specify an account when 153 * obtaining possible recipients, letting the provider know which account is selected during 154 * the composition. The provider may use the "primary account" information to optimize 160 * A query parameter specifing a primary account. This parameter should be used with 421 * (for instance when the user adds a new Directory account), the directory provider 427 * A directory row can be optionally associated with an existing account 428 * (see {@link android.accounts.AccountManager}). If the account is later removed [all...] |
/packages/apps/Contacts/src/com/android/contacts/detail/ |
StreamItemAdapter.java | 27 import com.android.contacts.model.account.AccountType; 85 // We make child views clickable in getvView() if the account type supports 108 // Only pass the photo click listener if the account type has the photo 114 // If the account type has the stream item view activity, make the stream container
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
ContactListFilterController.java | 23 import com.android.contacts.model.account.AccountWithDataSet; 70 * an account is removed while the filter points to the account with 157 // The current account filter points to invalid account. Use "all" filter 166 * @return true if the Account for the current filter exists.
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
AccountPromptUtils.java | 33 import com.android.contacts.model.account.GoogleAccountType; 38 * Utility class for controlling whether the standard "no account" prompt on launch is shown. 44 /** {@link SharedPreferences} key for whether or not the "no account" prompt should be shown. */ 60 * Returns true if the "no account" prompt should be shown 63 * account type is not available from the {@link AccountManager}. 66 // TODO: Remove the filtering of account types once there is an API in 67 // {@link AccountManager} to show a similar account prompt 69 // for any type of account. Bug: 5375902 81 * Remember to never show the "no account" prompt again by saving this to 91 * Launch the "no account" prompt. (We assume the caller has already verified that the promp [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
Account.java | 41 public final class Account extends EmailContent implements AccountColumns, Parcelable { 42 public static final String TABLE_NAME = "Account"; 44 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/account"); 50 Uri.parse(EmailContent.CONTENT_NOTIFIER_URI + "/account"); 52 Uri.parse(EmailContent.CONTENT_URI + "/account/default"); 54 // Define all pseudo account IDs here to avoid conflict with one another. 56 * Pseudo account ID to represent a "combined account" that includes messages and mailboxes 63 * Pseudo account ID to represent "no account". This may be used any time the account I 485 Account account = Account.restoreAccountWithId(context, accountId); local 589 Account account = Account.restoreAccountWithId(context, accountId); local 697 Account account = Account.restoreAccountWithId(context, accountId); local [all...] |
/packages/apps/Email/src/com/android/email/service/ |
AttachmentDownloadService.java | 40 import com.android.emailcommon.provider.Account; 86 // Limit on the number of simultaneous downloads per account 105 // A map of attachment storage used per account 107 // amount plus the size of any new attachments laoded). If and when we reach the per-account 123 * allows us to build a mock account manager stub in the unit tests 325 // Enforce per-account limit here 362 Account account = Account.restoreAccountWithId(mContext, accountKey); local 363 if (account == null) [all...] |
/packages/apps/Phone/src/com/android/phone/ |
SimContacts.java | 19 import android.accounts.Account; 72 private Account mAccount; 138 final Cursor cursor, final ContentResolver resolver, Account account) { 157 if (account != null) { 158 builder.withValue(RawContacts.ACCOUNT_NAME, account.name); 159 builder.withValue(RawContacts.ACCOUNT_TYPE, account.type); 227 mAccount = new Account(accountName, accountType);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/ |
ContactAggregatorTest.java | 19 import android.accounts.Account; 56 private static final Account ACCOUNT_1 = new Account("account_name_1", "account_type_1"); 57 private static final Account ACCOUNT_2 = new Account("account_name_2", "account_type_2"); 58 private static final Account ACCOUNT_3 = new Account("account_name_3", "account_type_3"); 140 Account account = new Account("accountName", "accountType") local 599 Account account = new Account("accountName", "accountType"); local 624 Account account = new Account("accountName", "accountType"); local 650 Account account = new Account("accountName", "accountType"); local [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/ |
NetworkUtilities.java | 38 import android.accounts.Account; 62 /** POST parameter name for the user's account name */ 100 * @param username The server account username 101 * @param password The server account password 153 * @param account The account being synced 155 * account 161 Account account, String authtoken, long serverSyncState, List<RawContact> dirtyContacts) 178 params.add(new BasicNameValuePair(PARAM_USERNAME, account.name)) [all...] |
/packages/apps/Browser/src/com/android/browser/ |
GoogleAccountLogin.java | 19 import android.accounts.Account; 54 // Google account type 60 private final Account mAccount; 72 private GoogleAccountLogin(Activity activity, Account account, 75 mAccount = account; 222 // No account found? 223 Account[] accounts = getAccounts(activity); 248 private static Account[] getAccounts(Context ctx) {
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
RawContact.java | 27 import com.android.contacts.model.account.AccountType; 28 import com.android.contacts.model.account.AccountWithDataSet; 38 * from a single account. 41 * fields (like account type, name, data set, sync state, etc.) and a list of 114 * Returns the account name of the raw contact. 121 * Returns the account type of the raw contact. 135 * Returns the account type and data set of the raw contact. 190 * Sets the account name, account type, and data set strings. 191 * Valid combinations for account-name, account-type, data-se [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ |
ContactEditorUtilsTest.java | 23 import com.android.contacts.model.account.AccountType; 24 import com.android.contacts.model.account.AccountWithDataSet; 119 // Use these account types here. 133 // 1 account 150 // account list should be empty in this case. 157 // Use these account types here. 184 // We show the notification here, and user clicked "add account" 187 // Now we open the contact editor with the new account. 189 // When closing the editor, we save the default account. 195 // User added a new writable account, ACCOUNT_1_B [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
SetupData.java | 19 import com.android.emailcommon.provider.Account; 40 // either return to the caller (if we're in an account type flow) or go to the message list 55 private Account mAccount; 88 static public Account getAccount() { 92 static public void setAccount(Account mAccount) { 174 public static void init(int flowMode, Account account) { 178 data.mAccount = account; 186 mAccount = new Account();
|
/packages/apps/Email/src/com/android/mail/utils/ |
LogUtils.java | 121 // This assumes that the first path segment is the account 122 final String account = pathSegments.get(0); local 124 builder = builder.appendPath(String.valueOf(account.hashCode()));
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
ContactLoaderTest.java | 32 import com.android.contacts.model.account.AccountType; 33 import com.android.contacts.model.account.AccountWithDataSet; 34 import com.android.contacts.model.account.BaseAccountType; 63 AccountWithDataSet account = local 68 new AccountType[] { accountType }, new AccountWithDataSet[] { account }));
|
/packages/apps/Email/src/com/android/email/mail/store/ |
ImapStore.java | 43 import com.android.emailcommon.provider.Account; 96 public static Store newInstance(Account account, Context context) throws MessagingException { 97 return new ImapStore(context, account); 101 * Creates a new store for the given account. Always use 102 * {@link #newInstance(Account, Context)} to create an IMAP store. 104 private ImapStore(Context context, Account account) throws MessagingException { 106 mAccount = account; 108 HostAuth recvAuth = account.getOrCreateHostAuthRecv(context) [all...] |