commit | c48d856976c9fcb8150f4de524d69cc5d68ce46d | [log] [tgz] |
---|---|---|
author | Hansen Kurli <hkurli@google.com> | Wed Apr 19 13:18:32 2023 +0000 |
committer | Hansen Kurli <hkurli@google.com> | Mon Jun 12 05:42:46 2023 +0000 |
tree | a2ec5e12d8d7b9a4d476448bcaa66dcca6e1bd29 | |
parent | ad03b887e63e2ad0678fe7fc4394d23a690a14d5 [diff] |
Register OnSubscriptionsChangedListener and cache results. Register a listener to get notified of SubscriptionInfo changes and store all carrierIds of active subscriptions in a cache. The executor for the listener callback runs on a different thread to the connectivity thread but posts the SubscriptionInfo list to the connectivity thread for caching. Bug: 273451360 Test: atest FrameworksNetTests Change-Id: I889d4da725ccda713367309c257622a0bf9939f3