/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | CompactRawContactsEditorView.java | 337 AccountType accountType = null; in addAccountInfo() local 340 accountType = rawContactDelta.getAccountType(mAccountTypeManager); in addAccountInfo() 341 if (accountType != null && accountType.areContactsWritable()) { in addAccountInfo() 351 if (accountType == null) { in addAccountInfo() 359 isUserProfile, defaultAccountRawContactDelta.getAccountName(), accountType); in addAccountInfo() 389 final AccountType accountType = rawContactDelta.getAccountType(mAccountTypeManager); in addPhotoView() local 393 rawContactDelta, accountType, Photo.CONTENT_ITEM_TYPE); in addPhotoView() 395 final DataKind dataKind = accountType.getKindForMimetype(Photo.CONTENT_ITEM_TYPE); in addPhotoView() 396 if (accountType.areContactsWritable()) { in addPhotoView() 415 final AccountType accountType = rawContactDelta.getAccountType(mAccountTypeManager); in addPhotoView() local [all …]
|
D | RawContactDeltaComparator.java | 77 if (type1.accountType != null && type2.accountType == null) { in compare() 79 } else if (type1.accountType == null && type2.accountType != null) { in compare() 83 if (type1.accountType != null && type2.accountType != null) { in compare() 84 value = type1.accountType.compareTo(type2.accountType); in compare()
|
D | EditorUiUtils.java | 90 String accountName, AccountType accountType) { in getAccountInfo() argument 91 CharSequence accountTypeDisplayLabel = accountType.getDisplayLabel(context); in getAccountInfo() 111 if (GoogleAccountType.ACCOUNT_TYPE.equals(accountType.accountType) in getAccountInfo() 112 && accountType.dataSet == null) { in getAccountInfo() 130 CharSequence accountType) { in getAccountInfoContentDescription() argument 132 if (!TextUtils.isEmpty(accountType)) { in getAccountInfoContentDescription() 133 builder.append(accountType).append('\n'); in getAccountInfoContentDescription()
|
D | ContactEditorBaseFragment.java | 1113 final AccountType accountType = accountTypes.getAccountTypeForAccount(account); in createContact() local 1115 if (accountType.getCreateContactActivityClassName() != null) { in createContact() 1120 setStateForNewContact(account, accountType); in createContact() 1162 AccountType accountType = rawContact.getAccountType(mContext); in setState() local 1163 if (accountType.getEditContactActivityClassName() != null && in setState() 1164 !accountType.areContactsWritable()) { in setState() 1197 private void setStateForNewContact(AccountWithDataSet account, AccountType accountType) { in setStateForNewContact() argument 1198 setStateForNewContact(account, accountType, in setStateForNewContact() 1206 protected void setStateForNewContact(AccountWithDataSet account, AccountType accountType, in setStateForNewContact() argument 1209 mState.add(createNewRawContactDelta(account, accountType, oldState, oldAccountType)); in setStateForNewContact() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
D | AccountTypeManager.java | 125 public final AccountType getAccountType(String accountType, String dataSet) { in getAccountType() argument 126 return getAccountType(AccountTypeWithDataSet.get(accountType, dataSet)); in getAccountType() 405 final String type = sync.accountType; in loadAccountsInBackground() 412 AccountType accountType; in loadAccountsInBackground() local 414 accountType = new GoogleAccountType(mContext, auth.packageName); in loadAccountsInBackground() 416 accountType = new ExchangeAccountType(mContext, auth.packageName, type); in loadAccountsInBackground() 419 accountType = new SamsungAccountType(mContext, auth.packageName, type); in loadAccountsInBackground() 423 accountType = new ExternalAccountType(mContext, auth.packageName, false); in loadAccountsInBackground() 425 if (!accountType.isInitialized()) { in loadAccountsInBackground() 426 if (accountType.isEmbedded()) { 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 | 405 final String accountType = json.getString(RawContacts.ACCOUNT_TYPE); in loadEncodedContactEntity() local 406 contact.setDirectoryMetaData(directoryName, null, accountName, accountType, in loadEncodedContactEntity() 755 final String accountType = cursor.getString(DirectoryQuery.ACCOUNT_TYPE); in loadDirectoryMetaData() local 771 displayName, directoryType, accountType, accountName, exportSupport); in loadDirectoryMetaData() 783 public AccountKey(String accountName, String accountType, String dataSet) { in AccountKey() argument 785 mAccountType = accountType; in AccountKey() 816 final String accountType = rawContact.getAccountTypeString(); in loadGroupMetaData() local 818 final AccountKey accountKey = new AccountKey(accountName, accountType, dataSet); in loadGroupMetaData() 819 if (accountName != null && accountType != null && in loadGroupMetaData() 828 selectionArgs.add(accountType); in loadGroupMetaData() [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() 102 public Drawable getDrawableForType(Context context, final String accountType) { in getDrawableForType() argument 105 if (mAccTypeIconCache.containsKey(accountType)) { in getDrawableForType() 106 return mAccTypeIconCache.get(accountType); in getDrawableForType() 109 if (mTypeToAuthDescription.containsKey(accountType)) { in getDrawableForType() 111 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getDrawableForType() 117 mAccTypeIconCache.put(accountType, icon); in getDrawableForType() 134 public CharSequence getLabelForType(Context context, final String accountType) { in getLabelForType() argument 136 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelForType() [all …]
|
D | ChooseAccountActivity.java | 77 ProviderEntry(CharSequence providerName, String accountType) { in ProviderEntry() argument 79 type = accountType; in ProviderEntry() 110 for (String accountType : accountTypesFilter) { in onCreate() 111 mAccountTypesFilter.add(accountType); in onCreate() 137 String accountType = mAuthDescs[i].type; in onAuthDescriptionsUpdated() local 138 CharSequence providerName = getLabelForType(accountType); in onAuthDescriptionsUpdated() 142 ArrayList<String> accountAuths = getAuthoritiesForAccountType(accountType); in onAuthDescriptionsUpdated() 154 && !mAccountTypesFilter.contains(accountType)) { in onAuthDescriptionsUpdated() 158 mProviderList.add(new ProviderEntry(providerName, accountType)); in onAuthDescriptionsUpdated() 199 ArrayList<String> authorities = mAccountTypeToAuthorities.get(sa.accountType); in getAuthoritiesForAccountType() [all …]
|
D | AccountSettings.java | 391 final String accountType = accountTypes[i]; in getAccountTypePreferences() local 393 if (!accountTypeHasAnyRequestedAuthorities(helper, accountType)) { in getAccountTypePreferences() 396 final CharSequence label = helper.getLabelForType(getActivity(), accountType); in getAccountTypePreferences() 400 final String titleResPackageName = helper.getPackageForType(accountType); in getAccountTypePreferences() 401 final int titleResId = helper.getLabelIdForType(accountType); in getAccountTypePreferences() 404 .getAccountsByTypeAsUser(accountType, userHandle); in getAccountTypePreferences() 406 && !helper.hasAccountPreferences(accountType); in getAccountTypePreferences() 417 helper.getDrawableForType(getActivity(), accountType))); in getAccountTypePreferences() 420 fragmentArguments.putString(ManageAccountsSettings.KEY_ACCOUNT_TYPE, accountType); in getAccountTypePreferences() 428 helper.getDrawableForType(getActivity(), accountType))); in getAccountTypePreferences() [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/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 …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
D | AuthenticatorHelper.java | 52 public Drawable getDrawableForType(Context context, final String accountType) { in getDrawableForType() argument 54 if (mAccTypeIconCache.containsKey(accountType)) { in getDrawableForType() 55 return mAccTypeIconCache.get(accountType); in getDrawableForType() 57 if (mTypeToAuthDescription.containsKey(accountType)) { in getDrawableForType() 59 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getDrawableForType() 62 mAccTypeIconCache.put(accountType, icon); in getDrawableForType() 78 public CharSequence getLabelForType(Context context, final String accountType) { in getLabelForType() argument 80 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelForType() 82 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getLabelForType() 86 Log.w(TAG, "No label name for account type " + accountType); in getLabelForType() [all …]
|
D | AddAccountWithTypeActivity.java | 65 String accountType = getIntent().getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onCreate() local 66 if (accountType != null) { in onCreate() 67 startAddAccount(accountType); in onCreate() 79 String accountType = data.getExtras().getString(AccountManager.KEY_ACCOUNT_TYPE); in onActivityResult() local 80 startAddAccount(accountType); in onActivityResult() 92 private void startAddAccount(String accountType) { in startAddAccount() argument 94 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/provider_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 …]
|
/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/UnifiedEmail/src/com/android/mail/photo/ |
D | MailPhotoViewActivity.java | 53 final String accountType, final ConversationMessage msg, final int photoIndex) { in startMailPhotoViewActivity() argument 62 context.startActivity(wrapIntent(builder.build(), account, accountType, msg)); in startMailPhotoViewActivity() local 71 final String accountType, final ConversationMessage msg, final String initialPhotoUri) { in startMailPhotoViewActivity() argument 73 buildMailPhotoViewActivityIntent(context, account, accountType, msg, in startMailPhotoViewActivity() 78 final Context context, final String account, final String accountType, in buildMailPhotoViewActivityIntent() argument 87 return wrapIntent(builder.build(), account, accountType, msg); in buildMailPhotoViewActivityIntent() 91 final Intent intent, final String account, final String accountType, in wrapIntent() argument 95 intent.putExtra(EXTRA_ACCOUNT_TYPE, accountType); in wrapIntent()
|
/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/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 | 89 public synchronized int getPhotoPriority(String accountType) { in getPhotoPriority() argument 90 if (accountType == null) { in getPhotoPriority() 94 Integer priority = mPhotoPriorities.get(accountType); in getPhotoPriority() 96 priority = resolvePhotoPriority(accountType); in getPhotoPriority() 97 mPhotoPriorities.put(accountType, priority); in getPhotoPriority() 105 private int resolvePhotoPriority(String accountType) { in resolvePhotoPriority() argument 109 if (accountType.equals(auth.type)) { in resolvePhotoPriority()
|