• Home
  • History
  • Annotate
  • only in /frameworks/base/core/java/android/accounts/
History log of /frameworks/base/core/java/android/accounts/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c43f05e6693e4d7393f14d6f61fcc9c1dc74bcc9 28-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Changed themes for core activities" into nyc-mr1-dev
7e2657c30374dfc89993aa7cde8d96ae60a13d0a 26-Sep-2016 Salvador Martinez <dehboxturtle@google.com> Changed themes for core activities

Many activities in core were using the
material theme which would result in teal
colors on all devices. These themes have
all been changed to DeviceDefault so that
the color will be more suited to whatever
device the user has.

Test: Manual Inspection
Bug: 31623421
Change-Id: I6847023c4fb57a1c3384a1f8e483cd740229458f
hooseTypeAndAccountActivity.java
32bfb594af7f5dc0be608393200060458cd84631 24-Sep-2016 Svet Ganov <svetoslavganov@google.com> [DO NOT MERGE] Use tokens instead of account access trackers

We keep track which process saw and account to whitelist
the app for future access as an optimization to avoid
prompting the user for account access approval. Some apps
use SefeParcelable where the parcels are marshalled
which does not allow the parcel to contain IBinders.
To avoid this we are switching from account tracker remote
objects to unforgeable tokens.

bug:31162498

Change-Id: I3b52bff720655f695ad0c58d420eb35ef93161b9
ccount.java
ccountManager.java
AccountAccessTracker.aidl
AccountManager.aidl
adc906206a197168f531eb6286003c749c522573 15-Sep-2016 Hongming Jin <hongmingjin@google.com> Only return password for account session flow if the caller is signed with system key and have get_password permission. am: 9342e137c6
am: 8b75ebf0bb

Change-Id: I95794bb5269c849fe740576a344e43da4306ac56
9342e137c68e9d31e61b774f7a6583ed5f8353f9 29-Jul-2016 Hongming Jin <hongmingjin@google.com> Only return password for account session flow if the caller is signed
with system key and have get_password permission.

Bug: 30455516
Change-Id: I78484c59e4de1dff685ab91a0a8e7a756fffd9bf
ccountManager.java
72ed12c55f36c61f3ec07ab563ed8c93ea92c733 07-Sep-2016 Svet Ganov <svetoslavganov@google.com> [DO NOT MERGE] Backup account access grants

Sync adapters without an account access cannot run until the
user approves the account access (for the case the account
access is not allowed by other policy such as being singed
with the same cert as the authenticator). If the sync adapter
does not have permission to access the account we ask the
user to grant access and take a note. This CL adds backup
for the explicit user grants.

bug:31162498

Change-Id: I31e3f3d010475352c7c54255ac2d3a2fed4d0c72
ccountManagerInternal.java
91d37f43c73d76a54679bb84a71a6339bccb1e24 04-Sep-2016 Svet Ganov <svetoslavganov@google.com> [DO NOT MERGE] While-list apps to access account if already saw it

Sync adapters without an account access cannot run until the
user approves the account access (for the case the account
access is not allowed by other policy such as being singed
with the same cert as the authenticator). However, if the
sync adapter package already got the account from another
app which means it already saw the account we white-list
the sync adapter app to access the account as it already
saw it - the bird is out of the cage.

bug:31162498

Change-Id: I2b72f3b0d6307561ed68db2f2e9c900b15e8d098
ccount.java
ccountManager.java
ccountManagerInternal.java
rantCredentialsPermissionActivity.java
AccountAccessTracker.aidl
5cb2973495084f8ce3433b579e4b4962ed9d7efc 12-Jul-2016 Svetoslav Ganov <svetoslavganov@google.com> Only sync adapters with access can see an account - framework

It was possible for a sync adapter without accounts access to
see the account which it is supposed to sync which can be used to
identify the user. This change ensures that only sync adapters
with account access can run (which results in seeing the account),
otherwise we involve the user to approve access only to this account.

A sync adapter can access an account if one of these is true:
- it is signed as the authenticator for this account
- has the GET_ACCOUNTS permission
- has an auth token for the account
- it is a preinstalled app (system or privileged)

The main thing we need to figure out is if the extra prompts
for giving access to a sync adapter to the account create too
much friction.

bug:28163381

Change-Id: Ie083bb681b5a2aed81ca5f6a062193a175fad77e
ccountManager.java
ccountManagerInternal.java
rantCredentialsPermissionActivity.java
AccountManager.aidl
51b651aea178fcfca8a3219141f0ecfda1504887 30-Mar-2016 Carlos Valdivia <carlosvaldivia@google.com> introduce GET_PASSWORD_PRIVILEDGED permission.

That will be used to filter in passwords for Session based
AccountManager flows.

Bug: 27590532
Change-Id: I4a6d0540bcff186e416351a6f719600ce35d86a0
ccountManager.java
358e51f3d186719a6a5b1f346f55c5426925055f 15-Mar-2016 Ian Pedowitz <ijpedowitz@google.com> Revert "Permissions: Get rid of GET_ACCOUNTS"

This reverts commit d39600585bcb720d739ef6f0091066e3d4f77765.

Bug: 27665091
Change-Id: I7d017ba7062ac594225229436d2877c7d21fb065
ccountManager.java
d39600585bcb720d739ef6f0091066e3d4f77765 11-Feb-2016 Carlos Valdivia <carlosvaldivia@google.com> Permissions: Get rid of GET_ACCOUNTS

Second attempt. Still need to add strict mode violation checks and
logging.

Bug: 21901286

This reverts commit bf33bd4d31cfec895c96990525b0cb856407c8d6.

Change-Id: I5d73343544c32ce4fc4c377ba44db8e677a1287d
ccountManager.java
f8880561e67e1da246970b49b14285efd4164ab1 26-Feb-2016 Jeff Sharkey <jsharkey@android.com> When system server goes down, crash apps more.

Similar to first patch, but now using new "rethrowFromSystemServer()"
method which internally translates DeadObjectException into
DeadSystemException. New logic over in Log.printlns() now
suppresses the DeadSystemException stack traces, since they're
misleading and just added pressure to the precious log buffer space.

Add some extra RuntimeInit checks to suppress logging-about-logging
when the system server is dead.

Bug: 27364859
Change-Id: I05316b3e8e42416b30a56a76c09cd3113a018123
ccountManager.java
bf33bd4d31cfec895c96990525b0cb856407c8d6 02-Feb-2016 Carlos Valdivia <carlosvaldivia@google.com> Revert "Permissions: Get rid of GET_ACCOUNTS"

This reverts commit 918c55a67c2bf0cec79f75dec6ca468e914a5fd1.

Change-Id: I995f134336bf61ac1f21052355900ae89d0d6694
ccountManager.java
3cdbc806ff52d02bf215a5aa696b670434d9f401 27-Jan-2016 Carlos Valdivia <carlosvaldivia@google.com> Merge "Permissions: Get rid of GET_ACCOUNTS"
0b84b456a79d83527665a5ac399cba73f1a85821 21-Jan-2016 Sandra Kwan <sandrakwan@google.com> AccountManager: add finishSessionAsUser api.

Change-Id: I9a08d957a9b25be4c6cf12e4ed35cdc0bfbb8605
ccountManager.java
AccountManager.aidl
918c55a67c2bf0cec79f75dec6ca468e914a5fd1 14-Jan-2016 Carlos Valdivia <carlosvaldivia@google.com> Permissions: Get rid of GET_ACCOUNTS

Bug: 21901286

Change-Id: Id2c42f4d449a32c88078d80dcf952d15e67d536c
ccountManager.java
390c9d2d91117c767b27e33e906f7830b4c0a4dc 12-Jan-2016 Sandra Kwan <sandrakwan@google.com> AccountManager: add isCredentialsUpdateSuggested API.

Change-Id: I27e0db0345f3431b796a944740dab767b45f7871
bstractAccountAuthenticator.java
ccountManager.java
AccountAuthenticator.aidl
AccountManager.aidl
12747879b0204b9dfee997eddc981d09289e8b77 07-Dec-2015 Amith Yamasani <yamasani@google.com> User creation with an intent

New API for an app to request creating a new user with
a given user name and seed account information for the
SetupWizard to use when that user is switched into.

Also adds system APIs to read the seed account data from
UserManager.

Bug: 22776757
Change-Id: I0bc3f11ee19c15e0ee2a908c88d98b13296cc30d
ccountManager.java
AccountManager.aidl
a578d11470d2c782bc8b54bc2a9154e7f5b68354 17-Dec-2015 Sandra Kwan <sandrakwan@google.com> AccountManager: make account session APIs SystemApi.

Make startAddAccountSession, startUpdateCredentialsSession and
finishSession Apis SystemApi.

Change-Id: Iaedfe546e9b87a2ee8dd2d19e8c28b7f1d59c111
bstractAccountAuthenticator.java
ccountManager.java
920f6ef983024c15fbd47f7be7fa9204559f2514 10-Nov-2015 Sandra Kwan <sandrakwan@google.com> AccountManager: add finishSession(...) API.

Adding finishSession API to AccountManager and
AbstractAccountAuthenticator.

Change-Id: I153dd2bb6fe01d2e4b10b41e8b553f59da26bd29
bstractAccountAuthenticator.java
ccountManager.java
AccountAuthenticator.aidl
AccountManager.aidl
e68c37eead0b7255d307af91ca284eaee419c944 13-Nov-2015 Sandra Kwan <sandrakwan@google.com> AccountManager: add startUpdateCredentials API.

Adding startUpdateCredentials API to AccountManager and
AbstractAccountAuthenticator.

Change-Id: Id9a1ff86764f2fde01fd8482594e4ae34e1f3bd1
bstractAccountAuthenticator.java
ccountManager.java
AccountAuthenticator.aidl
AccountManager.aidl
7881228736fd5f3f4ecf25d4808dc004c03b54d1 04-Nov-2015 Sandra Kwan <sandrakwan@google.com> AccountManager: add startAddAccount API.

Adding startAddAccount API to AccountManager and
AbstractAccountAuthenticator.

Change-Id: I29e1defb2181ece1281534db0e36b28457085148
bstractAccountAuthenticator.java
ccountManager.java
AccountAuthenticator.aidl
AccountManager.aidl
02cb6e773b323a0d54b21f43460a23f668b7727c 19-Sep-2015 Fyodor Kupolov <fkupolov@google.com> Added --restricted option for create-user command

Also moved restricted profile create/setup logic from Settings to
UMS.createRestrictedProfile.

Bug: 24212155
Bug: 24303609
Change-Id: I0346a3368de53f4bb4b6e054349f19adac959d7f
ccountManager.java
AccountManager.aidl
9249a9097707bb57ae0a7d114eff54bc82ad462d 26-Sep-2015 Bart Sears <bsears@google.com> Revert "Added --restricted option for create-user command"

This reverts commit 737b216b5c28f7d7162f219136d4e8a9eb1a486b.

Change-Id: I4c43967933bb2e46cdb8ad6e643d7037d722cab2
ccountManager.java
AccountManager.aidl
737b216b5c28f7d7162f219136d4e8a9eb1a486b 19-Sep-2015 Fyodor Kupolov <fkupolov@google.com> Added --restricted option for create-user command

Also moved restricted profile create/setup logic from Settings to
UMS.createRestrictedProfile.

Bug: 24212155
Bug: 24303609
Change-Id: I5f0d48bcbd3c0b51927926b874fd057c15ac5219
ccountManager.java
AccountManager.aidl
f3f02ac931d04e6ba4393e27558cd317cb1e6b44 08-Sep-2015 Svetoslav <svetoslavganov@google.com> Add get_accounts app op

For each runtime permission we have an app op to toggle the
permission for legacy apps as they cannot handle permission
revocations. We were lacking an app op for get_accounts
which prevented the user from controlling access to accounts
regardelss that they change the state of the permission
toggle in the UI. Even worse the permission UI is written
with the assumption that every runtime permission has an
app op and as a result revoking the contacts group (if the
app requests the get_accounts permission) is reset back to
allowed in the UI.

bug:23854618

Change-Id: I12b83dfd22974d130e5b8e7a195421120813e2db
ccountManager.java
AccountManager.aidl
75f68ce1bdb443984a9bd9652c3ad944cf782efb 14-Aug-2015 Xiaohui Chen <xiaohuic@google.com> Clean up USER_OWNER in AccountManager

Refactor copyAccountUser to take an explicit user handle instead of
hardcode to owner. This requires refactoring one app that uses this
Api.

Bug: 19913735
Change-Id: Ib9b11d8155bea2a58974d09ec2d70bc756d46313
ccountManager.java
6cc066df7a79eb9f3cdf7b41dc9307f75c413c09 05-Aug-2015 Ian Pedowitz <ijpedowitz@google.com> Revert "Revert "Permissions: GET_ACCOUNTS permission cleanup""

This reverts commit 845d14db9066c3262f270237b52e315aa71508b2.

Bug: 22942480
Bug: 22902898
Change-Id: If2d0e11594284414953c3dd45475fc7ba3366295
bstractAccountAuthenticator.java
ccountManager.java
845d14db9066c3262f270237b52e315aa71508b2 04-Aug-2015 Ian Pedowitz <ijpedowitz@google.com> Revert "Permissions: GET_ACCOUNTS permission cleanup"

Temporarily revert ag/735253 until b/22902898 can be resolved with a
proper DMAgent prebuilt drop.

This reverts commit e7ed827a104ba005b93faa2edb3bc77f72b240ec.

Bug: 22902898
bstractAccountAuthenticator.java
ccountManager.java
26ae600b5fb8c657b4f8dc2700374c701c9e50ec 30-Jul-2015 Carlos Valdivia <carlosvaldivia@google.com> Merge "Permissions: GET_ACCOUNTS permission cleanup" into mnc-dev
e7ed827a104ba005b93faa2edb3bc77f72b240ec 27-Jul-2015 Carlos Valdivia <carlosvaldivia@google.com> Permissions: GET_ACCOUNTS permission cleanup

