summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorSimranjit Singh Kohli <simranjit@google.com>2015-04-28 11:11:12 -0700
committerSimranjit Singh Kohli <simranjit@google.com>2015-04-28 12:57:28 -0700
commit1663b44cfd5fe589183dae5db769c843870cb5db (patch)
tree270185c46b81e77dcb99b87e95c20bff39c51d0b /services
parent340b198ccbd1a05e67d586c345139617d4b84ce0 (diff)
downloadframeworks_base-1663b44cfd5fe589183dae5db769c843870cb5db.zip
frameworks_base-1663b44cfd5fe589183dae5db769c843870cb5db.tar.gz
frameworks_base-1663b44cfd5fe589183dae5db769c843870cb5db.tar.bz2
[Update API]:
Rename accountAuthenticated to notifyAccountAuthenticated and other changes. Bug: 20642769 Change-Id: I7e69d6a9492691429af0d7c2f405e01e265fcedd
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/accounts/AccountManagerService.java18
1 files changed, 1 insertions, 17 deletions
diff --git a/services/core/java/com/android/server/accounts/AccountManagerService.java b/services/core/java/com/android/server/accounts/AccountManagerService.java
index 999e91b..fc7b1a4 100644
--- a/services/core/java/com/android/server/accounts/AccountManagerService.java
+++ b/services/core/java/com/android/server/accounts/AccountManagerService.java
@@ -2696,26 +2696,10 @@ public class AccountManagerService
mAccountName, mAccountType
});
}
- result.putLong(AccountManager.KEY_LAST_AUTHENTICATE_TIME_MILLIS_EPOCH,
+ result.putLong(AccountManager.KEY_LAST_AUTHENTICATED_TIME,
lastAuthenticatedTime);
}
}
- if (mAuthDetailsRequired) {
- long lastAuthenticatedTime = -1;
- if (isAccountPresentForCaller(mAccountName, mAccountType)) {
- lastAuthenticatedTime = DatabaseUtils.longForQuery(
- mAccounts.openHelper.getReadableDatabase(),
- "select " + ACCOUNTS_LAST_AUTHENTICATE_TIME_EPOCH_MILLIS + " from "
- +
- TABLE_ACCOUNTS + " WHERE " + ACCOUNTS_NAME + "=? AND "
- + ACCOUNTS_TYPE + "=?",
- new String[] {
- mAccountName, mAccountType
- });
- }
- result.putLong(AccountManager.KEY_LAST_AUTHENTICATE_TIME_MILLIS_EPOCH,
- lastAuthenticatedTime);
- }
}
if (result != null
&& (intent = result.getParcelable(AccountManager.KEY_INTENT)) != null) {