Home
last modified time | relevance | path

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

/external/cronet/net/test/android/javatests/src/org/chromium/net/test/
DDummySpnegoAuthenticator.java10 import android.accounts.AccountManager;
53 result.putInt(AccountManager.KEY_ERROR_CODE, AccountManager.ERROR_CODE_BAD_REQUEST); in addAccount()
54 result.putString(AccountManager.KEY_ERROR_MESSAGE, "Can't add new SPNEGO accounts"); in addAccount()
61 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true); in confirmCredentials()
78 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in getAuthToken()
79 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); in getAuthToken()
80 result.putString(AccountManager.KEY_AUTHTOKEN, in getAuthToken()
114 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, false); in hasFeatures()
118 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true); in hasFeatures()
126 result.putInt(AccountManager.KEY_ERROR_CODE, AccountManager.ERROR_CODE_BAD_REQUEST); in updateCredentials()
[all …]
/external/volley/core/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/robolectric/src/test/java/org/robolectric/shadows/
DShadowAccountManagerTest.java13 import android.accounts.AccountManager;
36 private AccountManager am;
41 am = AccountManager.get(ApplicationProvider.getApplicationContext()); in setUp()
49 .isSameInstanceAs(AccountManager.get(ApplicationProvider.getApplicationContext())); in testGet()
51 AccountManager activityAM = AccountManager.get(ApplicationProvider.getApplicationContext()); in testGet()
364 assertThat(result.getBoolean(AccountManager.KEY_BOOLEAN_RESULT)).isTrue(); in removeAccount_withActivity()
365 Intent removeAccountIntent = result.getParcelable(AccountManager.KEY_INTENT); in removeAccount_withActivity()
383 assertThat(result.getBoolean(AccountManager.KEY_BOOLEAN_RESULT)).isFalse(); in removeAccount_withActivity_doesNotRemoveButReturnsIntent()
384 Intent removeAccountIntent = result.getParcelable(AccountManager.KEY_INTENT); in removeAccount_withActivity_doesNotRemoveButReturnsIntent()
628 assertThat(result.getBundle(AccountManager.KEY_ACCOUNT_SESSION_BUNDLE)).isNotNull(); in startAddAccountSession_withNonNullActivity()
[all …]
/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/framework/src/main/java/org/robolectric/shadows/
DShadowAccountManager.java9 import android.accounts.AccountManager;
40 @Implements(AccountManager.class)
70 protected static AccountManager get(Context context) { in get()
71 return (AccountManager) context.getSystemService(Context.ACCOUNT_SERVICE); in get()
202 AccountManager.KEY_BOOLEAN_RESULT, removeAccountExplicitly(account));
204 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, false);
205 result.putParcelable(AccountManager.KEY_INTENT, removeAccountIntent);
396 resultBundle.putParcelable(AccountManager.KEY_INTENT, resultIntent);
401 accountSessionBundle.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType);
402 resultBundle.putBundle(AccountManager.KEY_ACCOUNT_SESSION_BUNDLE, Bundle.EMPTY);
[all …]
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/backends/
DAndroidUriAdapterTest.java75 AccountManager mockManager = mock(AccountManager.class); in managedLocation_validatesAccount()
86 AccountManager mockManager = mock(AccountManager.class); in managedLocation_doesNotRequireAccountSegment()
97 AccountManager mockManager = mock(AccountManager.class); in managedLocation_obfuscatesAccountSegment()
DAndroidFileBackendTest.java269 AccountManager mockManager = mock(AccountManager.class); in managedUris_isSerializedAsIntegerOnDisk()
291 AccountManager mockManager = mock(AccountManager.class); in managedLocation_worksWithChildren()
315 AccountManager mockManager = mock(AccountManager.class); in managedUris_worksWithToFile()
DAndroidUriTest.java188 AccountManager mockManager = mock(AccountManager.class); in builder_fromManagedFile_readsFromAccountManager()
/external/robolectric/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/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/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/account/
DAccountManagerAccountSource.java19 import android.accounts.AccountManager;
31 private final AccountManager accountManager;
35 this.accountManager = AccountManager.get(context); in AccountManagerAccountSource()
/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/mobly-bundled-snippets/src/main/java/com/google/android/mobly/snippet/bundled/
DAccountSnippet.java20 import android.accounts.AccountManager;
66 private final AccountManager mAccountManager;
74 mAccountManager = AccountManager.get(context); in AccountSnippet()
111 if (result.containsKey(AccountManager.KEY_ERROR_CODE)) { in addAccount()
116 result.getInt(AccountManager.KEY_ERROR_CODE), in addAccount()
117 result.getString(AccountManager.KEY_ERROR_MESSAGE))); in addAccount()
/external/volley/core/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/cronet/net/android/java/src/org/chromium/net/
DHttpNegotiateAuthenticator.java9 import android.accounts.AccountManager;
76 public AccountManager accountManager;
171 if (result.containsKey(AccountManager.KEY_INTENT)) { in run()
193 new IntentFilter(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION)); in run()
231 requestData.accountManager = AccountManager.get(applicationContext); in getNextAuthToken()
299 result.getString(AccountManager.KEY_AUTHTOKEN)); in processResult()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/backends/
DAndroidUriAdapter.java37 @Nullable private final AccountManager accountManager;
39 private AndroidUriAdapter(Context context, @Nullable AccountManager accountManager) { in AndroidUriAdapter()
50 public static AndroidUriAdapter forContext(Context context, AccountManager accountManager) { in forContext()
DAndroidFileBackend.java46 @Nullable private final AccountManager accountManager;
82 @Nullable private AccountManager accountManager;
107 public Builder setAccountManager(AccountManager accountManager) { in setAccountManager()
DAccountManager.java22 public interface AccountManager { interface
DAndroidUri.java258 public Builder fromFile(File file, @Nullable AccountManager accountManager) { in fromFile()
278 public Builder fromAbsolutePath(String absolutePath, @Nullable AccountManager accountManager) { in fromAbsolutePath()
DBUILD230 "AccountManager.java",
/external/cronet/net/android/junit/src/org/chromium/net/
DHttpNegotiateAuthenticatorTest.java23 import android.accounts.AccountManager;
73 @Implements(AccountManager.class)
76 public static AccountManager get(Context context) { in get()
84 private static AccountManager sMockAccountManager;
216 b.putParcelable(AccountManager.KEY_INTENT, new Intent()); in testGetTokenCallbackWithIntent()
222 Intent intent = new Intent(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION); in testGetTokenCallbackWithIntent()
258 resultBundle.putString(AccountManager.KEY_AUTHTOKEN, "output_token"); in testAccountManagerCallbackRun()
/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()