Home
last modified time | relevance | path

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

/external/volley/src/main/java/com/android/volley/toolbox/
DAndroidAuthenticator.java22 import android.accounts.AccountManager;
36 private final AccountManager mAccountManager;
60 this(AccountManager.get(context), account, authTokenType, notifyAuthFailure); in AndroidAuthenticator()
64 AndroidAuthenticator(AccountManager accountManager, Account account, in AndroidAuthenticator()
100 if (result.containsKey(AccountManager.KEY_INTENT)) { in getAuthToken()
101 Intent intent = result.getParcelable(AccountManager.KEY_INTENT); in getAuthToken()
104 authToken = result.getString(AccountManager.KEY_AUTHTOKEN); in getAuthToken()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowAccountManager.java4 import android.accounts.AccountManager;
30 @Implements(AccountManager.class)
35 private static AccountManager singleton;
42 public static AccountManager get(Context context) { in get()
44 singleton = Robolectric.newInstanceOf(AccountManager.class); in get()
100 bundle.putString(AccountManager.KEY_AUTHTOKEN, AUTH_TOKEN_VALUE); in getAuthToken()
101 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in getAuthToken()
102 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in getAuthToken()
158 bundle.putString(AccountManager.KEY_AUTHTOKEN, AUTH_TOKEN_VALUE); in getAuthTokenByFeatures()
159 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType); in getAuthTokenByFeatures()
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DAccountManagerTest.java17 import android.accounts.AccountManager;
27 private AccountManager accountManager;
36 accountManager = AccountManager.get(activity); in setUp()
85 assertThat(result.containsKey(AccountManager.KEY_AUTHTOKEN), equalTo(true)); in testGetAuthTokenByFeatures_getResult()
86 assertThat(result.containsKey(AccountManager.KEY_ACCOUNT_NAME), equalTo(true)); in testGetAuthTokenByFeatures_getResult()
87 assertThat(result.containsKey(AccountManager.KEY_ACCOUNT_TYPE), equalTo(true)); in testGetAuthTokenByFeatures_getResult()
96 assertThat(ACCOUNT.name, equalTo(result.getString(AccountManager.KEY_ACCOUNT_NAME))); in testGetAuthToken_getResult()
97 assertThat(ACCOUNT.type, equalTo(result.getString(AccountManager.KEY_ACCOUNT_TYPE))); in testGetAuthToken_getResult()
102 AccountManager ref = AccountManager.get(activity); in testAccountManagerIsSingleton()
/external/volley/src/test/java/com/android/volley/toolbox/
DAndroidAuthenticatorTest.java20 import android.accounts.AccountManager;
40 private AccountManager mAccountManager;
47 mAccountManager = mock(AccountManager.class); in setUp()
64 bundle.putParcelable(AccountManager.KEY_INTENT, intent); in resultContainsIntent()
91 bundle.putString(AccountManager.KEY_AUTHTOKEN, "monkey"); in goodToken()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/bytecode/
DAndroidTranslatorTest.java3 import android.accounts.AccountManager;
39 AccountManager.get(context); in testStaticMethodsAreDelegated()
212 @Implements(AccountManager.class)
217 public static AccountManager get(Context context) { in get()
220 return mock(AccountManager.class); in get()
/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()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/
DRobolectric.java13 import android.accounts.AccountManager;
400 public static ShadowAccountManager shadowOf(AccountManager instance) { in shadowOf()