/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/Email/tests/src/com/android/email/ |
MessagingControllerUnitTests.java | 20 import com.android.emailcommon.provider.Account; 36 private Account mAccount; 47 Account.CONTENT_URI, mAccountId); 76 * Create a dummy account with minimal fields 79 mAccount = new Account();
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
PolicyTests.java | 26 import com.android.emailcommon.provider.Account; 71 Account account1 = ProviderTestUtils.setupAccount("acct1", true, mMockContext); 74 Account account2 = ProviderTestUtils.setupAccount("acct2", true, mMockContext); 92 Account account = ProviderTestUtils.setupAccount("acct", true, mMockContext); local 94 assertEquals(0, account.mPolicyKey); 97 SecurityPolicy.setAccountPolicy(mMockContext, account, policy, securitySyncKey); 98 account.refresh(mMockContext); 100 assertTrue(account.mPolicyKey > 0); 101 Policy dbPolicy = Policy.restorePolicyWithId(mMockContext, account.mPolicyKey) [all...] |
ProviderTests.java | 38 import com.android.emailcommon.provider.Account; 188 * Test simple account save/retrieve 192 Account account1 = ProviderTestUtils.setupAccount("account-save", true, mMockContext); 195 Account account2 = Account.restoreAccountWithId(mMockContext, account1Id); 201 * Test simple account save/retrieve with predefined hostauth records 205 Account account1 = ProviderTestUtils.setupAccount("account-hostauth", false, mMockContext); 208 ProviderTestUtils.setupHostAuth("account-hostauth-recv", -1, false, mMockContext) 230 Account account = ProviderTestUtils.setupAccount("account-hostauth", false, mMockContext); local 264 Account account = ProviderTestUtils.setupAccount("account-hostauth", false, mMockContext); local 564 Account account = ProviderTestUtils.setupAccount("message-snippet", true, mMockContext); local 1739 Account account = ProviderTestUtils.setupAccount("triggers", true, mMockContext); local 2158 Account account = ProviderTestUtils.setupAccount(name, false, c); local [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
FolderWatcher.java | 81 public void updateAccountList(Account[] allAccounts) { 87 for (final Account account : allAccounts) { 88 newAccounts.add(account.settings.defaultInbox); 159 * {@link #getUnreadCount(Account)} for this uri will return null. 180 * Returns the unread count for the default inbox for the account given. The account must be 181 * watched with {@link #updateAccountList(Account[])}. If the account was not in an account [all...] |
/development/apps/Development/src/com/android/development/ |
AccountsTester.java | 19 import android.accounts.Account; 62 private Account mLongPressedAccount = null; 99 private class AccountArrayAdapter extends ArrayAdapter<Account> { 102 public AccountArrayAdapter(Context context, Account[] accounts) { 110 Account account; field in class:AccountsTester.AccountArrayAdapter.ViewHolder 140 final Account account = getItem(position); local 141 holder.account = account; 269 final Account account = mLongPressedAccount; local 281 final Account account = mLongPressedAccount; local [all...] |
/frameworks/base/core/java/android/content/ |
AbstractThreadedSyncAdapter.java | 19 import android.accounts.Account; 41 * cancelled via {@link ContentResolver#cancelSync(Account, String)} or 45 * your code in {@link #onPerformSync(Account, Bundle, String, ContentProviderClient, SyncResult)} 78 * indicate which content authority and for which account types this sync adapter serves. 89 * it sync an account's data. 91 * to intialize the isSyncable state to 1 for that sync adapter for each account that is added. 110 private final HashMap<Account, SyncThread> mSyncThreads = new HashMap<Account, SyncThread>(); 122 * {@link ContentResolver#setIsSyncable(android.accounts.Account, String, int)} with 1 if it 135 * {@link ContentResolver#setIsSyncable(android.accounts.Account, String, int)} with 1 if i [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/drawer/ |
DrawerItem.java | 26 import com.android.mail.providers.Account; 39 * This class is an enumeration of a few element types: Account, a folder, a recent folder, 42 * {@link DrawerItem#ofAccount(ControllableActivity, Account, int, boolean, BitmapCache, 51 public final Account mAccount; 66 /** An account object, which allows switching accounts rather than folders. */ 110 * @param account the account object, for an account drawer element 113 @DrawerItemCategory int itemCategory, Account account) { [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
AccountHeaderPresenter.java | 29 import com.android.contacts.model.account.AccountInfo; 30 import com.android.contacts.model.account.AccountWithDataSet; 37 * Controls the display of an account selector or header. 61 // Account header 68 // This would be different if the account was readonly 89 public void setCurrentAccount(@NonNull AccountWithDataSet account) { 90 if (mCurrentAccount != null && mCurrentAccount.equals(account)) { 93 mCurrentAccount = account; 102 // If the current account hasn't been set or it has been removed just use the first 103 // account [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
AccountTypeManagerTest.java | 19 import android.accounts.Account; 25 import com.android.contacts.model.account.AccountType; 26 import com.android.contacts.model.account.AccountTypeWithDataSet; 27 import com.android.contacts.model.account.AccountWithDataSet; 28 import com.android.contacts.model.account.GoogleAccountType; 52 private static final Account[] ACCOUNTS = new Account[2]; 54 ACCOUNTS[0] = new Account("name1", GoogleAccountType.ACCOUNT_TYPE); 55 ACCOUNTS[1] = new Account("name2", GoogleAccountType.ACCOUNT_TYPE); 88 for (AccountWithDataSet account : accounts) 132 final Account account = AccountTypeManager.getDefaultGoogleAccount( local [all...] |
/packages/apps/Dialer/java/com/android/contacts/common/model/account/ |
AccountWithDataSet.java | 17 package com.android.contacts.common.model.account; 19 import android.accounts.Account; 34 /** Wrapper for an account that includes a data set (which may be null). */ 83 private static StringBuilder addStringified(StringBuilder sb, AccountWithDataSet account) { 84 if (!TextUtils.isEmpty(account.name)) { 85 sb.append(account.name); 88 if (!TextUtils.isEmpty(account.type)) { 89 sb.append(account.type); 92 if (!TextUtils.isEmpty(account.dataSet)) { 93 sb.append(account.dataSet) [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/ |
AuthenticatorHelper.java | 19 import android.accounts.Account; 44 * called once accounts get updated. For setting up listening for account 70 // This guarantees that the helper is ready to use once constructed: the account types and 90 * Gets an icon associated with a particular account type. If none found, return null. 91 * @param accountType the type of account 123 * Gets the label associated with a particular account type. If none found, return null. 124 * @param accountType the type of account 136 Log.w(TAG, "No label name for account type " + accountType); 138 Log.w(TAG, "No label icon for account type " + accountType); 145 * Gets the package associated with a particular account type. If none found, return null 209 final Account account = accounts[i]; local [all...] |
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/ |
AuthenticatorContentProvider.java | 19 import android.accounts.Account; 90 Account account = new Account(name, a.type); local 91 am.addAccountExplicitly(account, Fixtures.PREFIX_PASSWORD + name, null); 107 Account[] accountsToRemove = am.getAccountsByType(a.type); 108 for (Account account : accountsToRemove) { 109 am.removeAccountExplicitly(account);
|
/development/apps/PushApiTestAppOne/src/com/example/android/pushapithirdpartyone/ |
MainActivity.java | 19 import android.accounts.Account; 56 public void onAccountsUpdated(Account[] accounts) { 59 for (Account account : accounts) { 60 Log.i(TAG, "visible account: " + account); 76 + " tests, use cases, and proof of concept of Account Discovery API!\n") 89 Account[] accountsAccessedByAuthApp = am.getAccounts(); 122 Toast.makeText(this, "No account was chosen", Toast.LENGTH_LONG).show();
|
/development/apps/PushApiTestAppTwo/src/com/example/android/pushapithirdpartytwo/ |
MainActivity.java | 19 import android.accounts.Account; 56 public void onAccountsUpdated(Account[] accounts) { 59 for (Account account : accounts) { 60 Log.i(TAG, "visible account: " + account); 76 + " tests, use cases, and proof of concept of Account Discovery API!\n") 89 Account[] accountsAccessedByAuthApp = am.getAccounts(); 122 Toast.makeText(this, "No account was chosen", Toast.LENGTH_LONG).show();
|
/frameworks/opt/vcard/java/com/android/vcard/ |
VCardEntryConstructor.java | 18 import android.accounts.Account; 54 private final Account mAccount; 66 public VCardEntryConstructor(final int vcardType, final Account account) { 67 this(vcardType, account, null); 72 * Use {@link #VCardEntryConstructor(int, Account)} 75 public VCardEntryConstructor(final int vcardType, final Account account, 78 mAccount = account;
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
ImportRequest.java | 18 import android.accounts.Account; 21 import com.android.contacts.model.account.AccountWithDataSet; 36 * Can be null (typically when there's no Account available in the system). 38 public final Account account; field in class:ImportRequest 99 public ImportRequest(AccountWithDataSet account, 102 this.account = account != null ? account.getAccountOrNull() : null;
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
AccountTypePreference.java | 19 import android.accounts.Account; 71 public AccountTypePreference(Context context, int metricsCategory, Account account, 75 mTitle = account.name; 84 setKey(buildKey(account)); 114 * Build a unique preference key based on account. 116 public static String buildKey(Account account) { 117 return String.valueOf(account.hashCode());
|
/packages/apps/Settings/src/com/android/settings/overlay/ |
SupportFeatureProvider.java | 19 import android.accounts.Account; 117 * Returns array of {@link Account} that's eligible for support options. 120 Account[] getSupportEligibleAccounts(Context context); 126 * @param account A account that selected by user 127 * @param type The type of support account needs. 129 void startSupport(Activity activity, Account account, @SupportType int type); 137 * Returns an intent that will start the add account UI.
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
AccountFeedbackActivity.java | 31 import com.android.mail.providers.Account; 36 * Activity that provides support for querying an {@link Account} 42 public static final String EXTRA_ACCOUNT_URI = "extra-account-uri"; 46 private static final String SAVED_ACCOUNT = "saved-account"; 51 protected Account mAccount; 72 // Account uri will be null if we launched from outside of the app. 73 // So just don't load an account at all. 82 public void onAccountLoadCallbackFinished(ObjectCursor<Account> data) { 126 public Account getAccount() {
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
NotificationUtils.java | 59 import com.android.mail.providers.Account; 95 /** Contains a list of <(account, label), unread conversations> */ 236 throw new IllegalStateException("Unable to locate account for uri: " + 240 final Account account; local 243 account = Account.builder().buildFrom(accountCursor); 271 final NotificationKey key = new NotificationKey(account, folder); 291 key.account.uri.toString(), key.folder.folderUri.fullUri.toString(), 302 * @return the title of this notification with each account and the number of unread and unsee 1908 public final Account account; field in class:NotificationUtils.NotificationKey [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountServerSettingsActivity.java | 30 import com.android.emailcommon.provider.Account; 39 * {@link com.android.emailcommon.provider.Account} 41 private static final String EXTRA_ACCOUNT = "account"; 51 public static Intent getIntentForIncoming(final Context context, final Account account) { 53 intent.putExtra(EXTRA_ACCOUNT, account); 58 public static Intent getIntentForOutgoing(final Context context, final Account account) { 60 intent.putExtra(EXTRA_ACCOUNT, account); 75 final Account account = getIntent().getParcelableExtra(EXTRA_ACCOUNT) local [all...] |
/packages/services/Telephony/sip/res/values-en-rAU/ |
strings.xml | 29 <string name="add_sip_account" msgid="800843669753980091">"Add account"</string> 30 <string name="remove_sip_account" msgid="1367664438506503690">"Remove account"</string> 32 <string name="saving_account" msgid="5336529880235177448">"Saving the account?"</string> 33 <string name="removing_account" msgid="5537351356808985756">"Removing the account?"</string> 43 <string name="registration_status_no_data" msgid="2541999976218192413">"Account registration stopped because there is no Internet connection."</string> 44 <string name="registration_status_no_wifi_data" msgid="9154717387473039546">"Account registration stopped because there is no Wi-Fi connection."</string> 45 <string name="registration_status_not_running" msgid="514205414303796800">"Account registration unsuccessful."</string> 47 <string name="registration_status_failed_try_later" msgid="2199970021756384317">"Account registration unsuccessful: (<xliff:g id="REGISTRATION_ERROR_MESSAGE">%s</xliff:g>); will try later"</string> 48 <string name="registration_status_invalid_credentials" msgid="8406872554323334182">"Account registration unsuccessful: Incorrect username or password."</string> 49 <string name="registration_status_server_unreachable" msgid="7710275557045148634">"Account registration unsuccessful: Check the server name."</string [all...] |