summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorIhab Awad <ihab@google.com>2014-07-02 14:00:28 -0700
committerIhab Awad <ihab@google.com>2014-07-02 14:09:45 -0700
commit612b408f55e4a42635925c52f93c4b8f1a0916a7 (patch)
treeddb0f86d97906f0077d24df741efabfc4409787a /tests
parentad12d04e15a8a66c43893fb29cf08649bd0b675e (diff)
downloadandroid_packages_apps_ContactsCommon-612b408f55e4a42635925c52f93c4b8f1a0916a7.tar.gz
android_packages_apps_ContactsCommon-612b408f55e4a42635925c52f93c4b8f1a0916a7.tar.bz2
android_packages_apps_ContactsCommon-612b408f55e4a42635925c52f93c4b8f1a0916a7.zip
Fix references to two constants
The names of two constants missed getting updated in a previous CL, causing a build breakage. Change-Id: I2dec3d91f79aa74f24d84324569cda95c7e455c4
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/contacts/common/tests/testauth/TestAuthenticator.java16
-rw-r--r--tests/src/com/android/contacts/common/tests/testauth/TestSyncAdapter.java6
2 files changed, 11 insertions, 11 deletions
diff --git a/tests/src/com/android/contacts/common/tests/testauth/TestAuthenticator.java b/tests/src/com/android/contacts/common/tests/testauth/TestAuthenticator.java
index e6a47cda..2f676c70 100644
--- a/tests/src/com/android/contacts/common/tests/testauth/TestAuthenticator.java
+++ b/tests/src/com/android/contacts/common/tests/testauth/TestAuthenticator.java
@@ -19,7 +19,7 @@ package com.android.contacts.common.tests.testauth;
import android.accounts.AbstractAccountAuthenticator;
import android.accounts.Account;
import android.accounts.AccountAuthenticatorResponse;
-import android.accounts.PhoneAccountManager;
+import android.accounts.AccountManager;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
@@ -67,11 +67,11 @@ class TestAuthenticator extends AbstractAccountAuthenticator {
final Account account = new Account(newUniqueUserName(), accountType);
// Create an account.
- PhoneAccountManager.get(mContext).addAccountExplicitly(account, PASSWORD, null);
+ AccountManager.get(mContext).addAccountExplicitly(account, PASSWORD, null);
// And return it.
- bundle.putString(PhoneAccountManager.KEY_ACCOUNT_NAME, account.name);
- bundle.putString(PhoneAccountManager.KEY_ACCOUNT_TYPE, account.type);
+ bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name);
+ bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type);
return bundle;
}
@@ -83,9 +83,9 @@ class TestAuthenticator extends AbstractAccountAuthenticator {
String authTokenType, Bundle loginOptions) {
Log.v(TestauthConstants.LOG_TAG, "getAuthToken() account=" + account);
final Bundle bundle = new Bundle();
- bundle.putString(PhoneAccountManager.KEY_ACCOUNT_NAME, account.name);
- bundle.putString(PhoneAccountManager.KEY_ACCOUNT_TYPE, account.type);
- bundle.putString(PhoneAccountManager.KEY_AUTHTOKEN, account.name);
+ bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name);
+ bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type);
+ bundle.putString(AccountManager.KEY_AUTHTOKEN, account.name);
return bundle;
}
@@ -118,7 +118,7 @@ class TestAuthenticator extends AbstractAccountAuthenticator {
// return false (no) for any queries.
Log.v(TestauthConstants.LOG_TAG, "hasFeatures()");
final Bundle result = new Bundle();
- result.putBoolean(PhoneAccountManager.KEY_BOOLEAN_RESULT, false);
+ result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, false);
return result;
}
diff --git a/tests/src/com/android/contacts/common/tests/testauth/TestSyncAdapter.java b/tests/src/com/android/contacts/common/tests/testauth/TestSyncAdapter.java
index f0186d98..a7c0f83c 100644
--- a/tests/src/com/android/contacts/common/tests/testauth/TestSyncAdapter.java
+++ b/tests/src/com/android/contacts/common/tests/testauth/TestSyncAdapter.java
@@ -16,7 +16,7 @@
package com.android.contacts.common.tests.testauth;
import android.accounts.Account;
-import android.accounts.PhoneAccountManager;
+import android.accounts.AccountManager;
import android.content.AbstractThreadedSyncAdapter;
import android.content.ContentProviderClient;
import android.content.ContentResolver;
@@ -32,14 +32,14 @@ import android.util.Log;
*
*/
public class TestSyncAdapter extends AbstractThreadedSyncAdapter {
- private final PhoneAccountManager mPhoneAccountManager;
+ private final AccountManager mAccountManager;
private final Context mContext;
public TestSyncAdapter(Context context, boolean autoInitialize) {
super(context, autoInitialize);
mContext = context.getApplicationContext();
- mPhoneAccountManager = PhoneAccountManager.get(mContext);
+ mAccountManager = AccountManager.get(mContext);
}
/**