/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/ |
D | SyncAdapter.java | 67 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/ |
D | CardEmulationFragment.java | 46 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
|
D | AccountStorage.java | 52 String account = prefs.getString(PREF_ACCOUNT_NUMBER, DEFAULT_ACCOUNT_NUMBER); in GetAccount() local 53 sAccount = account; in GetAccount()
|
D | CardService.java | 90 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/ |
D | SyncUtils.java | 53 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()
|
D | EntryListFragment.java | 336 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/ |
D | Authenticator.java | 76 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
|
D | AuthenticatorActivity.java | 173 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/ |
D | MyAuthenticator.java | 56 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/ |
D | MyAccountAuthenticator.java | 42 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
|
D | MainActivity.java | 55 for (Account account : accounts) { in isAccountAdded() 56 if (a.equals(account)) { in isAccountAdded()
|
/development/apps/Development/src/com/android/development/ |
D | AccountsTester.java | 110 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/ |
D | README.md | 3 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/ |
D | GenericAccountService.java | 95 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/ |
D | example_script.txt | 21 # Go down and select the account username 28 # account name: bill
|
/development/samples/browseable/CardReader/src/com.example.android.cardreader/ |
D | CardReaderFragment.java | 99 public void onAccountReceived(final String account) { in onAccountReceived() argument 105 mAccountField.setText(account); in onAccountReceived()
|
D | LoyaltyCardReader.java | 48 public void onAccountReceived(String account); in onAccountReceived() argument
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
D | ContactManager.java | 60 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.jd | 9 doesn\'t require a user-visible account type or 2-way synchronization.
|
/development/samples/browseable/AppRestrictions/ |
D | _index.jd | 11 … When launched under the primary User account, you can toggle between standard app restriction
|
/development/samples/browseable/BasicManagedProfile/ |
D | _index.jd | 10 configured to be forwarded between primary account and managed profile. Finally, you can
|
/development/apps/PushApiTestAppTwo/src/com/example/android/pushapithirdpartytwo/ |
D | MainActivity.java | 59 for (Account account : accounts) { in onCreate() 60 Log.i(TAG, "visible account: " + account); in onCreate()
|
/development/apps/PushApiTestAppOne/src/com/example/android/pushapithirdpartyone/ |
D | MainActivity.java | 59 for (Account account : accounts) { in onCreate() 60 Log.i(TAG, "visible account: " + account); in onCreate()
|
/development/tools/repo_diff/service/repodiff/ |
D | Makefile | 123 --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/ |
D | NetworkUtilities.java | 161 Account account, String authtoken, long serverSyncState, List<RawContact> dirtyContacts) in syncContacts() argument 178 params.add(new BasicNameValuePair(PARAM_USERNAME, account.name)); in syncContacts()
|