d922de0ecf35acc967fc09166974354f6ab9e8d5 |
|
22-May-2017 |
shuoq <shuoq@google.com> |
Cache the getActiveSubscriptionInfoList() in SubscriptionController To fast reading the active subscription info list (the subinfo list currently in the phone slotes), a cache is created and maintained inside the SubscriptionController. To protect cache, refresh the content of the cache every time there is an update on the database, populate/regenerate the cache with the updated information and thereby the reference of the cache object will be changed. When getting an Active Subscription Info list, get a deep copy of the cache instead of its reference. Test: Manual Bug: 29877775 Change-Id: Ib26c550d63d4befa6f71ef82dfd6d73579b17e24 Merged-In: Ib26c550d63d4befa6f71ef82dfd6d73579b17e24
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/SubscriptionControllerTest.java
|
dce529f00c52bedf4377ee5f7ae1b284fe6452be |
|
09-Apr-2017 |
Jeff Davidson <jpd@google.com> |
Implement embedded subscription list APIs. Listing embedded subscriptions is fairly simple - we just return all subscriptions for which IS_EMBEDDED = 1. We expose these through two new APIs which return subscriptions which are either active or embedded; one API (for the LPA and other callers with permission) returns all such subscriptions, and the other (for carrier apps) returns only subscriptions accessible to the calling app. The cache of embedded subscriptions is updated whenever the SIM state becomes ABSENT, ERROR, or LOADED; whenever an API call happens which impacts the list of subscriptions (like a download or a delete); or whenever the LPA requests a refresh due to some data change. To support this change, the update process now runs on a background thread instead of the main thread, as IPCs can't be made from the main thread without deadlocking, in general. (Note though that this probably should have been done before as the update logic was still reading from/writing to a SQLite-backed ContentProvider, and since the phone process currently contains UI for settings). The update process pulls all cached embedded subscriptions (omitting non-removable ones if the update is for a removable eUICC), as well as non-embedded subscriptions with matching IMSIs. Subscriptions are matched with those returned by the LPA and updated; any other cached subscription in the above list is "removed" by marking it as IS_EMBEDDED = 0. (This is equivalent to what happens when a physical SIM is removed). For the nickname, we repurpose the existing DISPLAY_NAME field. However, there are settings UIs which allow updating this field, which means those updates will be clobbered every time the list is updated. A follow-up CL will propagate updates to this field from Settings to the stored nickname on the eUICC's profile so that they persist. Bug: 35851809 Test: Unit tests; e2e tests switching back and forth between embedded and removable eUICC. Change-Id: Ie714c0f7fc1a9d147008a2598dfdeac865ba120c
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/SubscriptionControllerTest.java
|
82e8da62fe3f83f29d834636b8da5ce6803204e3 |
|
21-Mar-2017 |
Sanket Padawe <sanketpadawe@google.com> |
Change 'idx' to 'index' for SubscriptionManager api. Bug: 35767068 Test: No build failure on update. Change-Id: I56977b047512100d5fbe7eb8eb2df8aa1f773b8b
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/SubscriptionControllerTest.java
|
0979b71e48405cab10bdf1d1b4170cfce72838a7 |
|
21-Apr-2016 |
Jack Yu <jackyu@google.com> |
Fixed that data call setup failed after default data SIM switches Need to reset the auto attach flag when DDS occurs. bug: 28181225 Change-Id: Ib4405b94ac3085e48cb029451cc44f4eee6408c2
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/SubscriptionControllerTest.java
|
fe809fa371e9eab6d3b89fd2dad38c5f1479e6fe |
|
19-Apr-2016 |
fionaxu <fionaxu@google.com> |
Fix unit test regression SubscriptionController and DcTracker Bug: 27788524 Bug: 27787361 Bug: 25203607 Change-Id: I1f3281f509d9759034df4d9e7b3d03aa7f9b00de
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/SubscriptionControllerTest.java
|
a03e5552830cfb4214095fd473243bb3f12284ae |
|
04-Apr-2016 |
fionaxu <fionaxu@google.com> |
Fix SubscriptionControllerTest failure Clear Settings for the default Sub Bug: 25691379 Change-Id: I62789088f0c5019e9c1ff1340a6c83a82c11fe4e
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/SubscriptionControllerTest.java
|
af59a35e945d60fc9ffb305c494a695b35b8a942 |
|
16-Mar-2016 |
fionaxu <fionaxu@google.com> |
TelephonyManager unit test cleanup Bug: 25691379 Change-Id: I129c8b4f04ad7e6d777857e8c7853de7a86348cc
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/SubscriptionControllerTest.java
|
655bae990bdd7e4584491def4d30692e6173779c |
|
11-Feb-2016 |
fionaxu <fionaxu@google.com> |
Subscription related Unit test with code cleanup bug: 25691379 Change-Id: Ib31b34b3d1116cf714717f5742095de7aa4c0a13
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/SubscriptionControllerTest.java
|