diff options
author | calvinpan <calvinpan@google.com> | 2021-01-27 21:09:51 +0800 |
---|---|---|
committer | Calvin Pan <calvinpan@google.com> | 2021-02-02 03:00:15 +0000 |
commit | 39884877dd3fd5a4cfa2462446053859566bc69a (patch) | |
tree | 5453823af4ce033e037d477460967f58f1bc4c61 /telephony/java | |
parent | ac165ae86d257dc4f3b8425fd3724f18973839e4 (diff) |
Add a carrier config for non-RCS capabilities expiration
Bug: 174196620
Test: atest
Change-Id: I280d8e1687feb2d96a20e2d18a7abc62c4a89e25
Diffstat (limited to 'telephony/java')
-rw-r--r-- | telephony/java/android/telephony/CarrierConfigManager.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java index 3a9896a5a91d..4b5c3ac817a0 100644 --- a/telephony/java/android/telephony/CarrierConfigManager.java +++ b/telephony/java/android/telephony/CarrierConfigManager.java @@ -3937,6 +3937,20 @@ public class CarrierConfigManager { public static final String KEY_ENABLE_PRESENCE_GROUP_SUBSCRIBE_BOOL = KEY_PREFIX + "enable_presence_group_subscribe_bool"; + /** + * An integer key associated with the period of time in seconds the non-rcs capability + * information of each contact is cached on the device. + * <p> + * The rcs capability cache expiration sec is managed by + * {@code android.telephony.ims.ProvisioningManager} but non-rcs capability is managed by + * {@link CarrierConfigManager} since non-rcs capability will be provided via ACS or carrier + * config. + * <p> + * The default value is 2592000 secs (30 days), see RCC.07 Annex A.1.9. + */ + public static final String KEY_NON_RCS_CAPABILITIES_CACHE_EXPIRATION_SEC_INT = + KEY_PREFIX + "non_rcs_capabilities_cache_expiration_sec_int"; + private Ims() {} private static PersistableBundle getDefaults() { @@ -3947,6 +3961,7 @@ public class CarrierConfigManager { defaults.putBoolean(KEY_ENABLE_PRESENCE_CAPABILITY_EXCHANGE_BOOL, false); defaults.putBoolean(KEY_RCS_BULK_CAPABILITY_EXCHANGE_BOOL, false); defaults.putBoolean(KEY_ENABLE_PRESENCE_GROUP_SUBSCRIBE_BOOL, true); + defaults.putInt(KEY_NON_RCS_CAPABILITIES_CACHE_EXPIRATION_SEC_INT, 30 * 24 * 60 * 60); return defaults; } } |