/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
D | AccountTypeManager.java | 124 public final AccountType getAccountType(String accountType, String dataSet) { in getAccountType() argument 125 return getAccountType(AccountTypeWithDataSet.get(accountType, dataSet)); in getAccountType() 409 final String type = sync.accountType; in loadAccountsInBackground() 416 AccountType accountType; in loadAccountsInBackground() local 418 accountType = new GoogleAccountType(mContext, auth.packageName); in loadAccountsInBackground() 420 accountType = new ExchangeAccountType(mContext, auth.packageName, type); in loadAccountsInBackground() 424 accountType = new ExternalAccountType(mContext, auth.packageName, false); in loadAccountsInBackground() 426 if (!accountType.isInitialized()) { in loadAccountsInBackground() 427 if (accountType.isEmbedded()) { in loadAccountsInBackground() 429 + accountType.getClass().getCanonicalName()); in loadAccountsInBackground() [all …]
|
D | RawContactModifier.java | 114 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 …]
|
D | ContactLoader.java | 388 final String accountType = json.getString(RawContacts.ACCOUNT_TYPE); in loadEncodedContactEntity() local 389 contact.setDirectoryMetaData(directoryName, null, accountName, accountType, in loadEncodedContactEntity() 738 final String accountType = cursor.getString(DirectoryQuery.ACCOUNT_TYPE); in loadDirectoryMetaData() local 754 displayName, directoryType, accountType, accountName, exportSupport); in loadDirectoryMetaData() 770 final String accountType = rawContact.getAccountTypeString(); in loadGroupMetaData() local 772 if (accountName != null && accountType != null) { in loadGroupMetaData() 779 selectionArgs.add(accountType); in loadGroupMetaData() 799 final String accountType = cursor.getString(GroupQuery.ACCOUNT_TYPE); in loadGroupMetaData() local 811 accountName, accountType, dataSet, groupId, title, defaultGroup, in loadGroupMetaData() 888 final AccountType accountType = rawContact.getAccountType(context); in postViewNotificationToSyncAdapter() local [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | ContactListFilter.java | 55 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 …]
|
D | CustomContactListFilterActivity.java | 132 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/Settings/src/com/android/settings/accounts/ |
D | AuthenticatorHelper.java | 86 public void preloadDrawableForType(final Context context, final String accountType) { in preloadDrawableForType() argument 90 getDrawableForType(context, accountType); in preloadDrawableForType() 101 public Drawable getDrawableForType(Context context, final String accountType) { in getDrawableForType() argument 104 if (mAccTypeIconCache.containsKey(accountType)) { in getDrawableForType() 105 return mAccTypeIconCache.get(accountType); in getDrawableForType() 108 if (mTypeToAuthDescription.containsKey(accountType)) { in getDrawableForType() 110 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getDrawableForType() 116 mAccTypeIconCache.put(accountType, icon); in getDrawableForType() 133 public CharSequence getLabelForType(Context context, final String accountType) { in getLabelForType() argument 135 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelForType() [all …]
|
D | ChooseAccountActivity.java | 75 ProviderEntry(CharSequence providerName, String accountType) { in ProviderEntry() argument 77 type = accountType; in ProviderEntry() 103 for (String accountType : accountTypesFilter) { in onCreate() 104 mAccountTypesFilter.add(accountType); in onCreate() 130 String accountType = mAuthDescs[i].type; in onAuthDescriptionsUpdated() local 131 CharSequence providerName = getLabelForType(accountType); in onAuthDescriptionsUpdated() 135 ArrayList<String> accountAuths = getAuthoritiesForAccountType(accountType); in onAuthDescriptionsUpdated() 147 && !mAccountTypesFilter.contains(accountType)) { in onAuthDescriptionsUpdated() 151 mProviderList.add(new ProviderEntry(providerName, accountType)); in onAuthDescriptionsUpdated() 192 ArrayList<String> authorities = mAccountTypeToAuthorities.get(sa.accountType); in getAuthoritiesForAccountType() [all …]
|
D | AccountSettings.java | 363 final String accountType = accountTypes[i]; in getAccountTypePreferences() local 365 if (!accountTypeHasAnyRequestedAuthorities(helper, accountType)) { in getAccountTypePreferences() 368 final CharSequence label = helper.getLabelForType(getActivity(), accountType); in getAccountTypePreferences() 374 .getAccountsByTypeAsUser(accountType, userHandle); in getAccountTypePreferences() 376 && !helper.hasAccountPreferences(accountType); in getAccountTypePreferences() 386 helper.getDrawableForType(getActivity(), accountType))); in getAccountTypePreferences() 389 fragmentArguments.putString(ManageAccountsSettings.KEY_ACCOUNT_TYPE, accountType); in getAccountTypePreferences() 396 helper.getDrawableForType(getActivity(), accountType))); in getAccountTypePreferences() 398 helper.preloadDrawableForType(getActivity(), accountType); in getAccountTypePreferences() local 411 String accountType) { in accountTypeHasAnyRequestedAuthorities() argument [all …]
|
D | AccountPreferenceBase.java | 140 public PreferenceScreen addPreferencesForType(final String accountType, in addPreferencesForType() argument 143 if (mAuthenticatorHelper.containsAccountType(accountType)) { in addPreferencesForType() 146 desc = mAuthenticatorHelper.getAccountTypeDescription(accountType); in addPreferencesForType() 177 protected Drawable getDrawableForType(final String accountType) { in getDrawableForType() argument 178 return mAuthenticatorHelper.getDrawableForType(getActivity(), accountType); in getDrawableForType() 181 protected CharSequence getLabelForType(final String accountType) { in getLabelForType() argument 182 return mAuthenticatorHelper.getLabelForType(getActivity(), accountType); in getLabelForType()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
D | AuthenticatorHelper.java | 53 public Drawable getDrawableForType(Context context, final String accountType) { in getDrawableForType() argument 55 if (mAccTypeIconCache.containsKey(accountType)) { in getDrawableForType() 56 return mAccTypeIconCache.get(accountType); in getDrawableForType() 58 if (mTypeToAuthDescription.containsKey(accountType)) { in getDrawableForType() 60 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getDrawableForType() 63 mAccTypeIconCache.put(accountType, icon); in getDrawableForType() 79 public CharSequence getLabelForType(Context context, final String accountType) { in getLabelForType() argument 81 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelForType() 83 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getLabelForType() 87 Log.w(TAG, "No label name for account type " + accountType); in getLabelForType() [all …]
|
D | AddAccountWithTypeActivity.java | 69 String accountType = getIntent().getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onCreate() local 70 if (accountType != null) { in onCreate() 71 startAddAccount(accountType); in onCreate() 96 String accountType = data.getExtras() in onActivityResult() local 98 startAddAccount(accountType); in onActivityResult() 113 private void startAddAccount(String accountType) { in startAddAccount() argument 116 accountType, in startAddAccount()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
D | AccountTypeWithDataSet.java | 40 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/ |
D | Sources.java | 119 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/ |
D | ContactEditorUtilsTest.java | 50 "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/ |
D | EventColorCache.java | 46 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/Email/src/com/android/email/service/ |
D | EmailServiceUtils.java | 186 public String accountType; field in EmailServiceUtils.EmailServiceInfo 224 sb.append(accountType); in toString() 324 return AccountManager.get(context).addAccount(info.accountType, null, null, options, null, in setupAccountManagerAccount() 430 final String accountType = protocolMap.get(hostAuth.mProtocol + "_type"); in updateAccountManagerType() local 433 moveCalendarData(context.getContentResolver(), amName, oldType, accountType); in updateAccountManagerType() local 434 moveContactsData(context.getContentResolver(), amName, oldType, accountType); in updateAccountManagerType() local 444 if (accountType != null && in updateAccountManagerType() 451 accountType), in updateAccountManagerType() 452 new android.accounts.Account(amName, accountType), in updateAccountManagerType() 461 if (accountType != null && in updateAccountManagerType() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
D | SelectSyncedCalendarsMultiAccountAdapter.java | 303 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 …]
|
D | CalendarColorCache.java | 84 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/src/com/android/contacts/ |
D | SplitAggregateView.java | 117 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/ContactsCommon/tests/src/com/android/contacts/common/ |
D | RawContactModifierTests.java | 91 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/Browser/src/com/android/browser/provider/ |
D | BrowserProvider2.java | 859 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/Contacts/src/com/android/contacts/group/ |
D | GroupBrowseListAdapter.java | 120 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/ |
D | PhotoPriorityResolver.java | 76 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/tests/src/com/android/browser/tests/ |
D | BP2ProviderTests.java | 67 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/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarProvider2.java | 1775 String accountType = null; in handleInsertException() local 1780 accountType = account.type; in handleInsertException() 1783 verifyColorExists(accountName, accountType, color_index, Colors.TYPE_EVENT); in handleInsertException() 2170 String accountType = null; in insertInTransaction() local 2173 accountType = account.type; in insertInTransaction() 2175 int color = verifyColorExists(accountName, accountType, color_id, in insertInTransaction() 2244 String accountType = values.getAsString( in insertInTransaction() local 2246 final Account account = new Account(accountName, accountType); in insertInTransaction() 2253 String accountType = values.getAsString(Calendars.ACCOUNT_TYPE); in insertInTransaction() local 2254 int color = verifyColorExists(accountName, accountType, cal_color_id, in insertInTransaction() [all …]
|