HomeSort by relevance Sort by last modified time
    Searched defs:account (Results 1 - 25 of 320) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /cts/tests/tests/provider/src/android/provider/cts/contacts/account/
MockAccountService.java 17 package android.provider.cts.contacts.account;
24 * Account service for the authenticator
  /packages/apps/UnifiedEmail/src/com/android/mail/compose/
RecipientAdapter.java 19 import com.android.mail.providers.Account;
24 public RecipientAdapter(Context context, Account account) {
26 setAccount(account.getAccountManagerAccount());
  /frameworks/base/core/java/android/accounts/
AccountAndUser.java 20 * Used to store the Account and the UserId this account is associated with.
25 public Account account; field in class:AccountAndUser
28 public AccountAndUser(Account account, int userId) {
29 this.account = account;
37 return this.account.equals(other.account)
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/model/account/
AccountComparator.java 16 package com.android.contacts.model.account;
23 * Orders accounts for display such that the default account is first
68 private static boolean isWritableGoogleAccount(AccountWithDataSet account) {
69 return GoogleAccountType.ACCOUNT_TYPE.equals(account.type) && account.dataSet == null;
DeviceLocalAccountType.java 16 package com.android.contacts.model.account;
39 public AccountInfo wrapAccount(Context context, AccountWithDataSet account) {
43 new AccountDisplayInfo(account, getDisplayLabel(context), getDisplayLabel(context),
AccountDisplayInfoFactory.java 16 package com.android.contacts.model.account;
32 * For most accounts the account name will be used for the label but device accounts and
62 public AccountDisplayInfo getAccountDisplayInfo(AccountWithDataSet account) {
63 final AccountType type = mAccountTypeManager.getAccountTypeForAccount(account);
64 final CharSequence name = shouldUseTypeLabelForName(account)
66 : account.name;
67 return new AccountDisplayInfo(account, name, type.getDisplayLabel(mContext),
78 final AccountWithDataSet account = new AccountWithDataSet(delta.getAccountName(), local
80 return getAccountDisplayInfo(account);
92 private boolean shouldUseTypeLabelForName(AccountWithDataSet account) {
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/calllogutils/
PhoneAccountUtils.java 28 /** Extract account label from PhoneAccount object. */
32 PhoneAccount account = getAccountOrNull(context, accountHandle); local
33 if (account != null && account.getLabel() != null) {
34 return account.getLabel().toString();
39 /** Extract account color from PhoneAccount object. */
41 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); local
44 // safe to always use the account highlight color.
45 return account == null ? PhoneAccount.NO_HIGHLIGHT_COLOR : account.getHighlightColor()
55 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); local
    [all...]
  /packages/apps/TV/src/com/android/tv/util/account/
AccountHelper.java 17 package com.android.tv.util.account;
19 import android.accounts.Account;
22 /** Helper methods for getting and selecting a user account. */
24 /** Returns the currently selected account or {@code null} if none is selected. */
26 Account getSelectedAccount();
28 * Selects the first account available.
30 * @return selected account or {@code null} if none is selected.
33 Account selectFirstAccount();
37 Account getFirstEligibleAccount();
AccountHelperImpl.java 17 package com.android.tv.util.account;
19 import android.accounts.Account;
25 /** Helper methods for getting and selecting a user account. */
26 public class AccountHelperImpl implements com.android.tv.util.account.AccountHelper {
32 @Nullable private Account mSelectedAccount;
39 /** Returns the currently selected account or {@code null} if none is selected. */
42 public final Account getSelectedAccount() {
49 for (Account account : getEligibleAccounts()) {
50 if (account.name.equals(accountId))
76 Account account = getFirstEligibleAccount(); local
    [all...]
  /packages/services/Telecomm/src/com/android/server/telecom/settings/
EnableAccountPreferenceFragment.java 44 public AccountSwitchPreference(Context context, PhoneAccount account) {
46 mAccount = account;
48 setTitle(account.getLabel());
49 setSummary(account.getShortDescription());
50 Icon icon = account.getIcon();
54 setChecked(account.isEnabled());
92 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); local
93 if (account != null) {
95 0 != (account.getCapabilities() & PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION);
97 screen.addPreference(new AccountSwitchPreference(context, account));
    [all...]
  /cts/tests/tests/accounts/src/android/accounts/cts/
AccountTest.java 3 import android.accounts.Account;
10 private Account account; field in class:AccountTest
14 account = new Account("abc@xyz.org", "com.my.auth");
19 new Account(null, "com.my.auth");
27 new Account("abc@xyz.org", null);
34 assertEquals(0, account.describeContents());
40 account.writeToParcel(parcel, 0);
43 // Create a new account object from just populated parcel
    [all...]
  /developers/build/prebuilts/gradle/CardEmulation/Application/src/main/java/com/example/android/cardemulation/
CardEmulationFragment.java 46 EditText account = (EditText) v.findViewById(R.id.card_account_field); local
47 account.setText(AccountStorage.GetAccount(getActivity()));
48 account.addTextChangedListener(new AccountUpdater());
66 String account = s.toString(); local
67 AccountStorage.SetAccount(getActivity(), account); local
  /developers/samples/android/connectivity/nfc/CardEmulation/Application/src/main/java/com/example/android/cardemulation/
CardEmulationFragment.java 46 EditText account = (EditText) v.findViewById(R.id.card_account_field); local
47 account.setText(AccountStorage.GetAccount(getActivity()));
48 account.addTextChangedListener(new AccountUpdater());
66 String account = s.toString(); local
67 AccountStorage.SetAccount(getActivity(), account); local
  /development/samples/browseable/CardEmulation/src/com.example.android.cardemulation/
CardEmulationFragment.java 46 EditText account = (EditText) v.findViewById(R.id.card_account_field); local
47 account.setText(AccountStorage.GetAccount(getActivity()));
48 account.addTextChangedListener(new AccountUpdater());
66 String account = s.toString(); local
67 AccountStorage.SetAccount(getActivity(), account); local
  /packages/apps/UnifiedEmail/src/com/android/mail/utils/
AccountUtils.java 18 import com.android.mail.providers.Account;
37 * should prioritize the list of Account objects when merging the
41 public static List<Account> mergeAccountLists(List<Account> inList, Account[] accounts,
44 List<Account> newAccountList = new ArrayList<Account>();
47 for (Account account : inList) {
48 existingList.add(account.getEmailAddress())
74 Account account; local
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
AccountItemView.java 31 import com.android.mail.providers.Account;
34 * The view for each account in the folder list/drawer.
64 * Sets the account name and draws the unread count. Depending on the account state (current or
68 * @param account account whose name will be displayed
69 * @param isCurrentAccount true if the account is the one in use, false otherwise
71 public void bind(final Context context, final Account account, final boolean isCurrentAccount,
73 if (!TextUtils.isEmpty(account.getSenderName()))
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
AccountTest.java 3 import android.accounts.Account;
18 Account account = new Account("name", "type"); local
20 assertThat(account.name, equalTo("name"));
21 assertThat(account.type, equalTo("type"));
32 Account account = new Account(p); local
33 assertThat(account.name, equalTo("name"))
61 Account account = new Account("name", "type"); local
    [all...]
  /packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/
AccountTests.java 44 final Account before = Account.builder().buildFrom(dest, null);
48 final Account after = intent.getParcelableExtra(Utils.EXTRA_ACCOUNT);
73 final Account account = Account.newInstance(json.toString()); local
74 assertNotNull(account);
75 assertNull(account.getSenderName());
  /cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
BatteryStatsSyncTest.java 18 import android.accounts.Account;
52 final Account account = BatteryStatsAuthenticator.getTestAccount(); local
54 // Create the test account.
59 ContentResolver.setIsSyncable(account, BatteryStatsProvider.AUTHORITY, 1);
62 BatteryStatsSyncAdapter.cancelPendingSyncs(account);
68 BatteryStatsSyncAdapter.requestSync(account);
  /cts/tests/tests/accounts/common/src/android/accounts/cts/common/tx/
ConfirmCredentialsTx.java 3 import android.accounts.Account;
24 public final Account account; field in class:ConfirmCredentialsTx
29 account = in.readParcelable(null);
35 Account account,
38 this.account = account;
50 out.writeParcelable(account, flags);
GetAccountRemovalAllowedTx.java 3 import android.accounts.Account;
24 public final Account account; field in class:GetAccountRemovalAllowedTx
28 account = in.readParcelable(null);
33 Account account,
35 this.account = account;
46 out.writeParcelable(account, flags);
GetAuthTokenTx.java 3 import android.accounts.Account;
24 public final Account account; field in class:GetAuthTokenTx
30 account = in.readParcelable(null);
37 Account account,
41 this.account = account;
54 out.writeParcelable(account, flags);
HasFeaturesTx.java 3 import android.accounts.Account;
27 public final Account account; field in class:HasFeaturesTx
32 account = in.readParcelable(null);
38 Account account,
41 this.account = account;
57 out.writeParcelable(account, flags);
StartUpdateCredentialsSessionTx.java 3 import android.accounts.Account;
24 public final Account account; field in class:StartUpdateCredentialsSessionTx
29 account = in.readParcelable(null);
35 Account account,
38 this.account = account;
50 out.writeParcelable(account, flags);
UpdateCredentialsTx.java 3 import android.accounts.Account;
24 public final Account account; field in class:UpdateCredentialsTx
30 account = in.readParcelable(null);
37 Account account,
41 this.account = account;
54 out.writeParcelable(account, flags);

Completed in 517 milliseconds

1 2 3 4 5 6 7 8 91011>>