First, getAccounts*() will now return all available accounts depending
on both GET_ACCOUNTS grants and signature matching. This is different
from before where a caller of getAccounts() would need GET_ACCOUNTS to
get any accounts, but if that same caller called getAccountsByType, they
might have gotten back accounts if they shared a signature with the same
developer.

Second, cleaned up some NPEs and javadoc.

This change was motivated by progress on the cts tests.

Change-Id: I2f36226780e074fdf58214b46de3b79d8319ace1
bstractAccountAuthenticator.java
ccountManager.java
210baceaa1843f789dec4c60e3d78f7ac7b415af 30-Jul-2015 Simranjit Singh Kohli <simranjit@google.com> [Improve docs for AccountManager]
Currently, the docs for AccountManager are somewhat misleading and may
cause developer errors. To avoid them, we are properly documenting it.

Bug: 21924096
Change-Id: If775a54a09219b0f1623d2ff903085b9d12aa863
ccountManager.java
3c9c71d36e9eb6c88065fe064a15881e62c29268 14-Jul-2015 Craig Lafayette <craiglafa@google.com> Prevent null allowableAccounts from crashing

The javadoc for newChooseAccountIntent says that a null
value for the allowableAccounts parameter is valid and
an acceptable default. This CL makes sure that when this
parameter is null, a NullPointerException is not thrown.

Bug: 22475546
Change-Id: Ieb0d67dd02628e1ae5629499b3be3c6382efc9aa
ccountManager.java
a3db8acf3d05d66162834cca3129792aa571bcca 10-Jul-2015 Carlos Valdivia <carlosvaldivia@google.com> Revert "Revert "Security: AccountChooser shouldn't auto reveal accounts.""

Fixes api stuff.

This reverts commit f2d248db8078e716b809e0a17cacdea5c5609bd5.

Change-Id: I75c05a17ebde4f245e1f3e0cc22e622d06534c4b
ccountManager.java
hooseTypeAndAccountActivity.java
f2d248db8078e716b809e0a17cacdea5c5609bd5 10-Jul-2015 Baligh Uddin <baligh@google.com> Revert "Security: AccountChooser shouldn't auto reveal accounts."

This reverts commit c3b3f46d5fcbd89deeb557556e5a695c3e5349a1.

Change-Id: I6d156e1ad82c052606f76644fe6085f14e82a734
ccountManager.java
hooseTypeAndAccountActivity.java
c3b3f46d5fcbd89deeb557556e5a695c3e5349a1 08-Jul-2015 Carlos Valdivia <carlosvaldivia@google.com> Security: AccountChooser shouldn't auto reveal accounts.

Bug: 9739125
Change-Id: Ib9032271def423aaafdab2505afaf6b1d3fcad06
ccountManager.java
hooseTypeAndAccountActivity.java
c37ee22714ddec1104ba3a2189cf77924ac27812 18-Jun-2015 Carlos Valdivia <carlosvaldivia@google.com> Tweak GET_ACCOUNTS behavior and improve memory.

Related to recent permissions and system health changes. This change
will make it so that calls to AccountManager#getAccountsByType will work
for the owning account authenticator even if they don't have
permissions. This is pretty fundamental to having a working
authenticator and it doesn't make sense to have it be disabled (or have
authenticators hack around the framework).

Also changed how TokenCache works so that memory usage is still
predictable (no more than 64kb) but token caching won't be at the mercy
of garbage collection. This is important for writing stable cts tests.

Change-Id: Ib31b550616b266ee5a04eb26b04ba0023ca0cb83
ccountManager.java
0b8a7c00bd9433862e7867f6780fe3cd5771ee7d 19-Jun-2015 Simranjit Singh Kohli <simranjit@google.com> [Modify LastAuthenticatedTimestamp behaviour]:

We should not modify lastAuthenticated timestamp in authenticator
specific api's, as some of the calls maybe used by authenticators
for internal maintainance/upgrade. Only modify the timestamp when
calls effecting accounts is made to non-authenticator developer api's.

Bug: 21959561

Change-Id: I7b2d0c875957b263c4d9b203fe1f33042a65a58f
ccountManager.java
6eb73a577850a4b6ddb06fd746f09a6c1d124f34 11-Jun-2015 Carlos Valdivia <carlosvaldivia@google.com> Revert "Revert "Permissions: Fix account related permissions.""

This reverts commit dcddc476651deb72a27798de56eef584e5be5d32.

Change-Id: Ie2402167fc7cd3d5e57bf2fba704fdf00cfcb4fe
ccountManager.java
dcddc476651deb72a27798de56eef584e5be5d32 11-Jun-2015 Carlos Valdivia <carlosvaldivia@google.com> Revert "Permissions: Fix account related permissions."

This reverts commit ffb46022b30dffdf1cc4cbd08d4bcbe51e1f8814.

Change-Id: I4c62b1b5a5bd4e2a5fac76244a16730526ed67fc
ccountManager.java
ffb46022b30dffdf1cc4cbd08d4bcbe51e1f8814 09-Jun-2015 Carlos Valdivia <carlosvaldivia@google.com> Permissions: Fix account related permissions.

Requires updating the docs in AccountManaager as well as the logic in
AccountManagerService.

MANAGE_ACCOUNTS, USE_CREDENTIALS, and AUTHENTCATE_ACCOUNTS are going
away. Where AUTHENTCATE_ACCOUNTS was required we now do signature
matching.

GET_ACCOUNTS is kept but has been grouped under contacts.

Bug: 20136477
Change-Id: Iabbb76dce8d1efc607c1f107911d7ddab598a481
ccountManager.java
91979be8804232a04da2bf36cdd857ee7da04479 22-May-2015 Carlos Valdivia <carlosvaldivia@google.com> System Health: Support expiring tokens

In the past android:customTokens=true authenticators were required to handle
their own token caching. This is detrimental for battery when high traffic
authenticators are constantly spinning up processes to start services to do
file io to check their own caches. This change allows authenticator
implementers to optionally let the framework do some of the work for them by
providing the framework with a expiration time.

The AccountManagerService will make a best effort to re-use the cached
token if possible.

Bug: 21530782

Change-Id: I16a7edba36a220e3891e55cf61c725c2be863323
bstractAccountAuthenticator.java
734f8fb69d0c8af7b10bded718897a55ced49bf0 22-May-2015 Simranjit Singh Kohli <simranjit@google.com> [ChooseAccount/AccountManager.newChooseAccountIntent Bug Fixes]

Fixing lots of bugs related to the ChooseAccount Activities.
1. Fix jank which is seen when no accounts are present on the device.
2. After addition of the account, return to the user.
3. Don't crash when the user provides null to allowableAccountTypes.
4. Updated documentation of AccountManager#newChooseAccountIntent.
5. Fix NPE.

Bug: 13104800
Bug: 17926560
Bug: 9626001

Change-Id: I0d1913e46560cfb458526a7c930a38049602d8f1
ccountManager.java
hooseTypeAndAccountActivity.java
80b530afdb3c19bb664e0ff8c2b650de917305d2 24-Apr-2015 Tor Norbye <tnorbye@google.com> Add permission annotations on the AccountManager

Also add some @NonNull and @Nullable annotations.

Change-Id: Ia42b1af21ed14691b2268ea8b0f55d1b8b5ea2a3
ccountManager.java
1663b44cfd5fe589183dae5db769c843870cb5db 28-Apr-2015 Simranjit Singh Kohli <simranjit@google.com> [Update API]:
Rename accountAuthenticated to notifyAccountAuthenticated and other
changes.

Bug: 20642769
Change-Id: I7e69d6a9492691429af0d7c2f405e01e265fcedd
ccountManager.java
6c7c4ada8b0ce5f7027fd7b87dc8848b42fa5a0c 24-Feb-2015 Simranjit Singh Kohli <simranjit@google.com> [Auth:Last Credentials Timing] : Introducing API

Storing last successful sign-in/authentication timings, and providing that
information as extra's in updateCredentials and confirmCredentials.
Also, adding a new api: AccountManager#accountAuthenticated(Account).

Change-Id: Icd0dac35b13d61bc28a2e045b96caefffeb353be
ccountManager.java
AccountManager.aidl
22dc3b7ba111e27bce99a7cce966598e7873508c 31-Oct-2014 Esteban Talavera <etalavera@google.com> New AccountManager method to copy accounts between users.

Adding the copyAccountToUser method which copies an account
along with its credentials to a different user.

Also an extra in the public api to identify the account to migrate
during provisioning.

Bug: 17716971
Change-Id: I2f29f1765ba0d360a3894b13ef86253b7c7d3284
ccountManager.java
AccountManager.aidl
8778f993aeb7ec3df88aa0b244381253257bafe2 06-Nov-2014 Simranjit Singh Kohli <simranjit@google.com> [RemoveAccount API]: Adding support for intent.

Adding support for intent handling provided by authenticators.

Bug: 18292092

Change-Id: I1e94422bc28e5fd54c454ee6542ff2d30f82849f
ccountManager.java
AccountManager.aidl
f7f8fd64c8e8251caaf0d41d07f3bfe9c79e5335 25-Jul-2014 Alexandra Gherghina <alexgherghina@google.com> Update string for account manager failures

Bug: 14642886
Change-Id: I200e38c7a93990787a3d6e01a583fe8ba193a987
antAddAccountActivity.java
f193b9a61d0b14d13bb7f8aec42a21154672e5ec 18-Jul-2014 Carlos Valdivia <carlosvaldivia@google.com> Allow authenticators to rename accounts.

Bug: 16390602

Change-Id: I4f7250726a2c7677e0ccaa6e5f995153893d8360
ccountManager.java
AccountManager.aidl
999d394adee533c55fce38bd632ffd4f1af91362 03-Jul-2014 Alexandra Gherghina <alexgherghina@google.com> Ads per-user APIs to manage accounts through the AccountManager

Bug: 16056552
Bug: 14642886
Change-Id: I17ff6c2515285e63c84cecf2f861d10666c393c5
ccountManager.java
ccountManagerFuture.java
antAddAccountActivity.java
AccountManager.aidl
c1cf161af036e0f337b58ef0739a8ff2e42f01e7 05-Jun-2014 Alexandra Gherghina <alexgherghina@google.com> Modifies APIs for retrieving managed profile accounts.

This is needed for Account Settings UI.

Bug: 13656853
Change-Id: I33129e4b7b33b428a7bf670259accacb60f62d9b
ccountManager.java
AccountManager.aidl
8eea3ea5591e59f55cbb4f6b2b7e9363a285ced3 04-Feb-2014 Alan Viverette <alanv@google.com> Add APIs for obtaining themed Drawable from Theme, Context

BUG: 12611005
Change-Id: Ic0057be4e4c2d0c61ce02a019b3f7d0625e3a016
hooseAccountActivity.java
hooseAccountTypeActivity.java
6090995951c6e2e4dcf38102f01793f8a94166e1 19-Nov-2013 John Spurlock <jspurlock@google.com> Remove unused imports from frameworks/base.

Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
ccountAuthenticatorActivity.java
ccountManagerFuture.java
rantCredentialsPermissionActivity.java
64f2227bbc603d31b36ea7375525888c8a2b7698 03-Jun-2013 Joe Malin <jmalin@google.com> am 8811154e: am 423f8a8c: am 2618ac55: am a37bda7b: am 468d82bb: am 6bf45dc7: am b6a35268: B9257437: Typo in javadoc for AccountManager

* commit '8811154e9369ff936c35f355034ec1f6aafa984e':
B9257437: Typo in javadoc for AccountManager
423f8a8c21ec4e702e72ffce27bb3b5481170bae 03-Jun-2013 Joe Malin <jmalin@google.com> am 2618ac55: am a37bda7b: am 468d82bb: am 6bf45dc7: am b6a35268: B9257437: Typo in javadoc for AccountManager

* commit '2618ac55a94a97e29abd9defa93dea30e067b4e4':
B9257437: Typo in javadoc for AccountManager
b6a35268ccb698cde6d2e1e2f475a7299112b034 03-Jun-2013 Joe Malin <jmalin@google.com> B9257437: Typo in javadoc for AccountManager

Change-Id: I5349c2a0ba7e831d205f2801daecc24fa9a5b5a6
ccountManager.java
5a3915b06bf1e82cda024945d3b71b51b470b809 24-May-2013 Amith Yamasani <yamasani@google.com> UX compliance for error messages

Bug: 9122154
Change-Id: I4a64750f11845a230321450bc6a2955cb73e3b6d
hooseTypeAndAccountActivity.java
e37c8f781abb045ec4a0b872e5e6afe48eee021a 19-Apr-2013 Amith Yamasani <yamasani@google.com> Merge "Improve API and documentation" into jb-mr2-dev
3b458ad9ee5f2d6b7cf28a13bc29123cdf540763 19-Apr-2013 Amith Yamasani <yamasani@google.com> Improve API and documentation

API for querying accounts visible to a specific package.

Improve API and docs for device owner.

Bug: 8657158
Change-Id: I01b8701534f64b383391508a49ae93ed21f22ae0
ccountManager.java
AccountManager.aidl
1b64c9d31536ec8b4a89b1b05bf493b50a2a6c4e 19-Apr-2013 Carlos Valdivia <carlosvaldivia@google.com> Fix NPE when restarting ChooseTypeAndAccountActiivty.

