/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
ProvisioningTest.java | 29 import android.accounts.Account; 121 for (Account account : am.getAccountsByType(AccountAuthenticator.ACCOUNT_TYPE)) { 122 if (AccountAuthenticator.TEST_ACCOUNT.equals(account)) { 126 fail("can't find migrated account"); 132 assertTrue("test account still exists after account migration", 150 private Account addAndGetTestAccount() { 151 Account account = AccountAuthenticator.TEST_ACCOUNT 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);
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
AbstractAuthenticatorTests.java | 19 import android.accounts.Account; 39 * default implementation of account session api in 144 * Only account name and account type should be returned as a bundle. 206 // Assert returned result contains correct account name, account type and null auth token. 214 * Only account name and account type should be returned as a bundle. 265 assertEquals(Fixtures.ACCOUNT_DEFAULT, updateCredentialsTx.account); 273 // Assert returned result contains correct account name, account type and null auth token 298 Account account = new Account(accountName, Fixtures.TYPE_DEFAULT); local [all...] |
/cts/tests/tests/content/lib/accountaccess/src/com.android.cts.content/ |
Utils.java | 3 import android.accounts.Account; 62 // Wait for the sync manager to be notified for the new account. 86 public final Account account; field in class:Utils.ClosableAccount 88 private ClosableAccount(@NonNull Account account) { 89 this.account = account; 96 accountManager.getAuthToken(account, TOKEN_TYPE_REMOVE_ACCOUNTS, null, false, null, 106 Account addedAccount = new Account [all...] |
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/ |
SignInActivity.java | 43 * <p>On sign in: Create mProfile from the user details from their google account Check if the user 55 /* request code for signing in with a google account */ 124 GoogleSignInAccount account = result.getSignInAccount(); local 125 syncUserWithBackend(account);
|
/developers/samples/android/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/ |
SignInActivity.java | 43 * <p>On sign in: Create mProfile from the user details from their google account Check if the user 55 /* request code for signing in with a google account */ 124 GoogleSignInAccount account = result.getSignInAccount(); local 125 syncUserWithBackend(account);
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/ |
AuthenticatorActivity.java | 23 import android.accounts.Account; 84 /** Was the original caller asking for an entirely new account? */ 173 final Account account = new Account(mUsername, Constants.ACCOUNT_TYPE); local 174 mAccountManager.setPassword(account, mPassword); 187 * account - so we're never storing the user's actual password locally. 194 final Account account = new Account(mUsername, Constants.ACCOUNT_TYPE) local [all...] |
/frameworks/base/cmds/requestsync/src/com/android/commands/requestsync/ |
RequestSync.java | 20 import android.accounts.Account; 77 // account & authority 82 private Account mAccount; 113 final Account account = mAccountName != null && mAccountType != null local 114 ? new Account(mAccountName, mAccountType) : null; 117 if (account != null) { 118 System.out.printf(" Account: %s (%s)\n", account.name, account.type) [all...] |
/frameworks/base/cmds/telecom/src/com/android/commands/telecom/ |
Telecom.java | 45 private static final String COMMAND_SET_PHONE_ACCOUNT_ENABLED = "set-phone-account-enabled"; 46 private static final String COMMAND_SET_PHONE_ACCOUNT_DISABLED = "set-phone-account-disabled"; 47 private static final String COMMAND_REGISTER_PHONE_ACCOUNT = "register-phone-account"; 48 private static final String COMMAND_REGISTER_SIM_PHONE_ACCOUNT = "register-sim-phone-account"; 49 private static final String COMMAND_UNREGISTER_PHONE_ACCOUNT = "unregister-phone-account"; 64 "usage: telecom set-phone-account-enabled <COMPONENT> <ID> <USER_SN>\n" + 65 "usage: telecom set-phone-account-disabled <COMPONENT> <ID> <USER_SN>\n" + 66 "usage: telecom register-phone-account <COMPONENT> <ID> <USER_SN> <LABEL>\n" + 67 "usage: telecom register-sim-phone-account <COMPONENT> <ID> <USER_SN> <LABEL> <ADDRESS>\n" + 68 "usage: telecom unregister-phone-account <COMPONENT> <ID> <USER_SN>\n" 152 PhoneAccount account = PhoneAccount.builder(handle, label) local 162 PhoneAccount account = PhoneAccount.builder( local [all...] |
/frameworks/base/core/java/android/accounts/ |
AbstractAccountAuthenticator.java | 49 * <account-authenticator xmlns:android="http://schemas.android.com/apk/res/android" 60 * corresponds to {@link Account#type} for your accounts. One user of the android:icon is the 61 * "Account & Sync" settings page and one user of the android:smallIcon is the Contact Application's 122 * Bundle key used for the {@link String} account type in session bundle. 143 * Bundle key used for the {@link Account} account in session bundle. This is used 189 Account account, Bundle options) throws RemoteException { 191 Log.v(TAG, "confirmCredentials: " + account); 196 new AccountAuthenticatorResponse(response), account, options) 942 Account account = sessionBundle.getParcelable(KEY_ACCOUNT); local [all...] |
ChooseAccountActivity.java | 99 mAccountInfos[i] = new AccountInfo(((Account) mAccounts[i]).name, 100 getDrawableForType(((Account) mAccounts[i]).type)); 135 Log.w(TAG, "No icon name for account type " + accountType); 140 Log.w(TAG, "No icon resource for account type " + accountType); 148 Account account = (Account) mAccounts[position]; local 149 // Mark account as visible since user chose it. 151 Integer oldVisibility = am.getAccountVisibility(account, mCallingPackage); 154 am.setAccountVisibility(account, mCallingPackage [all...] |
/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...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/ |
HfpClientConnectionService.java | 146 // Unregister the phone account. This should ideally happen when disconnection ensues but in 260 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); local 261 String btAddr = account.getAddress().getSchemeSpecificPart(); 280 Log.d(TAG, "Creating phone account for device " + device); 283 // Creation of the block takes care of initializing the phone account and 318 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); local 319 String btAddr = account.getAddress().getSchemeSpecificPart(); 331 PhoneAccount account = local 337 Log.d(TAG, "phoneaccount: " + account); 339 return account; [all...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
ContactEditorAccountsChangedActivity.java | 36 import com.android.contacts.model.account.AccountInfo; 37 import com.android.contacts.model.account.AccountWithDataSet; 38 import com.android.contacts.model.account.AccountsLoader; 46 * which account the contact will be saved in. There is also an option to add an account at 48 * {@link #Intents.Insert.ACCOUNT} that contains the {@link AccountWithDataSet} to create 50 * account for this contact. 104 // If the user canceled the account setup process, then keep this activity visible to 110 AccountWithDataSet account = mEditorUtils.getCreatedAccount(resultCode, data); local 111 if (account == null) [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/account/ |
AccountWithDataSet.java | 17 package com.android.contacts.model.account; 19 import android.accounts.Account; 41 * Wrapper for an account that includes a data set (which may be null). 91 public Account getAccountOrNull() { 93 return new Account(name, type); 124 * Return {@code true} if this account has any contacts in the database. 177 private static StringBuilder addStringified(StringBuilder sb, AccountWithDataSet account) { 178 if (!TextUtils.isEmpty(account.name)) sb.append(account.name); 180 if (!TextUtils.isEmpty(account.type)) sb.append(account.type) [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
PeopleActivityTest.java | 33 import com.android.contacts.model.account.AccountType; 34 import com.android.contacts.model.account.AccountWithDataSet; 35 import com.android.contacts.model.account.BaseAccountType; 93 AccountWithDataSet account = new AccountWithDataSet(TEST_ACCOUNT, TEST_ACCOUNT_TYPE, null); local 97 new AccountType[] { accountType }, new AccountWithDataSet[] { account });
|
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ |
EditorUiUtilsTest.java | 28 import com.android.contacts.model.account.AccountDisplayInfo; 29 import com.android.contacts.model.account.AccountInfo; 30 import com.android.contacts.model.account.AccountType; 31 import com.android.contacts.model.account.AccountWithDataSet; 32 import com.android.contacts.model.account.DeviceLocalAccountType; 49 private static final AccountWithDataSet ACCOUNT = 50 new AccountWithDataSet(ACCOUNT_NAME, "some.account.type", null); 79 final AccountInfo account = new AccountInfo(new AccountDisplayInfo(ACCOUNT, ACCOUNT_NAME, local 81 new FakeAccountType("com.example.account")); 94 final AccountInfo account = new AccountInfo(new AccountDisplayInfo(ACCOUNT, "Device", local 106 final AccountDisplayInfo account = new AccountDisplayInfo(ACCOUNT, ACCOUNT_NAME, local 117 final AccountDisplayInfo account = new AccountDisplayInfo(GOOGLE_ACCOUNT, ACCOUNT_NAME, local 130 final AccountDisplayInfo account = new AccountDisplayInfo(deviceAccount, "Device", 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...] |
/packages/apps/Dialer/java/com/android/dialer/app/settings/ |
PhoneAccountSelectionFragment.java | 34 * Preference screen that lists SIM phone accounts to select from, and forwards the selected account 39 /** The {@link PreferenceFragment} to launch after the account is selected. */ 116 PhoneAccount account = telecomManager.getPhoneAccount(handle); local 117 if (account != null) { 119 0 != (account.getCapabilities() & PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); 121 screen.addPreference(new AccountPreference(context, handle, account));
|
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/ |
SimulatorSimCallManager.java | 46 * <p>For video calls this will only work if the underlying telephony phone account also supports 47 * video. To ensure that video always works we use a separate video account. The user must manually 48 * enable this account in call settings for video calls to work. 208 PhoneAccount account = telecomManager.getPhoneAccount(handle); local 209 if (account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { 213 throw Assert.createIllegalStateFailException("no SIM phone account available");
|
/packages/apps/Dialer/java/com/android/dialer/telecom/ |
TelecomUtil.java | 159 PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); local 160 if (account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { 167 /** Compose {@link PhoneAccountHandle} object from component name and account id. */
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/utils/ |
LogUtils.java | 26 private static final String ACCOUNT_PREFIX = "account:"; 105 // This assumes that the first path segment is the account 106 final String account = pathSegments.get(0); local 108 builder = builder.appendPath(sanitizeAccountName(account)); 116 /** Sanitizes an account name. If debug logging is not enabled, a sanitized name is returned. */
|
/packages/apps/Email/provider_src/com/android/email/activity/setup/ |
AccountSettingsUtils.java | 32 import com.android.emailcommon.provider.Account; 52 * Commits the UI-related settings of an account to the provider. This is static so that it 53 * can be used by the various account activities. If the account has never been saved, this 56 * @param account the account whose settings will be committed 58 public static void commitSettings(Context context, Account account) { 59 if (!account.isSaved()) { 60 account.save(context) [all...] |
/packages/apps/Email/provider_src/com/android/email/provider/ |
AccountReconciler.java | 39 import com.android.emailcommon.provider.Account; 54 * @return A list of all {@link android.accounts.Account}s created by our app. 56 private static List<android.accounts.Account> getAllAmAccounts(final Context context) { 66 final ImmutableList.Builder<android.accounts.Account> builder = ImmutableList.builder(); 68 final android.accounts.Account[] accounts = am.getAccountsByType(type); 75 * Get a all {@link Account} objects from the {@link EmailProvider}. 77 * @return A list of all {@link Account}s from the {@link EmailProvider}. 79 private static List<Account> getAllEmailProviderAccounts(final Context context) { 80 final Cursor c = context.getContentResolver().query(Account.CONTENT_URI, 81 Account.CONTENT_PROJECTION, null, null, null) 89 final Account account = new Account(); local [all...] |
FolderPickerActivity.java | 32 import com.android.emailcommon.provider.Account; 56 final com.android.mail.providers.Account uiAccount; 58 // in an account (meaning the account requires setup) 60 String id = uri.getQueryParameter("account"); 62 LogUtils.w(TAG, "No account # in Uri?"); 69 LogUtils.w(TAG, "Invalid account # in Uri?"); 73 // We act a bit differently if we're coming to set up the trash after account creation 83 Account account = Account.restoreAccountWithId(this, mAccountId) local 137 Account account = Account.restoreAccountWithId(mContext, mAccountId); local 205 Account account = Account.restoreAccountWithId(this, mAccountId); local [all...] |