/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/ContactsCommon/src/com/android/contacts/common/compat/ |
PhoneAccountSdkCompat.java | 34 public static Bundle getExtras(PhoneAccount account) { 35 return CompatUtils.isNCompatible() ? account.getExtras() : null;
|
/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);
|
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);
|
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);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/ |
TrafficFlags.java | 21 import com.android.emailcommon.provider.Account; 30 // Bits 0->15, account id 50 * Get flags indicating sync of the passed-in account; note that, by default, these flags 55 * @param account the account being used 56 * @return flags for syncing this account 58 public static int getSyncFlags(Context context, Account account) { 59 return (int)account.mId | REASON_SYNC; 63 * Get flags indicating attachment loading from the passed-in account [all...] |
/frameworks/base/core/java/android/provider/ |
SyncStateContract.java | 24 import android.accounts.Account; 30 * The ContentProvider contract for associating data with ana data array account. 36 * A reference to the name of the account to which this data belongs 42 * A reference to the type of the account to which this data belongs 48 * The sync data associated with this account. 64 * Get the sync state that is associated with the account or null. 68 * @param account the {@link Account} whose sync state should be returned 69 * @return the sync state or null if there is no sync state associated with the account 74 Account account) throws RemoteException [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountCreationFragment.java | 34 import com.android.emailcommon.provider.Account; 44 * AccountManager account and saving our account object to the database, as well as some misc 52 private static final String ACCOUNT_TAG = "account"; 72 void setAccount(Account account); 79 public static AccountCreationFragment newInstance(Account account, boolean syncEmail, 82 args.putParcelable(AccountCreationFragment.ACCOUNT_TAG, account); 167 final Account account = args.getParcelable(ACCOUNT_TAG) local [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/ |
SyncAdapter.java | 27 import android.accounts.Account; 67 public void onPerformSync(Account account, Bundle extras, String authority, 71 // see if we already have a sync-state attached to this account. By handing 74 long lastSyncMarker = getServerSyncMarker(account); 80 ContactManager.setAccountContactsVisibility(getContext(), account, true); local 86 // Use the account manager to request the AuthToken we'll need 90 final String authtoken = mAccountManager.blockingGetAuthToken(account, 94 final long groupId = ContactManager.ensureSampleGroupExists(mContext, account); 98 dirtyContacts = ContactManager.getDirtyContacts(mContext, account); [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
SelectAccountActivity.java | 27 import com.android.contacts.common.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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
UserHistoryDictionary.java | 48 @Nullable final String account) { 49 super(context, getUserHistoryDictName(NAME, locale, null /* dictFile */, account), locale, Dictionary.TYPE_USER_HISTORY, null); 60 @Nullable final File dictFile, @Nullable final String account) { 64 return getUserHistoryDictNamePerAccount(name, locale, dictFile, account); 68 * Uses the currently signed in account to determine the dictionary name. 71 @Nullable final File dictFile, @Nullable final String account) { 76 if (account != null) { 77 dictName += "." + account; 86 final File dictFile, final String dictNamePrefix, @Nullable final String account) { 87 return PersonalizationHelper.getUserHistoryDictionary(context, locale, account); [all...] |
AccountUtils.java | 19 import android.accounts.Account; 33 private static Account[] getAccounts(final Context context) { 39 for (final Account account : getAccounts(context)) { 40 final String name = account.name; 53 * @return List of account names that contain the specified domain name 59 for (final Account account : getAccounts(context)) { 60 if (account.name.toLowerCase(Locale.ROOT).endsWith(atDomain)) { 61 retval.add(account.name) [all...] |
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/syncadapter/ |
SyncUtils.java | 19 import android.accounts.Account; 33 public static final String ACCOUNT_TYPE = "com.example.android.sampletvinput.account"; 36 Account account = DummyAccountService.getAccount(ACCOUNT_TYPE); local 39 if (!accountManager.addAccountExplicitly(account, null, null)) { 40 Log.e(TAG, "Account already exists."); 42 ContentResolver.setIsSyncable(account, CONTENT_AUTHORITY, 1); 43 ContentResolver.setSyncAutomatically(account, CONTENT_AUTHORITY, true); 46 ContentResolver.addPeriodicSync(account, CONTENT_AUTHORITY, bundle,
|
/developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/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...] |
/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
|
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/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/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/ |
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
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
TokenCache.java | 19 import android.accounts.Account; 49 public final Account account; field in class:TokenCache.Key 54 public Key(Account account, String tokenType, String packageName, byte[] sigDigest) { 55 this.account = account; 65 return Objects.equals(account, cacheKey.account) 76 return account.hashCode( [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
CalendarTest.java | 127 static String generateCalendarOwnerEmail(String account) { 128 return "OWNER_" + account + "@example.com"; 135 * @param account The account name to create this calendar with 140 String account, int seed) { 145 values.put(Calendars.ACCOUNT_NAME, account); 150 values.put(Calendars.OWNER_ACCOUNT, generateCalendarOwnerEmail(account)); 203 public static int deleteCalendarByAccount(ContentResolver resolver, String account) { 205 new String[] { account }); 208 public static Cursor getCalendarsByAccount(ContentResolver resolver, String account) { 922 String account = "cc1_account"; local 938 String account = "dproj_account"; local 997 String account = "eeq_account"; local 1170 String account = "att_account"; local 1320 String account = "rem_account"; local 1485 String account = "rem_account"; local 1518 String account = "colw_account"; local 1617 String account = "cc_account"; local 1734 String account = "ec_account"; local 1873 String account = "ep_account"; local 1978 String account = "cser_account"; local 2059 String account = "cser_account"; local 2158 String account = "cu1_account"; local 2198 String account = "ss_account"; local 2246 String account = "ec1_account"; local 2288 String account = "em1_account"; local 2333 String account = "bup_account"; local 2416 String account = "re_account"; local 2453 String account = "reconv_account"; local 2495 String account = "rex_account"; local 2682 String account = "rena_account"; local 2944 String account = "refx_account"; local 3040 String account = "ref_account"; local 3096 String account = "multirule_account"; local 3122 String account = "neg_account"; local 3151 String account = "ec_account"; local 3199 String account = "ec_account"; local 3248 String account = "ec_account"; local 3281 String account = "ec_account"; local [all...] |
/cts/tests/tests/accounts/src/android/accounts/cts/ |
MockAccountAuthenticator.java | 20 import android.accounts.Account; 34 * A simple Mock Account Authenticator 59 Account mAccount; 102 public Account getAccount() { 144 * Adds an account of the specified accountType. 156 am.addAccountExplicitly(AccountManagerTest.ACCOUNT, "fakePassword", null); 161 * Update the locally stored credentials for an account. 164 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, 167 this.mAccount = account; [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
AccountSelectionUtil.java | 36 import com.android.contacts.common.model.account.AccountType; 37 import com.android.contacts.common.model.account.AccountWithDataSet; 43 * Utility class for selecting an Account for importing contact(s) 65 Log.e(LOG_TAG, "The size of Account list is 0."); 129 final AccountWithDataSet account = this.getItem(position); 131 account.type, account.dataSet); 135 text2.setText(account.name); 161 public static void doImport(Context context, int resId, AccountWithDataSet account, 164 doImportFromSim(context, account, subscriptionId) [all...] |
/packages/apps/Email/provider_src/com/android/email/service/ |
AuthenticatorService.java | 24 import android.accounts.Account; 39 * with addAccount, it simply adds the account to AccountManager directly with a username and 67 // app UI; we simply create the account and return the proper bundle 70 final Account account = new Account(options.getString(OPTIONS_USERNAME), local 73 account, options.getString(OPTIONS_PASSWORD), null); 78 ContentResolver.setIsSyncable(account, ContactsContract.AUTHORITY, 1); 79 ContentResolver.setSyncAutomatically(account, ContactsContract.AUTHORITY, 86 ContentResolver.setIsSyncable(account, CalendarContract.AUTHORITY, 1) [all...] |