Searched defs:account (Results 1 - 25 of 112) sorted by relevance

12345

/packages/apps/Calendar/src/com/android/calendar/
H A DRecipientAdapter.java30 * Set the account when known. Causes the search to prioritize contacts from
31 * that account.
33 public void setAccount(Account account) { argument
34 if (account != null) {
35 // TODO: figure out how to infer the contacts account
36 // type from the email account
37 super.setAccount(new android.accounts.Account(account.name, "unknown"));
/packages/apps/Email/src/com/android/email/
H A DRecipientAdapter.java31 * Set the account when known. Causes the search to prioritize contacts from
32 * that account.
35 public void setAccount(Account account) { argument
36 if (account != null) {
37 // TODO: figure out how to infer the contacts account
38 // type from the email account
39 super.setAccount(new android.accounts.Account(account.name, "unknown"));
H A DRequireManualSyncDialog.java29 public RequireManualSyncDialog(Context context, Account account) { argument
33 Preferences.getPreferences(context).setHasShownRequireManualSync(context, account, true);
H A DEmailAddressAdapter.java72 * Set the account when known. Causes the search to prioritize contacts
73 * from that account.
75 public void setAccount(Account account) { argument
76 if (account != null) {
77 // TODO: figure out how to infer the contacts account type from the email account
78 super.setAccount(new android.accounts.Account(account.mEmailAddress, "unknown"));
/packages/apps/Contacts/src/com/android/contacts/model/account/
H A DFallbackAccountType.java17 package com.android.contacts.model.account;
56 Log.e(TAG, "Problem building account type", e);
H A DAccountWithDataSet.java17 package com.android.contacts.model.account;
37 * Wrapper for an account that includes a data set (which may be null).
90 * Return {@code true} if this account has any contacts in the database.
133 private static StringBuilder addStringified(StringBuilder sb, AccountWithDataSet account) { argument
134 sb.append(account.name);
136 sb.append(account.type);
138 if (!TextUtils.isEmpty(account.dataSet)) sb.append(account.dataSet);
170 for (AccountWithDataSet account : accounts) {
174 addStringified(sb, account);
[all...]
H A DAccountTypeWithDataSet.java17 package com.android.contacts.model.account;
31 * Encapsulates an "account type" string and a "data set" string.
39 /** account type. Can be null for fallback type. */
55 * Return true if there are any contacts in the database with this account type and data set.
H A DGoogleAccountType.java17 package com.android.contacts.model.account;
67 Log.e(TAG, "Problem building account type", e);
/packages/apps/Contacts/src/com/android/contacts/vcard/
H A DImportRequest.java37 public final Account account; field in class:ImportRequest
98 public ImportRequest(Account account, argument
101 this.account = account;
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
H A DSelectAccountDialogFragment.java33 * Shows a dialog asking the user which account to chose.
64 final Account account = getItem(position);
66 text1.setText("Name: " + account.name);
67 text2.setText("Type: " + account.type);
86 builder.setTitle("Choose account to send to editor");
99 void onAccountChosen(Account account, String dataSet, int tag); argument
/packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/
H A DTestSyncAdapter.java49 public void onPerformSync(Account account, Bundle extras, String authority, argument
51 Log.v(TestauthConstants.LOG_TAG, "TestSyncAdapter.onPerformSync() account=" + account);
56 values.put(RawContacts.ACCOUNT_NAME, account.name);
57 values.put(RawContacts.ACCOUNT_TYPE, account.type);
/packages/apps/Email/src/com/android/email/activity/
H A DMessageList.java32 * A dummy activity to support old-style (pre-honeycomb) account shortcuts.
81 * Create a froyo/gingerbread style account shortcut intent. Used by unit tests and
85 static Intent createFroyoIntent(Context context, Account account) { argument
88 intent.putExtra(EXTRA_ACCOUNT_ID, account.mId);
89 intent.setData(account.getShortcutSafeUri());
H A DShortcutPicker.java37 * This class implements a launcher shortcut for directly accessing a single account.
63 // Load the account picking fragment if we haven't created a fragment yet
80 public Integer buildFilter(Account account) { argument
81 if (!Account.isNormalAccount(account.mId)) {
90 public void onSelected(Account account, long mailboxId) { argument
92 if (Account.isNormalAccount(account.mId) &&
96 shortcutName = account.getDisplayName();
98 setupShortcut(account, mailboxId, shortcutName);
135 private void setupShortcut(Account account, long mailboxId, String shortcutName) { argument
140 shortcutIntent = MessageList.createFroyoIntent(myActivity, account);
[all...]
/packages/apps/Email/src/com/android/email/mail/store/
H A DExchangeStore.java35 public static Store newInstance(Account account, Context context) throws MessagingException { argument
36 return new ExchangeStore(account, context);
40 * Creates a new store for the given account.
42 public ExchangeStore(Account account, Context context) throws MessagingException { argument
43 super(account, context);
H A DServiceStore.java39 * Creates a new store for the given account.
41 public ServiceStore(Account account, Context context) throws MessagingException { argument
43 mHostAuth = account.getOrCreateHostAuthRecv(mContext);
50 * @throws MessagingException if we can't authenticate the account
/packages/apps/Email/src/com/android/email/mail/transport/
H A DExchangeSender.java34 public static Sender newInstance(Account account, Context context) throws MessagingException { argument
35 return new ExchangeSender(context, account);
38 private ExchangeSender(Context context, Account account) { argument
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/utility/
H A DExchangeTestCase.java52 * Add an account to our list of test accounts; we'll delete it automatically in tearDown()
53 * @param account the account to be added to our list of test accounts
55 protected void addTestAccount(Account account) { argument
56 if (account.mId > 0) {
57 mCreatedAccountIds.add(account.mId);
62 * Create a test account that will be automatically deleted when the test is finished
63 * @param name the name of the account
64 * @param saveIt whether or not to save the account in EmailProvider
65 * @return the account create
[all...]
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
H A DExchangeTestCase.java52 * Add an account to our list of test accounts; we'll delete it automatically in tearDown()
53 * @param account the account to be added to our list of test accounts
55 protected void addTestAccount(Account account) { argument
56 if (account.mId > 0) {
57 mCreatedAccountIds.add(account.mId);
62 * Create a test account that will be automatically deleted when the test is finished
63 * @param name the name of the account
64 * @param saveIt whether or not to save the account in EmailProvider
65 * @return the account create
[all...]
/packages/apps/Contacts/src/com/android/contacts/activities/
H A DContactEditorAccountsChangedActivity.java34 import com.android.contacts.model.account.AccountWithDataSet;
42 * which account the contact will be saved in. There is also an option to add an account at
46 * account for this contact.
89 // which account to create a contact in.
105 // If the user has 1 writable account we will just show the user a message with 2
113 final AccountWithDataSet account = accounts.get(0);
115 account.name));
117 // This button allows the user to add a new account to the device and return to
123 // account
182 saveAccountAndReturnResult(AccountWithDataSet account) argument
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/model/account/
H A DAccountTypeTest.java17 package com.android.contacts.model.account;
23 import com.android.contacts.model.account.AccountType;
/packages/apps/Email/src/com/android/email/mail/
H A DSender.java40 public static Sender newInstance(Context context, Account account) argument
43 + account.mDisplayName);
46 private static Sender instantiateSender(Context context, String className, Account account) argument
54 o = m.invoke(null, account, context);
58 e.toString(), className, account.mDisplayName));
59 throw new MessagingException("can not instantiate Sender for " + account.mDisplayName);
63 account.mDisplayName + ": " + className + " create incompatible object");
71 private static Sender findSender(Context context, int resourceId, Account account) argument
77 HostAuth sendAuth = account.getOrCreateHostAuthSend(context);
87 sender = instantiateSender(context, className, account);
108 getInstance(Context context, Account account) argument
[all...]
/packages/apps/Email/src/com/android/email/widget/
H A DWidgetConfiguration.java70 // Load the account picking fragment if we haven't created a fragment yet
87 public Integer buildFilter(Account account) { argument
88 if (!Account.isNormalAccount(account.mId)) {
95 return HostAuth.SCHEME_EAS.equals(account.getProtocol(this))
101 public void onSelected(Account account, long mailboxId) { argument
102 setupWidget(account, mailboxId);
123 private void setupWidget(Account account, long mailboxId) { argument
125 WidgetManager.saveWidgetPrefs(this, mAppWidgetId, account.mId, mailboxId);
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/
H A DSyncAdapterTestCase.java60 // If we've created and saved an account, delete it
85 EasSyncService getTestService(Account account, Mailbox mailbox) { argument
89 service.mAccount = account;
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
H A DSyncAdapterTestCase.java60 // If we've created and saved an account, delete it
85 EasSyncService getTestService(Account account, Mailbox mailbox) { argument
89 service.mAccount = account;
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DSelectAccountDialogFragment.java27 import com.android.contacts.model.account.AccountWithDataSet;
32 * Shows a dialog asking the user which account to chose.
52 * @param accountListFilter account filter.
109 private void onAccountSelected(AccountWithDataSet account) { argument
113 target.onAccountChosen(account, getArguments().getBundle(KEY_EXTRA_ARGS));
118 void onAccountChosen(AccountWithDataSet account, Bundle extraArgs); argument

Completed in 985 milliseconds

12345