Home
last modified time | relevance | path

Searched refs:AccountManager (Results 1 – 9 of 9) sorted by relevance

/external/volley/src/main/java/com/android/volley/toolbox/
DAndroidAuthenticator.java20 import android.accounts.AccountManager;
36 private final AccountManager mAccountManager;
62 this(AccountManager.get(context), account, authTokenType, notifyAuthFailure); in AndroidAuthenticator()
67 AccountManager accountManager, in AndroidAuthenticator()
106 if (result.containsKey(AccountManager.KEY_INTENT)) { in getAuthToken()
107 Intent intent = result.getParcelable(AccountManager.KEY_INTENT); in getAuthToken()
110 authToken = result.getString(AccountManager.KEY_AUTHTOKEN); in getAuthToken()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAccountManagerTest.java11 import android.accounts.AccountManager;
35 private AccountManager am;
41 am = AccountManager.get(ApplicationProvider.getApplicationContext()); in setUp()
49 … assertThat(am).isSameInstanceAs(AccountManager.get(ApplicationProvider.getApplicationContext())); in testGet()
51 AccountManager activityAM = AccountManager.get(ApplicationProvider.getApplicationContext()); in testGet()
529 assertThat((Intent) resultBundle.getParcelable(AccountManager.KEY_INTENT)).isNotNull(); in addAccount_noActivitySpecified()
539 assertThat(resultBundle.getString(AccountManager.KEY_ACCOUNT_TYPE)).isEqualTo("google.com"); in addAccount_activitySpecified()
540 …assertThat(resultBundle.getString(AccountManager.KEY_ACCOUNT_NAME)).isEqualTo("some_user@gmail.com… in addAccount_activitySpecified()
558 assertThat(resultBundle.getString(AccountManager.KEY_ACCOUNT_TYPE)).isEqualTo("google.com"); in addAccount_shouldCallCallback()
559 …assertThat(resultBundle.getString(AccountManager.KEY_ACCOUNT_NAME)).isEqualTo("thebomb@google.com"… in addAccount_shouldCallCallback()
[all …]
/external/robolectric-shadows/sandbox/src/test/java/org/robolectric/
DShadowingTest.java31 AccountManager.get(arg); in testStaticMethodsAreDelegated()
36 @Implements(AccountManager.class)
41 public static AccountManager get(Object arg) { in get()
44 return mock(AccountManager.class); in get()
51 static class AccountManager { class in ShadowingTest
52 public static AccountManager get(Object arg) { in get()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowAccountManager.java8 import android.accounts.AccountManager;
38 @Implements(AccountManager.class)
66 protected static AccountManager get(Context context) { in get()
67 return (AccountManager) context.getSystemService(Context.ACCOUNT_SERVICE); in get()
321 pendingAddFuture.resultBundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name);
386 resultBundle.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType);
390 resultBundle.putParcelable(AccountManager.KEY_INTENT, resultIntent);
392 resultBundle.putString(AccountManager.KEY_ACCOUNT_NAME, "some_user@gmail.com");
490 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name);
491 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type);
[all …]
/external/volley/src/test/java/com/android/volley/toolbox/
DAndroidAuthenticatorTest.java24 import android.accounts.AccountManager;
41 @Mock private AccountManager mAccountManager;
65 bundle.putParcelable(AccountManager.KEY_INTENT, intent); in resultContainsIntent()
94 bundle.putString(AccountManager.KEY_AUTHTOKEN, "monkey"); in goodToken()
/external/nist-sip/java/gov/nist/javax/sip/
DSipStackExt.java4 import gov.nist.javax.sip.clientauthutils.AccountManager;
66 public AuthenticationHelper getAuthenticationHelper(AccountManager accountManager, in getAuthenticationHelper()
DSipStackImpl.java33 import gov.nist.javax.sip.clientauthutils.AccountManager;
1374 AccountManager accountManager, HeaderFactory headerFactory) { in getAuthenticationHelper()
/external/nist-sip/java/gov/nist/javax/sip/clientauthutils/
DAccountManager.java5 public interface AccountManager { interface
DAuthenticationHelperImpl.java92 public AuthenticationHelperImpl(SipStackImpl sipStack, AccountManager accountManager, in AuthenticationHelperImpl()
241 …UserCredentials userCreds = ((AccountManager) this.accountManager).getCredentials(challengedTransa… in handleChallenge()