Home | History | Annotate | Download | only in accounts

Lines Matching defs:AccountManager

33 import android.accounts.AccountManager;
443 eq(AccountManager.ERROR_CODE_USER_RESTRICTED), anyString());
450 AccountManager.ERROR_CODE_USER_RESTRICTED);
476 eq(AccountManager.ERROR_CODE_USER_RESTRICTED), anyString());
498 eq(AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE), anyString());
505 AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE);
533 eq(AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE), anyString());
559 Bundle sessionBundle = result.getBundle(AccountManager.KEY_ACCOUNT_SESSION_BUNDLE);
564 assertNull(result.getString(AccountManager.KEY_PASSWORD));
565 assertNull(result.getString(AccountManager.KEY_AUTHTOKEN, null));
567 result.getString(AccountManager.KEY_ACCOUNT_STATUS_TOKEN));
591 Bundle sessionBundle = result.getBundle(AccountManager.KEY_ACCOUNT_SESSION_BUNDLE);
596 assertEquals(result.getString(AccountManager.KEY_PASSWORD),
598 assertNull(result.getString(AccountManager.KEY_AUTHTOKEN));
600 result.getString(AccountManager.KEY_ACCOUNT_STATUS_TOKEN));
629 eq(AccountManager.ERROR_CODE_REMOTE_EXCEPTION), anyString());
659 Intent intent = result.getParcelable(AccountManager.KEY_INTENT);
670 options.putInt(AccountManager.KEY_ERROR_CODE, AccountManager.ERROR_CODE_INVALID_RESPONSE);
671 options.putString(AccountManager.KEY_ERROR_MESSAGE,
685 verify(mMockAccountManagerResponse).onError(AccountManager.ERROR_CODE_INVALID_RESPONSE,
742 Bundle sessionBundle = result.getBundle(AccountManager.KEY_ACCOUNT_SESSION_BUNDLE);
747 assertNull(result.getString(AccountManager.KEY_PASSWORD));
748 assertNull(result.getString(AccountManager.KEY_AUTHTOKEN, null));
750 result.getString(AccountManager.KEY_ACCOUNT_STATUS_TOKEN));
773 Bundle sessionBundle = result.getBundle(AccountManager.KEY_ACCOUNT_SESSION_BUNDLE);
778 assertEquals(result.getString(AccountManager.KEY_PASSWORD),
780 assertNull(result.getString(AccountManager.KEY_AUTHTOKEN));
782 result.getString(AccountManager.KEY_ACCOUNT_STATUS_TOKEN));
811 eq(AccountManager.ERROR_CODE_REMOTE_EXCEPTION), anyString());
841 Intent intent = result.getParcelable(AccountManager.KEY_INTENT);
852 options.putInt(AccountManager.KEY_ERROR_CODE, AccountManager.ERROR_CODE_INVALID_RESPONSE);
853 options.putString(AccountManager.KEY_ERROR_MESSAGE,
867 verify(mMockAccountManagerResponse).onError(AccountManager.ERROR_CODE_INVALID_RESPONSE,
921 eq(AccountManager.ERROR_CODE_USER_RESTRICTED), anyString());
928 AccountManager.ERROR_CODE_USER_RESTRICTED);
953 eq(AccountManager.ERROR_CODE_USER_RESTRICTED), anyString());
973 eq(AccountManager.ERROR_CODE_BAD_REQUEST), anyString());
989 eq(AccountManager.ERROR_CODE_BAD_ARGUMENTS), anyString());
1007 eq(AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE), anyString());
1014 AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE);
1041 eq(AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE), anyString());
1066 Bundle sessionBundle = result.getBundle(AccountManager.KEY_ACCOUNT_SESSION_BUNDLE);
1072 assertTrue(sessionBundle.containsKey(AccountManager.KEY_CALLER_UID));
1073 assertTrue(sessionBundle.containsKey(AccountManager.KEY_CALLER_PID));
1075 AccountManager.KEY_ANDROID_PACKAGE_NAME), "APCT.package");
1078 assertNull(result.getString(AccountManager.KEY_AUTHTOKEN, null));
1080 result.getString(AccountManager.KEY_ACCOUNT_NAME));
1082 result.getString(AccountManager.KEY_ACCOUNT_TYPE));
1109 eq(AccountManager.ERROR_CODE_REMOTE_EXCEPTION), anyString());
1137 Intent intent = result.getParcelable(AccountManager.KEY_INTENT);
1160 verify(mMockAccountManagerResponse).onError(AccountManager.ERROR_CODE_INVALID_RESPONSE,
1219 verify(mMockAccountManagerResponse).onError(AccountManager.ERROR_CODE_INVALID_RESPONSE,
1238 boolean needUpdate = result.getBoolean(AccountManager.KEY_BOOLEAN_RESULT);
1299 eq(AccountManager.ERROR_CODE_INVALID_RESPONSE), anyString());
1316 boolean hasFeatures = result.getBoolean(AccountManager.KEY_BOOLEAN_RESULT);
1384 eq(AccountManager.ERROR_CODE_USER_RESTRICTED), anyString());
1406 eq(AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE), anyString());
1433 boolean allowed = result.getBoolean(AccountManager.KEY_BOOLEAN_RESULT);
1455 boolean allowed = result.getBoolean(AccountManager.KEY_BOOLEAN_RESULT);
1482 Intent intent = result.getParcelable(AccountManager.KEY_INTENT);
1491 AccountManager.VISIBILITY_USER_MANAGED_VISIBLE);
1495 AccountManager.VISIBILITY_USER_MANAGED_NOT_VISIBLE);
1572 eq(AccountManager.ERROR_CODE_BAD_ARGUMENTS), anyString());
1591 eq(AccountManager.ERROR_CODE_BAD_ARGUMENTS), anyString());
1638 assertEquals(result.getString(AccountManager.KEY_AUTHTOKEN),
1640 assertEquals(result.getString(AccountManager.KEY_ACCOUNT_NAME),
1642 assertEquals(result.getString(AccountManager.KEY_ACCOUNT_TYPE),
1668 assertEquals(result.getString(AccountManager.KEY_AUTHTOKEN),
1670 assertEquals(result.getString(AccountManager.KEY_ACCOUNT_NAME),
1672 assertEquals(result.getString(AccountManager.KEY_ACCOUNT_TYPE),
1704 eq(AccountManager.ERROR_CODE_REMOTE_EXCEPTION), anyString());
1736 Intent intent = result.getParcelable(AccountManager.KEY_INTENT);
1760 verify(mMockAccountManagerResponse).onError(AccountManager.ERROR_CODE_INVALID_RESPONSE,
1819 eq(AccountManager.ERROR_CODE_USER_RESTRICTED), anyString());
1826 AccountManager.ERROR_CODE_USER_RESTRICTED);
1853 eq(AccountManager.ERROR_CODE_USER_RESTRICTED), anyString());
1876 eq(AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE), anyString());
1883 AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE);
1912 eq(AccountManager.ERROR_CODE_MANAGEMENT_DISABLED_FOR_ACCOUNT_TYPE), anyString());
1939 assertNull(result.getString(AccountManager.KEY_AUTHTOKEN, null));
1941 result.getString(AccountManager.KEY_ACCOUNT_NAME));
1943 result.getString(AccountManager.KEY_ACCOUNT_TYPE));
1948 assertTrue(optionBundle.containsKey(AccountManager.KEY_CALLER_UID));
1949 assertTrue(optionBundle.containsKey(AccountManager.KEY_CALLER_PID));
1977 eq(AccountManager.ERROR_CODE_REMOTE_EXCEPTION), anyString());
2007 Intent intent = result.getParcelable(AccountManager.KEY_INTENT);
2030 verify(mMockAccountManagerResponse).onError(AccountManager.ERROR_CODE_INVALID_RESPONSE,
2083 assertTrue(result.getBoolean(AccountManager.KEY_BOOLEAN_RESULT));
2085 result.getString(AccountManager.KEY_ACCOUNT_NAME));
2087 result.getString(AccountManager.KEY_ACCOUNT_TYPE));
2113 eq(AccountManager.ERROR_CODE_REMOTE_EXCEPTION), anyString());
2141 Intent intent = result.getParcelable(AccountManager.KEY_INTENT);
2162 verify(mMockAccountManagerResponse).onError(AccountManager.ERROR_CODE_INVALID_RESPONSE,
2218 result.getString(AccountManager.KEY_ACCOUNT_NAME));
2220 result.getString(AccountManager.KEY_ACCOUNT_TYPE));
2248 eq(AccountManager.ERROR_CODE_REMOTE_EXCEPTION), anyString());
2276 Intent intent = result.getParcelable(AccountManager.KEY_INTENT);
2297 verify(mMockAccountManagerResponse).onError(AccountManager.ERROR_CODE_INVALID_RESPONSE,
2363 result.getString(AccountManager.KEY_ACCOUNT_NAME));
2365 result.getString(AccountManager.KEY_ACCOUNT_TYPE));
2408 String accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME);
2409 String accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE);
2426 String accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME);
2427 String accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE);
2438 AccountManager.VISIBILITY_USER_MANAGED_NOT_VISIBLE);
2448 Account[] accounts = (Account[]) intent.getExtra(AccountManager.KEY_ACCOUNTS);
2466 Account[] accounts = (Account[]) intent.getExtra(AccountManager
2489 String accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME);
2490 String accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE);
2509 String accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME);
2510 String accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE);
2530 String accountName = result.getString(AccountManager.KEY_ACCOUNT_NAME);
2531 String accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE);
2542 AccountManager.VISIBILITY_USER_MANAGED_NOT_VISIBLE);
2554 Account[] accounts = (Account[]) intent.getExtra(AccountManager.KEY_ACCOUNTS);
2575 Account[] accounts = (Account[]) intent.getExtra(AccountManager.KEY_ACCOUNTS);
2636 Account[] accounts = (Account[]) result.getParcelableArray(AccountManager.KEY_ACCOUNTS);
2658 Account[] accounts = (Account[]) result.getParcelableArray(AccountManager.KEY_ACCOUNTS);
2683 Account[] accounts = (Account[]) result.getParcelableArray(AccountManager.KEY_ACCOUNTS);
2704 eq(AccountManager.ERROR_CODE_INVALID_RESPONSE), anyString());
2766 AccountManager.VISIBILITY_USER_MANAGED_VISIBLE);
2803 visibility.put("testpackage1", AccountManager.VISIBILITY_USER_MANAGED_VISIBLE);
2804 visibility.put("testpackage2", AccountManager.VISIBILITY_USER_MANAGED_VISIBLE);
2805 visibility.put("testpackage3", AccountManager.VISIBILITY_USER_MANAGED_VISIBLE);
2847 visibility.put("testpackage1", AccountManager.VISIBILITY_NOT_VISIBLE);
2848 visibility.put("testpackage2", AccountManager.VISIBILITY_USER_MANAGED_NOT_VISIBLE);
2849 visibility.put("testpackage3", AccountManager.VISIBILITY_USER_MANAGED_VISIBLE);
2910 if (AccountManager.ACTION_VISIBLE_ACCOUNTS_CHANGED.equals(intent.getAction())) {
2912 } else if (AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION.equals(intent.getAction())) {
2914 } else if (AccountManager.ACTION_ACCOUNT_REMOVED.equals(intent.getAction())) {
3084 options.putString(AccountManager.KEY_ANDROID_PACKAGE_NAME,
3108 sessionBundle.putString(AccountManager.KEY_ACCOUNT_TYPE,
3110 sessionBundle.putString(AccountManager.KEY_ANDROID_PACKAGE_NAME, "APCT.session.package");
3120 sessionBundle.putString(AccountManager.KEY_ACCOUNT_TYPE,
3122 sessionBundle.putString(AccountManager.KEY_ANDROID_PACKAGE_NAME, "APCT.session.package");
3124 AccountManager.KEY_ERROR_CODE, AccountManager.ERROR_CODE_INVALID_RESPONSE);
3125 sessionBundle.putString(AccountManager.KEY_ERROR_MESSAGE,
3136 sessionBundle.putString(AccountManager.KEY_ANDROID_PACKAGE_NAME, "APCT.session.package");
3142 appBundle.putString(AccountManager.KEY_ANDROID_PACKAGE_NAME, "APCT.package");
3151 sessionBundle.putString(AccountManager.KEY_ACCOUNT_TYPE,