commit | 16800bf437bec63b25beb73f28f0a40f01b11707 | [log] [tgz] |
---|---|---|
author | Hansen Kurli <hkurli@google.com> | Wed Apr 19 13:18:32 2023 +0000 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Fri Jun 16 07:44:29 2023 +0000 |
tree | 48cac5f87f5ce996994a7edeaf32217c296e6d6a | |
parent | 518f3b55f41418679242869999eb13a3bf081a96 [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 (cherry picked from https://android-review.googlesource.com/q/commit:c48d856976c9fcb8150f4de524d69cc5d68ce46d) Merged-In: I889d4da725ccda713367309c257622a0bf9939f3 Change-Id: I889d4da725ccda713367309c257622a0bf9939f3