/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
H A D | TestUtil.java | 45 public static Uri maybeAddAccountQueryParameters(Uri uri, Account account) { argument 46 if (account == null) { 50 .appendQueryParameter(RawContacts.ACCOUNT_NAME, account.name) 51 .appendQueryParameter(RawContacts.ACCOUNT_TYPE, account.type) 56 AccountWithDataSet account) { 57 if (account == null) { 61 .appendQueryParameter(RawContacts.ACCOUNT_NAME, account.getAccountName()) 62 .appendQueryParameter(RawContacts.ACCOUNT_TYPE, account.getAccountType()) 63 .appendQueryParameter(RawContacts.DATA_SET, account.getDataSet()) 55 maybeAddAccountWithDataSetQueryParameters(Uri uri, AccountWithDataSet 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/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/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
H A D | AccountSyncActivity.java | 29 * Displays the sync settings for a given account. 38 Account account = null; 40 // Search for the account. 43 account = candidateAccount; 49 return SettingsFragment.newInstance(account); 53 private static final String ARG_ACCOUNT = "account"; 55 public static SettingsFragment newInstance(Account account) { argument 57 b.putParcelable(ARG_ACCOUNT, account); 65 final Account account = getArguments().getParcelable(ARG_ACCOUNT); 66 startPreferenceFragment(AccountSyncFragment.newInstance(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...] |
H A D | TestSyncAdapter.java | 49 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/Dialer/src/com/android/dialer/calllog/ |
H A D | PhoneAccountUtils.java | 44 PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); 45 if (account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { 53 * Compose PhoneAccount object from component name and account id. 69 * Extract account label from PhoneAccount object. 74 PhoneAccount account = getAccountOrNull(context, accountHandle); 75 if (account != null && account.getLabel() != null) { 76 return account.getLabel().toString(); 82 * Extract account color from PhoneAccount object. 85 final PhoneAccount account [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/apps/ContactsCommon/src/com/android/contacts/common/compat/ |
H A D | PhoneAccountSdkCompat.java | 34 public static Bundle getExtras(PhoneAccount account) { argument 35 return CompatUtils.isNCompatible() ? account.getExtras() : null;
|
/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/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/ContactsCommon/src/com/android/contacts/common/util/ |
H A D | AccountSelectionUtil.java | 36 import com.android.contacts.common.model.account.AccountType; 37 import com.android.contacts.common.model.account.AccountWithDataSet; 129 final AccountWithDataSet account = this.getItem(position); 131 account.type, account.dataSet); 135 text2.setText(account.name); 161 public static void doImport(Context context, int resId, AccountWithDataSet account, argument 164 doImportFromSim(context, account, subscriptionId); 166 doImportFromVcfFile(context, account); 170 public static void doImportFromSim(Context context, AccountWithDataSet account, argument 184 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...] |
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/ |
H A D | SendersFormattingTests.java | 50 final Account account = createAccount(); 51 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); 62 final Account account = createAccount(); 63 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); 75 final Account account = createAccount(); 76 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); 90 final Account account = createAccount(); 91 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); 138 final Account account = createAccount(); 140 senderAvatarModel, account, fals [all...] |