Home
last modified time | relevance | path

Searched refs:account (Results 1 – 25 of 32) sorted by relevance

12

/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/
DSyncAdapter.java67 public void onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument
74 long lastSyncMarker = getServerSyncMarker(account); in onPerformSync()
80 ContactManager.setAccountContactsVisibility(getContext(), account, true); in onPerformSync() local
90 final String authtoken = mAccountManager.blockingGetAuthToken(account, in onPerformSync()
94 final long groupId = ContactManager.ensureSampleGroupExists(mContext, account); in onPerformSync()
98 dirtyContacts = ContactManager.getDirtyContacts(mContext, account); in onPerformSync()
101 updatedContacts = NetworkUtilities.syncContacts(account, authtoken, in onPerformSync()
109 account.name, in onPerformSync()
124 setServerSyncMarker(account, newSyncState); in onPerformSync()
156 private long getServerSyncMarker(Account account) { in getServerSyncMarker() argument
[all …]
/development/samples/browseable/CardEmulation/src/com.example.android.cardemulation/
DCardEmulationFragment.java46 EditText account = (EditText) v.findViewById(R.id.card_account_field); in onCreateView() local
47 account.setText(AccountStorage.GetAccount(getActivity())); in onCreateView()
48 account.addTextChangedListener(new AccountUpdater()); in onCreateView()
66 String account = s.toString(); in afterTextChanged() local
67 AccountStorage.SetAccount(getActivity(), account); in afterTextChanged() local
DAccountStorage.java52 String account = prefs.getString(PREF_ACCOUNT_NUMBER, DEFAULT_ACCOUNT_NUMBER); in GetAccount() local
53 sAccount = account; in GetAccount()
DCardService.java90 String account = AccountStorage.GetAccount(this); in processCommandApdu() local
91 byte[] accountBytes = account.getBytes(); in processCommandApdu()
92 Log.i(TAG, "Sending account number: " + account); in processCommandApdu()
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/
DSyncUtils.java53 Account account = GenericAccountService.GetAccount(ACCOUNT_TYPE); in CreateSyncAccount() local
56 if (accountManager.addAccountExplicitly(account, null, null)) { in CreateSyncAccount()
58 ContentResolver.setIsSyncable(account, CONTENT_AUTHORITY, 1); in CreateSyncAccount()
60 ContentResolver.setSyncAutomatically(account, CONTENT_AUTHORITY, true); in CreateSyncAccount()
64 account, CONTENT_AUTHORITY, new Bundle(),SYNC_FREQUENCY); in CreateSyncAccount()
DEntryListFragment.java336 Account account = GenericAccountService.GetAccount(SyncUtils.ACCOUNT_TYPE);
337 if (account == null) {
347 account, FeedContract.CONTENT_AUTHORITY);
349 account, FeedContract.CONTENT_AUTHORITY);
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/
DAuthenticator.java76 AccountAuthenticatorResponse response, Account account, Bundle options) { in confirmCredentials() argument
88 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
103 final String password = am.getPassword(account); in getAuthToken()
105 final String authToken = NetworkUtilities.authenticate(account.name, password); in getAuthToken()
108 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in getAuthToken()
119 intent.putExtra(AuthenticatorActivity.PARAM_USERNAME, account.name); in getAuthToken()
136 AccountAuthenticatorResponse response, Account account, String[] features) { in hasFeatures() argument
147 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
DAuthenticatorActivity.java173 final Account account = new Account(mUsername, Constants.ACCOUNT_TYPE); in finishConfirmCredentials() local
174 mAccountManager.setPassword(account, mPassword); in finishConfirmCredentials()
194 final Account account = new Account(mUsername, Constants.ACCOUNT_TYPE); in finishLogin() local
196 mAccountManager.addAccountExplicitly(account, mPassword, null); in finishLogin()
198 ContentResolver.setSyncAutomatically(account, ContactsContract.AUTHORITY, true); in finishLogin()
200 mAccountManager.setPassword(account, mPassword); in finishLogin()
/development/samples/DeviceAdminWhitelistedAccount/src/com/example/android/app/admin/whitelistedaccount/
DMyAuthenticator.java56 final Account account = new Account( in setUpAccount() local
58 am.addAccountExplicitly(account, null, null); in setUpAccount()
84 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
90 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument
96 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
107 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
/development/apps/PushApiAuthenticator/src/com/example/android/pushapiauthenticator/
DMyAccountAuthenticator.java42 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
47 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument
60 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
65 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
DMainActivity.java55 for (Account account : accounts) { in isAccountAdded()
56 if (a.equals(account)) { in isAccountAdded()
/development/apps/Development/src/com/android/development/
DAccountsTester.java110 Account account; field in AccountsTester.AccountArrayAdapter.ViewHolder
140 final Account account = getItem(position); in getView() local
141 holder.account = account; in getView()
144 if (desc.type.equals(account.type)) { in getView()
159 holder.name.setText(account.name); in getView()
255 mLongPressedAccount = holder.account; in onCreateContextMenu()
269 final Account account = mLongPressedAccount; in onContextItemSelected() local
270 mAccountManager.removeAccount(account, new AccountManagerCallback<Boolean>() { in onContextItemSelected()
273 Log.d(TAG, "removeAccount(" + account + ") = " + future.getResult()); in onContextItemSelected()
281 final Account account = mLongPressedAccount; in onContextItemSelected() local
[all …]
/development/samples/DeviceAdminWhitelistedAccount/
DREADME.md3 This application creates an account that will *not* prevent test-only DO/PO from being activated.
14 ## Create a whitelisted account
18 ## Remove a whitelisted account
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.common/accounts/
DGenericAccountService.java95 Account account, Bundle bundle) in confirmCredentials() argument
102 Account account, String s, Bundle bundle) in getAuthToken() argument
114 Account account, String s, Bundle bundle) in updateCredentials() argument
121 Account account, String[] strings) in hasFeatures() argument
/development/cmds/monkey/
Dexample_script.txt21 # Go down and select the account username
28 # account name: bill
/development/samples/browseable/CardReader/src/com.example.android.cardreader/
DCardReaderFragment.java99 public void onAccountReceived(final String account) { in onAccountReceived() argument
105 mAccountField.setText(account); in onAccountReceived()
DLoyaltyCardReader.java48 public void onAccountReceived(String account); in onAccountReceived() argument
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/
DContactManager.java60 public static long ensureSampleGroupExists(Context context, Account account) { in ensureSampleGroupExists() argument
68 new String[] { account.name, account.type, SAMPLE_GROUP_NAME }, null); in ensureSampleGroupExists()
82 contentValues.put(Groups.ACCOUNT_NAME, account.name); in ensureSampleGroupExists()
83 contentValues.put(Groups.ACCOUNT_TYPE, account.type); in ensureSampleGroupExists()
105 public static synchronized long updateContacts(Context context, String account, in updateContacts() argument
151 addContact(context, account, rawContact, groupId, true, batchOperation); in updateContacts()
174 public static List<RawContact> getDirtyContacts(Context context, Account account) { in getDirtyContacts() argument
182 new String[] {account.name}, in getDirtyContacts()
439 public static void setAccountContactsVisibility(Context context, Account account, in setAccountContactsVisibility() argument
442 values.put(RawContacts.ACCOUNT_NAME, account.name); in setAccountContactsVisibility()
/development/samples/browseable/BasicSyncAdapter/
D_index.jd9 doesn\'t require a user-visible account type or 2-way synchronization.
/development/samples/browseable/AppRestrictions/
D_index.jd11 … When launched under the primary User account, you can toggle between standard app restriction
/development/samples/browseable/BasicManagedProfile/
D_index.jd10 configured to be forwarded between primary account and managed profile. Finally, you can
/development/apps/PushApiTestAppOne/src/com/example/android/pushapithirdpartyone/
DMainActivity.java59 for (Account account : accounts) { in onCreate()
60 Log.i(TAG, "visible account: " + account); in onCreate()
/development/apps/PushApiTestAppTwo/src/com/example/android/pushapithirdpartytwo/
DMainActivity.java59 for (Account account : accounts) { in onCreate()
60 Log.i(TAG, "visible account: " + account); in onCreate()
/development/tools/repo_diff/service/repodiff/
DMakefile123 --service-account $(SERVICE_ACCOUNT) \
129 gcloud iam service-accounts keys create $(TMP_CREDENTIAL_FNAME) --iam-account $(SERVICE_ACCOUNT)
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
DNetworkUtilities.java161 Account account, String authtoken, long serverSyncState, List<RawContact> dirtyContacts) in syncContacts() argument
178 params.add(new BasicNameValuePair(PARAM_USERNAME, account.name)); in syncContacts()

12