• Home
  • History
  • Annotate
  • only in /frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
History log of /frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d62dc39dc5a31c2c150fc5083e5a520fcb394c63 01-Jun-2017 sunjian <sunjian@google.com> Update AccountManagerService side logic for .getAccountsByTypeForPackage
with null type.

Bug: 37987384
Test: manual, APCT
Change-Id: I4d5f735736f1b1d7bbf778aee2ec813071c34f19
ccountManagerServiceTest.java
f29d549c2d16f377fe11261b98d77d2c9db1070c 12-May-2017 sunjian <sunjian@google.com> Fix visibility issue in AccountManager.getAuthTokenByFeatures.

Bug: 34679769
Test: manual, APCT
Change-Id: I7270a5a5dd681ad088fa28e48d849ba3541e45cd
ccountManagerServiceTest.java
ccountManagerServiceTestFixtures.java
estAccountType1Authenticator.java
b6a7dc033ceb11df2d4e95dc1bb272362332e557 18-Apr-2017 Dmitry Dementyev <dementyev@google.com> Update PACKAGE_REMOVED broadcast.

1) Include KEY_ACCOUNT_NAME and KEY_ACCOUNT_TYPE.
2) Only send the broadcast to packages which were able to see the
account.

Test: manual, APCT.
Bug:37280078

(cherry picked from commit cbbc99f76224cedb6d680c3cd7f0afc9cc912202)

Change-Id: I3c323e545628199903313096f93654687fa8f22b
ccountManagerServiceTest.java
a461e30053da64966d632a9655d0dca0daac983c 12-Apr-2017 Dmitry Dementyev <dementyev@google.com> Add ACTION_ACCOUNT_REMOVED to Account Manager.

AccountManagerService sends an intent with the action when account of any type is removed or renamed.

Test: manual, APCT.
Bug: 37280078

Change-Id: I53b1bb9d6cde1edba5c37ecf3e4e13d748b19005
ccountManagerServiceTest.java
5c80debe867cff368546b0d8ba0b81d27e88c3d6 04-Apr-2017 Dmitry Dementyev <dementyev@google.com> Clear calling identity before getUserAccounts in
AccountManagerService

Fix accountsDb tests.

Bug: 36860606
Test: manual
Change-Id: Iad86d1bf7edd0f847262562ace9c2d5c9fdff978
(cherry picked from commit 9fc6f574b43c938913fad7a2ed04b5a7c717bd68)
ccountsDbTest.java
71fa5261d335a877453383eea911e9f51ad15589 23-Mar-2017 Dmitry Dementyev <dementyev@google.com> Add cache for Account Visibility values.

Test: cts
Bug: 36485175
Change-Id: I075b81f8b287199d51ea09dc1108748310ab846c
ccountManagerServiceTest.java
ccountsDbTest.java
2290efde5501766f14d840e41930490e853a5e57 22-Mar-2017 Fyodor Kupolov <fkupolov@google.com> Added concurrency test

Test 2 threads repeatedly calling getAccounts while 1 thread calls
setAuthToken.

Example output:
I AccountManagerServiceTest: readTotalTime=1468 avg=36.7
I AccountManagerServiceTest: writeTotalTime=813 avg=40

Bug: 36485175
Test: AccountManagerServiceTest
Change-Id: Iee66339ceeb8f149eb9fc0906c537db60465d475
ccountManagerServiceTest.java
8882d881f95f5719a4a9c3eb3f6555b4882e8c4d 15-Mar-2017 Dmitry Dementyev <dementyev@google.com> Implement runtime account update notifications.

Test: manual, cts.
Change-Id: Iaf9fe4814c3d3c2ca2dca0a5bfa0f997e060bfeb
ccountManagerServiceTest.java
ccountManagerServiceTestFixtures.java
e366f82cef233a3378964da93f7313aa9fdeb56a 31-Jan-2017 Dmitry Dementyev <dementyev@google.com> Update Account Discovery API.

Use package name instead of uid.
Check calling package name in getAccounts methods.

Bug: 34841115, 34841115
Test: cts tests, manual tests.
Change-Id: I8a9e6aea5e2b6677be4bc414836b842239c5b6ac
ccountManagerServiceTest.java
ccountsDbTest.java
01985ff6d249e434b900cd33718d830a948e3a86 20-Jan-2017 Dmitry Dementyev <dementyev@google.com> Implement Account Discovery API.

