Searched refs:accountName (Results 1 - 19 of 19) sorted by relevance

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactLookupKey.java55 public static int getAccountHashCode(String accountType, String accountName) { argument
56 if (accountType == null || accountName == null) {
60 return (accountType.hashCode() ^ accountName.hashCode()) & 0xFFF;
64 String accountName, long rawContactId, String sourceId, String displayName) {
73 lookupKey.append(getAccountHashCode(accountType, accountName));
63 appendToLookupKey(StringBuilder lookupKey, String accountType, String accountName, long rawContactId, String sourceId, String displayName) argument
H A DContactsProvider2.java1802 String accountName; field in class:ContactsProvider2.GroupIdCacheEntry
2472 String accountName = getQueryParameter(uri, RawContacts.ACCOUNT_NAME);
2474 final boolean partialUri = TextUtils.isEmpty(accountName) ^ TextUtils.isEmpty(accountType);
2489 final boolean validUri = !TextUtils.isEmpty(accountName);
2494 final boolean accountMatch = TextUtils.equals(accountName, valueAccountName)
2502 values.put(RawContacts.ACCOUNT_NAME, accountName);
2505 accountName = valueAccountName;
2513 || !mAccount.name.equals(accountName)
2515 mAccount = new Account(accountName, accountType);
2652 String accountName
3967 getOrCreateMyContactsGroupInTransaction(String accountName, String accountType) argument
[all...]
H A DLegacyApiSupport.java1256 String accountName = values.getAsString(android.provider.Contacts.Settings._SYNC_ACCOUNT);
1263 updateSetting(db, accountName, accountType, values);
1270 if (accountName != null && accountType != null) {
1271 selectionArgs = new String[]{accountName, accountType};
1282 mValues.put(Settings.ACCOUNT_NAME, accountName);
1290 private void updateSetting(SQLiteDatabase db, String accountName, String accountType, argument
1293 if (accountName == null || accountType == null) {
1297 new String[]{accountName, accountType, key});
1336 String accountName = cursor.getString(SettingsMatchQuery.ACCOUNT_NAME);
1340 mValues.put(android.provider.Contacts.Settings._SYNC_ACCOUNT, accountName);
[all...]
/packages/apps/Contacts/src/com/android/contacts/model/
H A DGoogleSource.java168 final String accountName = stateValues.getAsString(RawContacts.ACCOUNT_NAME);
170 attemptMyContactsMembership(state, accountName, accountType, context, true);
184 final String accountName, final String accountType, Context context,
191 new String[] {accountName, accountType}, null);
221 newGroup.put(Groups.ACCOUNT_NAME, accountName);
231 new String[] {GOOGLE_MY_CONTACTS_GROUP, accountName, accountType})
247 state, accountName, accountType, context, false);
183 attemptMyContactsMembership(EntityDelta state, final String accountName, final String accountType, Context context, boolean allowRecur) argument
/packages/apps/Email/src/com/android/email/activity/
H A DMailboxList.java141 String accountName = null;
147 accountName = c.getString(0);
153 return new Object[] {accountName, nAccounts};
161 final String accountName = (String) result[0];
162 // accountName is null if account name can't be retrieved or query exception
163 if (accountName == null) {
169 setTitleAccountName(accountName, nAccounts > 1);
313 private void setTitleAccountName(String accountName, boolean showAccountsButton) { argument
319 accountsButton.setText(accountName);
323 textPlain.setText(accountName);
[all...]
H A DMessageList.java1253 String accountName = null;
1277 accountName = c.getString(ACCOUNT_DISPLAY_NAME_COLUMN_ID);
1284 return new Object[] {accountName, mailboxName, nAccounts};
1304 private void setTitleAccountName(String accountName, boolean showAccountsButton) { argument
1310 accountsButton.setText(accountName);
1314 textPlain.setText(accountName);
H A DAccountFolderList.java595 String accountName = c.getString(Account.CONTENT_DISPLAY_NAME_COLUMN);
596 menu.setHeaderTitle(accountName);
/packages/apps/Contacts/src/com/android/contacts/ui/widget/
H A DReadOnlyContactEditorView.java117 String accountName = values.getAsString(RawContacts.ACCOUNT_NAME);
122 if (!TextUtils.isEmpty(accountName)) {
124 mContext.getString(R.string.from_account_format, accountName));
H A DContactEditorView.java183 String accountName = values.getAsString(RawContacts.ACCOUNT_NAME);
188 if (!TextUtils.isEmpty(accountName)) {
190 mContext.getString(R.string.from_account_format, accountName));
/packages/apps/Contacts/src/com/android/contacts/ui/
H A DContactsPreferencesActivity.java371 public static GroupDelta fromSettings(ContentResolver resolver, String accountName, argument
374 .appendQueryParameter(Settings.ACCOUNT_NAME, accountName)
382 values.put(Settings.ACCOUNT_NAME, accountName);
555 public AccountDisplay(ContentResolver resolver, String accountName, String accountType) { argument
556 mName = accountName;
560 .appendQueryParameter(Groups.ACCOUNT_NAME, accountName)
575 mUngrouped = GroupDelta.fromSettings(resolver, accountName, accountType, hasGroups);
/packages/apps/Phone/src/com/android/phone/
H A DSimContacts.java242 final String accountName = intent.getStringExtra("account_name");
244 if (!TextUtils.isEmpty(accountName) && !TextUtils.isEmpty(accountType)) {
245 mAccount = new Account(accountName, accountType);
/packages/apps/Gallery3D/src/com/cooliris/picasa/
H A DPicasaContentProvider.java205 public static boolean isSyncEnabled(String accountName, SyncContext context) { argument
213 if (account.user.equals(accountName)) {
/packages/apps/Contacts/src/com/android/contacts/
H A DImportVCardActivity.java738 final String accountName = intent.getStringExtra("account_name");
740 if (!TextUtils.isEmpty(accountName) && !TextUtils.isEmpty(accountType)) {
741 mAccount = new Account(accountName, accountType);
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarProvider2.java1634 String accountName = values.getAsString(Calendars._SYNC_ACCOUNT);
1637 final Account account = new Account(accountName, accountType);
2783 final String accountName = getQueryParameter(uri, Calendar.EventsEntity.ACCOUNT_NAME);
2785 if (!TextUtils.isEmpty(accountName)) {
2787 + DatabaseUtils.sqlEscapeString(accountName) + " AND "
2796 final String accountName = getQueryParameter(uri, Calendar.EventsEntity.ACCOUNT_NAME);
2798 if (!TextUtils.isEmpty(accountName)) {
2800 + DatabaseUtils.sqlEscapeString(accountName) + " AND "
2830 final String accountName = cursor.getString(0);
2832 account = new Account(accountName, accountTyp
[all...]
H A DCalendarDatabaseHelper.java919 String accountName = cursor.getString(0);
921 final Account account = new Account(accountName, accountType);
/packages/apps/Calendar/src/com/android/calendar/
H A DEditEvent.java418 TextView accountName = (TextView) view.findViewById(R.id.account_name);
419 if(accountName != null) {
421 accountName.setText(cursor.getString(CALENDARS_INDEX_OWNER_ACCOUNT));
422 accountName.setVisibility(TextView.VISIBLE);
423 accountName.setTextColor(res.getColor(R.color.calendar_owner_text_color));
/packages/apps/Email/src/com/android/exchange/adapter/
H A DContactsSyncAdapter.java236 String accountName; field in class:ContactsSyncAdapter.EasBusiness
245 return customerId != null || governmentId != null || accountName != null;
530 business.accountName = getValue();
1244 if (cv != null && cvCompareString(cv, EasBusiness.ACCOUNT_NAME, business.accountName) &&
1252 builder.withValue(EasBusiness.ACCOUNT_NAME, business.accountName);
/packages/apps/Email/src/com/android/exchange/
H A DSyncManager.java1705 String accountName = service.mAccount.mDisplayName;
1706 Thread thread = new Thread(service, mailboxName + "(" + accountName + ")");
1707 log("Starting thread for " + mailboxName + " in account " + accountName);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DBaseContactsProvider2Test.java374 protected void setContactAccount(long rawContactId, String accountType, String accountName) { argument
377 values.put(RawContacts.ACCOUNT_NAME, accountName);

Completed in 153 milliseconds