Skip to content
Snippets Groups Projects
  1. Oct 26, 2023
    • joonhunshin's avatar
      Fix call stuck in ringing state · dda75c24
      joonhunshin authored
      While handling incoming call, the incoming call session might be terminated.
      If the call session was terminated before registering callback, framework should
      not handle incoming call.
      
      Bug: 289461637
      Bug: 304441595
      Test: atest ImsManagerTest
      Test: received test result from partner
      Change-Id: I0c9dbc0c5d048ec411ff5e7eb0ad773212813c96
      dda75c24
  2. Oct 23, 2023
  3. Oct 22, 2023
    • Sarah Chin's avatar
      Hide Slicing APIs for QPR · 560d95cf
      Sarah Chin authored
      Hide for now so it doesn't get released with QPR and will add again with
      a feature flag in a follow up CL
      
      Bug: 304272329
      Test: build
      Change-Id: I5ea5b7092cd735c2f64c18bc9e1dcc42269a6046
      560d95cf
  4. Oct 20, 2023
    • Tyler Gunn's avatar
      Add cc so carrier can opt to prefer an in-service sim for normal ecc call. · 6c3064e1
      Tyler Gunn authored
      This carrier config is ultimately temporary and should be removed in a
      future release in favor of just ALWAYS preferring an in-service sim for
      a normal routed emergency call.
      
      Test: See other CL in this chain for the tests performed.
      Bug: 281934614
      Bug: 299150073
      Flag: This is a cherry-pick from udc-qpr-dev, so no flag is needed.
      Change-Id: Iac9136dc2315617e612e55ca72026dcae16f232d
      6c3064e1
  5. Oct 19, 2023
    • Jack Yu's avatar
      Added Satellite messaging data support · 57206c02
      Jack Yu authored
      1. Added RCS APN type which maps to RCS network capability. Note
         This APN type is not specific for satellite uses only. This
         can be used for regular single registration RCS.
      2. Added a new tri-state field "infrastructure" in APN entry. The
         infrastructure type can be terrestrial only, non-terrestrial only, or
         both. This is for some APNs can be used when the device is attached
         to satellite.
      
      Fix: 294065845
      Test: atest ApnSettingTest DataNetworkControllerTest DataProfileManagerTest
            DataProfileTest TelephonyNetworkRequestTest
      Test: Basic phone functionality tests
      Change-Id: I40880207d7ce837db26a68aa7f78e36689ef04f3
      57206c02
  6. Oct 16, 2023
    • Hakjun Choi's avatar
      new public API and AIDL to get and listen for signal strength changes. · 847c88c7
      Hakjun Choi authored
      Below public APIs are added
        requestNtnSignalStrength()
        registerForNtnSignalStrengthChanged()
        unregisterForNtnSignalStrengthChanged()
      
      Bug: 301511156
      Test: SatelliteManagerTest, SatelliteControllerTest,
      SatelliteManagerTestOnMockService
      
      Change-Id: I08490bb8b7bc5bcd27eacc153750b957741670ac
      847c88c7
  7. Oct 14, 2023
    • Thomas Nguyen's avatar
      Revert "Add RIL requests and unsol for Satellite HAL" · a8b9ae27
      Thomas Nguyen authored
      Revert submission 20583557-Satellite APIs
      
      Reason for revert: Radio HAL for satellite APIs are not needed.
      
      Reverted changes: /q/submissionid:20583557-Satellite+APIs
      
      Bug: 304622222
      Test: SMS, MMS, call with live network.
      SatelliteManagerTestOnMockService SatelliteManagerTest SatelliteControllerTest
      DatagramDispatcherTest DatagramReceiverTest SatelliteSOSMessageRecommenderTest
      NtnCapabilityResolverTest ServiceStateTrackerTest VtsHalRadioTargetTest
      
      Change-Id: Ibe2652e930fbb4b7575bd2ef52ad9ba6a406e88c
      a8b9ae27
  8. Oct 13, 2023
  9. Oct 11, 2023
    • Ling Ma's avatar
      Add auto data switch score for LTE_CA · 18a05890
      Ling Ma authored
      Add the entry for LTE_CA.
      
      Bug: 304835724
      Test: basic voice call + data browsing
      Change-Id: I7340ca2dbf6fa944f2008d9d6a47e3459bb5e9cb
      18a05890
    • Hunter Knepshield's avatar
      Add BarringInfo.BarringServiceInfo#toString · 28c8d503
      Hunter Knepshield authored
      This is missing currently, so we get memory addresses instead of useful information in e.g. TelephonyRegistry dumpsys.
      
      Change-Id: I6c685e9015f666da642d970a37b2f3361dfb41a8
      Tested: make + `dumpsys telephony.registry` on device
      Bug: 304400868
      28c8d503
    • Thomas Nguyen's avatar
      Guard satellite APIs with feature flags · b62318c8
      Thomas Nguyen authored
      Bug: 301713420
      Test: SMS, MMS, call with live network
      atest SatelliteControllerTest SatelliteSOSMessageRecommenderTest
      atest SatelliteManagerTestOnMockService SatelliteManagerTest
      atest android.telephony.ims.cts.ImsCallingTest
      
      Change-Id: Ib5e941f8f15b8f82ddea35021be635f41b40adbb
      b62318c8
  10. Oct 05, 2023
    • Anton Hansson's avatar
      Fix broken documentation in telephony and telecomm · 84d6d75d
      Anton Hansson authored
      Due to a bug in the build system, broken @see/@link references have not
      failed to build for a while, so many errors have accumulated.
      
      This is an attempt to patch up the telephony and telecomm docs. The
      most common errors and fixes were:
      - @link-ing IntDef constants from javadoc. IntDefs are not present
        in the docs, so rewrite those to natural english, or point to the
        constant prefixes
      - Javadoc for public symbols referencing SystemApi symbols. Change those
        to @code instead of @link
      
      There were various other fixes too, and I'm not sure they're all
      perfect, but certainly an improvement over the brokenness we have
      currently.
      
      Bug: 303184203
      Test: m docs
      Change-Id: I5cefc72074ced29c0b046cf59deb7ee371e74bf0
      84d6d75d
  11. Oct 04, 2023
    • Thomas Nguyen's avatar
      Replace SatelliteError with SatelliteResult in javadoc · bb584679
      Thomas Nguyen authored
      Bug: 303225106
      Test: atest SatelliteManagerTestOnMockService
      
      Change-Id: I009480c506a402e4f92c6927046943eaf37f5cd8
      bb584679
    • Hakjun Choi's avatar
      Changed API name from 'isNtn()' to 'isOnlyNonTerrestrialNetwork()' and updated... · 574d0c2e
      Hakjun Choi authored
      Changed API name from 'isNtn()' to 'isOnlyNonTerrestrialNetwork()' and updated related methods and variables according to API Council recommendations.
      
      isNtn() -> isOnlyNonTerrestrialNetwork()
      setNtn() -> setOnlyNonTerrestrialNetwork()
      getNtn() -> getOnlyNonTerrestrialNetwork()
      mIsNtn -> mIsOnlyNonTerrestrialNetwork
      No changes in logic.
      
      Bug: 301620244
      Test: SubscriptionManagerTest, SubscriptionInfoTest, SubscriptionInfointernalTest, SubscriptionDatabaseManagerTest, SubscriptionManagerServiceTest
      Change-Id: Ie3a13bab0b9c21bae79b7753dd14827ff8f1ce4d
      574d0c2e
  12. Oct 02, 2023
  13. Sep 27, 2023
    • Ling Ma's avatar
      Deny SIM-profile association for non-existent SIM · 1f2ea352
      Ling Ma authored
      Previously, for a SIM Id that we have no records of, we return true for
      its accessibility check for any profiles. After this change, we throw
      IAE/convert the IAE to false to better define the API behavior.
      
      Bug: 294125411
      Test: Manually sending/receiving SMS/MMS,
          atest com.android.providers.telephony.SmsProviderTest,
          atest com.android.providers.telephony.MmsProviderTest,
          atest com.android.providers.telephony.ProviderUtilTest,
          atest CtsTelephonyProviderTestCases,
          atest CtsTelephonyTestCases
      Change-Id: If5a66e186273ab0e5439df1e76107431bbb8d8e1
      1f2ea352
    • Thomas Stuart's avatar
      remove the busy tone value from the KEY_DISCONNECT_CAUSE_PLAY_BUSYTONE_INT_ARRAY · fc73a77d
      Thomas Stuart authored
      The busy tone value should not be in the default disconnect cause array.
      This can cause issues with the busy label as it can be overriden by
      Telecom instead of the precise label passed by the lower layer
      
      Bug: 296968778
      Test: unit tests + manual
      Change-Id: I10f72c6be279459bfd611fa1397149d122ec1d07
      fc73a77d
    • Thomas Nguyen's avatar
      Guard new satellite APIs with feature flag · 06f95f23
      Thomas Nguyen authored
      Bug: 296909779
      Test: SMS, MMS, call with live network.
      atest SatelliteControllerTest
      atest SatelliteManagerTestOnMockService
      
      Change-Id: I797db0df194ec9732db16f3377c0b2e5601c8f23
      06f95f23
  14. Sep 20, 2023
    • Thomas Nguyen's avatar
      Add new satellite datagram transfer state for NB IOT · fa62dce0
      Thomas Nguyen authored
      Bug: 300483339
      Test: SMS, MMS, call with live network.
      atest SatelliteSessionControllerTest
      atest DatagramDispatcherTest DatagramReceiverTest
      atest SatelliteSOSMessageRecommenderTest
      atest SatelliteControllerTest
      atest SatelliteManagerTestOnMockService
      
      Change-Id: I1b972cb8bbd3dd0d7577ded26eabb0a6eafd6a65
      fa62dce0
    • Hakjun Choi's avatar
      Add new apis for satellite service · 70e69c01
      Hakjun Choi authored
      Added an api to find whether the subscription ID supports NTN network.
      Added device overlay configuration for telephony to identify the eSIM profile preloaded on a device supports satellite service.
      
      Bug: 299232193
      Test: atest SubscriptionInfoTest, SubscriptionInfoInternalTest
      Change-Id: I41ec533df142ee0c4d2bba524acddf90a16509d4
      70e69c01
  15. Sep 19, 2023
    • Jack Yu's avatar
      Fixed javadoc error · 3a6932ee
      Jack Yu authored
      Fixed javadoc error and removed unused methods.
      
      Fix: 300908232
      Test: Build
      Test: Telephony basic functionality tests
      Change-Id: I1dbb4ae91e85439795f29aea039e5a5be04a0f92
      3a6932ee
  16. Sep 14, 2023
  17. Sep 13, 2023
    • Thomas Nguyen's avatar
      Add CONNECTED and NOT_CONNECTED stellite modem states for NB IOT · 9b0d4419
      Thomas Nguyen authored
      Bug: 297943030
      Test: SMS, MMS, call with live network.
      atest android.telephony.satellite.cts.SatelliteManagerTestOnMockService
      atest com.android.internal.telephony.satellite.SatelliteSessionControllerTest
      atest com.android.internal.telephony.satellite.SatelliteControllerTest
      
      Change-Id: I72a73a8cffd4d2e123d9c2c15941b1fbc526b9cc
      9b0d4419
  18. Sep 05, 2023
    • rambowang's avatar
      Set default value for carrier config KEY_UNDELIVERED_SMS_MESSAGE_EXPIRATION_TIME · 34690137
      rambowang authored
      This cl sets the default value (7 days which is used in
      SmsBroadcastUndelivered) for carrier config
      KEY_UNDELIVERED_SMS_MESSAGE_EXPIRATION_TIME.
      
      Without default value, the configs will not be returned from APIs
      like CarrierConigManager.getConfigForSub if default and carrier
      config app doesn't override them. It may cause caller
      process crash if not handled properly.
      
      Bug: 261776046
      Test: atest FrameworksTelephonyTests
      Test: Basic phone functional test (activation/call/data/messages...)
      Change-Id: I46085146605db27ef2d7d393917584a96aceb7fd
      34690137
  19. Sep 01, 2023
    • Hakjun Choi's avatar
      Add new satellite APIs for cellular modems · 43897838
      Hakjun Choi authored
      Add new APIs to add/remove a restriction reason for carrier supported satellite.
      Add new APIs user request to enable or disable satellite for carrier, and get status whether satellite for carrier is enabled or disabled.
      Add a new API to provide restriction reasons for carrier supported satellite.
      
      Bug: 291302444
      Test: CTS/SatelliteManagerTest, SatelliteManagerTestOnMockService
      Test: Live network test include call / sms / mms
      
      Change-Id: I81048c29f577c4cc375eeff1c7bcd02f7b6832c9
      43897838
  20. Aug 31, 2023
    • Sarah Chin's avatar
      Change default for NR advanced ratcheting config · 4a34c9c7
      Sarah Chin authored
      Only 1 carrier requires memory retention based on the pcell.
      Change this config to be false by default so most carriers
      will use the timer to extend NR advanced instead of pcell.
      
      Test: atest NetworkTypeControllerTest
      Test: manual basic functionality tests and verify no regressions
      Bug: 294088690
      Bug: 297307822
      Change-Id: I3be9e784607923ff132f58942490e1be3b6757ea
      4a34c9c7
    • rambowang's avatar
      Make sure all RTT carrier configs have default value · 98e49e91
      rambowang authored
      This cl sets the default value (all false) for the following
      carrier configs which didn't set default value:
      - KEY_RTT_AUTO_UPGRADE_BOOL
      - KEY_RTT_SUPPORTED_FOR_VT_BOOL
      - KEY_RTT_UPGRADE_SUPPORTED_BOOL
      - KEY_RTT_DOWNGRADE_SUPPORTED_BOOL
      
      Without default value, the configs will not be returned from APIs
      like CarrierConigManager.getConfigForSub if default and carrier
      config app doesn't override them. It may cause caller
      process crash if not handled properly.
      
      Bug: 261776046
      Test: atest FrameworksTelephonyTests
      Test: Basic phone functional test (activation/call/data/messages...)
      Change-Id: I8ce75935d9dabe57ab1416abf552b76e0fe29c69
      98e49e91
    • rambowang's avatar
      Make sure all data network carrier configs have default value · 20eb053e
      rambowang authored
      This cl sets the default value (all empty string) for the following
      carrier configs which didn't set default value:
      - KEY_CARRIER_DATA_SERVICE_WWAN_CLASS_OVERRIDE_STRING
      - KEY_CARRIER_DATA_SERVICE_WLAN_CLASS_OVERRIDE_STRING
      - KEY_CONFIG_PLANS_PACKAGE_OVERRIDE_STRING
      - KEY_CARRIER_NETWORK_SERVICE_WLAN_CLASS_OVERRIDE_STRING
      - KEY_CARRIER_NETWORK_SERVICE_WWAN_CLASS_OVERRIDE_STRING,
      - KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_CLASS_OVERRIDE_STRING
      
      Without default value, the configs will not be returned from APIs
      like CarrierConigManager.getConfigForSub if default and carrier
      config app doesn't override them. It may cause caller
      process crash if not handled properly.
      
      Bug: 261776046
      Test: atest FrameworksTelephonyTests
      Test: Basic phone functional test (activation/call/data/messages...)
      Change-Id: I633799e266df2a692bf6b90f6d1e0499477bdaf3
      20eb053e
  21. Aug 30, 2023
    • Ling Ma's avatar
      Remove unused methods · 53df57c0
      Ling Ma authored
      The hidden methods are veguely defined and deprecated, not used
      anywhere.
      
      Bug: 296076674
      Test: basic voice call + data browsing
      Change-Id: I520ba2abff3593e96ce69d648bbd374a36dca495
      53df57c0
  22. Aug 25, 2023
    • Aishwarya Mallamapti's avatar
      Change SatelliteError to SatelliteResult enum · 99adb871
      Aishwarya Mallamapti authored
      The following changes are made in this cl:
      - SatelliteError is changed to SatelliteResult
      - SATELLITE_ERROR_NONE is changed to SATELLITE_RESULT_SUCCESS
      - SATELLITE_RESULT prefix is added to all the values in the enum
      
      Bug: 296925011
      Test: Flashed device on raven-userdebug and performed basic
      functionality tests
      - atest android.telephony.satellite.cts
      - atest com.android.internal.telephony.satellite
      - atest com.google.android.telephony.satellite
      
      Change-Id: If189b1df0ea99b056c38c1ab3f0a8ce308751160
      99adb871
    • Sarah Chin's avatar
      Update docs for KEY_NR_ADVANCED_THRESHOLD_BANDWIDTH_KHZ_INT · 5d71ed84
      Sarah Chin authored
      Threshold should be inclusive instead of non-inclusive.
      
      Test: atest NetworkTypeControllerTest
      Test: basic sanity tests
      Bug: 297102081
      Change-Id: Iec48c6c8b52ecbff33e68d5f626ee9ab97d703a1
      5d71ed84
  23. Aug 23, 2023
    • Thomas Nguyen's avatar
      Provide attribution tag when sending text message · a1bf6ae4
      Thomas Nguyen authored
      The attribution tag will be used for accounting by the security team.
      
      Bug: 294384641
      Test: SMS, MMS, call with live network.
      atest android.telephony.cts.SmsManagerTest
      
      Change-Id: I9cd2d1df3237aeaac73cf753b5c14da13ec5f912
      a1bf6ae4
    • sangyun's avatar
      Reduce resource cache size and use LruCache · fbcde60f
      sangyun authored
       android.util.LruCache provides least recent used algorithm and has
      an advantage of not calculating the size every time to find eldest
      value of LinkedMap. So changed from LinkedMap to LruCache.
       Size of key configuration, package name, and value Resource are
      about 300 bytes per one item on average, so even if the cache has
      1000 items, it does not use that much heap memory. And the
      Configuration is logically hard to exceed 1000 types, so it can be
      considered large enough.
      
      Bug: 289045241
      Test: atest CtsTelephonyTestCases
      Test: atest CellBroadcastServiceTests
      Test: atest GoogleCellBroadcastReceiverUnitTests
      Test: manually perform telephony tests and validty checks
      Change-Id: I606013e0a5a69355cdaa9453842ca63fd08d1126
      fbcde60f
  24. Aug 22, 2023
    • Nathan Harold's avatar
      Fix a Null retval in SM#getSubscriptionsInGroup · c59761cc
      Nathan Harold authored
      In the event that the SubscriptionService can't be
      reached, system callers receive a null return value
      instead of receiving the documented NonNull result.
      
      Simple fix to ensure that the return value is an empty
      list.
      
      Bug: 296125268
      Test: atest FrameworksTelephonyTests
      Test: MO/MT voice call, MO/MT sms, data
      Change-Id: I21f536e8739c1fb27caeac3266e964eb64c56a3e
      c59761cc
    • Chan Kim's avatar
      Update language to comply with Android's inclusive language guidance · aa893969
      Chan Kim authored
      See https://source.android.com/setup/contribute/respectful-code for reference
      
      For this round, the fixes are only applied to the following to minimize breaking dependencies:
        * comments (excluding javaDoc annotations)
      	* private constants
      	* private functions
      	* parameters within functions
      
      BYPASS_INCLUSIVE_LANGUAGE_REASON=Just updating a few select inclusive language violations.
      No-Typo-Check: Changes focused on inclusive language violations.
      BUG: 295342157
      Change-Id: Ifb3028dd479274260f479123102415241b95774f
      aa893969
    • Chan Kim's avatar
      Update language to comply with Android's inclusive language guidance · 9a0ec5d9
      Chan Kim authored
      See https://source.android.com/setup/contribute/respectful-code for reference
      
      For this round, the fixes are only applied to the following to minimize breaking dependencies:
        * comments (excluding javaDoc annotations)
      	* private constants
      	* private functions
      	* parameters within functions
      
      BYPASS_INCLUSIVE_LANGUAGE_REASON=Just updating a few select inclusive language violations.
      No-Typo-Check: Changes focused on inclusive language violations.
      BUG: 295342157
      Change-Id: I44cea1b760a09c896d188bf8fdd9ce152e959526
      9a0ec5d9
  25. Aug 21, 2023
  26. Aug 18, 2023
    • Ling Ma's avatar
      Extend DDS switch validation timeout · dc7b04ef
      Ling Ma authored
      According to the analysis in b/293356801#comment17, the current timeout validation is too short.
      Extending the default timeout wouldn't have any unexpected consequence because there aren't any pending items in the case of timeout occurs.
      
      Fix: 293356801
      Test: daily test b/296088621
      Change-Id: If19bbaa25a02adc60af327099eab2ee0556dc5f9
      dc7b04ef
    • Ling Ma's avatar
      Temporarily disable RAT/signalStrength based auto data switch · 1003d408
      Ling Ma authored
      To reduce risks, disable the feature before its corresponding merges. We'll reenable the feature after clearing any concerns of any stakeholders.
      
      Bug: 260928808
      Test: daily test b/296088621
      Change-Id: I2c518aa6811df2eb751e4b9e490b88267eb92302
      1003d408
  27. Aug 16, 2023
Loading