/packages/apps/Contacts/src/com/android/contacts/group/ |
GroupDetailDisplayUtils.java | 20 import com.android.contacts.model.AccountType; 44 AccountType accountType = accountTypeManager.getAccountType(accountTypeString, dataSet); 51 label.setText(accountType.getViewGroupLabel(context)); 58 accountIcon.setImageDrawable(accountType.getDisplayIcon(context));
|
GroupBrowseListAdapter.java | 22 import com.android.contacts.model.AccountType; 121 String accountType = mCursor.getString(GroupListLoader.ACCOUNT_TYPE); 138 accountType.equals(previousGroupAccountType) && 144 return new GroupListItem(accountName, accountType, dataSet, groupId, title, 199 AccountType accountType = mAccountTypeManager.getAccountType( 201 viewCache.accountType.setText(accountType.getDisplayLabel(mContext).toString()); 214 public final TextView accountType; 224 accountType = (TextView) view.findViewById(R.id.account_type) [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
AccountsListAdapter.java | 20 import com.android.contacts.model.AccountType; 94 final AccountType accountType = mAccountTypes.getAccountType(account.type, account.dataSet); 96 text1.setText(accountType.getDisplayLabel(mContext)); 103 icon.setImageDrawable(accountType.getDisplayIcon(mContext));
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
ContactListFilterView.java | 21 import com.android.contacts.model.AccountType; 84 mAccountType = (TextView) findViewById(R.id.accountType); 125 final AccountType accountType = 126 accountTypes.getAccountType(mFilter.accountType, mFilter.dataSet); 128 mAccountType.setText(accountType.getDisplayLabel(getContext()));
|
ContactListFilter.java | 51 private static final String KEY_ACCOUNT_TYPE = "filter.accountType"; 55 public final String accountType; 61 public ContactListFilter(int filterType, String accountType, String accountName, String dataSet, 64 this.accountType = accountType; 74 public static ContactListFilter createAccountFilter(String accountType, String accountName, 76 return new ContactListFilter(ContactListFilter.FILTER_TYPE_ACCOUNT, accountType, 103 return "account: " + accountType + (dataSet != null ? "/" + dataSet : "") 116 res = accountType.compareTo(another.accountType); [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
AccountTypeTest.java | 26 * Test case for {@link AccountType}. 41 assertEquals(DEFAULT, AccountType.getResourceText(c, null, -1, DEFAULT)); 44 assertEquals(DEFAULT, AccountType.getResourceText(c, packageName, -1, DEFAULT)); 49 AccountType.getResourceText(c, packageName, externalResID, DEFAULT)); 54 AccountType.getResourceText(c, null, internalResId, DEFAULT)); 58 * Verify if {@link AccountType#getInviteContactActionLabel} correctly gets the resource ID 59 * from {@link AccountType#getInviteContactActionResId} 67 AccountType accountType = new AccountType() { [all...] |
/frameworks/base/core/java/android/accounts/ |
AccountAuthenticatorCache.java | 57 final String accountType = 69 if (TextUtils.isEmpty(accountType)) { 72 return new AuthenticatorDescription(accountType, packageName, labelId, iconId,
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
AccountTypeWithDataSet.java | 40 public final String accountType; 45 private AccountTypeWithDataSet(String accountType, String dataSet) { 46 this.accountType = TextUtils.isEmpty(accountType) ? null : accountType; 50 public static AccountTypeWithDataSet get(String accountType, String dataSet) { 51 return new AccountTypeWithDataSet(accountType, dataSet); 64 args = new String[] {accountType}; 67 args = new String[] {accountType, dataSet}; 85 return Objects.equal(accountType, other.accountType [all...] |
AccountTypeManager.java | 68 * Singleton holder for all parsed {@link AccountType} available on the 107 public abstract AccountType getAccountType(AccountTypeWithDataSet accountTypeWithDataSet); 109 public final AccountType getAccountType(String accountType, String dataSet) { 110 return getAccountType(AccountTypeWithDataSet.get(accountType, dataSet)); 113 public final AccountType getAccountTypeForAccount(AccountWithDataSet account) { 118 * @return Unmodifiable map from {@link AccountTypeWithDataSet}s to {@link AccountType}s 130 public abstract Map<AccountTypeWithDataSet, AccountType> getUsableInvitableAccountTypes(); 134 * {@link AccountType#accountType}, {@link AccountType#dataSet}, and {@link DataKind#mimeType} [all...] |
/frameworks/base/core/java/android/content/ |
SyncAdapterType.java | 29 public final String accountType; 37 public SyncAdapterType(String authority, String accountType, boolean userVisible, 42 if (TextUtils.isEmpty(accountType)) { 43 throw new IllegalArgumentException("the accountType must not be empty: " + accountType); 46 this.accountType = accountType; 56 public SyncAdapterType(String authority, String accountType, boolean userVisible, 64 if (TextUtils.isEmpty(accountType)) { 65 throw new IllegalArgumentException("the accountType must not be empty: " + accountType) [all...] |
SyncAdaptersCache.java | 53 final String accountType = 55 if (authority == null || accountType == null) { 72 return new SyncAdapterType(authority, accountType, userVisible, supportsUploading, 82 out.attribute(null, "accountType", item.accountType); 88 final String accountType = parser.getAttributeValue(null, "accountType"); 89 return SyncAdapterType.newKey(authority, accountType);
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
StreamItemAdapter.java | 20 import com.android.contacts.model.AccountType; 103 final AccountType accountType = 110 (accountType.getViewStreamItemPhotoActivity() == null) ? null : mPhotoClickListener 116 if (accountType.getViewStreamItemActivity() != null) {
|
/frameworks/ex/common/java/com/android/common/content/ |
SyncStateContentProviderHelper.java | 118 final String accountType = c.getString(1); 119 Account account = new Account(accountName, accountType); 122 new String[]{accountName, accountType});
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
GroupDetailActivity.java | 23 import com.android.contacts.model.AccountType; 134 final AccountType accountType = 137 || TextUtils.isEmpty(accountType.getViewGroupActivity())) { 150 intent.setClassName(accountType.syncAdapterPackageName, 151 accountType.getViewGroupActivity());
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
AggregationSuggestionView.java | 22 import com.android.contacts.model.AccountType; 117 String accountType = rawContact.accountType; 119 if (accountType == null) { 122 AccountType type = accountTypes.getAccountType(accountType, dataSet);
|
RawContactReadOnlyEditorView.java | 21 import com.android.contacts.model.AccountType; 111 * {@link EntityDelta} state and the {@link AccountType} that 115 public void setState(EntityDelta state, AccountType type, ViewIdGenerator vig, 137 CharSequence accountType = type.getDisplayLabel(mContext); 139 accountType)); 143 CharSequence accountType = type.getDisplayLabel(mContext); 144 if (TextUtils.isEmpty(accountType)) { 145 accountType = mContext.getString(R.string.account_phone); 156 accountType));
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
GroupCreationDialogFragment.java | 32 private static final String ARG_ACCOUNT_TYPE = "accountType"; 45 FragmentManager fragmentManager, String accountType, String accountName, 49 args.putString(ARG_ACCOUNT_TYPE, accountType); 82 String accountType = arguments.getString(ARG_ACCOUNT_TYPE); 95 new AccountWithDataSet(accountName, accountType, dataSet), groupLabel,
|
/packages/apps/Contacts/src/com/android/contacts/ |
SplitAggregateView.java | 19 import com.android.contacts.model.AccountType; 120 String accountType; 148 String thisAccount = accountType != null ? accountType : ""; 149 String thatAccount = another.accountType != null ? another.accountType : ""; 170 info.accountType = cursor.getString(SplitQuery.ACCOUNT_TYPE); 254 AccountType accountType = mAccountTypes.getAccountType(info.accountType, info.dataSet) [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/ |
ContactLoaderTest.java | 19 import com.android.contacts.model.AccountType; 54 AccountType accountType = new BaseAccountType() { 60 accountType.accountType = "mockAccountType"; 67 new AccountType[] { accountType }, new AccountWithDataSet[] { account }));
|
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
PeopleActivityTest.java | 25 import com.android.contacts.model.AccountType; 97 AccountType accountType = new BaseAccountType() { 103 accountType.accountType = TEST_ACCOUNT_TYPE; 109 new AccountType[] { accountType }, new AccountWithDataSet[] { account }));
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/streamitems/ |
StreamItemPopulatorActivity.java | 166 String accountType = null; 182 accountType = c.getString(1); 188 addStreamItemsToRawContact(rawContactId, accountType, accountName); 212 private void addStreamItemsToRawContact(long rawContactId, String accountType, 220 ContentValues streamItemValues = buildStreamItemValues(accountType, accountName); 235 buildStreamItemPhotoValues(j, accountType, accountName); 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); [all...] |
/packages/apps/Settings/src/com/android/settings/accounts/ |
ChooseAccountActivity.java | 62 ProviderEntry(CharSequence providerName, String accountType) { 64 type = accountType; 90 for (String accountType : accountTypesFilter) { 91 mAccountTypesFilter.add(accountType); 113 String accountType = mAuthDescs[i].type; 114 CharSequence providerName = getLabelForType(accountType); 118 ArrayList<String> accountAuths = getAuthoritiesForAccountType(accountType); 130 && !mAccountTypesFilter.contains(accountType)) { 134 mProviderList.add(new ProviderEntry(providerName, accountType)); 174 ArrayList<String> authorities = mAccountTypeToAuthorities.get(sa.accountType); [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
GoogleSource.java | 46 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);
|
Sources.java | 119 mSources.put(source.accountType, source); 204 final String accountType = sync.accountType; 205 final AuthenticatorDescription auth = findAuthenticator(auths, accountType); 208 if (GoogleSource.ACCOUNT_TYPE.equals(accountType)) { 210 } else if (ExchangeSource.ACCOUNT_TYPE.equals(accountType)) { 214 Log.d(TAG, "Creating external source for type=" + accountType 220 source.accountType = auth.type; 236 String accountType) { 238 if (accountType.equals(auth.type)) [all...] |
/development/apps/Development/src/com/android/development/ |
SyncAdapterDriver.java | 105 names[i] = item.type.authority + " - " + item.type.accountType; 143 mActiveServiceConnection.mSyncAdapter.type.accountType); 171 mActiveServiceConnection.mSyncAdapter.type.accountType); 240 type.authority, type.accountType)); 361 final String accountType = 363 if (authority == null || accountType == null) { 377 return new SyncAdapterType(authority, accountType, userVisible, supportsUploading,
|