Merge "Optimize SIM phonebook feature with new APIs" into sc-dev am: 81d05fcd38

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14521565

Change-Id: I1f828c64a038be6ac23528ab5ddc60e30be92ace
This commit is contained in:
Sarah Chin
2021-05-18 21:48:16 +00:00
committed by Automerger Merge Worker
2 changed files with 15 additions and 0 deletions

View File

@@ -15024,6 +15024,15 @@ public class TelephonyManager {
public static final String CAPABILITY_PHYSICAL_CHANNEL_CONFIG_1_6_SUPPORTED =
"CAPABILITY_PHYSICAL_CHANNEL_CONFIG_1_6_SUPPORTED";
/**
* Indicates whether modem supports handling parsed SIM phonebook records through the RIL,
* both batched reads and individual writes.
*
* @hide
*/
public static final String CAPABILITY_SIM_PHONEBOOK_IN_MODEM =
"CAPABILITY_SIM_PHONEBOOK_IN_MODEM";
/**
* A list of the radio interface capability values with public valid constants.
*
@@ -15039,6 +15048,7 @@ public class TelephonyManager {
@Retention(RetentionPolicy.SOURCE)
@StringDef(prefix = "CAPABILITY_", value = {
CAPABILITY_SLICING_CONFIG_SUPPORTED,
CAPABILITY_SIM_PHONEBOOK_IN_MODEM,
})
public @interface RadioInterfaceCapability {}

View File

@@ -497,6 +497,9 @@ public interface RILConstants {
int RIL_REQUEST_ENABLE_MODEM = 146;
int RIL_REQUEST_GET_MODEM_STATUS = 147;
int RIL_REQUEST_CDMA_SEND_SMS_EXPECT_MORE = 148;
int RIL_REQUEST_GET_SIM_PHONEBOOK_CAPACITY = 149;
int RIL_REQUEST_GET_SIM_PHONEBOOK_RECORDS = 150;
int RIL_REQUEST_UPDATE_SIM_PHONEBOOK_RECORD = 151;
/* The following requests are not defined in RIL.h */
int RIL_REQUEST_HAL_NON_RIL_BASE = 200;
@@ -583,6 +586,8 @@ public interface RILConstants {
int RIL_UNSOL_NETWORK_SCAN_RESULT = 1049;
int RIL_UNSOL_KEEPALIVE_STATUS = 1050;
int RIL_UNSOL_UNTHROTTLE_APN = 1052;
int RIL_UNSOL_RESPONSE_SIM_PHONEBOOK_CHANGED = 1053;
int RIL_UNSOL_RESPONSE_SIM_PHONEBOOK_RECORDS_RECEIVED = 1054;
/* The following unsols are not defined in RIL.h */
int RIL_UNSOL_HAL_NON_RIL_BASE = 1100;