Inludes temporary flow for notifications filtered by accountType
Bug: 33046496
Test: cts tests, manual tests.
Change-Id: I2d767030e851579a0666efd7e243a1239af740c7
ccountManagerServiceTest.java
ccountsDbTest.java
8c505dbacb65ac8bd11b1061657c1a3b5abe1be2 25-Jan-2017 Hongming Jin <hongmingjin@google.com> Test: AccountManagerService APCT test.

APCT tests for AccountManagerService for getAccountsByFeatures

Bug: 31346530
Change-Id: I996d667fb72478f635a8afa5b53fb8b4d350b22a
ccountManagerServiceTest.java
estAccountType1Authenticator.java
a0c4d1d6bfd026de36a542d6d5cd82cd12740ee5 24-Jan-2017 Hongming Jin <hongmingjin@google.com> Test: AccountManagerService APCT test.

More APCT tests for AccountManagerService for session based functions:
hasFeatures, removeAccountAsUser, getAuthTokenLabel, getAuthToken,
addAccountAsUser

Bug: 31346530
Change-Id: Ie57973547aa676b83b56ee8664dd2de661ec4a7e
ccountManagerServiceTest.java
ccountManagerServiceTestFixtures.java
estAccountType1Authenticator.java
c1a892a967a902ba0407f206aede78b0a2c49e1e 23-Jan-2017 Hongming Jin <hongmingjin@google.com> Test: AccountManagerService APCT test.

Add tests for startUpdateCredentials, finishSession and isCredentialsUpdateSuggested.

Bug: 31346530
Change-Id: I8c93b6b0db50086a83894eadfcf6a2398be81b6c
ccountManagerServiceTest.java
estAccountType1Authenticator.java
81c4c8af206624f902efbd913fc3b26bb6842307 10-Jan-2017 Hongming Jin <hongmingjin@google.com> Test: AccountManagerService APCT test.

Setup test authenticators, add tests for startAddAccountSession.

Bug: 31346530
Change-Id: I0fb460a8a1c35e2c88c624d0e291b20051110b34
ccountAuthenticatorDummyActivity.java
ccountManagerServiceTest.java
ccountManagerServiceTestFixtures.java
reNTestDatabaseHelper.java
estAccountType1Authenticator.java
estAccountType1AuthenticatorService.java
estAccountType2Authenticator.java
estAccountType2AuthenticatorService.java
98e9e855438405cf5b760495a74cdf6e66e8b297 09-Dec-2016 Fyodor Kupolov <fkupolov@google.com> Always delete from CE table in removeAccountInternal

Test: AMSTest passes
Bug: 32660831
Change-Id: Iad40bf151f885a86eb6b4e074e9ec83159277e47
ccountManagerServiceTest.java
e5768621de9a41eb7b5449b6aa5a7a9579682a0a 21-Nov-2016 Dmitry Dementyev <dementyev@google.com> Add visibility table to account manager database.

Bug: https://b.corp.google.com/issues/33046496
Test: unit tests.
Change-Id: I92e94fb2185dbba965a5328048ada59fc2b5512a
ccountsDbTest.java
79d138e43fe9532ccc5a37f3ba20a0b1ee5aea78 04-Oct-2016 Fyodor Kupolov <fkupolov@google.com> Tests for AccountsDb

Test: AccountsDbTest pass
Bug: 30639520
Change-Id: I410c19cbb5f6056179297ce57a7e286d04268304
ccountsDbTest.java
da993806c2e40e88117dbe2ae5b0d8580318b1a1 21-Sep-2016 Fyodor Kupolov <fkupolov@google.com> Added dependency injection for testing

Also fixed an issue when tests occasionally were crashing on APCT.
Now tearDown waits for async logging tasks to complete before
removing db files.

Test: AMS tests are passing

Bug: 31630010
Change-Id: I98f7b0899e54f4927b493e36d16dd946b9ca13a9
ccountManagerServiceTest.java
d6d2855043ae26f8f8b1dadc84a0f7ae25594f2f 30-Aug-2016 Fyodor Kupolov <fkupolov@google.com> Fix AccountManagerServiceTest am: d954357860 am: 658b8e7e4b
am: eac40d9949

Change-Id: I27b4175f949e5416943a2a3782b772ce65b846e6
0f149f412b5491911ec975c051f8cf76d02c4e2c 26-Aug-2016 Fyodor Kupolov <fkupolov@google.com> Update services info before returning authenticators am: 814464894c am: 7540b79fee am: 69192b00e6
am: 44811aba74

