From ff88f7bbe07fb3e267af49427adf1a91e3fc21e9 Mon Sep 17 00:00:00 2001 From: zachh Date: Tue, 9 Jan 2018 17:29:06 -0800 Subject: Added RealtimeRowProcessor. This is for performing work inside of the call log's RecyclerView, when the view holder is bound. Most of the time, this should be a no-op but there are possible edge cases where the call log data cannot be updated efficiently through the standard batch mechanism. One example of this is when there are too many invalid numbers in the call log; the CP2 information for invalid numbers cannot be efficiently batch updated so we fetch this information at display time. (Note that we do handle up to 5 invalid numbers in the batch update mechanism, but if there are more than that we fallback to this realtime processing.) Test: unit, manual PiperOrigin-RevId: 181400016 Change-Id: Iea6b380742e757b48d19f319fe46dc5fae837604 --- .../calllog/database/contract/AnnotatedCallLogContract.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java') diff --git a/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java b/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java index 1b3e09095..9161d6087 100644 --- a/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java +++ b/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java @@ -185,6 +185,13 @@ public class AnnotatedCallLogContract { */ String CAN_REPORT_AS_INVALID_NUMBER = "can_report_as_invalid_number"; + /** + * True if the CP2 information is incomplete and needs to be queried at display time. + * + *

TYPE: INTEGER (boolean) + */ + String CP2_INFO_INCOMPLETE = "cp2_info_incomplete"; + String[] ALL_COMMON_COLUMNS = new String[] { _ID, @@ -207,7 +214,8 @@ public class AnnotatedCallLogContract { IS_BUSINESS, IS_VOICEMAIL, CALL_TYPE, - CAN_REPORT_AS_INVALID_NUMBER + CAN_REPORT_AS_INVALID_NUMBER, + CP2_INFO_INCOMPLETE }; } -- cgit v1.2.3