Home
last modified time | relevance | path

Searched refs:accountType (Results 1 – 25 of 120) sorted by relevance

12345

/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DAccountTypeManager.java125 public final AccountType getAccountType(String accountType, String dataSet) { in getAccountType() argument
126 return getAccountType(AccountTypeWithDataSet.get(accountType, dataSet)); in getAccountType()
410 final String type = sync.accountType; in loadAccountsInBackground()
417 AccountType accountType; in loadAccountsInBackground() local
419 accountType = new GoogleAccountType(mContext, auth.packageName); in loadAccountsInBackground()
421 accountType = new ExchangeAccountType(mContext, auth.packageName, type); in loadAccountsInBackground()
426 accountType = new ExternalAccountType(mContext, auth.packageName, false); in loadAccountsInBackground()
428 if (!accountType.isInitialized()) { in loadAccountsInBackground()
429 if (accountType.isEmbedded()) { in loadAccountsInBackground()
431 + accountType.getClass().getCanonicalName()); in loadAccountsInBackground()
[all …]
DRawContactModifier.java114 RawContactDelta state, AccountType accountType, String mimeType) { in ensureKindExists() argument
115 final DataKind kind = accountType.getKindForMimetype(mimeType); in ensureKindExists()
397 final String accountType = values.getAsString(RawContacts.ACCOUNT_TYPE); in trimEmpty() local
399 final AccountType type = accountTypes.getAccountType(accountType, dataSet); in trimEmpty()
411 final String accountType = values.getAsString(RawContacts.ACCOUNT_TYPE); in hasChanges() local
413 final AccountType type = accountTypes.getAccountType(accountType, dataSet); in hasChanges()
427 public static void trimEmpty(RawContactDelta state, AccountType accountType) { in trimEmpty() argument
431 for (DataKind kind : accountType.getSortedDataKinds()) { in trimEmpty()
466 private static boolean hasChanges(RawContactDelta state, AccountType accountType) { in hasChanges() argument
467 for (DataKind kind : accountType.getSortedDataKinds()) { in hasChanges()
[all …]
DContactLoader.java391 final String accountType = json.getString(RawContacts.ACCOUNT_TYPE); in loadEncodedContactEntity() local
392 contact.setDirectoryMetaData(directoryName, null, accountName, accountType, in loadEncodedContactEntity()
736 final String accountType = cursor.getString(DirectoryQuery.ACCOUNT_TYPE); in loadDirectoryMetaData() local
752 displayName, directoryType, accountType, accountName, exportSupport); in loadDirectoryMetaData()
768 final String accountType = rawContact.getAccountTypeString(); in loadGroupMetaData() local
770 if (accountName != null && accountType != null) { in loadGroupMetaData()
777 selectionArgs.add(accountType); in loadGroupMetaData()
797 final String accountType = cursor.getString(GroupQuery.ACCOUNT_TYPE); in loadGroupMetaData() local
809 accountName, accountType, dataSet, groupId, title, defaultGroup, in loadGroupMetaData()
886 final AccountType accountType = rawContact.getAccountType(context); in postViewNotificationToSyncAdapter() local
[all …]
/packages/apps/Settings/src/com/android/settings/accounts/
DChooseAccountActivity.java62 ProviderEntry(CharSequence providerName, String accountType) { in ProviderEntry() argument
64 type = accountType; in ProviderEntry()
90 for (String accountType : accountTypesFilter) { in onCreate()
91 mAccountTypesFilter.add(accountType); in onCreate()
113 String accountType = mAuthDescs[i].type; in onAuthDescriptionsUpdated() local
114 CharSequence providerName = getLabelForType(accountType); in onAuthDescriptionsUpdated()
118 ArrayList<String> accountAuths = getAuthoritiesForAccountType(accountType); in onAuthDescriptionsUpdated()
130 && !mAccountTypesFilter.contains(accountType)) { in onAuthDescriptionsUpdated()
134 mProviderList.add(new ProviderEntry(providerName, accountType)); in onAuthDescriptionsUpdated()
174 ArrayList<String> authorities = mAccountTypeToAuthorities.get(sa.accountType); in getAuthoritiesForAccountType()
[all …]
DAuthenticatorHelper.java49 public void preloadDrawableForType(final Context context, final String accountType) { in preloadDrawableForType() argument
53 getDrawableForType(context, accountType); in preloadDrawableForType()
64 public Drawable getDrawableForType(Context context, final String accountType) { in getDrawableForType() argument
67 if (mAccTypeIconCache.containsKey(accountType)) { in getDrawableForType()
68 return mAccTypeIconCache.get(accountType); in getDrawableForType()
71 if (mTypeToAuthDescription.containsKey(accountType)) { in getDrawableForType()
73 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getDrawableForType()
77 mAccTypeIconCache.put(accountType, icon); in getDrawableForType()
94 public CharSequence getLabelForType(Context context, final String accountType) { in getLabelForType() argument
96 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelForType()
[all …]
DAccountPreferenceBase.java123 ArrayList<String> authorities = mAccountTypeToAuthorities.get(sa.accountType); in getAuthoritiesForAccountType()
126 mAccountTypeToAuthorities.put(sa.accountType, authorities); in getAuthoritiesForAccountType()
130 + sa.accountType); in getAuthoritiesForAccountType()
143 public PreferenceScreen addPreferencesForType(final String accountType, in addPreferencesForType() argument
146 if (mAuthenticatorHelper.containsAccountType(accountType)) { in addPreferencesForType()
149 desc = mAuthenticatorHelper.getAccountTypeDescription(accountType); in addPreferencesForType()
169 protected Drawable getDrawableForType(final String accountType) { in getDrawableForType() argument
170 return mAuthenticatorHelper.getDrawableForType(getActivity(), accountType); in getDrawableForType()
173 protected CharSequence getLabelForType(final String accountType) { in getLabelForType() argument
174 return mAuthenticatorHelper.getLabelForType(getActivity(), accountType); in getLabelForType()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListFilter.java55 public final String accountType; field in ContactListFilter
61 public ContactListFilter(int filterType, String accountType, String accountName, String dataSet, in ContactListFilter() argument
64 this.accountType = accountType; in ContactListFilter()
74 public static ContactListFilter createAccountFilter(String accountType, String accountName, in createAccountFilter() argument
76 return new ContactListFilter(ContactListFilter.FILTER_TYPE_ACCOUNT, accountType, in createAccountFilter()
103 return "account: " + accountType + (dataSet != null ? "/" + dataSet : "") in toString()
116 res = accountType.compareTo(another.accountType); in compareTo()
127 if (accountType != null) { in hashCode()
128 code = code * 31 + accountType.hashCode(); in hashCode()
150 || !TextUtils.equals(accountType, otherFilter.accountType) in equals()
[all …]
DCustomContactListFilterActivity.java132 final AccountType accountType = accountTypes.getAccountTypeForAccount(account); in loadInBackground() local
133 if (accountType.isExtension() && !account.hasData(context)) { in loadInBackground()
253 String accountType, String dataSet, boolean accountHasGroups) { in fromSettings() argument
256 .appendQueryParameter(Settings.ACCOUNT_TYPE, accountType); in fromSettings()
267 values.put(Settings.ACCOUNT_TYPE, accountType); in fromSettings()
376 String accountType = this.getAsString(Settings.ACCOUNT_TYPE); in buildDiff() local
383 selectionArgs = new String[] {accountName, accountType}; in buildDiff()
386 selectionArgs = new String[] {accountName, accountType, dataSet}; in buildDiff()
464 public AccountDisplay(ContentResolver resolver, String accountName, String accountType, in AccountDisplay() argument
467 mType = accountType; in AccountDisplay()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
DAccountTypeWithDataSet.java40 public final String accountType; field in AccountTypeWithDataSet
45 private AccountTypeWithDataSet(String accountType, String dataSet) { in AccountTypeWithDataSet() argument
46 this.accountType = TextUtils.isEmpty(accountType) ? null : accountType; in AccountTypeWithDataSet()
50 public static AccountTypeWithDataSet get(String accountType, String dataSet) { in get() argument
51 return new AccountTypeWithDataSet(accountType, dataSet); in get()
64 args = new String[] {accountType}; in hasData()
67 args = new String[] {accountType, dataSet}; in hasData()
85 return Objects.equal(accountType, other.accountType) in equals()
91 return (accountType == null ? 0 : accountType.hashCode()) in hashCode()
97 return "[" + accountType + "/" + dataSet + "]"; in toString()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DSources.java119 mSources.put(source.accountType, source); in addSource()
204 final String accountType = sync.accountType; in queryAccounts() local
205 final AuthenticatorDescription auth = findAuthenticator(auths, accountType); in queryAccounts()
208 if (GoogleSource.ACCOUNT_TYPE.equals(accountType)) { in queryAccounts()
210 } else if (ExchangeSource.ACCOUNT_TYPE.equals(accountType)) { in queryAccounts()
214 Log.d(TAG, "Creating external source for type=" + accountType in queryAccounts()
220 source.accountType = auth.type; in queryAccounts()
236 String accountType) { in findAuthenticator() argument
238 if (accountType.equals(auth.type)) { in findAuthenticator()
274 public DataKind getKindOrFallback(String accountType, String mimeType, Context context, in getKindOrFallback() argument
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/editor/
DContactEditorUtilsTest.java50 "a", TYPE1.accountType, TYPE1.dataSet);
52 "b", TYPE1.accountType, TYPE1.dataSet);
55 "a", TYPE2.accountType, TYPE2.dataSet);
57 "a", TYPE2EX.accountType, TYPE2EX.dataSet);
60 "c", TYPE3.accountType, TYPE3.dataSet);
94 MoreAsserts.assertEquals(Sets.newHashSet(TYPE1.accountType), Sets.newHashSet(types)); in testGetWritableAccountTypeStrings()
100 MoreAsserts.assertEquals(Sets.newHashSet(TYPE1.accountType, TYPE2EX.accountType), in testGetWritableAccountTypeStrings()
108 Sets.newHashSet(TYPE1.accountType, TYPE2.accountType, TYPE2EX.accountType), in testGetWritableAccountTypeStrings()
302 public MockAccountType(String accountType, String dataSet, boolean areContactsWritable) { in MockAccountType() argument
303 this.accountType = accountType; in MockAccountType()
/packages/apps/Calendar/src/com/android/calendar/event/
DEventColorCache.java46 public void insertColor(String accountName, String accountType, int displayColor, in insertColor() argument
48 mColorKeyMap.put(createKey(accountName, accountType, displayColor), colorKey); in insertColor()
49 String key = createKey(accountName, accountType); in insertColor()
61 public int[] getColorArray(String accountName, String accountType) { in getColorArray() argument
62 ArrayList<Integer> colors = mColorPaletteMap.get(createKey(accountName, accountType)); in getColorArray()
76 public int getColorKey(String accountName, String accountType, int displayColor) { in getColorKey() argument
77 return mColorKeyMap.get(createKey(accountName, accountType, displayColor)); in getColorKey()
96 private String createKey(String accountName, String accountType) { in createKey() argument
99 .append(accountType) in createKey()
103 private String createKey(String accountName, String accountType, int displayColor) { in createKey() argument
[all …]
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
DSelectSyncedCalendarsMultiAccountAdapter.java303 protected CharSequence getLabelForType(final String accountType) { in getLabelForType() argument
305 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelForType()
307 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getLabelForType()
311 Log.w(TAG, "No label for account type " + ", type " + accountType); in getLabelForType()
323 final String accountType = cursor.getString(ACCOUNT_TYPE_COLUMN); in bindChildView() local
327 colorSquare.setEnabled(mCache.hasColors(accountName, accountType)); in bindChildView()
347 if (!mCache.hasColors(accountName, accountType)) { in bindChildView()
392 String accountType = cursor.getString(accountTypeColumn); in bindGroupView() local
393 CharSequence accountLabel = getLabelForType(accountType); in bindGroupView()
405 String accountType = groupCursor.getString(accountTypeColumn); in getChildrenCursor() local
[all …]
DCalendarColorCache.java84 private void insert(String accountName, String accountType) { in insert() argument
85 mCache.add(generateKey(accountName, accountType)); in insert()
91 public boolean hasColors(String accountName, String accountType) { in hasColors() argument
92 return mCache.contains(generateKey(accountName, accountType)); in hasColors()
105 private String generateKey(String accountName, String accountType) { in generateKey() argument
107 return mStringBuffer.append(accountName).append(SEPARATOR).append(accountType).toString(); in generateKey()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/streamitems/
DStreamItemPopulatorActivity.java166 String accountType = null; in onResume() local
182 accountType = c.getString(1); in onResume()
188 addStreamItemsToRawContact(rawContactId, accountType, accountName); in onResume()
212 private void addStreamItemsToRawContact(long rawContactId, String accountType, in addStreamItemsToRawContact() argument
220 ContentValues streamItemValues = buildStreamItemValues(accountType, accountName); in addStreamItemsToRawContact()
235 buildStreamItemPhotoValues(j, accountType, accountName); in addStreamItemsToRawContact()
255 private ContentValues buildStreamItemValues(String accountType, String accountName) {
281 values.put(RawContacts.ACCOUNT_TYPE, accountType);
286 private ContentValues buildStreamItemPhotoValues(int index, String accountType,
292 values.put(RawContacts.ACCOUNT_TYPE, accountType);
/packages/apps/Contacts/src/com/android/contacts/
DSplitAggregateView.java117 String accountType; field in SplitAggregateView.RawContactInfo
145 String thisAccount = accountType != null ? accountType : ""; in compareTo()
146 String thatAccount = another.accountType != null ? another.accountType : ""; in compareTo()
170 info.accountType = cursor.getString(SplitQuery.ACCOUNT_TYPE); in loadData()
254 AccountType accountType = mAccountTypes.getAccountType(info.accountType, info.dataSet); in getView() local
255 if (accountType != null) { in getView()
256 icon = accountType.getDisplayIcon(getContext()); in getView()
/packages/apps/Email/src/com/android/email/service/
DEmailServiceUtils.java178 public String accountType; field in EmailServiceUtils.EmailServiceInfo
214 sb.append(accountType); in toString()
295 return AccountManager.get(context).addAccount(info.accountType, null, null, options, null, in setupAccountManagerAccount()
402 final String accountType = protocolMap.get(hostAuth.mProtocol + "_type"); in updateAccountManagerType() local
405 moveCalendarData(context.getContentResolver(), amName, oldType, accountType); in updateAccountManagerType() local
406 moveContactsData(context.getContentResolver(), amName, oldType, accountType); in updateAccountManagerType() local
416 if (accountType != null && in updateAccountManagerType()
423 accountType), in updateAccountManagerType()
424 new android.accounts.Account(amName, accountType), in updateAccountManagerType()
433 if (accountType != null && in updateAccountManagerType()
[all …]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DRawContactModifierTests.java91 this.accountType = TEST_ACCOUNT_TYPE; in MockContactsSource()
517 final AccountType accountType = getAccountType(); in testTrimInsertEmpty() local
518 final AccountTypeManager accountTypes = getAccountTypes(accountType); in testTrimInsertEmpty()
519 final DataKind kindPhone = accountType.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testTrimInsertEmpty()
546 final AccountType accountType = getAccountType(); in testTrimInsertInsert() local
547 final AccountTypeManager accountTypes = getAccountTypes(accountType); in testTrimInsertInsert()
548 final DataKind kindPhone = accountType.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testTrimInsertInsert()
580 final AccountType accountType = getAccountType(); in testTrimUpdateRemain() local
581 final AccountTypeManager accountTypes = getAccountTypes(accountType); in testTrimUpdateRemain()
582 final DataKind kindPhone = accountType.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testTrimUpdateRemain()
[all …]
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupBrowseListAdapter.java120 String accountType = mCursor.getString(GroupListLoader.ACCOUNT_TYPE); in getItem() local
137 accountType.equals(previousGroupAccountType) && in getItem()
143 return new GroupListItem(accountName, accountType, dataSet, groupId, title, in getItem()
198 AccountType accountType = mAccountTypeManager.getAccountType( in bindHeaderView() local
200 viewCache.accountType.setText(accountType.getDisplayLabel(mContext)); in bindHeaderView()
213 public final TextView accountType; field in GroupBrowseListAdapter.GroupListItemViewCache
223 accountType = (TextView) view.findViewById(R.id.account_type); in GroupListItemViewCache()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoPriorityResolver.java76 public synchronized int getPhotoPriority(String accountType) { in getPhotoPriority() argument
77 if (accountType == null) { in getPhotoPriority()
81 Integer priority = mPhotoPriorities.get(accountType); in getPhotoPriority()
83 priority = resolvePhotoPriority(accountType); in getPhotoPriority()
84 mPhotoPriorities.put(accountType, priority); in getPhotoPriority()
92 private int resolvePhotoPriority(String accountType) { in resolvePhotoPriority() argument
96 if (accountType.equals(auth.type)) { in resolvePhotoPriority()
/packages/apps/Browser/src/com/android/browser/provider/
DBrowserProvider2.java859 String accountType = uri.getQueryParameter(Bookmarks.PARAM_ACCOUNT_TYPE); in getSelectionWithAccounts() local
862 if (accountType != null && accountName != null) { in getSelectionWithAccounts()
863 if (!isNullAccount(accountType) && !isNullAccount(accountName)) { in getSelectionWithAccounts()
867 new String[] { accountType, accountName }); in getSelectionWithAccounts()
946 String accountType = uri.getQueryParameter(Bookmarks.PARAM_ACCOUNT_TYPE); in query() local
948 if (!isNullAccount(accountType) && !isNullAccount(accountName)) { in query()
985 args = new String[] {accountType, accountName, in query()
986 accountType, accountName}; in query()
1003 accountType, accountName, ChromeSyncColumns.FOLDER_NAME_OTHER_BOOKMARKS, in query()
1020 String accountType = uri.getQueryParameter(Bookmarks.PARAM_ACCOUNT_TYPE); in query() local
[all …]
/packages/apps/Browser/tests/src/com/android/browser/tests/
DBP2ProviderTests.java67 private void doTestIsValidParent(String accountName, String accountType) { in doTestIsValidParent() argument
73 values.put(BrowserContract.Bookmarks.ACCOUNT_TYPE, accountType); in doTestIsValidParent()
95 assertEquals(accountType, insertedAccountType); in doTestIsValidParent()
113 assertEquals(accountType, insertedAccountType); in doTestIsValidParent()
118 accountType = "com.google"; in doTestIsValidParent()
120 values.put(BrowserContract.Bookmarks.ACCOUNT_TYPE, accountType); in doTestIsValidParent()
133 assertEquals(accountType, insertedAccountType); in doTestIsValidParent()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupType.java61 final String accountType = mSetupData.getFlowAccountType(); in onCreate() local
67 if (info.accountType.equals(accountType)) { in onCreate()
88 if (info.hide || (accountType != null && !accountType.equals(info.accountType))) { in onCreate()
120 new DuplicateCheckTask(account.mEmailAddress, info.accountType) in onSelect()
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorFragment.java525 AccountType accountType = rawContact.getAccountType(mContext); in setData() local
526 if (accountType.getEditContactActivityClassName() != null && in setData()
527 !accountType.areContactsWritable()) { in setData()
670 final AccountType accountType = in createContact() local
674 if (accountType.getCreateContactActivityClassName() != null) { in createContact()
679 bindEditorsForNewContact(account, accountType); in createContact()
717 final AccountType accountType) { in bindEditorsForNewContact() argument
718 bindEditorsForNewContact(account, accountType, null, null); in bindEditorsForNewContact()
1417 if (type1.accountType != null && type2.accountType == null) { in compare()
1419 } else if (type1.accountType == null && type2.accountType != null) { in compare()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java1772 String accountType = null; in handleInsertException() local
1777 accountType = account.type; in handleInsertException()
1780 verifyColorExists(accountName, accountType, color_index, Colors.TYPE_EVENT); in handleInsertException()
2166 String accountType = null; in insertInTransaction() local
2169 accountType = account.type; in insertInTransaction()
2171 int color = verifyColorExists(accountName, accountType, color_id, in insertInTransaction()
2240 String accountType = values.getAsString( in insertInTransaction() local
2242 final Account account = new Account(accountName, accountType); in insertInTransaction()
2249 String accountType = values.getAsString(Calendars.ACCOUNT_TYPE); in insertInTransaction() local
2250 int color = verifyColorExists(accountName, accountType, cal_color_id, in insertInTransaction()
[all …]

12345