From 838988bf34229b33ed39bb7dc7109427da264c81 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 25 Sep 2015 17:12:58 -0700 Subject: Add BLOCKED call type and util to mark in call log. To support call blocking, added BLOCKED call type. Also added utility to be able to mark the most recent call from a number as BLOCKEd in the call log database. Added REJECTED call type as well. This is not presently used within our application, but we want to reserve the integer, anticipating changes in the framework to add this constant. Introduced AppCompConstants, because BLOCKED and REJECTED call type values will not be defined as part of the API on M devices. Change existing call type constants to reference this compatability class. Bug: 24341350 Change-Id: I523ebd8dd1844a3b71a69a14bd38073be5940804 --- .../com/android/dialer/CallDetailActivityTest.java | 3 +- .../android/dialer/calllog/CallLogAdapterTest.java | 19 ++-- .../dialer/calllog/CallLogGroupBuilderTest.java | 116 +++++++++++++-------- .../dialer/calllog/CallLogListItemHelperTest.java | 49 +++++---- .../dialer/calllog/PhoneCallDetailsHelperTest.java | 48 ++++++--- .../tests/calllog/FillCallLogTestActivity.java | 17 +-- 6 files changed, 158 insertions(+), 94 deletions(-) (limited to 'tests/src/com') diff --git a/tests/src/com/android/dialer/CallDetailActivityTest.java b/tests/src/com/android/dialer/CallDetailActivityTest.java index 59c2434f2..27fbc304e 100644 --- a/tests/src/com/android/dialer/CallDetailActivityTest.java +++ b/tests/src/com/android/dialer/CallDetailActivityTest.java @@ -33,6 +33,7 @@ import android.widget.PopupMenu; import android.widget.TextView; import com.android.dialer.calllog.CallLogAsyncTaskUtil; +import com.android.dialer.util.AppCompatConstants; import com.android.dialer.util.AsyncTaskExecutors; import com.android.dialer.util.FakeAsyncTaskExecutor; @@ -121,7 +122,7 @@ public class CallDetailActivityTest extends ActivityInstrumentationTestCase2