/packages/apps/Calendar/src/com/android/calendar/ |
H A D | RecipientAdapter.java | 30 * 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/ContactsCommon/src/com/android/contacts/common/vcard/ |
H A D | ImportRequest.java | 21 import com.android.contacts.common.model.account.AccountWithDataSet; 38 public final Account account; field in class:ImportRequest 99 public ImportRequest(AccountWithDataSet account, argument 102 this.account = account != null ? account.getAccountOrNull() : null;
|
H A D | SelectAccountActivity.java | 27 import com.android.contacts.common.model.account.AccountWithDataSet; 57 // - just one account -> use the account without asking the user 58 // - no account -> use phone-local storage without asking the user 67 final AccountWithDataSet account = accountList.get(0); 69 intent.putExtra(ACCOUNT_NAME, account.name); 70 intent.putExtra(ACCOUNT_TYPE, account.type); 71 intent.putExtra(DATA_SET, account.dataSet); 86 final AccountWithDataSet account = mAccountList.get(which); 88 intent.putExtra(ACCOUNT_NAME, account [all...] |
/packages/inputmethods/LatinIME/java-overridable/src/com/android/inputmethod/latin/accounts/ |
H A D | AccountStateChangedListener.java | 24 * Handles changes to account used to sign in to the keyboard. 25 * e.g. account switching/sign-in/sign-out from the keyboard 31 * Called when the current account being used in keyboard is signed out. 33 * @param oldAccount the account that was signed out of. 40 * This may be called when the user switches accounts to sign in with a different account. 42 * @param oldAccount the previous account that was being used for sign-in. 44 * @param newAccount the account being used for sign-in. 52 * @param account the account being used for sync. 55 public static void onSyncPreferenceChanged(@Nullable String account, boolea argument 64 forceSync(@ullable String account) argument 73 forceDelete(@ullable String account) argument [all...] |
/packages/apps/Email/provider_src/com/android/email/ |
H A D | NotificationController.java | 30 void cancelNotifications(final Context context, final Account account); argument 32 void showSecurityNeededNotification(Account account); argument 33 void showSecurityUnsupportedNotification(Account account); argument 34 void showSecurityChangedNotification(Account account); argument
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
H A D | RecipientAdapter.java | 24 public RecipientAdapter(Context context, Account account) { argument 26 setAccount(account.getAccountManagerAccount());
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
H A D | PhoneAccountUtils.java | 43 PhoneAccount account = telecomManager.getPhoneAccount(accountHandle); 44 if (account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { 52 * Compose PhoneAccount object from component name and account id. 63 * Extract account label from PhoneAccount object. 66 PhoneAccount account = getAccountOrNull(context, accountHandle); 67 if (account != null && account.getLabel() != null) { 68 return account.getLabel().toString(); 74 * Extract account color from PhoneAccount object. 79 final PhoneAccount account [all...] |
/packages/apps/Email/provider_src/com/android/email/mail/ |
H A D | Sender.java | 40 public static Sender newInstance(Account account) throws MessagingException { argument 42 + account.mDisplayName); 45 private static Sender instantiateSender(Context context, String className, Account account) argument 53 o = m.invoke(null, account, context); 57 e.toString(), className, account.mDisplayName)); 58 throw new MessagingException("can not instantiate Sender for " + account.mDisplayName); 62 account.mDisplayName + ": " + className + " create incompatible object"); 70 private static Sender findSender(Context context, int resourceId, Account account) argument 76 HostAuth sendAuth = account.getOrCreateHostAuthSend(context); 86 sender = instantiateSender(context, className, account); 107 getInstance(Context context, Account account) argument [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/settings/ |
H A D | EnableAccountPreferenceFragment.java | 44 public AccountSwitchPreference(Context context, PhoneAccount account) { argument 46 mAccount = account; 48 setTitle(account.getLabel()); 49 setSummary(account.getShortDescription()); 50 Icon icon = account.getIcon(); 54 setChecked(account.isEnabled()); 92 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); 93 if (account != null) { 95 0 != (account.getCapabilities() & PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); 97 screen.addPreference(new AccountSwitchPreference(context, account)); [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ |
H A D | ConversationListContext.java | 48 * The account for whom we are showing a list 50 public final Account account; field in class:ConversationListContext 61 sUrlMatcher.addURI(UIProvider.AUTHORITY, "account/*/folder/*", 0); 68 // The account is created here as a new object. This is probably not the best thing to do. 69 // We should probably be reading an account instance from our controller. 70 Account account = bundle.getParcelable(Utils.EXTRA_ACCOUNT); 72 return new ConversationListContext(account, bundle.getString(EXTRA_SEARCH_QUERY), folder); 77 * @param account 81 public static ConversationListContext forFolder(Account account, Folder folder) { argument 82 return new ConversationListContext(account, nul 88 forSearchQuery(Account account, Folder folder, String query) argument [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/tests/testauth/ |
H A D | TestAuthenticator.java | 30 * Simple authenticator. It has no "login" dialogs/activities. When you add a new account, it'll 31 * just create a new account with a unique name. 59 * Create a new account with the name generated by {@link #newUniqueUserName()}. 67 final Account account = new Account(newUniqueUserName(), accountType); 69 // Create an account. 70 AccountManager.get(mContext).addAccountExplicitly(account, PASSWORD, null); 73 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); 74 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); 82 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, argument 84 Log.v(TestauthConstants.LOG_TAG, "getAuthToken() account 94 confirmCredentials( AccountAuthenticatorResponse response, Account account, Bundle options) argument 114 hasFeatures( AccountAuthenticatorResponse response, Account account, String[] features) argument 126 updateCredentials(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | InlineAttachmentViewIntentBuilderCreator.java | 29 Account account, long conversationId); 28 createInlineAttachmentViewIntentBuilder( Account account, long conversationId) argument
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
H A D | TestUtil.java | 44 public static Uri maybeAddAccountQueryParameters(Uri uri, Account account) { argument 45 if (account == null) { 49 .appendQueryParameter(ContactsContract.RawContacts.ACCOUNT_NAME, account.name) 50 .appendQueryParameter(ContactsContract.RawContacts.ACCOUNT_TYPE, account.type)
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/ |
H A D | TrafficFlags.java | 30 // Bits 0->15, account id 50 * Get flags indicating sync of the passed-in account; note that, by default, these flags 55 * @param account the account being used 56 * @return flags for syncing this account 58 public static int getSyncFlags(Context context, Account account) { argument 59 return (int)account.mId | REASON_SYNC; 63 * Get flags indicating attachment loading from the passed-in account 66 * @param account the account bein 69 getAttachmentFlags(Context context, Account account) argument 80 getSmtpFlags(Context context, Account account) argument [all...] |
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
H A D | ExchangeTestCase.java | 52 * 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/Email/src/com/android/email/activity/setup/ |
H A D | AccountCreationFragment.java | 44 * AccountManager account and saving our account object to the database, as well as some misc 52 private static final String ACCOUNT_TAG = "account"; 72 void setAccount(Account account); argument 79 public static AccountCreationFragment newInstance(Account account, boolean syncEmail, argument 82 args.putParcelable(AccountCreationFragment.ACCOUNT_TAG, account); 167 final Account account = args.getParcelable(ACCOUNT_TAG); 174 * Task loader returns true if we created the account, false if we bailed out. 183 account.mFlags |= Account.FLAGS_INCOMPLETE; 185 AccountSettingsUtils.commitSettings(mAppContext, account); 265 onLoadFinished(Loader<Account> loader, Account account) argument 311 onLoadFinished(final Loader<Account> loader, final Account account) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
H A D | UserHistoryDictionary.java | 48 @Nullable final String account) { 49 super(context, getUserHistoryDictName(NAME, locale, null /* dictFile */, account), locale, Dictionary.TYPE_USER_HISTORY, null); 60 @Nullable final File dictFile, @Nullable final String account) { 64 return getUserHistoryDictNamePerAccount(name, locale, dictFile, account); 68 * Uses the currently signed in account to determine the dictionary name. 71 @Nullable final File dictFile, @Nullable final String account) { 76 if (account != null) { 77 dictName += "." + account; 86 final File dictFile, final String dictNamePrefix, @Nullable final String account) { 87 return PersonalizationHelper.getUserHistoryDictionary(context, locale, account); 47 UserHistoryDictionary(final Context context, final Locale locale, @Nullable final String account) argument 59 getUserHistoryDictName(final String name, final Locale locale, @Nullable final File dictFile, @Nullable final String account) argument 70 getUserHistoryDictNamePerAccount(final String name, final Locale locale, @Nullable final File dictFile, @Nullable final String account) argument 85 getDictionary(final Context context, final Locale locale, final File dictFile, final String dictNamePrefix, @Nullable final String account) argument [all...] |
H A D | AccountUtils.java | 39 for (final Account account : getAccounts(context)) { 40 final String name = account.name; 53 * @return List of account names that contain the specified domain name 59 for (final Account account : getAccounts(context)) { 60 if (account.name.toLowerCase(Locale.ROOT).endsWith(atDomain)) { 61 retval.add(account.name);
|
/packages/apps/Exchange/src/com/android/exchange/ |
H A D | ExchangeBroadcastReceiver.java | 27 for (final Account account : accounts) { 30 if (!ContentResolver.getSyncAutomatically(account, EmailContent.AUTHORITY) && 31 !ContentResolver.getSyncAutomatically(account, CalendarContract.AUTHORITY) && 32 !ContentResolver.getSyncAutomatically(account, ContactsContract.AUTHORITY)) { 37 ContentResolver.requestSync(account, EmailContent.AUTHORITY, bundle);
|
/packages/apps/Exchange/src/com/android/exchange/service/ |
H A D | PingSyncSynchronizer.java | 46 * Basic rules of how these interact (note that all rules are per account): 59 * - If there are no waiting syncs and this account is configured for push: start a ping. 60 * - Otherwise: This account is now idle. 67 * - If there are no waiting syncs and this account is configured for push: This means the ping task 70 * - Otherwise: This account is now idle. 96 * This class handles bookkeeping for a single account. 108 * Tracks whether this account wants to get push notifications, based on calls to 129 // We need to look up the account and it's folders, which won't yet exist for a newly 130 // created account. 140 * - Wait until there's nothing running for this account befor 167 syncEnd(final boolean lastSyncHadError, final Account account, final PingSyncSynchronizer synchronizer) argument 238 scheduleDelayedPing(final Context context, final Account account) argument 257 pushModify(final Account account, final PingSyncSynchronizer synchronizer) argument 376 syncEnd(final boolean lastSyncHadError, final Account account) argument 411 pushModify(final Account account) argument [all...] |
H A D | EasService.java | 103 final Account account = loadAccount(EasService.this, accountId); 104 if (account != null) { 105 final EasLoadAttachment operation = new EasLoadAttachment(EasService.this, account, 114 final Account account = loadAccount(EasService.this, accountId); 115 if (account != null) { 116 final EasFolderSync operation = new EasFolderSync(EasService.this, account); 128 final Account account = loadAccount(EasService.this, accountId); 129 if (account != null) { 130 EasFullSyncOperation op = new EasFullSyncOperation(EasService.this, account, 146 final Account account 417 pingNeededForAccount(final Context context, final Account account) argument 552 getAuthoritiesToSync(final android.accounts.Account account, final String[] authorities) argument [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
H A D | AccountSelectionUtil.java | 35 import com.android.contacts.common.model.account.AccountType; 36 import com.android.contacts.common.model.account.AccountWithDataSet; 131 final AccountWithDataSet account = this.getItem(position); 133 account.type, account.dataSet); 136 text1.setText(account.name); 162 public static void doImport(Context context, int resId, AccountWithDataSet account, argument 166 doImportFromSim(context, account, subscriptionId); 170 doImportFromVcfFile(context, account); 176 public static void doImportFromSim(Context context, AccountWithDataSet account, argument 190 doImportFromVcfFile(Context context, AccountWithDataSet account) argument [all...] |
/packages/apps/Email/provider_src/com/android/email/service/ |
H A D | AuthenticatorService.java | 39 * with addAccount, it simply adds the account to AccountManager directly with a username and 67 // app UI; we simply create the account and return the proper bundle 70 final Account account = new Account(options.getString(OPTIONS_USERNAME), 73 account, options.getString(OPTIONS_PASSWORD), null); 78 ContentResolver.setIsSyncable(account, ContactsContract.AUTHORITY, 1); 79 ContentResolver.setSyncAutomatically(account, ContactsContract.AUTHORITY, 86 ContentResolver.setIsSyncable(account, CalendarContract.AUTHORITY, 1); 87 ContentResolver.setSyncAutomatically(account, CalendarContract.AUTHORITY, 98 ContentResolver.setIsSyncable(account, EmailContent.AUTHORITY, 1); 99 ContentResolver.setSyncAutomatically(account, EmailConten 121 confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) argument 132 getAuthToken(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument 144 hasFeatures(AccountAuthenticatorResponse response, Account account, String[] features) argument 150 updateCredentials(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | AccountItemView.java | 34 * The view for each account in the folder list/drawer. 64 * Sets the account name and draws the unread count. Depending on the account state (current or 68 * @param account account whose name will be displayed 69 * @param isCurrentAccount true if the account is the one in use, false otherwise 71 public void bind(final Context context, final Account account, final boolean isCurrentAccount, argument 73 if (!TextUtils.isEmpty(account.getSenderName())) { 74 mAccountDisplayName.setText(account.getSenderName()); 75 mAccountAddress.setText(account [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/photo/ |
H A D | MailPhotoViewActivity.java | 47 * @param account The email address of the account. 48 * @param accountType The type of the account. 52 public static void startMailPhotoViewActivity(final Context context, final String account, argument 62 context.startActivity(wrapIntent(builder.build(), account, accountType, msg)); 70 public static void startMailPhotoViewActivity(final Context context, final String account, argument 73 buildMailPhotoViewActivityIntent(context, account, accountType, msg, 78 final Context context, final String account, final String accountType, 87 return wrapIntent(builder.build(), account, accountType, msg); 91 final Intent intent, final String account, fina 77 buildMailPhotoViewActivityIntent( final Context context, final String account, final String accountType, final ConversationMessage msg, final String initialPhotoUri) argument 90 wrapIntent( final Intent intent, final String account, final String accountType, final ConversationMessage msg) argument [all...] |