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,
243 return Account.CONTENT_URI;
251 Cursor c = context.getContentResolver().query(getUri(), Account.CONTENT_PROJECTION,
358 * TODO define sentinel values for "never", "push", etc. See Account.java
366 * TODO define sentinel values for "never", "push", etc. See Account.java
374 * @return One of the {@code Account.SYNC_WINDOW_*} constants that represents the sync
376 * TODO define sentinel values for "all", "1 month", etc. See Account.java
384 * TODO define sentinel values for "all", "1 month", etc. See Account.java
484 final long accountId = cursor.getLong(Account.ID_PROJECTION_COLUMN);
508 * @return the account's protocol (or null if the Account or HostAuth do not exist)
511 Account account = Account.restoreAccountWithId(context, accountId);
537 public android.accounts.Account getAccountManagerAccount(String type) {
538 return new android.accounts.Account(mEmailAddress, type);
558 public static Account getAccountForMessageId(Context context, long messageId) {
561 return Account.restoreAccountWithId(context, accountId);
580 ContentUris.withAppendedId(Account.CONTENT_URI, accountId),
582 & Account.FLAGS_SECURITY_HOLD) != 0;
602 Cursor c = resolver.query(Account.CONTENT_URI, ACCOUNT_FLAGS_PROJECTION,
612 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, accountId);
622 * Override this so that we can store the HostAuth's first and link them to the Account
633 // directly for Account, which are unsupported.
690 // Now do the Account
784 LogUtils.d(LogUtils.TAG, e, "Exception while serializing Account");
789 public static Account fromJsonString(final String jsonString) {
799 protected static Account fromJson(final JSONObject json) {
801 final Account a = new Account();
822 LogUtils.d(LogUtils.TAG, e, "Exception while deserializing Account");
833 throw new IllegalStateException("Trying to load incomplete Account object");
856 public static final Parcelable.Creator<Account> CREATOR
857 = new Parcelable.Creator<Account>() {
859 public Account createFromParcel(Parcel in) {
860 return new Account(in);
864 public Account[] newArray(int size) {
865 return new Account[size];
911 public Account(Parcel in) {
912 mBaseUri = Account.CONTENT_URI;