Note that this change still leaves things in an imperfect state. Now instead
of ANR with an NPE it will reshow the Choose account activity and then on the
second back, it will go away. So the user isn't hosed. But it is still a sloppy
experience. Basically the bug fix reveals another not quite as bad bug
(see https://b/8661942).

Bug: 8151602
Change-Id: I44b188f5940d464c2dd81dd0b6b7cae3c189becd
hooseTypeAndAccountActivity.java
23c8b96a7e5c3f4c169bf65ae3886357943bb7b0 10-Apr-2013 Amith Yamasani <yamasani@google.com> Show an error dialog when account type is requested on a limited user

This covers the scenario where an app doesn't find an account of the
required type and requests the account manager to add one of that
type.

Bug: 8537648
Change-Id: I4d9c8842c2d90aa668f16034d3db007dc61714b8
antAddAccountActivity.java
27db46850b708070452c0ce49daf5f79503fbde6 31-Mar-2013 Amith Yamasani <yamasani@google.com> Block access to accounts for limited users.

Make sure that apps that have access to restricted accounts can see them.
If they don't have access, they shouldn't be able to add a new account either.
Show an error message in the account picker if the user/app is not authorized.

Change-Id: I117c0b14d7d06c5ac4e66506df156b174567f5f3
ccountManager.java
hooseTypeAndAccountActivity.java
AccountManager.aidl
da160ec313d844b09818a91463631440a1b8a09c 29-Mar-2013 kmccormick <kmccormick@google.com> am 6eebd6e6: am 6f50c846: am d2c1e947: am 39f864b1: am 5018688b: Merge "Doc update: incorrect method name" into jb-mr1.1-docs

* commit '6eebd6e6b44d7688489c430cad933e971530e43d':
Doc update: incorrect method name
f783ce5bcfa85a260196d27fb9feabfc4fbd4b46 29-Mar-2013 kmccormick <kmccormick@google.com> Doc update: incorrect method name

"Bug: 8177983"

Change-Id: Ib8f811a8e82dbff9b4e97cb670dec66342a0df00
ccountManager.java
3df7d697ca86ee2081bcfba31bcbd3ae4f4bcdf8 27-Mar-2013 Jatin Lodhia <jlodhia@google.com> AccountManager changes for profile seeding.

Add a new error code to AccountManager and remove the check for
limited user during add account to allow Authenticators to seed
account during limited profile startup.

Change-Id: I5a73def9fc3baeb8e6de1b42e923829c335e1668
ccountManager.java
df2e92a535e19c00edd37318d974dab992ccc2c1 02-Mar-2013 Amith Yamasani <yamasani@google.com> Application restrictions API

Adds the ability for apps to export some restrictions. The restrictions
are presented in Settings based on the restriction type. The user's
selections are stored by UserManagerService and provided to the
target user's application as a list of RestrictionEntry objects which
contain the key, value(s).

Also introduce a manifest entry for system apps to request that the
app be automatically installed in all users, so that they cannot be
deselected by the owner user.

Shared account filtering for non-whitelisted apps.

Change-Id: I15b741e3c0f3448883cb364c130783f1f6ea7ce6
ccountManager.java
12b8e134c1c98d7eb90510fb79cc25dcf56b2cb0 14-Mar-2013 Amith Yamasani <yamasani@google.com> Move the account picker class name to a config resource.

For customization in derived products.

Bug: 8379133
Change-Id: I1dba4734f322455f0b0dd9c009be2ddc8d6b7d22
ccountManager.java
c8a1ff4036f9ca1e5d971ba231ea2d12aeff4019 09-Mar-2013 Amith Yamasani <yamasani@google.com> Make account cloning API public

Change-Id: If48d93dab49afcaaa301a5a3aa514f3d4dd3bab8
bstractAccountAuthenticator.java
67df64b3a48a8157d08a98fa90135d0ac0ee621c 14-Dec-2012 Amith Yamasani <yamasani@google.com> Shared accounts and sharing of apps

API and preliminary implementation for sharing primary user accounts with a secondary user.
AbstractAccountAuthenticator has new methods to retrieve and apply a bundle of credentials
to clone an account from the primary to a restricted secondary user. The AccountManagerService
initiates the account clone when it starts up the user and detects that the user has
a shared account registered that hasn't been converted to a real account.

AccountManager also has new hidden APIs to add/remove/get shared accounts. There might be
further improvements to this API to make shared accounts hidden/visible to select apps.

AccountManagerService has a new table to store the shared account information.

Added ability in PackageManager to install and uninstall packages for a secondary user. This
is required when the primary user selects a few apps to share with a restricted user.

Remove shared accounts from secondary users when primary user removes the account.

Change-Id: I9378ed0d8c1cc66baf150a4bec0ede56f6f8b06b
bstractAccountAuthenticator.java
ccountManager.java
AccountAuthenticator.aidl
AccountManager.aidl
7a96c39c510923ef73bbb06ab20109f0168b8eb1 15-Nov-2012 Jeff Sharkey <jsharkey@android.com> Move lingering services to services.jar.

This helps reduce the pressure on framework.jar, and makes it clear
that it should only be used by the system_server.

Bug: 7333397
Change-Id: I0858904239535380fbf30562b793e277d8c3f054
ccountAuthenticatorCache.java
ccountAuthenticatorResponse.java
ccountManagerService.java
AccountAuthenticatorCache.java
cb2f707f869933e4e5bb16add76dbf8747cf3b06 08-Nov-2012 Amith Yamasani <yamasani@google.com> am cb5cb740: am aecee8a9: am 717797db: am f763b717: Merge "Authenticate correct user\'s account when pattern fails multiple times." into jb-mr1-dev

* commit 'cb5cb740b587744150df7414bdc2974144e9167a':
Authenticate correct user's account when pattern fails multiple times.
2c7bc26a7447e6ac9eadcf328259aa3bb1be2949 06-Nov-2012 Amith Yamasani <yamasani@google.com> Authenticate correct user's account when pattern fails multiple times.

Bug: 7473142

Provide hidden methods in AccountManager for querying accounts and
authenticating for a specific user. Lockscreen is running in the
system process. Allow only system process to access accounts across
users.

Also make sure to launch the lock settings screen on the just reset
user using startActivityAsUser()

Change-Id: Ifefc0039ba2b51396b8bd0268f36d5271a3d8676
ccountManager.java
ccountManagerService.java
AccountManager.aidl
b97c91dbdfcb25f48cad9f3c5a3b89f5754397e5 18-Oct-2012 Jeff Sharkey <jsharkey@android.com> am 9fb2695c: am 628025fd: am bd4f2181: Merge "Defer more Account actions until user starting." into jb-mr1-dev

* commit '9fb2695c3ed806a4dee755e730b50935c7bb10f6':
Defer more Account actions until user starting.
e4996bbd519a088927180c2eed2941fe59a4cd40 17-Oct-2012 Jeff Sharkey <jsharkey@android.com> Defer more Account actions until user starting.

Instead of explicitly scanning OWNER accounts, move to using the
"user starting" call path for consistency.

Bug: 7358086
Change-Id: Ied3289a074aafa48259d828db1d68804912589b3
ccountManagerService.java
5a5b3b4928c47ba93c80ddbf9884650b5c7c1b9b 10-Oct-2012 Jeff Sharkey <jsharkey@android.com> am cd25032d: am 21973701: am 0dd0b144: Merge "Include all accounts in dumpsys." into jb-mr1-dev

* commit 'cd25032d019259ed70490ec9e653a66367766450':
Include all accounts in dumpsys.
6eb9620ff289105c3fc4a1be28a8eebb17d044e0 10-Oct-2012 Jeff Sharkey <jsharkey@android.com> Include all accounts in dumpsys.

Allow accounts to be loaded when a user is stopped, but always
validate accounts against a freshly queried PMS cache when the user
actually starts.

Bug: 7276595
Change-Id: I0382064c73123c243bc6f6e5da8fc3d0a8b73442
ccountManagerService.java
86e0935a1f8f87e8d35c3946fa953b6f4519f888 10-Oct-2012 Jeff Sharkey <jsharkey@android.com> am ebb97455: am 62dee3d8: am 0fca2a3e: Merge "Fix build, only invalidate when creating user." into jb-mr1-dev

* commit 'ebb97455327161157432fc0f3effce27990075e5':
Fix build, only invalidate when creating user.
4a55653e341d40db113e6e3763bb366f1d700b4d 10-Oct-2012 Jeff Sharkey <jsharkey@android.com> am abd0c099: am 45ed828a: am c85e16ca: Merge "Make RegisteredServicesCache multi-user aware." into jb-mr1-dev

* commit 'abd0c099c75d85ebca9281c7937b5b5b86f6066f':
Make RegisteredServicesCache multi-user aware.
9d0791bf6a047dbf7a99034130a5c4b437510fcf 10-Oct-2012 Jeff Sharkey <jsharkey@android.com> Fix build, only invalidate when creating user.

Bug: 7276595
Change-Id: I322f9d76a682b2d45fc556e35381442458168fe5
ccountManagerService.java
6ab72d74b86e5f4ec3c3909366fd46c225a66bd7 09-Oct-2012 Jeff Sharkey <jsharkey@android.com> Make RegisteredServicesCache multi-user aware.

RegisteredServicesCache is used to track account authenticators and
sync adapters, which can vary based on user. This change requires
that callers now provide a userId when making cache requests. It
continues persisting into a single file for now, which is keyed based
on UID.

It now watches for package broadcasts from all users, and scans
packages on-demand. It changes cache callers to provide a relevant
userId, and evicts cache entries when users are stopped.

Changes SyncManager to only work with accounts from running users,
only kicking off pending syncs once a user is started.

Bug: 7276595, 7316150
Change-Id: I79466a84aa69aa37e4bd9691c5d6221d3662ff29
ccountAuthenticatorCache.java
ccountManagerService.java
AccountAuthenticatorCache.java
d6a2666a397db29a32685521c1140137bdf77d4f 24-Sep-2012 Dianne Hackborn <hackbod@google.com> am 1f7a6220: am cd11b223: Merge "Fix issue #7214090: Need to be able to post notifications to all users" into jb-mr1-dev

* commit '1f7a6220c0935f10f2aab6d297ca033b36a33503':
Fix issue #7214090: Need to be able to post notifications to all users
50cdf7c3069eb2cf82acbad73c322b7a5f3af4b1 24-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7214090: Need to be able to post notifications to all users

Also fix a bunch of system services that should be doing this. And
while doing that, found I needed to fix PendingIntent to evaluate
USER_CURRENT at the point of sending, not creation.

Note that this may end up with us having some notification shown to
non-primary users that lead to settings UI that should only be for
the primary user (such as the vpn notification). I'm not sure what
to do about this, maybe we need a different UI to come up there or
something, but showing the actual notification for those users at
least seems less broken than not telling them at all.

Change-Id: Iffc51e2d7c847e3d05064d292ab93937646a1ab7
ccountManagerService.java
dbef28ab733053c7ce589c2b289fa1af0a8cb042 17-Sep-2012 Jatin Lodhia <jlodhia@google.com> am 4dc67287: am 836033d6: Merge "Update account list on account picker activity resume" into jb-mr1-dev

* commit '4dc67287774495e192193e888fae6603ed85c4be':
Update account list on account picker activity resume
8d16778efdf46fa80a309456b722b333ec3e6756 12-Sep-2012 Jatin Lodhia <jlodhia@google.com> Update account list on account picker activity resume

Activities which help select an account gather the list of accounts only during create and dont update it agian. When a user moves out of the account selection activity by clicking home page, deletes an accout in the background and comes back to the earlier accout selection activity, the deleted account still exists as an option. This cl fixes this by updating the account list on resume.

Bug: 7135608
Change-Id: Idc9a2fa6451b032310c0ad66f6db0e2f0967feeb
hooseTypeAndAccountActivity.java
0d42d5424d1e089d1a5b4aee3004f34c5410fa3c 05-Sep-2012 Mark Fickett <mwf@google.com> Merge "Fix docs typo: startActivityWithResult should be startActivityForResult."
ab249e08db1f7ce88e039fa4baad9424b42404c1 05-Sep-2012 Mark Fickett <mwf@google.com> Fix docs typo: startActivityWithResult should be startActivityForResult.

Change-Id: Ieb75798475fa5cfaa9bf1f1493e03b9ab27f63e3
ccountManager.java
2701f325a6d4acd920637d2ff6fd6972a9cf836b 01-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Remove Binder.getOrigCallingUid()." into jb-mr1-dev
61f57379ca2c5b6290c8da7548fa17128f7ab24f 31-Aug-2012 Amith Yamasani <yamasani@google.com> Centralize the creation of the user system directory

Environment.getUserSystemDirectory(int userId)

Use it all relevant places that was hardcoding it.
Also, wipe out the user's system directory when user is removed, otherwise old state
might be transferred to a new user.

Change-Id: I788ce9c4cf9624229e65efa7047bc0c019ccef0a
ccountManagerService.java
4120375d46091df8527bb701882e056fbb0e6b06 31-Aug-2012 Dianne Hackborn <hackbod@google.com> Remove Binder.getOrigCallingUid().

Replaced all remaining places that used it with explicit user
specification.

While doing this, I ran into stuff that was creating PendingIntent
objects (that now need to specify the explicit user they are for),
which are also posting notifications... but have no way to specify
the user for the notification.

So the notification manager in the system process now also gets a
formal concept of a user associated with the notification, which
is passed in to all the necessary aidl calls. I also removed the
old deprecated aidl interface for posting/cancelling notifications,
since we now always need a user supplied.

There is more work that needs to be done here, though. For example
I think we need to be able to specify USER_ALL for a notification that
should be shown to all users (such as low storage or low battery).
Along with that, the PendingIntent creation needs to be tweaked to
be able to handle USER_CURRENT by evaluating the user at the point the
pending intent is sent.

That's for another change, however.

Change-Id: I468e14dce8def0e13e0870571e7c31ed32b6310c
ccountManagerService.java
79af1dd54c16cde063152922b42c96d72ae9eca8 17-Aug-2012 Dianne Hackborn <hackbod@google.com> Switch public APIs to use new UserHandle class for identifying users.

Gets rid of "yet another integer" confusion.

Change-Id: Id07ea7307aea7c62f0087c6663a1f1c08e2e5dee
ccountManagerService.java
2a00329c6d55c6cd9166e01963d7410e95d80d21 15-Aug-2012 Amith Yamasani <yamasani@google.com> UserHandle to UserSerialNo mapping

Use AtomicFile for usermanager files.

Added a MANAGE_USERS permission that apps (signature permission) can use
to create/query/modify/remove users.

Change-Id: I5cf232232d0539e7508df8ec9b216e29c2351cd9
ccountManagerService.java
f02b60aa4f367516f40cf3d60fffae0c6fe3e1b8 16-Aug-2012 Dianne Hackborn <hackbod@google.com> Rename UserId to UserHandle.

This is the start of turning this into a formal public API.

Change-Id: I5786d2c320f1de41a06ed5d0f65adb68967287a0
ccountManagerService.java
258848d2ae04f447ff1c18023fa76b139fcc0862 11-Aug-2012 Amith Yamasani <yamasani@google.com> User Manager service to manage users and query user details

Moved a bunch of methods from PackageManager to UserManager.

Fix launching of activities from recents to correct user.

Guest creation APIs

Change-Id: I0733405e6eb2829675665e225c759d6baa2b708f
ccountManagerService.java
b4163a6e12ee7100c758c6d3d062ade1f2843fce 03-Aug-2012 Dianne Hackborn <hackbod@google.com> Add APIs for interacting across users.

- Expose the existing Context.sendBroadcast() as
Context.sendBroadcastAsUser().
- Add new android:singleUser attribute for services.
- Add new INTERACT_ACROSS_USERS_FULL permission for full
system-level access to cross-user interface (allows
sendBroadcastAsUser() to send to any receiver).
- Add new INTERACT_ACROSS_USERS_FULL permission for
more restricted cross-user interaction: this is required
for android:singleUser, and allows you to use
sendBroadcastAsUser() but only to send to your own
receivers.

Change-Id: I0de88f6718e9505f4de72e3f45d29c0f503b76e9
ccountManagerService.java
26ff6626fc4ee0ae46f01ad309b366921da589fe 30-Jul-2012 Kenny Root <kroot@google.com> Delay AccountManagerService initialization

Since applications can have Account providers, they need to be delayed
until after PackageManagerService says everything is mounted.
Otherwise the accounts associated with that provider will be removed
immediately when startup happens.

Bug: 6820670
Change-Id: Iba81765260421649f706624d0605a40ebc1347b1
ccountManagerService.java
AccountAuthenticatorCache.java
9530e3a22d5ffa2019d1a5177b6a441d4d6d048b 19-Jun-2012 Nicolas Falliere <nicof@google.com> Added or fixed doctrings for required permissions.

Bug: 6591338
Change-Id: Ia2092f9994854701b5fa1425c371817367ae07ec
ccountManager.java
6cab5e823a0053c60576c65cd307c865512eac38 01-Jun-2012 Alice Yang <alice@google.com> Fix bug where existing account not pre-checked

The fix was to call ListView.setItemChecked()
instead of ListView.setSelection() for setting radio button status.
Also refactored the code a bit so it's less verbose.

Bug 6588533

Change-Id: I8add072a0277183baec7c0d5634a28f2d3a28c5e
hooseTypeAndAccountActivity.java
90f658e17d86d7f4052b178dbfdf15977c5d7841 31-May-2012 Amith Yamasani <yamasani@google.com> Merge "Preserve account list in order of creation in the database." into jb-dev
b483a99c6bdfee72fbb8fbcf893e63ef3f54658b 22-May-2012 Amith Yamasani <yamasani@google.com> Preserve account list in order of creation in the database.

This makes it possible to retrieve the account list in the order of creation,
if we want to display them in the account settings screen in that order.

Bug: 6579937

Change-Id: I2025aaa8b770fbb78be978dfde64ef95823fd5aa
ccountManagerService.java
3c144c3e69405000f5c7542f20890437a4fb4987 30-May-2012 Fred Quintana <fredq@google.com> Merge "Add an updateAppPermission() API call to the AccountManagerService AIDL and have the GrantCredentialsPermissionActivity call that instead of a static so that it can be made to run in a different process than the AccountManagerService. Protect this call by checking that the caller has the same UID as the system process." into jb-dev
727c599454b1e280a237b10fea4dd7f7cb1096e0 29-May-2012 Alice Yang <alice@google.com> New UI for account picker

- Added radio buttons to indicate the selected item
- "Add account" is one of the list options instead of a button
- Removed icons
- Added "Cancel" and "OK" buttons
- Use dialog theme
- Omit description text by default

Bug 6505441

Change-Id: I672a11481ee99e183142142bddf8f97b7b149d37
hooseTypeAndAccountActivity.java
d9640ec712806508877868d08aafaa2d715ff441 23-May-2012 Fred Quintana <fredq@google.com> Add an updateAppPermission() API call to the AccountManagerService AIDL
and have the GrantCredentialsPermissionActivity call that instead of a
static so that it can be made to run in a different process than the
AccountManagerService. Protect this call by checking that the caller
has the same UID as the system process.

Bug: 6545417
Change-Id: I295e65cad68883349a47e7927c171af45c89b229
ccountManager.java
ccountManagerService.java
rantCredentialsPermissionActivity.java
AccountManager.aidl
cf0a881f1c27718f686a307e6c94213815ee9dc1 17-May-2012 Carlos Valdivia <carlosvaldivia@google.com> Streamline the logic to add account.

This cl ensures that we immediately route the user to the add account
activity if they don't have an account and their is only one relevant
account type. Also reordered the setContent logic to reduce flicker.

Note that as of this CL there is still some flicker remaining when
launching G+ without an account. But it appears to be fixed in other
apps.

Bug: 6455975
Change-Id: I91e33b4fb9618a31765b4a8651334b1c52640828
hooseTypeAndAccountActivity.java
856fbbedbb57da5620026d71a338744a2e875ec3 12-Apr-2012 Amith Yamasani <yamasani@google.com> Merge "Don't migrate accounts.db if already migrated."
a23bb38628ac1f5dc4ebe6847faedc424dd5fce1 12-Apr-2012 Amith Yamasani <yamasani@google.com> Don't migrate accounts.db if already migrated.

Some developers accidentally create a blank accounts.db and this
was causing accounts to vanish. This safeguards the case where both
old and new files exist.

Bug: 6168813
Change-Id: I79cf211acc5422ff1c17fe0c9af80c49227b60ac
ccountManagerService.java
f29f2369cf4e1de090c985ed53d3f5e59535986a 06-Apr-2012 Amith Yamasani <yamasani@google.com> Fix a race condition in SyncManager.onAccountsUpdated()

Get the full list of accounts from AccountManagerService in one shot
instead of getting them per user.

Bug: 6263091

Change-Id: I488f24749a96281ef1e2a620820399c97f471024
ccountAndUser.java
ccountManagerService.java
135936072b24b090fb63940aea41b408d855a4f3 23-Mar-2012 Amith Yamasani <yamasani@google.com> User management and switching

Broadcast intents that get sent out when users are added/removed/switched.

More work on generating user-specific information in package manager queries.
APIs to update user name and query a user by id.
Removed Package.mSetStopped and mSetEnabled, since they're not user specific.

User removal:
- Cleanup ActivityManager, PackageManager, WallpaperManager, AppWidgetService
and AccountManager.
- Shutdown processes belonging to the user.

Don't show vibrate option in long-press power if there's no vibrator.

Lock the screen when switching users, to force unlocking.

Change-Id: Ib23a721cb75285eef5fd6ba8c7272462764038fa
ccountManagerService.java
f57bdf3a2b5b8833fc1ded877bbf6ed232205d1e 21-Mar-2012 Fred Quintana <fredq@google.com> Merge "Fix an initialization ordering bug due to the userprofile changes."
70e6190858e54b0924ed0a536030e61d471181b2 20-Mar-2012 Fred Quintana <fredq@google.com> Fix an initialization ordering bug due to the userprofile changes.

Bug: 6194599
Change-Id: I6ebedec3b5f045374f216aa1419bfdb57141a80e
ccountManagerService.java
219be44a4f96bd5dfc275aecf9eb2ba5a233ef84 20-Mar-2012 Amith Yamasani <yamasani@google.com> Merge "Bind to the correct instance of the authenticator service."
34daa75260c9aebe791819ff6134b4c47146c5c0 20-Mar-2012 Amith Yamasani <yamasani@google.com> Bind to the correct instance of the authenticator service.

Otherwise you will see authentication failures on secondary users' accounts.

Change-Id: Ia3f8427f68df6048cdca65710bf673ac12a2cddb
ccountManagerService.java
c6b0f99bb31405902b40a96f6491a9adcaaac169 19-Mar-2012 Marc Blank <mblank@google.com> Use renameTo safely when creating the user 0 account database

* Because the user directory probably won't exist, the renameTo
in previous code fails silently

Bug: 6188815
Change-Id: I6afd1bad9bbd1a36de7e93d9e02ed7172b1ed370
ccountManagerService.java
f76a50ce8fdc6aea22cabc77b2977a1a15a79630 09-Mar-2012 Ken Wakasa <kwakasa@google.com> Fix obvious typos under frameworks/base/core

Change-Id: Ia5fc3db1bb51824e7523885553be926bcc42d736
bstractAccountAuthenticator.java
04e0d265e3385e9d1fbc35e43c4e8caffbbe3290 14-Feb-2012 Amith Yamasani <yamasani@google.com> Make SyncManager and AccountManagerService multi-user aware.

AccountManagerService
- Maintain multiple account lists, one per user
- Keep multiple databases of accounts
- Account db moved to /data/system/users/<userid>/

SyncManager
- SyncStorageEngine keeps track of multiple users' accounts.
- SyncQueue maintained as a single instance, queueing requests from
multiple users.
- Changed some methods to take userId arguments
- Removed some deadc0de
- Store the userId in the SyncOperation, so we know which provider
instance to bind to when queued operations are processed.

ContentService
- Pass along the userid to sync manager calls.

ActivityManagerService:
- Fixed a bug in cancelIntentSender
- Don't bring other user's task forward when resetting tasks.

Updated tests

Change-Id: If317340ef68e902787aa3f5ceb4cf96f14aea695
ccountManagerService.java
rantCredentialsPermissionActivity.java
nAccountsUpdateListener.java
2f36229db823d152f3efd879e751e81a601a75b0 20-Jan-2012 Andy McFadden <fadden@android.com> Use Map.Entry, not HashMap.Entry

Map.Entry is the defined return value from entrySet(). HashMap.Entry
shouldn't be used directly.

Change-Id: Ia21598c6a73fe7eb22179ce114095f779c903084
ccountManagerService.java
2becf93d275a1e678abedd16b88225d6cecf49e2 16-Nov-2011 Fred Quintana <fredq@google.com> When in the Choose Account flow if the accounts list display was initially
skipped if the user cancels out of adding an account the flow itself should
be canceled rather than showing the accounts list display.

Bug: 5599693
Change-Id: I5075e86656e237dddcb5e1d76e432e1cf525ab79
hooseTypeAndAccountActivity.java
166466d483cc3d57e7d3d465fd92ce62409c8455 24-Oct-2011 Fred Quintana <fredq@google.com> Fixed a bug that causes AccountManager calls to hang forever, eventually
exhausting the binder threads in the gapps process, making it unusable.

Bug: 5486091

Change-Id: I82bd197e27c2be1bf82e4e5cc1468e1c6a3e4919
ccountManagerService.java
01df6a8ee2fd0ec76bddaaa2e3e66f6e9748a4ce 18-Oct-2011 Fred Quintana <fredq@google.com> fix bug where the instance saving of the ChooseTypeAndAccountActivity
would only work in the case where onSaveInstanceState was called.

- combined mExistingAccounts and mSavedAccounts into one field
- set this field when starting the addAccount request
- write this to the instance state if the request state
is ADDING_ACCOUNT
- read this field from the instance state, if any,
when the request state is ADDING_ACCOUNT

Bug: 5459669
Change-Id: I5a7b4943de8e706cc8a21ff9f54fce4258f18b19
hooseTypeAndAccountActivity.java
e9095bd73795e3cf55cbeebaa5745f68b69819ab 12-Oct-2011 Fred Quintana <fredq@google.com> reworked the flow in the account chooser
- resilient to the chooser activity being killed due to memory pressure
- back now goes back to the main chooser screen rather than canceling
it completely

Bug: 5358896
Bug: 5381201
Bug: 5387749

Change-Id: I10e76013b2cceffc37ea891746533d6a08f279b7
hooseAccountTypeActivity.java
hooseTypeAndAccountActivity.java
6d288bd2f3596ce268a3a3278f005d8757c79d63 08-Oct-2011 Costin Manolache <costin@google.com> Merge "b/5399355 StringIndexOutOfBoundsException from AccountManagerService"
85e7279d9cc1ee8e4dd1f993a9e61a9eb547ecbc 07-Oct-2011 Costin Manolache <costin@google.com> b/5399355 StringIndexOutOfBoundsException from AccountManagerService

Change-Id: I13426a8b57d6fcbc7a43ffd61922439b0fae332c
ccountManagerService.java
3abd75ba3a981850cac43a401d0014a836559cb0 29-Sep-2011 Kenny Root <kroot@google.com> Add DUMP permission checks to services

Some services have info that is not readily available any other way. Add
a permission check to those services.

Bug: 5389201
Change-Id: I5a9724ec89e1c11ef7813eeb52a6a05b3ea92af5
ccountManagerService.java
9bbdd0bf5006512a000b0d3e6bd6ee2998a2e48b 28-Sep-2011 Fred Quintana <fredq@google.com> Fix a bug in the account chooser where relaunching an in-progress flow
results in a blank screen.

The fix involves making the first activity just call the account
type chooser to get the account type to add, rather than having
the account type chooser also kick off the AccountManager.addAccount()
request itself. Instead the first activity will get the type
back and then call AccountManager.addAccount()

Bug: 5346810
Change-Id: I4a0cf2370971b98f8ee0910f5401d97e999e546b
hooseAccountTypeActivity.java
hooseTypeAndAccountActivity.java
a77253a417e885f87280901a3519412262758412 20-Sep-2011 Fred Quintana <fredq@google.com> An extra is being written as one type and read as the wrong type.

Bug: 5342556
Change-Id: I664bd84546cb8da2936c5afe65381336a97ef5cd
hooseAccountTypeActivity.java
hooseTypeAndAccountActivity.java
d88324d8ab8b98bbc2c21551be3a8981ee431181 19-Sep-2011 Fred Quintana <fredq@google.com> Fixed the javadoc for AccountManager.newChooseAccountIntent()

Change-Id: Ieb358fa3be46d793de1e04452819477cec786b5b
ccountManager.java
b04fe4e82abb073b4e5d82563b0882cea0dcc139 17-Sep-2011 Fred Quintana <fredq@google.com> Continuation of the unified account chooser flow.

- made the UI match the spec
- added ability to force the account chooser to appear
- added ability to pass in a description that will override the stock one
- added ability to pass in requiredFeatures for addAccount
- added ability to pass in an authTokenType for addAccount

Bug: 5293377
Change-Id: I243c0fd6598c943b1f65753e1f5d3c86629f64f5
ccountManager.java
hooseAccountTypeActivity.java
hooseTypeAndAccountActivity.java
1121bb5e6ff20a2c694225300507ed486e04fea2 15-Sep-2011 Fred Quintana <fredq@google.com> Add a generic account chooser/add account flow for apps.

The activity is launched as follows:
Account account1 = new Account("account1@gmail.com", "com.google")
Account account2 = new Account("account2@gmail.com", "com.google")
ArrayList<Account> accounts = new ArrayList<Account>();
accounts.add(account1);
accounts.add(account2);
String[] accountTypes = new String[]{"com.google", "com.android.exchange"};
Bundle addAccountOptions = null;
Intent intent = AccountManager.newChooseAccountIntent(account1, accounts,
accountTypes, addAccountOptions);
startActivityForResult(intent, 0);

Change-Id: I05a467bdc3552a2e39397b0182879351f4324389
ccountManager.java
hooseAccountTypeActivity.java
hooseTypeAndAccountActivity.java
e5847ada7bdf99386dc13471a7d4f08bf779531b 14-Sep-2011 Costin Manolache <costin@google.com> b/5316640 fix bundle add

Change-Id: I567c26f6d8fc1a0ea5827fd32f9012b979cbea71
ccountManager.java
b61e8fbabea2cc40ad65bf4f372a32d526cfc7ac 08-Sep-2011 Costin Manolache <costin@google.com> For consistency with getAuthToken, pass UID/PID for add account. Needed for customizing the add account flow

b/5278759 API changes to pass package, options
b/5249018 consistent/customized add account UI
b/5270079 tag who adds the account

Change-Id: I1ee211d751b565c725c89aa1a429ef2f5bebe34a
ccountManager.java
ccountManagerService.java
ad93a323fef9761528512aff753c709b895c8ea0 08-Sep-2011 Fred Quintana <fredq@google.com> Add a form of getAuthToken that both accepts an options Bundle and
doesn't accepts an activity.

Bug: 5278759
Change-Id: I513c9b5d8a907e26b9ad3c0d5977614820a4990c
ccountManager.java
5d1a0c3933253d66a9c230ea1da051a7626937d4 24-Jun-2011 Fred Quintana <fredq@google.com> Make the AbstractAccountAuthenticator return an error to the AccountManagerService
if it detects a RuntimeException.

Bug: 4726899
Change-Id: I5c478464cd0d426722257b2c5c75f964cd839ea6
bstractAccountAuthenticator.java
46703b099516c383a6882815bcf9cd4df0ec538d 07-Apr-2011 Brian Carlstrom <bdc@google.com> Tolerate missing AccountManager resource, not just missing resource name

In addition to the primary change in the subject, also some minor cleanup of javadoc, typos, CloseGuard warning, etc found while working on a new AbstractAccountAuthenticator.

Change-Id: I73f3408773a43a0021a15f8d051fd3dbbdf898a5
ccountAuthenticatorActivity.java
ccountManager.java
ccountManagerService.java
hooseAccountActivity.java
rantCredentialsPermissionActivity.java
9ab66ff42f3a03182b18dacaf64edc38fae103cd 22-Mar-2011 repo sync <fredq@google.com> resolved conflicts for merge of 17f95e92 to honeycomb-plus-aosp

Change-Id: Ic82ab20e216d810f6372c833ac49c3856449c09c
eedb4df1956ca16fd8c735c69c5f0e4ca286d912 25-Feb-2011 Fred Quintana <fredq@google.com> remove the code that clears the passwords when the sim
is replaced with a different one.

DO NOT MERGE
patched from honeycomb-mr1

Bug: 3404577
Change-Id: If11fc6be817ca1fa3dd5c085ff9696a1c5ea3a03
ccountManagerService.java
f9f240e3ad5ff5eeaa32fbb2dd65ef7f3b06af32 25-Feb-2011 Fred Quintana <fredq@google.com> Fix a deadlock in AccountManagerService cause by different
paths of code getting the mCacheLock and DB locks in different
orders.

The philosophy I followed for this was to ensure that the
DatabaseHelper is only ever accessed from within a
synchronized(mCacheLock) block. I also renamed a bunch of
methods to make it easier to know if a given method should
be called from within this synchronized block.

Bug: 3404506
Change-Id: Ia48f95e77b77647d0717f70f1d8364da3719cc13
ccountManagerService.java
ef419b2e14e292bf4200a0281ce9125eda431c12 24-Feb-2011 Costin Manolache <costin@google.com> DO NOT MERGE
Backport (with modifications ) some changes from Honeycomb, that would allow authenticators to control caching and permissions.

This is backward compatible - both new and old authenticators will work with old and new framework,
but the functionality will only be present if both sides support it.

Change-Id: Ib2838cc2159f45264b38c844cd4c1d6f315d8064
ccountAuthenticatorCache.java
ccountManager.java
ccountManagerService.java
uthenticatorDescription.java
082aa9cdc4b8d63cb797af8773227a8ee6393738 01-Mar-2011 Fred Quintana <fredq@google.com> Merge "Make the AccountManagerService clear old grants when the package that the grants refer to is no longer installed."
c1a4e5dc418d324f2fa2827d83002cc50e62c507 25-Feb-2011 Fred Quintana <fredq@google.com> Make the AccountManagerService clear old grants when the package
that the grants refer to is no longer installed.

Bug: 3425856
Change-Id: I6ec057415c8f35be91c8434ff10e6cf5c1fc47bb
ccountManagerService.java
e3e5b0994e930fa2c4eb42fbff00893c3a5bcc4f 25-Feb-2011 Fred Quintana <fredq@google.com> remove the code that clears the passwords when the sim
is replaced with a different one.

Bug: 3404577
Change-Id: I3149df7040dfc56e91544010ac56b5912964d925
ccountManagerService.java
9d72be33181f1bd1386017ce0b0ce17d8ce1cb66 02-Feb-2011 Wink Saville <wink@google.com> Add TelephonyManager.getCurrentPhoneType

The new method getCurrentPhoneType has the old behavior of getPhoneType
and does not check for voice capable. This allows code to assume
the old behavior.

bug: 3198435
Change-Id: I0542838ceca2f757cceb6cd7f795e95fe886523e
ccountManagerService.java
b324911b473d20d10c0107273721791bc8b04568 26-Jan-2011 Costin Manolache <costin@google.com> Merge "If 'customTokens', let authenticator handle notification." into honeycomb
d606045070dcf6a011e49a7711d2f17d8f2de8c1 25-Jan-2011 Costin Manolache <costin@google.com> If 'customTokens', let authenticator handle notification.

Bug: 3377952
Change-Id: Iffb0ed01c39b42838cf88fd1b332c4b41c3194ec
ccountManager.java
ccountManagerService.java
c91466f56a777ab44a9a025e9d51f576e21dcce9 22-Jan-2011 Adam Powell <adamp@google.com> Fix bug 3378333 - Holo-style layout for granting permissions

Change-Id: Ie1bb925db3ddd8343c9756e220a0d821f4d31c6d
rantCredentialsPermissionActivity.java
795f135a08b6db7372935fa15874723307748fec 21-Jan-2011 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #3338957 (Account Picker and Account type picker need love)

- update UI to match design requirements

Change-Id: Idb5dbea876eb7170a8c1f077a99cfe168d41f1e1
hooseAccountActivity.java
f5ffe89e736caee1419f0acb469565d5100b8fb8 19-Jan-2011 Costin Manolache <costin@google.com> Token cache was not reset on password change

Bug: 3365443
Change-Id: I3e85c56810c0d71ddc82d3c6a1dcbba640444564
ccountManagerService.java
9ec17366c17efd14c643ee88fa1132ab05197349 17-Jan-2011 Costin Manolache <costin@google.com> Add back NEW_TASK flag.

b/2510486 suggests we remove it, but this breaks services who can't call the intent without the flag. A different solution is needed to notify when the activity is done.

Change-Id: I0b32ead69cf816e105899fdd74e99cc1e8bf5ce3
ccountManagerService.java
c6684f9e9790e92960504e9b32f20f27003d9f37 14-Jan-2011 Costin Manolache <costin@google.com> Fix previous quick fix, LoginOptions is final.

Change-Id: I5f262458239378697a67cbd8e83175bf3ffc7f5b
ccountManagerService.java
75b8fc7e0ce451eaa50d31e3dd7d60d466186c28 14-Jan-2011 Costin Manolache <costin@google.com> Fix NPE, caller may not pass loginOptions.

Change-Id: Ifb6a8bf876d30a9726f535a90ba8c0719a9a04aa
ccountManagerService.java
3b4fcbc9f13bab6a2e9e5c37cc5e18fec7341c04 09-Jan-2011 Brett Chabot <brettchabot@android.com> Add ActivityManager#isRunningInTestHarness() public API.

Replaces use of ro.monkey system property. This new API is controlled by
ro.test_harness.

Bug 3329873

Change-Id: Idb5bbbd9ca691976ef842eec681be34c29915976
ccountManagerService.java
afd2f549bb850828ad4961ccdae1bd5e8505baa4 17-Dec-2010 Fred Quintana <fredq@google.com> remove the hack to delay the accounts changed intent for the first account

Change-Id: I09ed0b31517c1545b81b480833fef3cd38c8f807
ccountManagerService.java
a40c6304deb860f10a51ce950ac1abc21a23d08b 13-Dec-2010 Costin Manolache <costin@google.com> Add a new attribute to auth descriptors to indicate custom handling of permission and token caching

Change-Id: Icf6bd0e7bf265db9ef8bf368e8f3d8e91182f834
ccountAuthenticatorCache.java
ccountManager.java
ccountManagerService.java
uthenticatorDescription.java
5d275bba42aea034959e94a47b6568376d93e7ad 03-Dec-2010 Costin Manolache <costin@google.com> Fix bug in permission grant system.

Change-Id: Ic7d712e5a672c3eded16fee83235db01ab3c74fa
ccountManagerService.java
rantCredentialsPermissionActivity.java
5f383ad9695a62d6c1aeb97c8e550d7fffe26244 03-Dec-2010 Costin Manolache <costin@google.com> Fix bug in permission grant system.

Change-Id: Ieae1a576fdcba30b24e0430f322843369de2a697
ccountManagerService.java
rantCredentialsPermissionActivity.java
56285a60e83138bb4b4f2d3bdec91b2f3ca11aa2 02-Dec-2010 Fred Quintana <fredq@google.com> add caching to the AccountManagerService

- cache the accounts, userdata and authtokens
- make the AccountManagerServiceTest work again
- add a log statement for every binder call

http://b/issue?id=3188457

Change-Id: I96b94b9b690cf391fe4341e2a72893a6d823777b
ccountAuthenticatorCache.java
ccountManagerService.java
AccountAuthenticatorCache.java
ec0c4f4183630a64c2b2cc8f961dc7e11cc628ca 16-Nov-2010 Costin Manolache <costin@google.com> Remove notifications for account when account is removed.

Change-Id: I21b5d757231401c10c922443cecd04b68f922c0b
ccountManagerService.java
1ddf340bfcd79bf618f14fede4bb8d7387b5c781 07-Aug-2010 Dan Egnor <egnor@google.com> am 6f50a956: am 799f2bb0: am b37bca9e: Merge "COMMENT ONLY change to fix some formatting glitches and (more importantly) clarify issues surrounding removed accounts." into froyo

Merge commit '6f50a956803c6ccedaec71f11ecd72f8fa7efe52'

* commit '6f50a956803c6ccedaec71f11ecd72f8fa7efe52':
COMMENT ONLY change to fix some formatting glitches and
799f2bb04102b4b692b52eed5c36aea9a8cde471 07-Aug-2010 Dan Egnor <egnor@google.com> am b37bca9e: Merge "COMMENT ONLY change to fix some formatting glitches and (more importantly) clarify issues surrounding removed accounts." into froyo

Merge commit 'b37bca9e79489a1abd848ce762bb7d87203b3414' into gingerbread

* commit 'b37bca9e79489a1abd848ce762bb7d87203b3414':
COMMENT ONLY change to fix some formatting glitches and
8e4378b3ae7c3b343f92b8f7fb8e46bdfdb01649 03-Aug-2010 Dan Egnor <egnor@google.com> COMMENT ONLY change to fix some formatting glitches and
(more importantly) clarify issues surrounding removed accounts.

Change-Id: I19e6c0e536e46b6d219c808bb86e88edd7e6f378
ccountManager.java
743dfad2a51e016ddb741c104317637089187753 15-Jul-2010 Fred Quintana <fredq@google.com> fix a bug where some accounts changed listeners don't see the new
version of the accounts because the accounts changed broadcast is
sent from within the transaction try block, thus before db.endTransaction()
is called.

bug: 2839034
Change-Id: I814c7de9998ba52b85256dd2f3f19104fba3049c
ccountManagerService.java
4d8ae85b5de8a90a597e4b649c6ee7208e446e3b 25-May-2010 Wink Saville <wink@google.com> Add needsOtaServiceProvisioning to Phone.

By having needsOtaServiceProvisioning supported on all phones we
eliminate the need to use an if statement to discriminate phone type.
Types of phones that don't support OTASP will return false in the
default implementation in PhoneBase.

Change-Id: I8fb15a18553e314c1f8f2a00ec7f8cffd79eeb7f
ccountManagerService.java
cb3f6e9f9f721fc78c45f8bc386d0edbeff88256 01-Apr-2010 Fred Quintana <fredq@google.com> am 2aa2f78e: am e8b1971c: Merge "allow null authtokens to invalidateAuthToken" into froyo

Merge commit '2aa2f78ec553993de4cc7a30529e4fd9ce3b9cbc' into kraken

* commit '2aa2f78ec553993de4cc7a30529e4fd9ce3b9cbc':
allow null authtokens to invalidateAuthToken
f35b68f2b926021bce407f092cfe3e8f52fa0794 01-Apr-2010 Fred Quintana <fredq@google.com> allow null authtokens to invalidateAuthToken

Change-Id: I78e91ef2f43503e13386894851f0d781583a4943
http://b/issue?id=2561519
ccountManager.java
1f4df90bfab8ca42eabe95f19eadff3432eee7fd 27-Mar-2010 Oscar Montemayor <oam@google.com> DO NOT MERGE
Removing unused features from source tree.
Please refer to Bug#2502219.

Change-Id: I879c29bfd5ffe933f64bb1082aaae7c956450a5a
ccountManagerService.java
382601fc8babccee0d0b953ecd9bef745d126996 25-Mar-2010 Fred Quintana <fredq@google.com> check for nulls

Change-Id: Ie02749db1dceb4288a70e5b28040459d669904c1
http://b/issue?id=2527346
ccountManager.java
ccountManagerService.java
rantCredentialsPermissionActivity.java
c2e4691d788088b22eadc9b2d35e9bdf0b6a0ffc 16-Mar-2010 Fred Quintana <fredq@google.com> - make the SyncManager add periodic syncs when it upgrades from a
version of the accounts.xml file that pre-dated periodic syncs,
e.g. eclair or early froyo. http://b/2515823
- make the AccountManagerService dump() use a getAccounts call that
doesn't check the GET_ACCOUNTS permission to make it useful
in "adb bugreport"
- add some logging to SyncManager to help track down a problem

Change-Id: Icb646909074e2d327d71f6bb39cf06b6fac29e77
ccountManagerService.java
15a4d2ffd04dc6c70f2cd17dae12ac6bc14c69ab 12-Mar-2010 Kenny Root <kroot@google.com> Add correct copyright headers to multiple files

Format for the list of changes shows the origin commit reference followed
by the file name.

33931-p9 awt/org/apache/harmony/awt/gl/font/AndroidGlyphVector.java
33931-p9 awt/org/apache/harmony/awt/gl/image/PngDecoderJava.java
133776-p9 core/java/android/app/IntentService.java
127013-p9 core/java/android/appwidget/AppWidgetHost.java
27863-p9 core/java/android/bluetooth/BluetoothAudioGateway.java
60765-p9 core/java/android/content/SyncResult.java
43920-p9 core/java/android/content/pm/ActivityInfo.java
43920-p9 core/java/android/content/pm/ApplicationInfo.java
43920-p9 core/java/android/content/pm/InstrumentationInfo.java
43920-p9 core/java/android/content/pm/PackageInfo.java
44103-p9 core/java/android/content/pm/PackageItemInfo.java
68960-p9 core/java/android/content/pm/PackageStats.java
43920-p9 core/java/android/content/pm/ResolveInfo.java
43920-p9 core/java/android/content/pm/ServiceInfo.java
60641-p9 core/java/android/content/res/Configuration.java
60734-p9 core/java/android/content/res/TypedArray.java
137672-p9 core/java/android/inputmethodservice/ExtractButton.java
123112-p9 core/java/android/inputmethodservice/ExtractEditText.java
119291-p9 core/java/android/inputmethodservice/IInputMethodSessionWrapper.java
112946-p9 core/java/android/inputmethodservice/IInputMethodWrapper.java
115078-p9 core/java/android/os/BatteryStats.java
124790-p9 core/java/android/text/style/UpdateAppearance.java
45083-p9 core/java/android/view/RawInputEvent.java
101491-p9 core/java/android/view/inputmethod/EditorInfo.java
114701-p9 core/java/android/view/inputmethod/ExtractedText.java
123112-p9 core/java/android/view/inputmethod/ExtractedTextRequest.java
119291-p9 core/java/com/android/internal/os/HandlerCaller.java
129279-p9 core/java/com/android/internal/os/PkgUsageStats.java
114701-p9 core/java/com/android/internal/view/IInputConnectionWrapper.java
114701-p9 core/java/com/android/internal/view/InputConnectionWrapper.java
84364-p9 opengl/java/android/opengl/EGLLogWrapper.java
11355-p9 opengl/tools/glgen/src/CFunc.java
11355-p9 opengl/tools/glgen/src/CType.java
11355-p9 opengl/tools/glgen/src/CodeEmitter.java
11355-p9 opengl/tools/glgen/src/GenerateGL.java
11355-p9 opengl/tools/glgen/src/JFunc.java
11355-p9 opengl/tools/glgen/src/JType.java
11355-p9 opengl/tools/glgen/src/JniCodeEmitter.java
11355-p9 opengl/tools/glgen/src/ParameterChecker.java
57236-p9 services/java/com/android/server/status/AnimatedImageView.java
66754-p9 services/java/com/android/server/status/CloseDragHandle.java
57188-p9 services/java/com/android/server/status/DateView.java
46928-p9 services/java/com/android/server/status/ExpandedView.java
70590-p9 services/java/com/android/server/status/FixedSizeDrawable.java
45968-p9 services/java/com/android/server/status/IconData.java
57470-p9 services/java/com/android/server/status/IconMerger.java
82719-p9 services/java/com/android/server/status/LatestItemView.java
45968-p9 services/java/com/android/server/status/NotificationData.java
66754-p9 services/java/com/android/server/status/NotificationLinearLayout.java
57458-p9 services/java/com/android/server/status/NotificationViewList.java
45968-p9 services/java/com/android/server/status/StatusBarException.java
45968-p9 services/java/com/android/server/status/StatusBarIcon.java
46130-p9 services/java/com/android/server/status/StatusBarNotification.java
45968-p9 services/java/com/android/server/status/StatusBarView.java
46199-p9 services/java/com/android/server/status/Ticker.java
62286-p9 services/java/com/android/server/status/TickerView.java
57188-p9 services/java/com/android/server/status/TrackingView.java
86041-p9 telephony/java/android/telephony/PhoneStateListener.java
87020-p9 telephony/java/com/android/internal/telephony/TelephonyIntents.java
136269-p9 telephony/java/com/android/internal/telephony/gsm/SpnOverride.java
34409-p9 tests/FrameworkTest/src/com/android/frameworktest/FrameworkTestApplication.java
55717-p9 tests/FrameworkTest/src/com/android/frameworktest/performance/InvalidateCycle.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/AutoCompleteTextViewActivityLandscape.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/AutoCompleteTextViewActivityPortrait.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityNonScrollablePanScan.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityNonScrollableResize.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityScrollablePanScan.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityScrollableResize.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/BottomEditTextActivityPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/BottomEditTextActivityResize.java
127341-p9 tests/ImfTest/src/com/android/imftest/samples/ButtonActivity.java
129347-p9 tests/ImfTest/src/com/android/imftest/samples/DialogActivity.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/EditTextActivityDialog.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityNoScrollPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityScrollPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityScrollResize.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/OneEditTextActivityNotSelected.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/OneEditTextActivitySelected.java
25959-p9 tests/framework-tests/src/android/test/FrameworkTests.java
46162-p9 tests/framework-tests/src/com/android/internal/http/multipart/MultipartTest.java
77101-p9 tools/layoutlib/bridge/tests/com/android/layoutlib/bridge/NinePatchTest.java
9788976b1465ce982b5ae7c741345edd0ecd9322 core/java/android/accounts/AuthenticatorDescription.java
53332883543868fb83e111a07306368b7772b340 core/java/android/app/UiModeManager.java
93e7e22ec91dbc641d10ca6d70423e1357a95bba core/java/android/app/FullBackupAgent.java
328c0e7986aa6bb7752ec6de3da9c999920bb55f core/java/android/content/CursorEntityIterator.java
307da1a46b4c9b711bafe8fbaaa6b98e8868c18e core/java/android/content/SyncQueue.java
307da1a46b4c9b711bafe8fbaaa6b98e8868c18e core/java/android/content/SyncOperation.java
eb034652c2037a47ebfd99779e8383bb8bb528af core/java/android/content/pm/LabeledIntent.java
49237345d83e62fdb9eb8d50b13ad086636a04fa core/java/android/content/pm/FeatureInfo.java
a2b6c3775ed6b8924232d6a01bae4a19740a15f8 core/java/android/content/pm/PackageInfoLite.java
3ecd5f437580e49d80beecd29489d5fb1f7a7db0 core/java/android/content/pm/RegisteredServicesCacheListener.java
5ebbb4a6b3e16f711735ae0615b9a9ea64faad38 core/java/android/content/pm/XmlSerializerAndParser.java
c4516a7b62de525e3d6d5e76851bdfaf12c11f05 core/java/android/database/sqlite/SQLiteTransactionListener.java
9bbc21a773cbdfbef2876a75c32bda5839647751 core/java/com/android/internal/backup/LocalTransport.java
21f1bd17b2dfe361acbb28453b3f3b1a110932fa core/java/com/android/internal/content/PackageMonitor.java
4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 core/java/com/android/internal/view/BaseSurfaceHolder.java
4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 core/java/com/android/internal/view/BaseIWindow.java
e540833fdff4d58e37c9ba859388e24e2945ed45 core/java/com/android/internal/os/SamplingProfilerIntegration.java
192ab903887bbb8e7c7b6da5c581573850e30f46 core/tests/coretests/src/android/widget/expandablelistview/PositionTesterContextMenuListener.java
1619367ab823150fa8856d419abe02ceb75886f1 media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaProfileReader.java
27f8002e591b5c579f75b2580183b5d1c4219cd4 opengl/tools/glgen/stubs/gles11/glGetString.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glGetProgramInfoLog.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glGetShaderInfoLog.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glShaderSource.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/GenerateGLES.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/Jsr239CodeEmitter.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/GLESCodeEmitter.java
69e21f5f6e0d04539cd92848ea009dd615d88c2c opengl/tests/gldual/src/com/android/gldual/TriangleRenderer.java
c028be4f3b8c7476b46859f66c3f33d528adf181 packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerMeasurement.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerTestActivity.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerTestRunner.java
df8a3f31d871db25e952972c2eb346a71186e9e3 tests/BrowserTestPlugin/src/com/android/testplugin/TestPlugin.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/ActivityManagerPermissionTests.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/ServiceManagerPermissionTests.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java

Copyright header moved to top in following file:

core/tests/coretests/src/android/widget/ListViewTest.java

Change-Id: I3c3198be5a0ba36e18679ed834170432bf0b8418
uthenticatorDescription.java
29e94b81c7e145a5cb21f8c862e8d05b077b3548 10-Mar-2010 Fred Quintana <fredq@google.com> check if the binding to the authenticator has been disconnected
during the GetAccuintsByTypeAndFeature operation and abort
if it has been, thus avoiding an NPE

Change-Id: I7f707c7b0a1bdf80c0de9dfa7a3ae32323d623de
http://b/2497196
ccountManagerService.java
f0fd8436b3ec2aa47cd5de61072b8395bbe46765 08-Mar-2010 Fred Quintana <fredq@google.com> - add verbose logging to the authenticator
- fix a bug in AccountManager.getAuthTokenByFeatures() where getAuthToken()
isn't called after adding the account when necessary
bstractAccountAuthenticator.java
ccountAuthenticatorResponse.java
ccountManager.java
bcfcafe18c331bef98ea3f15665bcc3bac2aa544 05-Mar-2010 Fred Quintana <fredq@google.com> Merge "Defend against an unexpected null bundle that causes blockingGetAuthToken() to throw an NPE."
96580e00654a052a82120c374c6b5961ef349a92 04-Mar-2010 Fred Quintana <fredq@google.com> Defend against an unexpected null bundle that causes blockingGetAuthToken() to throw an NPE.

http://b/issue?id=2420608
ccountManager.java
20cb56e26e91df91bd64d4251222e0d421cdbe47 04-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix some bugs.

Bug #2376231: Apps lose window focus (and back key causes ANR) if the
lock screen is dismissed while the phone is in landscape mode

This is another case where we weren't recomputing the focused window
after changing the visibility policy.

bug #2479958: Investigate source of "Resources don't contain package
for resource number 0x7f0a0000"

Um, okay, so it turns out there were bugs all over the place where
we would load an XML resource from a another application, but not
use the Resources for that application to retrieve its resources...!
I think the only reason any of this stuff was working at all was
because it typically only cared about retrieving the resource
identifiers of the items (it would look up the values later).

Bug #2401082: Passion ERE26 monkey crash - InputMethodManagerService

Add some null checks.
ccountAuthenticatorCache.java
ec8f9b648182c90613f18dbfe43080c90397487d 02-Mar-2010 Kenny Root <kroot@google.com> Fix misspelling in JavaDoc tag

Minor misspelling in "@inheritDoc" tag

Change-Id: I1e6252b549c20e1871e4be0170d2d06256beec9f
uthenticatorDescription.java
262226137de1007a6373666b792ebed6eb4c03de 01-Mar-2010 Fred Quintana <fredq@google.com> fix a system crash that occurs when ChooseAccountActivity is
restarted from the icicle

http://b/issue?id=2352368
hooseAccountActivity.java
b38eb14dbf58c8230f5b54c481b85587d9ef7c78 24-Feb-2010 Fred Quintana <fredq@google.com> allow permission USE_CREDENTIALS for AccountManager.invalidateAuthToken as well as the previous MANAGE_ACCOUNTS
ccountManager.java
ccountManagerService.java
4855965a141f020f0a35c174497343aa0c8da320 24-Feb-2010 Fred Quintana <fredq@google.com> Merge "- return the accounts when getAccountByTypeAndFeatures is passed a null or empty features set, http://b/issue?id=2467165 - clear the authtokens when the password changes"
d4a9d6c42bb412e27a8383aaacd051419d98a662 24-Feb-2010 Fred Quintana <fredq@google.com> - return the accounts when getAccountByTypeAndFeatures is
passed a null or empty features set, http://b/issue?id=2467165
- clear the authtokens when the password changes
ccountManagerService.java
ff592dc2fa53d48e4121d9b8fd70efc19938c4a1 23-Feb-2010 Doug Zongker <dougz@android.com> fix some minor javadoc errors in AccountManager

Change-Id: Iafc9e5541e56b936a426999e0ae9f99e56dccd51
ccountManager.java
661f0130de6a4e1592b679a212c8f758133d36ee 19-Feb-2010 Dan Egnor <egnor@google.com> Update AccountManager's javadoc.

Includes several potentially controversial major changes:

- Remove the amount of repeated boilerplate explanations of common
idioms. I find them much more distracting than useful. The same
things are explained, but in fewer places.

- Add more narrative/directive information instead of merely descriptive
commentary; I included a lot of "color" about who particular methods are
intended for and why you might use them.

- Add explicit guidance (in the class javadoc) about the common usage pattern.
Explicitly document the auth token invalidation dance, which is highly
nonobvious, had never been written down before, and which GMM got wrong,
creating a Latitude conops nightmare they're still digging out of.

- Explain and justify, as best I can, the overall model of account management:
saved credentials, pluggable authenticators, auth tokens, and so on. Clarify
some things, like that setPassword() changes the locally cached credential
but does not set the user's password on the server.

- Clarify what the passed-in Activity parameter is used for. (It seems silly,
but I was confused by this: is it supposed to be the Activity that actually
performs the password prompt or whatever? No, it's just a Context for the
startActivity() to be launched from.)
ccountManager.java
8570f7440780db5c9b410e033e843b0e80e2fd27 18-Feb-2010 Fred Quintana <fredq@google.com> - fix the AccountManager documentation. http://b/2401790
- only pass the authtoken through from the authenticator to the client
for getAuthToken() and strip it out from the other calls, like
addAccount(). http://b/2332762
- beef up the documentation to indicate what calls are allowed to be made
from the main thread and which are not allowed. http://b/2384961
- wait a bit before retrying syncs that failed because one was already
in progress. http://b/2414235
bstractAccountAuthenticator.java
ccountManager.java
ccountManagerService.java
751fdc09bb7ab0ce6feac7b7a823e38ed858feb0 09-Feb-2010 Fred Quintana <fredq@google.com> only make AccountManager throw an exception on blocking calls in the UI thread if the application's SDK is froyo or later
ccountManager.java
ccountManagerService.java
53bd2522ca7767f46646606123b6e2689b811850 06-Feb-2010 Fred Quintana <fredq@google.com> - change the SyncManager to retry MANUAL syncs that encounter a soft error
- make the sync dump handle the case where there are no accounts
- fix a bug that caused the SyncManager to burn up CPU in the system process

The following was implemented:

scheduler offers:
- settings to disable sync
- retries of certain errors
- backoffs

want a way to control these when scheduling a sync
- "ignore_settings"
- "ignore initial backoff"
- "manual" : ignore settings, ignore initial backoff
- "do not retry"

- need to change the default behavior of not retrying manual syncs to retry regardless
ccountManager.java
c5d1c6db61f208b206b260f897bb5bbc64be4d97 27-Jan-2010 Fred Quintana <fredq@google.com> add sync polling

- added the ability to specify that a sync (of account/authority/extras)
should occur at a given frequency
- the existing daily poll code was replaced with seeding each
account/authority with a 24 hour periodic sync
- enhanced the "adb shell dumpsys content" output to show the
periodic syncs and when they will next run
ccountManager.java
307da1a46b4c9b711bafe8fbaaa6b98e8868c18e 21-Jan-2010 Fred Quintana <fredq@google.com> enhance the sync manager backoff logic and add support for retry-after

moved SyncQueue and SyncOperation into their own top-level classes
to ease maintainability and testing6

removed some dead code
ccountManagerService.java
3084a6f80180506ce26fe4773d9a19f004b7f625 15-Jan-2010 Fred Quintana <fredq@google.com> rename testHasFeatures to hasFeatures
ccountManager.java
ccountManagerService.java
AccountManager.aidl
bb68a4fc54231e147d91fe3668d1409ccfd81a45 14-Jan-2010 Fred Quintana <fredq@google.com> add AccountManager.testHasFeatures() to make it easy to check if a given account has a set of features
ccountManager.java
ccountManagerService.java
AccountManager.aidl
1060147d5c3599f5035234dd2df28467495bfcc1 07-Jan-2010 Ying Wang <wangying@google.com> am 80410b55: am 42c98ada: Still use ro.monkey

Merge commit '80410b55f1eccf345fb6a01ca9a277935ac4098f'

* commit '80410b55f1eccf345fb6a01ca9a277935ac4098f':
Still use ro.monkey
42c98ada113ae5b7c72ecb6d0de721ec1d0d3534 05-Jan-2010 Ying Wang <wangying@google.com> Still use ro.monkey

http://b/issue?id=1681101
ccountManagerService.java
24c10062cdced5ab9b2abd418bca22f5cce09066 04-Jan-2010 Ying Wang <wangying@google.com> am 5c529a0c: am 08fa1428: Rename ro.monkey to monkey.running

Merge commit '5c529a0cb587d0dfa38e5642e268ca56285a356f'

* commit '5c529a0cb587d0dfa38e5642e268ca56285a356f':
Rename ro.monkey to monkey.running
08fa1428eed52083789dc3b366aea4873199bd37 04-Jan-2010 Ying Wang <wangying@google.com> Rename ro.monkey to monkey.running

So that Monkey can set ro.mokey before running and reset it after running.
ccountManagerService.java
0b957851c5bc3c95aa204a47e4a822921d5946b9 03-Dec-2009 Fred Quintana <fredq@google.com> am 74f7b139: am f307ec5d: Merge change Iafa92b8f into eclair-mr2

Merge commit '74f7b139d0e380969268f44d5358db08e0325394'

* commit '74f7b139d0e380969268f44d5358db08e0325394':
remove accounts for authenticators that are uninstalled
afa92b8f3d8f85fe2dde309f8f778926396539ea 02-Dec-2009 Fred Quintana <fredq@google.com> remove accounts for authenticators that are uninstalled
ccountManagerService.java
a8529f68671a8a118751cb6ad577f44eaf076b96 18-Nov-2009 Oscar Montemayor <oam@google.com> Encrypted File Systems Project. Installer modifications.
Started to modify isntaller for data redirection to a secure location.
ccountManagerService.java
f61ab00770c6010d83280644263d6f530c75028e 19-Nov-2009 Fred Quintana <fredq@google.com> am 5994cd28: -hide AccountManagerResponse, which never should have been exposed in the first place

Merge commit '5994cd2898ad3c76d1f5068137a884024f521163' into eclair-mr2

* commit '5994cd2898ad3c76d1f5068137a884024f521163':
-hide AccountManagerResponse, which never should have been exposed in the first place
5994cd2898ad3c76d1f5068137a884024f521163 19-Nov-2009 Fred Quintana <fredq@google.com> -hide AccountManagerResponse, which never should have been exposed in the first place
ccountManagerResponse.java
60ff11dc393931c10845568bf43b6674dde04a82 14-Nov-2009 Fred Quintana <fredq@google.com> fix an npe when a user tries to get an auth token from an authenticator that doesn't support it, like exchange
rantCredentialsPermissionActivity.java
735f45538650728e9ca9856b9ff87ec54c972f04 12-Nov-2009 Fred Quintana <fredq@google.com> resolved conflicts for merge of ae0cf6dc to eclair-mr2
5ebbb4a6b3e16f711735ae0615b9a9ea64faad38 10-Nov-2009 Fred Quintana <fredq@google.com> Make the RegisteredSErvices Cache not allow the registered service for a
type to change without first uninstalling the previous service for that
type, unless the newly installed service is in the system image.

Notify the listener when a service is added or removed.

Make the AccountManagerService remove the accounts for an authenticator
when the registered authenticator changes from one uid to another.

Make the AbstractSyncableContentProvider force a sync when the database is first created.
ccountAuthenticatorCache.java
ccountManagerService.java
uthenticatorDescription.java
6b9954790e6f4f48d9585dd50131d8080a086cc8 30-Oct-2009 Fred Quintana <fredq@google.com> am fae288c7: Merge change I9efe265f into eclair

Merge commit 'fae288c7987f96df05e91ed154e934de267098be' into eclair-mr2

* commit 'fae288c7987f96df05e91ed154e934de267098be':
unhide AccountManagerResponse
7fb4e4aaf2137474a6abe0d95888e133d4075527 30-Oct-2009 Ed Heyl <edheyl@google.com> am 154d61fc: Merge change Id6f158b3 into eclair

Merge commit '154d61fc99964bc5ad13384027f063e77b36f9eb' into eclair-mr2

* commit '154d61fc99964bc5ad13384027f063e77b36f9eb':
Removed javadoc link to hidden class (temporary fix for build)
492dbe17527e27ba712d185a1eac22ae149c67c0 30-Oct-2009 Costin Manolache <costin@google.com> am 4388b988: Merge change Idc4c7714 into eclair

Merge commit '4388b98845e6a28c689e500cd6ed1e9bb29a2c12' into eclair-mr2

* commit '4388b98845e6a28c689e500cd6ed1e9bb29a2c12':
Revert the changes that introduced new exception that wouldn't have occured before, applications don't seem to be able to handle them and we get crashes.
c81e43c8ee31d986e34ee892b7d7bfbf70f82da7 30-Oct-2009 Marco Nelissen <marcone@google.com> resolved conflicts for merge 31957f1b to eclair-mr2
fae288c7987f96df05e91ed154e934de267098be 29-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I9efe265f into eclair

* changes:
unhide AccountManagerResponse
154d61fc99964bc5ad13384027f063e77b36f9eb 29-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Id6f158b3 into eclair

* changes:
Removed javadoc link to hidden class (temporary fix for build)
88a211b148dd94df1f178338c94fdd7d01f53863 29-Oct-2009 Costin Manolache <costin@google.com> Revert the changes that introduced new exception that wouldn't have occured before, applications don't seem to be able to handle them and we get crashes.
ccountManager.java
ccountManagerService.java
d6f158b3684acdf877ff6afb7208e1140afc4e12 29-Oct-2009 Ed Heyl <edheyl@google.com> Removed javadoc link to hidden class (temporary fix for build)
bstractAccountAuthenticator.java
9efe265f086d482802c236ae1a4ef75507efa76d 29-Oct-2009 Fred Quintana <fredq@google.com> unhide AccountManagerResponse
ccountManagerResponse.java
31957f1badbb900bbfe211317e1ea992d650a72d 21-Oct-2009 Fred Quintana <fredq@google.com> - add javadoc for the account manager
- add some checks to the AccountManagerService to keep it from crashing when a null is passed in
- cleaned up the API a bit
bstractAccountAuthenticator.java
ccountAuthenticatorActivity.java
ccountManager.java
ccountManagerService.java
b81199b3eed6f6079e5dc7bedeaa50712f3d9b11 24-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I885cfc23 into eclair-mr2

* changes:
make the password-clearing algorithm smarter
f3971747506ca9055e7b5c42a809ac12f8c26ad3 23-Oct-2009 Fred Quintana <fredq@google.com> am 0bf653b5: am f4520f3e: Merge change I9161f53d into eclair-sdk

Merge commit '0bf653b531b8582012ed211fe65e50702589a7c4' into eclair-mr2

* commit '0bf653b531b8582012ed211fe65e50702589a7c4':
update account manager javadoc
756b735e9312ee52618158270f0bdd0ec691a712 21-Oct-2009 Fred Quintana <fredq@google.com> update account manager javadoc
bstractAccountAuthenticator.java
ccountAuthenticatorActivity.java
ccountManager.java
ccountManagerFuture.java
uthenticatorDescription.java
885cfc23a42f2a4f8578e6a2182af4d9a0a78b1f 22-Oct-2009 Doug Zongker <dougz@android.com> make the password-clearing algorithm smarter

Remove the ro.config.sim_password_clear property; go back to enabling
this for all devices. For GSM devices, we clear the password on SIM
change as before. For CDMA devices, we only clear when the device is
provisioned with a different number; we don't clear the password while
the device is unprovisioned.
ccountManagerService.java
1a23191bbde11505d6e0c25c04a60b41cb27fd31 15-Oct-2009 Fred Quintana <fredq@google.com> fix build
ccountManagerService.java
b839afc33ea4a7b549b6dd703e5c48858ce877d0 15-Oct-2009 Fred Quintana <fredq@google.com> remove the bind helper and bind directly
ccountManagerService.java
uthenticatorBindHelper.java
c4989b1b75848acbeaf53850fbcfbf2f8812e325 13-Oct-2009 Fred Quintana <fredq@google.com> update the authtoken permission granting UI

http://b/issue?id=2165284
rantCredentialsPermissionActivity.java
7fa8c508e0ebc8d8190fa8860d1f3bab819df081 13-Oct-2009 Doug Zongker <dougz@android.com> make erase-password-on-SIM-change optional

Make this "feature" controlled by a system property so it can be
enabled only for carriers that want it.
ccountManagerService.java
ea48361d47a2d566922ef26a41ea12d719347618 08-Oct-2009 Fred Quintana <fredq@google.com> fix an NPE on a race condition that occurs when unbinding from an authenticator at the samer time that its process dies: bug 2171204
uthenticatorBindHelper.java
5fbaefc3d8840aac12b16458347b3c1ddbdaf542 06-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I4db3a5b3 into eclair

* changes:
fix a javadoc build breakage
4db3a5b327038e4dc1bc58e3213bb9ad0719bcc1 06-Oct-2009 Fred Quintana <fredq@google.com> fix a javadoc build breakage
ccountManager.java
89c40f50347f8ec3128611a7d1c5e4e0eeb01fc2 05-Oct-2009 Fred Quintana <fredq@google.com> fix a javadoc build breakage
ccountAuthenticatorResponse.java
f7ae77cd67f1a3993b8e56c1af4720a7adf4e69d 03-Oct-2009 Fred Quintana <fredq@google.com> account manager api review changes
bstractAccountAuthenticator.java
ccountAuthenticatorActivity.java
ccountAuthenticatorCache.java
ccountAuthenticatorResponse.java
ccountManager.java
ccountManagerFuture.java
ccountManagerService.java
ccountsException.java
uthenticatorException.java
hooseAccountActivity.java
onstants.java
rantCredentialsPermissionActivity.java
AccountAuthenticator.aidl
AccountAuthenticatorResponse.aidl
AccountManager.aidl
etworkErrorException.java
nAccountsUpdateListener.java
nAccountsUpdatedListener.java
perationCanceledException.java
3348f14b3d46b172a5b557f81aac526b7e8bf5fb 30-Sep-2009 Costin Manolache <costin@google.com> Remove GAIA string
ccountManagerService.java
1cd7d0e591b61a1e5d0be4073e9b9f976279cc84 28-Sep-2009 Jason Parks <jparks@google.com> Implement the checkin option in AccountManagerService.dump()

When the dump is requested by the checkin server the AccountManagerService will now dump each account type and the number accounts that are registered/active for that account type.
ccountManagerService.java
5be61f5b3ad61706b72c1f6b00914ab042dc6bed 24-Sep-2009 Bryan Mawhinney <bryanmawhinney@google.com> Make removeOnAccountsUpdateListener cope with null handlers.

Previously, if callers registered OnAccountsUpdateListeners with a null handler,
removeOnAccountsUpdateListener would fail attempting to remove the listener.

Change-Id: If9906d3711f816e60c4b491b7f33671f089ac00f
ccountManager.java
50c05f38b3728b7430dd4bb8d98565d9c5e56798 22-Sep-2009 Jim Miller <jaggies@google.com> Delay broadcasting ACCOUNTS_CHANGED until we're certain AndroidId is ready.

Make sure 'nobroadcast' flag doesn't get stored in database.
Update after review.
ccountManagerService.java
e00a31155b95686eecc6e1999e904472f8f300ca 23-Sep-2009 Fred Quintana <fredq@google.com> - make an AccountManager per context, not one per process
- enhance the comment for addOnAccountsUpdatedListener()
ccountManager.java
86bd084cf683e9877b4146918192b3fe5e268cf5 18-Sep-2009 Fred Quintana <fredq@google.com> do not use transactions for calls that just read the DB
ccountManagerService.java
3ecd5f437580e49d80beecd29489d5fb1f7a7db0 17-Sep-2009 Fred Quintana <fredq@google.com> - Make the AccountManagerService delete accounts that
have no Authenticator, both when the package is removed
and when the phone is booted.
- add the ability to register with the RegisteredServicesCache
to be notified when the set of Authenticators changes.
ccountManagerService.java
6dfd1382fe43592b9602fc6553e820c64067c759 17-Sep-2009 Fred Quintana <fredq@google.com> remove the signin required notification as when the signin is successful
ccountManagerService.java
ee452ee5359cdfa3c3fbf6783722d3aaa2ec5ca6 01-Sep-2009 Eric Fischer <enf@google.com> Combine the "Permission Requested" title and subtitle into one string.

The translators don't get the strings in order, so having a single sentence
split across two strings makes it difficult to get good translations.
ccountManagerService.java
33f889ae270f888f8fdc084f5f1f3d443532a46a 15-Sep-2009 Fred Quintana <fredq@google.com> change to use the new CALLER_IS_SYNCADAPTER flag
ccountManagerService.java
27844c386e5567a91ab781265ae5ad40d0ab1e27 12-Sep-2009 Jim Miller <jaggies@google.com> Enable log message for tracking issue #2092299.
ccountManagerService.java
d3e061fc8f4a2a1e6b98ee43fd706ac09c786b61 12-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24609 into eclair

* changes:
If disk-full, don't crash the system server. Still todo: when we have disk we should trigger the event again.
70e1ad7d99c95967e3c0257bddc7b4ec6c403372 10-Sep-2009 Jim Miller <jaggies@google.com> Add smallIcon and accountPreferences references to AuthenticatorDescription. Update after path conflict.

Update API for new AuthenticatorDescription preferences.xml
ccountAuthenticatorCache.java
uthenticatorDescription.java
b6437245c280596d0a580b8d67189739cf793250 11-Sep-2009 Costin Manolache <costin@google.com> If disk-full, don't crash the system server. Still todo: when we have disk we should trigger the event again.
ccountManager.java
ea6fca8231c94064917e40dea23be8df50930cf9 03-Sep-2009 Christian Sonntag <cxs@google.com> fix doc
onstants.java
a9b1a7f6c05536e836c1752e0307f2226bce0d38 03-Sep-2009 Christian Sonntag <cxs@google.com> fix doc
onstants.java
5b462477a90cd08551149fc649ff3035b5331d2d 02-Sep-2009 jsh <jsh@google.com> Fix some sign in errors.

AccountManagerService.SimWatcher was checking if storedImsi = "initial"
instead of null as an initial condition. Also, on NV-only CDMA devices
we were only sending SIM_STATE_CHANGED notifications when the radio
powered down, which meant storedImsi was only initialized if the radio
powered down.
ccountManagerService.java
c298a8518a8fd73a303132c7db241f10eb46c5b6 28-Aug-2009 Fred Quintana <fredq@google.com> add an accessor for Context for use by subclasses
ccountAuthenticatorCache.java
uthenticatorDescription.java
7be5964e74978ebc7d5fd24562de5738d31cf009 25-Aug-2009 Fred Quintana <fredq@google.com> - make it ok to modify the accounts before boot
- allow packages in the system image to access any authtokens they wish
ccountManagerService.java
4a51c20ce607c74914f90fd897f04080121ac13b 22-Aug-2009 Dianne Hackborn <hackbod@google.com> I am getting tired of the java doc warnings, so fix them.

Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
ccountManager.java
ccountManagerFuture.java
AccountAuthenticator.aidl
ffd0cb04f97e62d286d185c520580d81a9c328b1 16-Aug-2009 Fred Quintana <fredq@google.com> do not merge: cherrypicked 3710f390968e683a0ad3adf0b517dfcade3564ce from master branch
bstractAccountAuthenticator.java
ccount.java
ccountManager.java
ccountManagerCallback.java
ccountManagerFuture.java
ccountManagerService.java
hooseAccountActivity.java
onstants.java
uture1.java
uture1Callback.java
uture2.java
uture2Callback.java
rantCredentialsPermissionActivity.java
AccountAuthenticator.aidl
AccountManager.aidl
d4a1d2e14297a3387fdb5761090961e714370492 17-Jul-2009 Fred Quintana <fredq@google.com> add account manager permission checking
bstractAccountAuthenticator.java
ccountManager.java
ccountManagerService.java
onstants.java
rantCredentialsPermissionActivity.java
AccountAuthenticator.aidl
ae4f31706fa0589ede00dfce344779a1570cd2f3 14-Jul-2009 Fred Quintana <fredq@google.com> - add the DIRTY and VERSION columns to the ContactsProvider2 Groups contract
- make android.accounts.AccountAuthenticator into a public constant
ccountAuthenticatorCache.java
onstants.java
0f4e1ab773d4d52bfb85a9ad2f050ead3b8b4e49 10-Jul-2009 Fred Quintana <fredq@google.com> - remove an un-needed constant
- add a content provider helper that manages a table for storing sync state by account
- add contact definitions to Contacts access the sync state
onstants.java
8b81160054184d7cbddeab3bae9a7a53e44c9e77 25-Jun-2009 Fred Quintana <fredq@google.com> add a new error code ERROR_CODE_BAD_REQUEST
onstants.java
9788976b1465ce982b5ae7c741345edd0ecd9322 15-Jun-2009 Fred Quintana <fredq@google.com> add icon and label to the authenticator description
ccountAuthenticatorCache.java
ccountManager.java
ccountManagerService.java
uthenticatorBindHelper.java
uthenticatorDescription.aidl
uthenticatorDescription.java
AccountManager.aidl
718d8a2d7ff3e864a73879eb646f46c14ab74d07 30-Apr-2009 Fred Quintana <fredq@google.com> decouple SyncAdapter from ContentProvider
ccountAuthenticatorCache.java
ccountManagerService.java
uthenticatorBindHelper.java
0eabf0228a17e07ef831bc1ee1951c9697d2a079 28-Apr-2009 Fred Quintana <fredq@google.com> change the IsolatedContext to have a test version of the AccountManager that has no IBinder to the AccountManagerService.
ccountManager.java
d9d2f1140b52fd0c014e9deac59f6000564b7e84 23-Apr-2009 Fred Quintana <fredq@google.com> change the sync framework and users to understand Account
ccountManager.java
ccountMonitor.java
ccountMonitorListener.java
nAccountsUpdatedListener.java
3326920329cecb57c7ff1fc5c6add5c98aab9ed9 21-Apr-2009 Fred Quintana <fredq@google.com> adding concept of features to accounts
bstractAccountAuthenticator.java
ccountManager.java
ccountManagerResponse.java
ccountManagerService.java
hooseAccountActivity.java
onstants.java
AccountAuthenticator.aidl
AccountManager.aidl
AccountManagerResponse.aidl
26fc5eba506bf29f7f5343e836484a43702c8dea 10-Apr-2009 Fred Quintana <> AI 145535: reenable the signin notifications
the system process has permissions to control this
notification but the caller doesn't do we need to call
clearCallerIdentity() before manipulating the notification
BUG=1778648

Automated import of CL 145535
ccountManagerService.java
a698f4276968d078b1b9e2f3738c4f559a3307b2 09-Apr-2009 Fred Quintana <> AI 145177: phase two of the AccountManager
- added an AccountManagerActivity, a base Activity that can be
used by activities that are launched by AccountAuthenticator
intents. This makes it easy for an Activity to send a result
using an AccountAuthenticatorResponse
- added debug strings to the AccountAuthenticatorCache
- improved the API for the AccountAuthenticatorResponse and
made it Parcelable so that it can be passed to an Activity
via an Intent
- changed the AccountManager to use Futures for the
asynchronous calls and to notify the user via a callback
when the request is complete
- changed the AccountManager to convert any errors that are
returned into Exceptions
- added constants for the error codes that are passed across
the IAccountManagerResponse and
IAccountAuthenticatorResponse interfaces
- added a dump() method to the AccountManagerService so that
it can display the list of active sessions and registered
authenticators
- added an way to interrogate the AccountManagerService for
the list of registered authenticators
- removed more methods from the GoogleLoginServiceHelper and
GoogleLoginServiceBlockingHelper and changed the callers to
use the AccountManager

Automated import of CL 145177
bstractAccountAuthenticator.java
ccount.java
ccountAuthenticatorActivity.java
ccountAuthenticatorCache.java
ccountAuthenticatorResponse.java
ccountManager.java
ccountManagerResponse.java
ccountManagerService.java
ccountMonitor.java
ccountsServiceConstants.java
uthenticatorBindHelper.java
uthenticatorException.java
onstants.java
uture1.java
uture1Callback.java
uture2.java
uture2Callback.java
AccountAuthenticator.aidl
AccountAuthenticatorResponse.aidl
AccountManager.aidl
AccountManagerResponse.aidl
etworkErrorException.java
perationCanceledException.java
603073430bbcb1bd29db7afb9b14e2732ad589fb 25-Mar-2009 Fred Quintana <> Automated import from //branches/master/...@142414,142414
bstractAccountAuthenticator.java
ccount.aidl
ccount.java
ccountAuthenticatorCache.java
ccountAuthenticatorResponse.java
ccountManager.java
ccountManagerResponse.java
ccountManagerService.java
ccountMonitor.java
uthenticatorBindHelper.java
AccountAuthenticator.aidl
AccountAuthenticatorResponse.aidl
AccountManager.aidl
AccountManagerResponse.aidl
AccountsService.aidl
ackage.html
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ccountMonitor.java
ccountMonitorListener.java
ccountsServiceConstants.java
AccountsService.aidl
ackage.html
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ccountMonitor.java
ccountMonitorListener.java
ccountsServiceConstants.java
AccountsService.aidl
ackage.html
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
ccountMonitor.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
ccountMonitor.java
ccountMonitorListener.java
ccountsServiceConstants.java
AccountsService.aidl
ackage.html