History log of /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/EnterprisePolicyGuardTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a27f51a4850ae800fde5952a658f4882bd5a550b 10-May-2016 Tony Mak <tonymak@google.com> Add test for EnterpriseGuard to test against the newly added user setting

Added test for user setting is off. We restore the setting when the test
finishes.

Bug: 28583241

Change-Id: Ifdc72b27b21f6884787bcb37fac4ec56a2bb49ce
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/EnterprisePolicyGuardTest.java
6438a1b52b1e0fac58ddbb54b6a364c32c57f00b 04-Feb-2016 Ricky Wai <rickywai@google.com> Centralize EnterprisePolicyGuard checking code in CP2.

Also modifed enterprise policy guard checking code checking from primary CP2 to work CP2,
So all cross profile queries to CP2 will be checked in CP2's query().

Bug: 26558513

Change-Id: Ib1e212817c4fe398551c581e8b5b92c6cf510a55
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/EnterprisePolicyGuardTest.java
1c720c47fdf502f527b05843ec9eca65289d5283 06-Jan-2016 Victor Chang <vichang@google.com> Show photo of enterprise directory contact in personal dialer

Implement the following uri conversion for enterprise directory photo uri
1. Personal CP2: content://com.android.contacts/directory_file_enterprise/content%3A%2F%2Fcom.google.contacts.gal.provider%2F<PATH>?directory=1000000003
2. Corp CP2: content://12@com.android.contacts/directory_file_enterprise/content%3A%2F%2Fcom.google.contacts.gal.provider%2F<PATH>?directory=3
3. GalProvider: content%3A%2F%2Fcom.google.contacts.gal.provider%2F<PATH>

BUG=25981851

Change-Id: I0e0ea19d589d54a39881f5ecc7d0257dde83ddde
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/EnterprisePolicyGuardTest.java
6040ab71df843cbb9562ded8b819bfff1c0d9838 05-Jan-2016 Victor Chang <vichang@google.com> Create a new device policy for controlling work contacts search

Extra things:
1. fixed b/26399207
2. ContactsActor.java is changed to avoid failed unit test
because of using getSystemService(serviceClass) in EnterprisePolicyGuard
3. Make ContactsProvider2.sUriMatcher and all uri codes public

BUG=25981902, 26399207

Change-Id: I0025b809a39ff31663a15cfbcdfd087a98187c44
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/enterprise/EnterprisePolicyGuardTest.java