From 21effc8643d93f6859914a951ad96ebb6cb3aa58 Mon Sep 17 00:00:00 2001 From: Jack Yu Date: Thu, 21 Nov 2019 20:10:15 -0800 Subject: [PATCH] Code clean up Remove database version 1~11 support since the format hasn't changed in the past 7 years. Bug: 135956699 Test: Manual Change-Id: I367124471f16073bb47a31c094d161d36969acc1 --- core/java/android/provider/Telephony.java | 14 -------------- telephony/java/android/telephony/SmsCbMessage.java | 3 ++- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/core/java/android/provider/Telephony.java b/core/java/android/provider/Telephony.java index add03160bbe91..9e454e63c8498 100644 --- a/core/java/android/provider/Telephony.java +++ b/core/java/android/provider/Telephony.java @@ -4154,20 +4154,6 @@ public final class Telephony { */ public static final String CID = "cid"; - /** - * Message code. OBSOLETE: merged into SERIAL_NUMBER. - *

Type: INTEGER

- * @hide - */ - public static final String V1_MESSAGE_CODE = "message_code"; - - /** - * Message identifier. OBSOLETE: renamed to SERVICE_CATEGORY. - *

Type: INTEGER

- * @hide - */ - public static final String V1_MESSAGE_IDENTIFIER = "message_id"; - /** * Service category which represents the general topic of the message. *

diff --git a/telephony/java/android/telephony/SmsCbMessage.java b/telephony/java/android/telephony/SmsCbMessage.java index c7f952954d5ff..045d1ebb56404 100644 --- a/telephony/java/android/telephony/SmsCbMessage.java +++ b/telephony/java/android/telephony/SmsCbMessage.java @@ -533,7 +533,8 @@ public final class SmsCbMessage implements Parcelable { + ", priority=" + mPriority + (mEtwsWarningInfo != null ? (", " + mEtwsWarningInfo.toString()) : "") + (mCmasWarningInfo != null ? (", " + mCmasWarningInfo.toString()) : "") - + ", maximumWaitingTime = " + mMaximumWaitTimeSec + + ", maximumWaitingTime=" + mMaximumWaitTimeSec + + ", received time=" + mReceivedTimeMillis + ", slotIndex = " + mSlotIndex + ", geo=" + (mGeometries != null ? CbGeoUtils.encodeGeometriesToString(mGeometries) : "null")