Searched defs:accountType (Results 1 - 25 of 63) sorted by relevance

123

/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DLocalizedNameResolver.java52 public static String getAllContactsName(Context context, String accountType) { argument
54 if (accountType == null) return null;
56 return resolveAllContactsName(context, accountType);
62 private static String resolveAllContactsName(Context context, String accountType) { argument
66 if (accountType.equals(auth.type)) {
/packages/apps/Settings/src/com/android/settings/accounts/
H A DProviderPreference.java36 Context context, String accountType, Drawable icon, CharSequence providerName) {
38 mAccountType = accountType;
35 ProviderPreference( Context context, String accountType, Drawable icon, CharSequence providerName) argument
H A DAccountPreferenceBase.java138 * @param accountType the type of account
141 public PreferenceScreen addPreferencesForType(final String accountType, argument
144 if (mAuthenticatorHelper.containsAccountType(accountType)) {
147 desc = mAuthenticatorHelper.getAccountTypeDescription(accountType);
179 protected Drawable getDrawableForType(final String accountType) { argument
180 return mAuthenticatorHelper.getDrawableForType(getActivity(), accountType);
183 protected CharSequence getLabelForType(final String accountType) { argument
184 return mAuthenticatorHelper.getLabelForType(getActivity(), accountType);
H A DAddAccountSettings.java231 private void addAccount(String accountType) { argument
251 accountType,
H A DChooseAccountActivity.java79 ProviderEntry(CharSequence providerName, String accountType) { argument
81 type = accountType;
111 for (String accountType : accountTypesFilter) {
112 mAccountTypesFilter.add(accountType);
138 String accountType = mAuthDescs[i].type;
139 CharSequence providerName = getLabelForType(accountType);
143 ArrayList<String> accountAuths = getAuthoritiesForAccountType(accountType);
155 && !mAccountTypesFilter.contains(accountType)) {
159 mProviderList.add(new ProviderEntry(providerName, accountType));
211 ArrayList<String> authorities = mAccountTypeToAuthorities.get(sa.accountType);
232 getDrawableForType(final String accountType) argument
259 getLabelForType(final String accountType) argument
288 finishWithAccountType(String accountType) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEventColorCache.java46 public void insertColor(String accountName, String accountType, int displayColor, argument
48 mColorKeyMap.put(createKey(accountName, accountType, displayColor), colorKey);
49 String key = createKey(accountName, accountType);
61 public int[] getColorArray(String accountName, String accountType) { argument
62 ArrayList<Integer> colors = mColorPaletteMap.get(createKey(accountName, accountType));
76 public int getColorKey(String accountName, String accountType, int displayColor) { argument
77 return mColorKeyMap.get(createKey(accountName, accountType, displayColor));
96 private String createKey(String accountName, String accountType) { argument
99 .append(accountType)
103 private String createKey(String accountName, String accountType, in argument
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
H A DAccountTypeWithDataSet.java40 public final String accountType; field in class:AccountTypeWithDataSet
45 private AccountTypeWithDataSet(String accountType, String dataSet) { argument
46 this.accountType = TextUtils.isEmpty(accountType) ? null : accountType;
50 public static AccountTypeWithDataSet get(String accountType, String dataSet) { argument
51 return new AccountTypeWithDataSet(accountType, dataSet);
64 args = new String[] {accountType};
67 args = new String[] {accountType, dataSet};
85 return Objects.equal(accountType, othe
[all...]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
H A DAccountServiceProxy.java64 public Bundle getConfigurationData(final String accountType) { argument
68 mReturn = mService.getConfigurationData(accountType);
/packages/apps/UnifiedEmail/src/com/android/mail/photo/
H A DMailPhotoViewActivity.java48 * @param accountType The type of the account.
53 final String accountType, final ConversationMessage msg, final int photoIndex) {
62 context.startActivity(wrapIntent(builder.build(), account, accountType, msg));
71 final String accountType, final ConversationMessage msg, final String initialPhotoUri) {
73 buildMailPhotoViewActivityIntent(context, account, accountType, msg,
78 final Context context, final String account, final String accountType,
87 return wrapIntent(builder.build(), account, accountType, msg);
91 final Intent intent, final String account, final String accountType,
95 intent.putExtra(EXTRA_ACCOUNT_TYPE, accountType);
52 startMailPhotoViewActivity(final Context context, final String account, final String accountType, final ConversationMessage msg, final int photoIndex) argument
70 startMailPhotoViewActivity(final Context context, final String account, final String accountType, final ConversationMessage msg, final String initialPhotoUri) argument
77 buildMailPhotoViewActivityIntent( final Context context, final String account, final String accountType, final ConversationMessage msg, final String initialPhotoUri) argument
90 wrapIntent( final Intent intent, final String account, final String accountType, final ConversationMessage msg) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/accounts/
H A DAuthUtils.java44 public void invalidateAuthToken(final String accountType, final String authToken) { argument
45 mAccountManager.invalidateAuthToken(accountType, authToken);
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
H A DCalendarColorCache.java84 private void insert(String accountName, String accountType) { argument
85 mCache.add(generateKey(accountName, accountType));
91 public boolean hasColors(String accountName, String accountType) { argument
92 return mCache.contains(generateKey(accountName, accountType));
105 private String generateKey(String accountName, String accountType) { argument
107 return mStringBuffer.append(accountName).append(SEPARATOR).append(accountType).toString();
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DKindSectionData.java39 public KindSectionData(AccountType accountType, DataKind dataKind, argument
41 mAccountType = accountType;
H A DEditorUiUtils.java121 String accountName, AccountType accountType) {
130 accountType.getDisplayLabel(context)));
138 AccountType accountType) {
139 CharSequence accountTypeDisplayLabel = accountType.getDisplayLabel(context);
153 if (GoogleAccountType.ACCOUNT_TYPE.equals(accountType.accountType)
154 && accountType.dataSet == null) {
169 CharSequence accountType) {
171 if (!TextUtils.isEmpty(accountType)) {
172 builder.append(accountType)
120 getLocalAccountInfo(Context context, String accountName, AccountType accountType) argument
137 getAccountInfo(Context context, String accountName, AccountType accountType) argument
168 getAccountInfoContentDescription(CharSequence accountName, CharSequence accountType) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/group/
H A DGroupListItem.java31 public GroupListItem(String accountName, String accountType, String dataSet, long groupId, argument
34 mAccountType = accountType;
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DGroupCreationDialogFragment.java33 private static final String ARG_ACCOUNT_TYPE = "accountType";
46 FragmentManager fragmentManager, String accountType, String accountName,
50 args.putString(ARG_ACCOUNT_TYPE, accountType);
83 String accountType = arguments.getString(ARG_ACCOUNT_TYPE);
96 new AccountWithDataSet(accountName, accountType, dataSet), groupLabel,
45 show( FragmentManager fragmentManager, String accountType, String accountName, String dataSet, OnGroupCreatedListener listener) argument
/packages/apps/ContactsCommon/src/com/android/contacts/common/
H A DGroupMetaData.java31 public GroupMetaData(String accountName, String accountType, String dataSet, long groupId, argument
34 this.mAccountType = accountType;
H A DMoreContactUtils.java228 public static Intent getInvitableIntent(AccountType accountType, Uri lookupUri) { argument
229 String syncAdapterPackageName = accountType.syncAdapterPackageName;
230 String className = accountType.getInviteContactActivityClassName();
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/tests/testauth/
H A DTestAuthenticator.java62 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, argument
64 Log.v(TestauthConstants.LOG_TAG, "addAccount() type=" + accountType);
67 final Account account = new Account(newUniqueUserName(), accountType);
101 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { argument
/packages/apps/Email/provider_src/com/android/email/service/
H A DEasTestAuthenticatorService.java48 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, argument
71 EasTestAuthenticatorService.this, accountType);
85 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { argument
H A DAuthenticatorService.java56 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, argument
61 AuthenticatorService.this, accountType);
71 accountType);
104 b.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType);
113 AuthenticatorService.this, accountType);
127 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { argument
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
H A DAddAccountWithTypeActivity.java65 String accountType = getIntent().getStringExtra(AccountManager.KEY_ACCOUNT_TYPE);
66 if (accountType != null) {
67 startAddAccount(accountType);
79 String accountType = data.getExtras().getString(AccountManager.KEY_ACCOUNT_TYPE);
80 startAddAccount(accountType);
92 private void startAddAccount(String accountType) { argument
94 accountType,
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DAccountWithDataSet.java34 public AccountWithDataSet(String accountName, String accountType, String dataSet) { argument
36 mAccountType = emptyToNull(accountType);
44 public static AccountWithDataSet get(String accountName, String accountType, String dataSet) { argument
45 return new AccountWithDataSet(accountName, accountType, dataSet);
H A DPhotoPriorityResolver.java89 public synchronized int getPhotoPriority(String accountType) { argument
90 if (accountType == null) {
94 Integer priority = mPhotoPriorities.get(accountType);
96 priority = resolvePhotoPriority(accountType);
97 mPhotoPriorities.put(accountType, priority);
105 private int resolvePhotoPriority(String accountType) { argument
109 if (accountType.equals(auth.type)) {
/packages/apps/Contacts/tests/src/com/android/contacts/editor/
H A 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));
100 MoreAsserts.assertEquals(Sets.newHashSet(TYPE1.accountType, TYPE2EX.accountType),
108 Sets.newHashSet(TYPE1.accountType, TYPE2.accountType, TYPE2E
312 MockAccountType(String accountType, String dataSet, boolean areContactsWritable) argument
[all...]
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DGoogleSource.java46 this.accountType = ACCOUNT_TYPE;
165 final String accountType = stateValues.getAsString(RawContacts.ACCOUNT_TYPE);
166 attemptMyContactsMembership(state, accountName, accountType, context, true);
180 final String accountName, final String accountType, Context context,
187 new String[] {accountName, accountType}, null);
218 newGroup.put(Groups.ACCOUNT_TYPE, accountType);
244 state, accountName, accountType, context, false);
179 attemptMyContactsMembership(EntityDelta state, final String accountName, final String accountType, Context context, boolean allowRecur) argument

Completed in 541 milliseconds

123