/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/ |
Authenticator.java | 23 import android.accounts.Account; 37 * part of the authentication process. In the account setup UI, the user enters 42 * we need to return the appropriate authToken for the specified account. If we 43 * already have an authToken stored in the account, we return that authToken. If 76 AccountAuthenticatorResponse response, Account account, Bundle options) { 88 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, 100 // Extract the username and password from the Account Manager, and ask 103 final String password = am.getPassword(account); [all...] |
/packages/apps/Dialer/java/com/android/contacts/common/model/ |
AccountTypeManager.java | 19 import android.accounts.Account; 47 import com.android.contacts.common.model.account.AccountType; 48 import com.android.contacts.common.model.account.AccountTypeWithDataSet; 49 import com.android.contacts.common.model.account.AccountWithDataSet; 50 import com.android.contacts.common.model.account.ExchangeAccountType; 51 import com.android.contacts.common.model.account.ExternalAccountType; 52 import com.android.contacts.common.model.account.FallbackAccountType; 53 import com.android.contacts.common.model.account.GoogleAccountType; 54 import com.android.contacts.common.model.account.SamsungAccountType; 96 * Set the instance of account type manager. This is only for and should only be used by uni [all...] |
/packages/apps/Email/tests/src/com/android/email/provider/ |
AccountBackupRestoreTests.java | 26 import com.android.emailcommon.provider.Account; 31 * This is a series of unit tests for backup/restore of the Account class. 60 public static void assertRestoredAccountEqual(Account expect, Account actual) { 83 Account saved1 = 90 Account saved2 = 98 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)); 106 cr.delete(Account.CONTENT_URI, null, null); 110 assertEquals(0, EmailContent.count(mMockContext, Account.CONTENT_URI)); 119 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)) [all...] |
/packages/services/Telephony/sip/res/values-it/ |
strings.xml | 20 <string name="sip_accounts" msgid="85559497282185405">"Account SIP"</string> 21 <string name="sip_accounts_title" msgid="2082527045326874519">"Account"</string> 29 <string name="add_sip_account" msgid="800843669753980091">"Aggiungi account"</string> 30 <string name="remove_sip_account" msgid="1367664438506503690">"Rimuovi account"</string> 31 <string name="sip_account_list" msgid="5610858485304821480">"Account SIP"</string> 32 <string name="saving_account" msgid="5336529880235177448">"Salvataggio dell\'account..."</string> 33 <string name="removing_account" msgid="5537351356808985756">"Rimozione dell\'account..."</string> 43 <string name="registration_status_no_data" msgid="2541999976218192413">"Registrazione account interrotta per mancanza di collegamento Internet."</string> 44 <string name="registration_status_no_wifi_data" msgid="9154717387473039546">"Registrazione account interrotta per mancanza di connessione Wi-Fi."</string> 45 <string name="registration_status_not_running" msgid="514205414303796800">"Registrazione account non riuscita."</string [all...] |
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
BugreportProgressServiceTest.java | 27 import android.accounts.Account; 102 private Account account(String email) { method in class:BugreportProgressServiceTest 103 return new Account(email, "test.com"); 108 final Pair<UserHandle, Account> actual = findSendToAccount(mTestContext, preferredDomain); 110 assertEquals(account(expectedEmail), actual.second); method 127 // 1 account 129 array(account("abc@gmail.com"))); 140 array(account("abc@gmail.com"), account("def@gmail.com"))) [all...] |
/packages/apps/Settings/src/com/android/settings/accounts/ |
AccountSyncSettings.java | 19 import android.accounts.Account; 62 public static final String ACCOUNT_KEY = "account"; 71 private Account mAccount; 147 mAccount = (Account) arguments.getParcelable(ACCOUNT_KEY); 149 Log.e(TAG, "Account provided does not exist: " + mAccount); 154 Log.v(TAG, "Got account: " + mAccount); 187 private void addSyncStateSwitch(Account account, String authority, 191 item = new SyncStateSwitchPreference(getPrefContext(), account, authority, 195 item.setup(account, authority, packageName, uid) 280 Account account = syncPref.getAccount(); local 437 Account account = syncPref.getAccount(); local [all...] |
/packages/apps/Email/provider_src/com/android/email/service/ |
EmailServiceUtils.java | 54 import com.android.emailcommon.provider.Account; 82 * Ask a service to kill its process. This is used when an account is deleted so that 84 * NPE or other error when trying to operate on an account that no longer exists. 85 * TODO: This is kind of a hack, it's only needed because we fail so badly if an account 170 * For a given account id, return a service proxy if applicable, or null. 176 return getService(context, Account.getProtocol(context, accountId)); 223 sb.append(" , Account Type: "); 231 // Handle the degenerate case here (account might have been deleted) 253 String protocol = Account.getProtocol(context, accountId); 280 * Add an account to the AccountManager 338 final Account account = new Account(); local [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSetupFinal.java | 49 import com.android.emailcommon.provider.Account; 72 * Direct access for forcing account creation 79 * construct an intent which contains all necessary information to create the account. No 80 * connection checking is done, so the account may or may not actually work. Here is a sample 81 * command, for a gmail account "test_account" with a password of "test_password". 85 * -e USER "Test Account Name" \ 134 // Account is not pre-configured, query user for account type 136 // Account is pre-configured, but the user picked a different protocol 140 // Account is a pre-configured account, run the checke 314 final Account account = mSetupData.getAccount(); local 320 final Account account = mSetupData.getAccount(); local 584 final Account account = mSetupData.getAccount(); local 834 final Account account = mSetupData.getAccount(); local 882 final Account account = mSetupData.getAccount(); local 932 final Account account = mSetupData.getAccount(); local 962 final Account account = mSetupData.getAccount(); local 1085 final Account account = mSetupData.getAccount(); local 1095 final Account account = mSetupData.getAccount(); local 1110 final Account account = mSetupData.getAccount(); local 1284 final Account account = mSetupData.getAccount(); local [all...] |
/development/apps/PushApiAuthenticator/src/com/example/android/pushapiauthenticator/ |
MainActivity.java | 20 import android.accounts.Account; 49 public boolean isAccountAdded(Account a) { 50 Account[] accounts = am.getAccountsByType(getApplicationContext().getPackageName()); 51 for (Account account : accounts) { 52 if (a.equals(account)) { 79 Toast.makeText(getApplicationContext(), "Choose an Account!", Toast.LENGTH_SHORT); 86 Account terraAccount = new Account("TERRA", getPackageName()); 87 Account aquaAccount = new Account("AQUA", getPackageName()) [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/tests/src/com/android/contacts/editor/ |
ContactEditorUtilsTest.java | 28 import com.android.contacts.model.account.AccountType; 29 import com.android.contacts.model.account.AccountWithDataSet; 100 // We show the notification here, and user clicked "add account" 103 // Now we open the contact editor with the new account. 105 // When closing the editor, we save the default account. 111 // User added a new writable account, ACCOUNT_1_B. 114 // Since default account is still ACCOUNT_1_A, we don't show the notification. 117 // User saved a new contact. We update the account list and the default account. 129 // New added account but default account is still not changed, so no notification [all...] |
/frameworks/base/core/java/com/android/server/backup/ |
AccountSyncSettingsBackupHelper.java | 19 import android.accounts.Account; 53 * Helper for backing up account sync settings (whether or not a service should be synced). The 91 * Take a snapshot of the current account sync settings and write them to the given output. 100 Log.d(TAG, "Account sync settings JSON: " + dataJSON); 119 Log.e(TAG, "Couldn't backup account sync settings\n" + e); 124 * Fetch and serialize Account and authority information as a JSON Array. 127 Account[] accounts = mAccountManager.getAccounts(); 131 // Create a map of Account types to authorities. Later this will make it easier for us to 152 for (Account account : accounts) 284 Account account = null; local 401 final Account account = new Account(accountName, accountType); local [all...] |
/external/autotest/client/deps/auth/passthrough/ |
main.html | 6 'email': 'performance.test.account@gmail.com',
|
/external/openssh/contrib/redhat/ |
sshd.pam.old | 4 account required /lib/security/pam_pwdb.so
|
/external/selinux/policycoreutils/newrole/ |
newrole.pamd | 5 account include system-auth
|
/external/selinux/policycoreutils/run_init/ |
run_init.pamd | 5 account include system-auth
|
/frameworks/base/services/tests/servicestests/res/values/ |
strings.xml | 24 <string name="test_account_type1_authenticator_label">AccountManagerService Test Account Type1</string> 25 <string name="test_account_type2_authenticator_label">AccountManagerService Test Account Type2</string> 26 <string name="test_account_type1">com.android.server.accounts.account_manager_service_test.account.type1</string> 27 <string name="test_account_type2">com.android.server.accounts.account_manager_service_test.account.type2</string>
|
/packages/apps/Email/ |
proguard.flags | 4 public *** newInstance(com.android.emailcommon.provider.Account, android.content.Context);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
CustomVCardEntry.java | 18 import android.accounts.Account; 34 public CustomVCardEntry(int vCardType, Account account) { 35 super(vCardType, account);
|
/cts/tests/tests/provider/src/android/provider/cts/ |
CalendarTest.java | 128 static String generateCalendarOwnerEmail(String account) { 129 return "OWNER_" + account + "@example.com"; 136 * @param account The account name to create this calendar with 141 String account, int seed) { 146 values.put(Calendars.ACCOUNT_NAME, account); 151 values.put(Calendars.OWNER_ACCOUNT, generateCalendarOwnerEmail(account)); 204 public static int deleteCalendarByAccount(ContentResolver resolver, String account) { 206 new String[] { account }); 209 public static Cursor getCalendarsByAccount(ContentResolver resolver, String account) { 923 String account = "cc1_account"; local 939 String account = "dproj_account"; local 998 String account = "eeq_account"; local 1171 String account = "att_account"; local 1321 String account = "rem_account"; local 1486 String account = "rem_account"; local 1519 String account = "colw_account"; local 1618 String account = "cc_account"; local 1735 String account = "ec_account"; local 1874 String account = "ep_account"; local 1979 String account = "cser_account"; local 2060 String account = "cser_account"; local 2159 String account = "cu1_account"; local 2199 String account = "ss_account"; local 2247 String account = "ec1_account"; local 2289 String account = "em1_account"; local 2334 String account = "bup_account"; local 2417 String account = "re_account"; local 2454 String account = "reconv_account"; local 2496 String account = "rex_account"; local 2683 String account = "rena_account"; local 2945 String account = "refx_account"; local 3041 String account = "ref_account"; local 3097 String account = "multirule_account"; local 3123 String account = "neg_account"; local 3152 String account = "ec_account"; local 3200 String account = "ec_account"; local 3249 String account = "ec_account"; local 3282 String account = "ec_account"; local [all...] |
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/ |
Fixtures.java | 19 import android.accounts.Account; 25 * Constants shared amongst account hostside tests. 53 public static final Account ACCOUNT_UNAFFILIATED_FIXTURE_SUCCESS = new Account( 57 public static final Account ACCOUNT_DEFAULT = new Account( 81 "android.accounts.cts.unaffiliated.account.status.token";
|
/packages/apps/UnifiedEmail/src/com/android/mail/drawer/ |
AccountDrawerItem.java | 25 import com.android.mail.providers.Account; 31 /** True if the drawer item represents the current account, false otherwise */ 36 AccountDrawerItem(ControllableActivity activity, Account account, 39 super(activity, null, NONFOLDER_ITEM, account); 43 // TODO: Unread count should eventually percolate through to the account switcher 52 * Return a view for an account object.
|
/frameworks/base/services/core/java/com/android/server/content/ |
SyncOperation.java | 19 import android.accounts.Account; 100 public SyncOperation(Account account, int userId, int owningUid, String owningPackage, 103 this(new SyncStorageEngine.EndPoint(account, provider, userId), owningUid, owningPackage, 168 * {@link #extras} is a Bundle and can contain parcelable objects. But only the type Account 170 * a PersistableBundle. For every value of type Account with key 'key', we store a 171 * PersistableBundle containing account information at key 'ACCOUNT:key'. The Account object 185 if (value instanceof Account) { 186 Account account = (Account) value; local 277 Account account = new Account(accountsBundle.getString("accountName"), local 283 Account account = new Account(accountName, accountType); local [all...] |
/platform_testing/libraries/system-helpers/account-helper/src/android/system/helpers/ |
AccountHelper.java | 19 import android.accounts.Account; 34 * Implement common helper methods for account. 60 * Checks whether a google account has been enabled in device for backup 67 Pattern pattern = Pattern.compile("Backup account", Pattern.CASE_INSENSITIVE); 83 * Get registered accounts ensures there is at least one account registered returns the google 84 * account name 85 * @return The registered gogole/gmail account on device 88 Account[] accounts = AccountManager.get(mContext).getAccounts(); 89 Assert.assertTrue("Device doesn't have any account registered", accounts.length >= 1); 95 throw new RuntimeException("The device is not registered with a google account"); [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
ContactsProvider2_AccountRemovalTest.java | 21 import android.accounts.Account; 31 import android.provider.cts.contacts.account.StaticAccountAuthenticator; 49 // other tests running when the account is removed. No other tests should use the following 51 private static final Account ACCT_1 = new Account("cp removal acct 1", 53 private static final Account ACCT_2 = new Account("cp removal acct 2", 100 * Contact has merged raw contacts from a single account. Contact should be deleted upon 101 * account removal. 112 * one account is removed. But contact should have last updated timestamp updated [all...] |