Home
last modified time | relevance | path

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

12

/packages/providers/GoogleSubscribedFeedsProvider/src/com/android/settings/
DAccountPreferenceBase.java111 ArrayList<String> authorities = mAccountTypeToAuthorities.get(sa.accountType); in getAuthoritiesForAccountType()
114 mAccountTypeToAuthorities.put(sa.accountType, authorities); in getAuthoritiesForAccountType()
116 Log.d(TAG, "added authority " + sa.authority + " to accountType " + sa.accountType); in getAuthoritiesForAccountType()
128 protected Drawable getDrawableForType(final String accountType) { in getDrawableForType() argument
130 if (mTypeToAuthDescription.containsKey(accountType)) { in getDrawableForType()
133 mTypeToAuthDescription.get(accountType); in getDrawableForType()
138 Log.w(TAG, "No icon for account type " + accountType); in getDrawableForType()
149 protected CharSequence getLabelForType(final String accountType) { in getLabelForType() argument
151 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelForType()
154 mTypeToAuthDescription.get(accountType); in getLabelForType()
[all …]
DAddAccountSettings.java45 ProviderEntry(CharSequence providerName, String accountType) { in ProviderEntry() argument
47 type = accountType; in ProviderEntry()
66 String accountType = mAuthDescs[i].type; in onAuthDescriptionsUpdated() local
67 CharSequence providerName = getLabelForType(accountType); in onAuthDescriptionsUpdated()
71 ArrayList<String> accountAuths = getAuthoritiesForAccountType(accountType); in onAuthDescriptionsUpdated()
83 mProviderList.add(new ProviderEntry(providerName, accountType)); in onAuthDescriptionsUpdated()
140 private void addAccount(String accountType) { in addAccount() argument
142 accountType, in addAccount()
DProviderPreference.java37 …public ProviderPreference(Context context, String accountType, Drawable icon, CharSequence provide… in ProviderPreference() argument
39 mAccountType = accountType; in ProviderPreference()
DAccountSyncSettings.java391 ArrayList<String> authorities = accountTypeToAuthorities.get(sa.accountType); in updateAccountCheckboxes()
394 accountTypeToAuthorities.put(sa.accountType, authorities); in updateAccountCheckboxes()
398 + " to accountType " + sa.accountType); in updateAccountCheckboxes()
/packages/apps/Contacts/src/com/android/contacts/model/
DSources.java107 mSources.put(source.accountType, source); in addSource()
169 final String accountType = sync.accountType; in queryAccounts() local
170 final AuthenticatorDescription auth = findAuthenticator(auths, accountType); in queryAccounts()
173 if (GoogleSource.ACCOUNT_TYPE.equals(accountType)) { in queryAccounts()
175 } else if (ExchangeSource.ACCOUNT_TYPE.equals(accountType)) { in queryAccounts()
179 Log.d(TAG, "Creating external source for type=" + accountType in queryAccounts()
185 source.accountType = auth.type; in queryAccounts()
201 String accountType) { in findAuthenticator() argument
203 if (accountType.equals(auth.type)) { in findAuthenticator()
237 public DataKind getKindOrFallback(String accountType, String mimeType, Context context, in getKindOrFallback() argument
[all …]
DGoogleSource.java46 this.accountType = ACCOUNT_TYPE; in GoogleSource()
165 final String accountType = stateValues.getAsString(RawContacts.ACCOUNT_TYPE); in attemptMyContactsMembership() local
166 attemptMyContactsMembership(state, accountName, accountType, context, true); in attemptMyContactsMembership()
180 final String accountName, final String accountType, Context context, in attemptMyContactsMembership() argument
187 new String[] {accountName, accountType}, null); in attemptMyContactsMembership()
218 newGroup.put(Groups.ACCOUNT_TYPE, accountType); in attemptMyContactsMembership()
244 state, accountName, accountType, context, false); in attemptMyContactsMembership()
DContactsSource.java52 public String accountType = null; field in ContactsSource
126 return this.accountType; in getDisplayLabel()
DEntityModifier.java356 final String accountType = state.getValues().getAsString(RawContacts.ACCOUNT_TYPE); in trimEmpty() local
357 final ContactsSource source = sources.getInflatedSource(accountType, in trimEmpty()
DExchangeSource.java40 this.accountType = ACCOUNT_TYPE; in ExchangeSource()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLookupKey.java51 public static int getAccountHashCode(String accountType, String accountName) { in getAccountHashCode() argument
52 if (accountType == null || accountName == null) { in getAccountHashCode()
56 return (accountType.hashCode() ^ accountName.hashCode()) & 0xFFF; in getAccountHashCode()
59 public static void appendToLookupKey(StringBuilder lookupKey, String accountType, in appendToLookupKey() argument
69 lookupKey.append(getAccountHashCode(accountType, accountName)); in appendToLookupKey()
DContactsProvider.java1761 final String accountType = newMap.getAsString(Groups._SYNC_ACCOUNT_TYPE); in insertInternal() local
1762 if (!TextUtils.isEmpty(accountName) || !TextUtils.isEmpty(accountType)) { in insertInternal()
1764 final Account account = new Account(accountName, accountType); in insertInternal()
1784 String accountType = mValues.getAsString(People._SYNC_ACCOUNT_TYPE); in insertInternal() local
1786 if (accountName != null || accountType != null) { in insertInternal()
1787 account = new Account(accountName, accountType); in insertInternal()
1798 mValues.put(Photos._SYNC_ACCOUNT_TYPE, accountType); in insertInternal()
1969 final String accountType = values.getAsString(SyncConstValue._SYNC_ACCOUNT_TYPE); in ensureSyncAccountIsSet() local
1971 if (!TextUtils.isEmpty(accountName) || !TextUtils.isEmpty(accountType)) { in ensureSyncAccountIsSet()
1972 account = new Account(accountName, accountType); in ensureSyncAccountIsSet()
[all …]
DLegacyApiSupport.java1237 String accountType = in updateSettings() local
1243 updateSetting(db, accountName, accountType, values); in updateSettings()
1250 if (accountName != null && accountType != null) { in updateSettings()
1251 selectionArgs = new String[]{accountName, accountType}; in updateSettings()
1263 mValues.put(Settings.ACCOUNT_TYPE, accountType); in updateSettings()
1270 private void updateSetting(SQLiteDatabase db, String accountName, String accountType, in updateSetting() argument
1273 if (accountName == null || accountType == null) { in updateSetting()
1277 new String[]{accountName, accountType, key}); in updateSetting()
1317 String accountType = cursor.getString(SettingsMatchQuery.ACCOUNT_TYPE); in copySettingsToLegacySettings() local
1321 mValues.put(android.provider.Contacts.Settings._SYNC_ACCOUNT_TYPE, accountType); in copySettingsToLegacySettings()
[all …]
DContactsProvider2.java2141 final String accountType = values.getAsString(RawContacts.ACCOUNT_TYPE); in resolveAccount() local
2142 if (!TextUtils.isEmpty(accountName) || !TextUtils.isEmpty(accountType)) { in resolveAccount()
2143 final Account valuesAccount = new Account(accountName, accountType); in resolveAccount()
2286 final String accountType = c.getString(ContactsQuery.ACCOUNT_TYPE); in getOrMakeGroup() local
2287 if (!TextUtils.isEmpty(accountName) && !TextUtils.isEmpty(accountType)) { in getOrMakeGroup()
2288 account = new Account(accountName, accountType); in getOrMakeGroup()
2979 String accountType; in updateGroups() local
2983 accountType = c.getString(1); in updateGroups()
2984 if(!TextUtils.isEmpty(accountName) && !TextUtils.isEmpty(accountType)) { in updateGroups()
2985 Account account = new Account(accountName, accountType); in updateGroups()
[all …]
/packages/apps/Contacts/src/com/android/contacts/
DSplitAggregateView.java119 String accountType; field in SplitAggregateView.RawContactInfo
146 String thisAccount = accountType != null ? accountType : ""; in compareTo()
147 String thatAccount = another.accountType != null ? another.accountType : ""; in compareTo()
168 info.accountType = cursor.getString(SplitQuery.ACCOUNT_TYPE); in loadData()
251 ContactsSource source = mSources.getInflatedSource(info.accountType, in getView()
DImportVCardActivity.java697 final String accountType = intent.getStringExtra("account_type"); in onCreate() local
698 if (!TextUtils.isEmpty(accountName) && !TextUtils.isEmpty(accountType)) { in onCreate()
699 mAccount = new Account(accountName, accountType); in onCreate()
DViewContactActivity.java791 final String accountType = entValues.getAsString(RawContacts.ACCOUNT_TYPE); in buildEntries() local
801 ContactsSource contactsSource = sources.getInflatedSource(accountType, in buildEntries()
819 final DataKind kind = sources.getKindOrFallback(accountType, mimeType, this, in buildEntries()
860 final DataKind imKind = sources.getKindOrFallback(accountType, in buildEntries()
/packages/apps/Contacts/src/com/android/contacts/ui/widget/
DReadOnlyContactEditorView.java117 CharSequence accountType = source.getDisplayLabel(mContext); in setState() local
118 if (TextUtils.isEmpty(accountType)) { in setState()
119 accountType = mContext.getString(R.string.account_phone); in setState()
125 mHeaderAccountType.setText(mContext.getString(R.string.account_type_format, accountType)); in setState()
153 mReadOnlyWarning.setText(mContext.getString(R.string.contact_read_only, accountType)); in setState()
DContactEditorView.java166 CharSequence accountType = source.getDisplayLabel(mContext); in setState() local
167 if (TextUtils.isEmpty(accountType)) { in setState()
168 accountType = mContext.getString(R.string.account_phone); in setState()
174 mHeaderAccountType.setText(mContext.getString(R.string.account_type_format, accountType)); in setState()
192 mReadOnly.setText(mContext.getString(R.string.contact_read_only, accountType)); in setState()
/packages/apps/Contacts/src/com/android/contacts/ui/
DEditContactActivity.java200 final String accountType = state.getValues().getAsString(RawContacts.ACCOUNT_TYPE); in doInBackground() local
201 final ContactsSource source = sources.getInflatedSource(accountType, in doInBackground()
342 final String accountType = values.getAsString(RawContacts.ACCOUNT_TYPE); in bindEditors() local
343 final ContactsSource source = sources.getInflatedSource(accountType, in bindEditors()
878 final String accountType = delta.getValues().getAsString(RawContacts.ACCOUNT_TYPE); in doDeleteAction() local
879 final ContactsSource contactsSource = sources.getInflatedSource(accountType, in doDeleteAction()
1085 if (GoogleSource.ACCOUNT_TYPE.equals(source.accountType)) { in selectAccount()
1202 String accountType = one.getValues().getAsString(RawContacts.ACCOUNT_TYPE); in compare() local
1203 final ContactsSource oneSource = sources.getInflatedSource(accountType, in compare()
1205 accountType = two.getValues().getAsString(RawContacts.ACCOUNT_TYPE); in compare()
[all …]
DDisplayGroupsActivity.java201 String accountType, boolean accountHasGroups) { in fromSettings() argument
204 .appendQueryParameter(Settings.ACCOUNT_TYPE, accountType).build(); in fromSettings()
212 values.put(Settings.ACCOUNT_TYPE, accountType); in fromSettings()
370 public AccountDisplay(ContentResolver resolver, String accountName, String accountType) { in AccountDisplay() argument
372 mType = accountType; in AccountDisplay()
378 .appendQueryParameter(Groups.ACCOUNT_TYPE, accountType).build(); in AccountDisplay()
396 mUngrouped = GroupDelta.fromSettings(resolver, accountName, accountType, hasGroups); in AccountDisplay()
DQuickContactWindow.java1094 final String accountType = cursor.getString(DataQuery.ACCOUNT_TYPE); in handleData() local
1114 final DataKind kind = sources.getKindOrFallback(accountType, mimeType, mContext, in handleData()
1135 final DataKind imKind = sources.getKindOrFallback(accountType, in handleData()
/packages/apps/Email/src/com/android/email/service/
DEasAuthenticatorService.java51 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
104 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
/packages/apps/Phone/src/com/android/phone/
DSimContacts.java242 final String accountType = intent.getStringExtra("account_type"); in onCreate() local
243 if (!TextUtils.isEmpty(accountName) && !TextUtils.isEmpty(accountType)) { in onCreate()
244 mAccount = new Account(accountName, accountType); in onCreate()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider.java598 String accountType = cursor.getString(1); in upgradeDatabase() local
599 final Account account = new Account(accountName, accountType); in upgradeDatabase()
999 final String accountType = c.getString(1); in onAccountsChanged()
1000 final Account account = new Account(accountName, accountType); in onAccountsChanged()
2385 String accountType = initialValues.getAsString( in insertInternal() local
2387 final Account account = new Account(accountName, accountType); in insertInternal()
3243 final String accountType = cursor.getString(1); in modifyCalendarSubscription() local
3244 account = new Account(accountName, accountType); in modifyCalendarSubscription()
/packages/apps/Contacts/tests/src/com/android/contacts/
DEntityModifierTests.java75 this.accountType = TEST_ACCOUNT_TYPE; in inflate()

12