/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/ |
SyncUtils.java | 19 import android.accounts.Account; 38 // Value below must match the account type specified in res/xml/syncadapter.xml 39 public static final String ACCOUNT_TYPE = "com.example.android.basicsyncadapter.account"; 42 * Create an entry for this application in the system account list, if it isn't already there. 52 // Create account, if it's missing. (Either first run, or user has deleted account.) 53 Account account = GenericAccountService.GetAccount(ACCOUNT_TYPE); local 56 if (accountManager.addAccountExplicitly(account, null, null)) { 57 // Inform the system that this account supports syn [all...] |
/development/samples/browseable/CardEmulation/src/com.example.android.cardemulation/ |
CardService.java | 88 // send the loyalty card account number, followed by a SELECT_OK status trailer (0x9000). 90 String account = AccountStorage.GetAccount(this); local 91 byte[] accountBytes = account.getBytes(); 92 Log.i(TAG, "Sending account number: " + account);
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
BugreportProgressServiceTest.java | 27 import android.accounts.Account; 102 private Account account(String email) { method in class:BugreportProgressServiceTest 103 return new Account(email, "test.com"); 108 final Pair<UserHandle, Account> actual = findSendToAccount(mTestContext, preferredDomain); 110 assertEquals(account(expectedEmail), actual.second); method 127 // 1 account 129 array(account("abc@gmail.com"))); 140 array(account("abc@gmail.com"), account("def@gmail.com"))) [all...] |
/frameworks/base/test-runner/src/android/test/ |
SyncBaseInstrumentation.java | 24 import android.accounts.Account; 56 Account account = new Account(accountName, "com.google"); local 58 ContentResolver.requestSync(account, authority, extras); 73 if (ContentResolver.isSyncActive(account, authority)) {
|
/packages/apps/Contacts/src/com/android/contacts/model/account/ |
AccountDisplayInfo.java | 16 package com.android.contacts.model.account; 38 public AccountDisplayInfo(AccountWithDataSet account, CharSequence name, CharSequence type, 40 mSource = account;
|
AccountInfo.java | 16 package com.android.contacts.model.account; 30 * Holds an {@link AccountWithDataSet} and the corresponding {@link AccountType} for an account. 51 * Returns the displayable account name label for the account 58 * Returns the displayable account type label for the account 65 * Returns the icon for the account type 92 * Returns whether accounts contains an account that is the same as account 94 * <p>This does not use equality rather checks whether the source account ({@link #getAccount() [all...] |
AccountTypeWithDataSet.java | 17 package com.android.contacts.model.account; 31 * Encapsulates an "account type" string and a "data set" string. 39 /** account type. Can be null for fallback type. */ 55 * Return true if there are any contacts in the database with this account type and data set.
|
AccountsLoader.java | 16 package com.android.contacts.model.account;
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
SelectAccountActivity.java | 27 import com.android.contacts.model.account.AccountWithDataSet; 57 // - just one account -> use the account without asking the user 58 // - no account -> use phone-local storage without asking the user 63 Log.w(LOG_TAG, "Account does not exist"); 67 final AccountWithDataSet account = accountList.get(0); local 69 intent.putExtra(ACCOUNT_NAME, account.name); 70 intent.putExtra(ACCOUNT_TYPE, account.type); 71 intent.putExtra(DATA_SET, account.dataSet); 86 final AccountWithDataSet account = mAccountList.get(which) [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/model/account/ |
AccountTypeTest.java | 17 package com.android.contacts.model.account;
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
AdbHelpers.java | 27 import com.android.contacts.model.account.AccountWithDataSet; 59 final AccountWithDataSet account = new AccountWithDataSet(accountName, local 61 new AccountsTestHelper(context).removeTestAccount(account);
|
/packages/apps/Dialer/java/com/android/contacts/common/model/account/ |
AccountTypeWithDataSet.java | 17 package com.android.contacts.common.model.account; 28 /** Encapsulates an "account type" string and a "data set" string. */ 38 /** account type. Can be null for fallback type. */ 54 * Return true if there are any contacts in the database with this account type and data set.
|
/packages/apps/Dialer/java/com/android/incallui/ |
ThemeColorManager.java | 86 // the phone account color. 101 PhoneAccount account = context.getSystemService(TelecomManager.class).getPhoneAccount(handle); local 102 if (account != null) { 103 return account.getHighlightColor();
|
/packages/apps/Email/provider_src/com/android/email/service/ |
EasTestAuthenticatorService.java | 20 import android.accounts.Account; 33 * Anauthenticator service for reconciliation tests; it simply adds the account to AccountManager 53 // app UI; we simply create the account and return the proper bundle 56 final Account account = new Account(options.getString(OPTIONS_USERNAME), local 59 account, options.getString(OPTIONS_PASSWORD), null); 64 // 2) The other case is that we're creating a new account from an Account manager 66 // account information.. [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
AccountSetupOptionsTests.java | 31 import com.android.emailcommon.provider.Account; 64 boolean hasPush = frequencySpinnerHasValue(Account.CHECK_INTERVAL_PUSH); 78 boolean hasPush = frequencySpinnerHasValue(Account.CHECK_INTERVAL_PUSH); 92 boolean hasPush = frequencySpinnerHasValue(Account.CHECK_INTERVAL_PUSH); 166 * Create an intent with the Account in it 170 final Account account = new Account(); local 171 account.setSenderName(name); 173 final HostAuth auth = account.getOrCreateHostAuthRecv(context) [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
AccountHeaderPreferenceControllerTest.java | 25 import android.accounts.Account; 90 final Account account = new Account("name1@abc.com", "com.abc"); local 92 args.putParcelable(AccountDetailDashboardFragment.KEY_ACCOUNT, account); 107 assertThat(label).isEqualTo(account.name); 113 public void onAccountsUpdated(Account[] accounts) {
|
/packages/apps/Settings/tests/unit/src/com/android/settings/accounts/ |
AccountsSettingsTest.java | 20 import android.accounts.Account; 42 private static final String ACCOUNT_TYPE = "com.settingstest.account-prefs"; 43 private static final String PREF_TITLE = "Test preference for external account"; 58 // add a test account 59 final String testAccountName = "Test Account"; 60 final Account account = new Account(testAccountName, ACCOUNT_TYPE); local 63 accountManager.addAccountExplicitly(account, null /* password */, null /* userdata */); 66 // launch Accounts Settings and select the test account [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ |
ConversationListContext.java | 24 import com.android.mail.providers.Account; 48 * The account for whom we are showing a list 50 public final Account account; field in class:ConversationListContext 61 sUrlMatcher.addURI(UIProvider.AUTHORITY, "account/*/folder/*", 0); 68 // The account is created here as a new object. This is probably not the best thing to do. 69 // We should probably be reading an account instance from our controller. 70 Account account = bundle.getParcelable(Utils.EXTRA_ACCOUNT); local 72 return new ConversationListContext(account, bundle.getString(EXTRA_SEARCH_QUERY), folder) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/settings/ |
MailPreferenceActivity.java | 31 import com.android.mail.providers.Account; 110 final Account account = Account.builder().buildFrom(mAccountsCursor); local 112 if (!account.supportsCapability(AccountCapabilities.VIRTUAL_ACCOUNT)) { 114 if (TextUtils.isEmpty(account.getDisplayName()) || 115 TextUtils.equals(account.getDisplayName(), account.getEmailAddress())) { 117 header.title = account.getEmailAddress(); 119 header.title = account.getDisplayName() [all...] |
/packages/services/Telephony/src/com/android/phone/settings/ |
AccountSelectionPreference.java | 42 boolean onAccountSelected(AccountSelectionPreference pref, PhoneAccountHandle account); 87 PhoneAccount account = telecomManager.getPhoneAccount(mAccounts[i]); local 88 CharSequence label = account.getLabel(); 93 account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); 117 PhoneAccountHandle account = index < mAccounts.length ? mAccounts[index] : null; 118 if (mListener.onAccountSelected(this, account)) {
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
PickRawContactDialogFragment.java | 28 import com.android.contacts.model.account.AccountDisplayInfo; 29 import com.android.contacts.model.account.AccountDisplayInfoFactory; 30 import com.android.contacts.model.account.AccountInfo; 31 import com.android.contacts.model.account.AccountType; 32 import com.android.contacts.model.account.AccountWithDataSet; 33 import com.android.contacts.model.account.GoogleAccountType; 50 * Used to list the account info for the given raw contacts list. 100 final AccountType account = mAccountTypeManager.getAccountType(rawContact.accountType, local 115 if (mRawContactsMetadata.isUserProfile && account.areContactsWritable()) { 123 && account.dataSet == null) [all...] |
/cts/tests/tests/telecom/src/android/telecom/cts/ |
DataObjectUnitTests.java | 59 PhoneAccount account = PhoneAccount.builder( local 69 assertNotNull(account); 70 assertEquals(accountHandle, account.getAccountHandle()); 71 assertEquals(tel, account.getAddress()); 72 assertEquals(tel, account.getSubscriptionAddress()); 73 assertEquals(PhoneAccount.CAPABILITY_CALL_PROVIDER, account.getCapabilities()); 74 assertEquals(Color.RED, account.getHighlightColor()); 75 assertEquals(ACCOUNT_LABEL, account.getShortDescription()); 76 assertEquals(ACCOUNT_LABEL, account.getLabel()); 77 assertEquals(Arrays.asList("tel"), account.getSupportedUriSchemes()) [all...] |
/cts/hostsidetests/devicepolicy/app/AccountCheck/Tester/src/com/android/cts/devicepolicy/accountcheck/tester/ |
TestAuthenticator.java | 19 import android.accounts.Account; 63 private static Account createAccount(Context context, String accountType, 72 Log.i(TAG, "Adding account '" + name + "' for " + accountType 75 final Account account = new Account(name, accountType); local 77 account, "password", new Bundle()); 78 return account; 102 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, [all...] |
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/ |
BatteryStatsAuthenticator.java | 19 import android.accounts.Account; 52 public static Account getTestAccount() { 53 return new Account(ACCOUNT_NAME, ACCOUNT_TYPE); 57 * Adds the test account, if it doesn't exist yet. 60 final Account account = getTestAccount(); local 63 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); 64 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); 68 if (!Arrays.asList(am.getAccountsByType(account.type)).contains(account) ){ [all...] |
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
StatsdAuthenticator.java | 19 import android.accounts.Account; 51 public static Account getTestAccount() { 52 return new Account(ACCOUNT_NAME, ACCOUNT_TYPE); 56 * Adds the test account, if it doesn't exist yet. 59 final Account account = getTestAccount(); local 62 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); 63 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); 67 if (!Arrays.asList(am.getAccountsByType(account.type)).contains(account) ){ [all...] |