Lines Matching defs:Account

43 public final class Account extends EmailContent implements Parcelable {
44 public static final String TABLE_NAME = "Account";
111 // Sentinel values for the mSyncInterval field of both Account records
199 public Account() {
209 public static Account restoreAccountWithId(Context context, long id) {
213 public static Account restoreAccountWithId(Context context, long id, ContentObserver observer) {
214 return EmailContent.restoreContentWithId(context, Account.class,
215 Account.CONTENT_URI, Account.CONTENT_PROJECTION, id, observer);
218 public static Account restoreAccountWithAddress(Context context, String emailAddress) {
222 public static Account restoreAccountWithAddress(Context context, String emailAddress,
237 return Account.CONTENT_URI;
245 Cursor c = context.getContentResolver().query(getUri(), Account.CONTENT_PROJECTION,
352 * TODO define sentinel values for "never", "push", etc. See Account.java
360 * TODO define sentinel values for "never", "push", etc. See Account.java
368 * @return One of the {@code Account.SYNC_WINDOW_*} constants that represents the sync
370 * TODO define sentinel values for "all", "1 month", etc. See Account.java
378 * TODO define sentinel values for "all", "1 month", etc. See Account.java
478 final long accountId = cursor.getLong(Account.ID_PROJECTION_COLUMN);
502 * @return the account's protocol (or null if the Account or HostAuth do not exist)
505 Account account = Account.restoreAccountWithId(context, accountId);
531 public android.accounts.Account getAccountManagerAccount(String type) {
532 return new android.accounts.Account(mEmailAddress, type);
552 public static Account getAccountForMessageId(Context context, long messageId) {
555 return Account.restoreAccountWithId(context, accountId);
574 ContentUris.withAppendedId(Account.CONTENT_URI, accountId),
576 & Account.FLAGS_SECURITY_HOLD) != 0;
596 Cursor c = resolver.query(Account.CONTENT_URI, ACCOUNT_FLAGS_PROJECTION,
606 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, accountId);
616 * Override this so that we can store the HostAuth's first and link them to the Account
627 // directly for Account, which are unsupported.
684 // Now do the Account
778 LogUtils.d(LogUtils.TAG, e, "Exception while serializing Account");
783 public static Account fromJsonString(final String jsonString) {
793 protected static Account fromJson(final JSONObject json) {
795 final Account a = new Account();
816 LogUtils.d(LogUtils.TAG, e, "Exception while deserializing Account");
827 throw new IllegalStateException("Trying to load incomplete Account object");
850 public static final Parcelable.Creator<Account> CREATOR
851 = new Parcelable.Creator<Account>() {
853 public Account createFromParcel(Parcel in) {
854 return new Account(in);
858 public Account[] newArray(int size) {
859 return new Account[size];
905 public Account(Parcel in) {
906 mBaseUri = Account.CONTENT_URI;