History log of /packages/providers/ContactsProvider/src/com/android/providers/contacts/util/UserUtils.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d2f3ed91e988e487ab4213c5c27659097d490c18 10-Feb-2016 Ricky Wai <rickywai@google.com> Fix failed enterprise unit tests in CP2

Changes:
- queryCorpContactsProvider will throw exception if
it receives non-cp2 query
- Resolved the conflicts between ag/861964 and ag/861953
so test cases will check empty cursor not null cursor
- Remove getCorpUserHandle(c) in tests as no code using it.
(Proguard will stripped out unused method in CP2 and cause test fails)

Bug: 27114665
Change-Id: I33e87ada0bc1b62174c9a0d9df8840ba3fa23a3c
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/UserUtils.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/src/com/android/providers/contacts/util/UserUtils.java
42d5b79db882739368b163f4d5f61546d134cdbb 27-Mar-2015 Ricky Wai <rickywai@google.com> Remove caller-id check in enterprise phone and raw contacts entities

Bug: 19990833

Change-Id: Ibba3a0594262b975b3b4fdd4ebd1fcf1e40ff98a
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/UserUtils.java
abaa423fa15f00b07b9c92c16ee186c909cac145 23-Jan-2015 Kenny Guy <kennyguy@google.com> Fix cross profile caller id to use manager profiles userid.

Cross profile caller id was checking myUserId when
deciding whether to allow caller id from manged profiles
where it should have used the managed profiles userid.

Bug: 19122752
Change-Id: I230fc933655cd9464d00b619a383ff0682660c12
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/UserUtils.java
b0828df351e8b261ab36c8af37929bf3d9d6a4f9 17-Jul-2014 Makoto Onuki <omakoto@google.com> Check DPM.getCrossProfileCallerIdDisabled in caller-id

- Also add a test for UserUtils
- Also fix broken tests due to UserUtils.

Bug 16467654
Bug 15779911
Bug 16458399

Change-Id: I64a4526b512fce94590b75eae037a8bdcd874064
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/UserUtils.java
3b34457a4cc0d2c55676f366ddc673091a198adb 17-Jul-2014 Yorke Lee <yorkelee@google.com> Sync call log entries from the primary user into the secondary user's call log

On startup of a secondary user's call log provider, sync any call log entries from
the primary user's call log that are:

1) Newer than the last sync time
2) Not a voicemail
3) Not a duplicate entry (identified by the number, and start time of the call)

Bug: 16298776
Change-Id: I843dfd8dd5c9433942e610cbbc2dfed95c29dd1c
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/UserUtils.java
a73b09bd8df85c93f1c95356efc1c41c103b11cc 17-Jul-2014 Yorke Lee <yorkelee@google.com> Fix broken tests in CP2

Change-Id: I1c198cbf086c7f267178a26d2a50123a8edaec12
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/UserUtils.java
d841fcb6aeb9fe7cb9454668bf641782f88f4382 16-Jul-2014 Makoto Onuki <omakoto@google.com> Address comments on commit 498944

Bug 15779911

Change-Id: I68ea7be682696efb40ff3bfc0ac615466402c8db
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/UserUtils.java
5f9dbc1d2645f20ce883c11f6b2511503cecf8ce 09-Jul-2014 Makoto Onuki <omakoto@google.com> Add the enterprise caller-id API

Also Moved UserUtils to utils/

Bug 15779911

Change-Id: Ia4445772f12ebbc0f7832f3700c6fecf2ba13dd2
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/UserUtils.java