Lines Matching defs:Account

49 public class Account implements Parcelable {
64 * Account manager name. MUST MATCH SYSTEM ACCOUNT MANAGER NAME
74 * Account type. MUST MATCH SYSTEM ACCOUNT MANAGER TYPE
79 * Cached android.accounts.Account based on the above two values
81 private android.accounts.Account amAccount;
311 public Account buildFrom(Cursor cursor) {
312 return new Account(cursor);
315 public Account buildFrom(JSONObject json) throws JSONException {
316 return new Account(json);
319 public Account buildFrom(Parcel in, ClassLoader loader) {
320 return new Account(in, loader);
340 * Overrides the default {@code Account.Builder}
348 * Create a new instance of an Account object using a serialized instance created previously
353 * @return Account object
355 public static Account newInstance(String serializedAccount) {
356 // The heavy lifting is done by Account(name, type, json). This method
370 * Construct a new Account instance from a previously serialized string.
378 protected Account(JSONObject json) throws JSONException {
440 "Unexpected null settings in Account(name, type, jsonAccount)");
445 protected Account(Cursor cursor) {
532 public static Account[] getAllAccounts(ObjectCursor<Account> cursor) {
536 return new Account[0];
539 final Account[] allAccounts = new Account[initialLength];
549 public android.accounts.Account getAccountManagerAccount() {
553 amAccount = new android.accounts.Account(accountManagerName, type);
596 protected Account(Parcel in, ClassLoader loader) {
636 LogUtils.e(LOG_TAG, new Throwable(), "Unexpected null settings in Account(Parcel)");
711 final Account other = (Account) o;
752 * @param other Account object to compare
755 public final boolean settingsDiffer(Account other) {
808 public boolean matches(Account other) {
849 * @return if the address belongs to this Account (either as the main address or as a
865 * "Work Account" or "Old ISP POP3 account".
867 * Account renaming only applies to Email, so a Gmail account should always return the primary
870 * @return Account display name
903 public static final ClassLoaderCreator<Account> CREATOR = new ClassLoaderCreator<Account>() {
905 public Account createFromParcel(Parcel source, ClassLoader loader) {
910 public Account createFromParcel(Parcel source) {
915 public Account[] newArray(int size) {
916 return new Account[size];
972 public final static CursorCreator<Account> FACTORY = new CursorCreator<Account>() {
974 public Account createFromCursor(Cursor c) {
980 return "Account CursorCreator";