Change-Id: Ie65a1d569c78860b4f5212ddf257408328267398
d9543578609c6035aa97844b45143a2ce6ff1bfe 26-Aug-2016 Fyodor Kupolov <fkupolov@google.com> Fix AccountManagerServiceTest

Unregister AccountManagerInternal before creating a new instance of
AccountManagerService, otherwise it will cause:
java.lang.IllegalStateException: Overriding service registration

Also overrode MockPm.addOnPermissionsChangeListener to be a noop and
not throw an exception.

Bug: 31071079
Change-Id: I0d24232eba655a68bf3fb38d7aa9edb92d469cea
ccountManagerServiceTest.java
814464894c16cc53bae7ba80b784bd3179123847 24-Aug-2016 Fyodor Kupolov <fkupolov@google.com> Update services info before returning authenticators

Added RegisteredServicesCache.updateServices method which allows callers
to request an update to services for which package has been updated.

Added a call to updateServices in getAuthenticatorTypesInternal

Test: Manually tested update flow on test authenticator with an artificial
delay in broadcast handling
Bug: 30979262
Change-Id: I499b2ee0be53fed01201c56068d929b6d621a78e
ccountManagerServiceTest.java
c7381e313d53a3f48b04f707adf2cf0eaf0e9edb 03-Aug-2016 Fyodor Kupolov <fkupolov@google.com> Added AccountManagerService tests for continuous testing

Also removed public visibility modifiers where it was not required

Bug: 30605114
Change-Id: I95be896cdd0c402d2759df7abf2d3517d182f32e
ccountManagerServiceTest.java
390802b6d3d64ea926490a7ff0deeff2ece25105 12-Apr-2016 Fyodor Kupolov <fkupolov@google.com> Test coverage for new FBE functionality

Added testRemovedAccountSync, which removes account when the user is locked,
and verifies that syncDeCeAccountsLocked works as expected.

Added testPreNDatabaseMigration to test that pre-N database with existing
data is properly upgraded and migrated.

Bug: 26279712
Change-Id: I3846c626f616b1c4830965c9f0cb27fa32ce6f54
ccountManagerServiceTest.java
reNTestDatabaseHelper.java
eeca6584cff3858e6993dd4b88f1b55418f07ad2 08-Apr-2016 Fyodor Kupolov <fkupolov@google.com> Make AccountManagerServiceTest work again

It was broken for quite a while. Introduced the following changes:
- Use mockito to mock AppOpsManager and UserManager
- Use MockContext directly and override what is necessary.
RenamingDelegatingContext doesn't work with absolute file names for
database paths, which is the case for system server DBs.

Bug: 26279712
Change-Id: I9f2a3892f9bd7a882d78f0bb7beb8669f7dc8c6f
ccountManagerServiceTest.java
9d8a1048bb666c68402dce031bebfa07c92a42db 04-Dec-2015 Jeff Sharkey <jsharkey@android.com> Handle non-encryption-aware accounts and sync.

The system can now boot in a "locked" state where only encryption
aware (EA) components can be safely started. When in this state,
PackageManager already filters away non-EA components, but system
services like AccountManager and SyncManager need to carefully handle
these temporarily "missing" components.

As a guiding principle, all known Accounts are still present when
the device is locked, but communication with underlying non-EA
authenticators is blocked.

To keep things simple for now, all SyncManager requests are kept
dormant until the user enters the unlocked state.

The core of this logic is that RegisteredServicesCache now works
with all components regardless of EA status, which prevents us from
accidentally thinking a service was removed when the user is locked.

Bug: 25945136
Change-Id: I8714121f6236b00821769023c4df7de1c8a99944
ccountManagerServiceTest.java
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
ccountManagerServiceTest.java
8a985d24ce9a38f40ed88fecbdcd0e75e3a68f44 25-Feb-2014 John Spurlock <jspurlock@google.com> Tabs -> spaces in frameworks/base.

Change-Id: I5a84e8e93ac99b5ed0212b37bf66efa5e53864be
ccountManagerServiceTest.java
31c0959b1a04f4e17d7528a6e4a9296701e3ade7 31-Mar-2013 Amith Yamasani <yamasani@google.com> Fix test

Change-Id: I329ceff03d3707e10c2e4eabfb8e6ea61082ae6d
ccountManagerServiceTest.java
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
ccountManagerServiceTest.java