/packages/apps/Contacts/src/com/android/contacts/group/ |
GroupDetailDisplayUtils.java | 27 import com.android.contacts.common.model.account.AccountType; 44 AccountType accountType = accountTypeManager.getAccountType(accountTypeString, dataSet); 51 label.setText(accountType.getViewGroupLabel(context)); 58 accountIcon.setImageDrawable(accountType.getDisplayIcon(context));
|
GroupBrowseListAdapter.java | 32 import com.android.contacts.common.model.account.AccountType; 120 String accountType = mCursor.getString(GroupListLoader.ACCOUNT_TYPE); 137 accountType.equals(previousGroupAccountType) && 143 return new GroupListItem(accountName, accountType, dataSet, groupId, title, 198 AccountType accountType = mAccountTypeManager.getAccountType( 200 viewCache.accountType.setText(accountType.getDisplayLabel(mContext)); 213 public final TextView accountType; 223 accountType = (TextView) view.findViewById(R.id.account_type) [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
AccountsListAdapter.java | 30 import com.android.contacts.common.model.account.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/ContactsCommon/src/com/android/contacts/common/list/ |
ContactListFilterView.java | 30 import com.android.contacts.common.model.account.AccountType; 82 mAccountType = (TextView) findViewById(R.id.accountType); 123 final AccountType accountType = 124 accountTypes.getAccountType(mFilter.accountType, mFilter.dataSet); 126 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/ContactsCommon/tests/src/com/android/contacts/common/model/account/ |
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/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);
|
/frameworks/base/services/java/com/android/server/accounts/ |
AccountAuthenticatorCache.java | 61 final String accountType = 73 if (TextUtils.isEmpty(accountType)) { 76 return new AuthenticatorDescription(accountType, packageName, labelId, iconId,
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
StreamItemAdapter.java | 27 import com.android.contacts.common.model.account.AccountType; 104 final AccountType accountType = 111 (accountType.getViewStreamItemPhotoActivity() == null) ? null : mPhotoClickListener 117 if (accountType.getViewStreamItemActivity() != null) {
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
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...] |
/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 | 37 import com.android.contacts.common.model.account.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 | 33 import com.android.contacts.common.model.account.AccountType; 120 String accountType = rawContact.accountType; 122 if (accountType == null) { 125 AccountType type = accountTypes.getAccountType(accountType, dataSet);
|
/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/ContactsCommon/src/com/android/contacts/common/model/ |
AccountTypeManager.java | 47 import com.android.contacts.common.model.account.AccountType; 74 * Singleton holder for all parsed {@link AccountType} available on the 123 public abstract AccountType getAccountType(AccountTypeWithDataSet accountTypeWithDataSet); 125 public final AccountType getAccountType(String accountType, String dataSet) { 126 return getAccountType(AccountTypeWithDataSet.get(accountType, dataSet)); 129 public final AccountType getAccountTypeForAccount(AccountWithDataSet account) { 134 * @return Unmodifiable map from {@link AccountTypeWithDataSet}s to {@link AccountType}s 146 public abstract Map<AccountTypeWithDataSet, AccountType> getUsableInvitableAccountTypes(); 150 * {@link AccountType#accountType}, {@link AccountType#dataSet}, and {@link DataKind#mimeType} [all...] |
/external/chromium_org/sync/android/java/src/org/chromium/sync/notifier/ |
InvalidationPreferences.java | 149 String accountType = preferences.getString(PrefKeys.SYNC_ACCT_TYPE, null); 150 if (accountName == null || accountType == null) { 153 return new Account(accountName, accountType);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
AccountManagerTest.java | 29 private String accountType; 38 accountType = "accountType"; 46 accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null, null); 56 accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null, null); 66 accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null, null); 76 accountManager.invalidateAuthToken(accountType, null); 82 accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null, null);
|
/packages/apps/Contacts/src/com/android/contacts/ |
SplitAggregateView.java | 39 import com.android.contacts.common.model.account.AccountType; 117 String accountType; 145 String thisAccount = accountType != null ? accountType : ""; 146 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/activities/ |
PeopleActivityTest.java | 45 import com.android.contacts.common.model.account.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/ContactsCommon/tests/src/com/android/contacts/common/model/ |
ContactLoaderTest.java | 34 import com.android.contacts.common.model.account.AccountType; 55 AccountType accountType = new BaseAccountType() { 61 accountType.accountType = "mockAccountType"; 68 new AccountType[]{accountType}, new AccountWithDataSet[]{account}));
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSetupType.java | 61 final String accountType = mSetupData.getFlowAccountType(); 67 if (info.accountType.equals(accountType)) { 88 if (info.hide || (accountType != null && !accountType.equals(info.accountType))) { 120 new DuplicateCheckTask(account.mEmailAddress, info.accountType)
|
/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);
|