OSDN Git Service

Add a helper class for filtering available subscriptions
authorAntony Sargent <asargent@google.com>
Fri, 7 Dec 2018 19:17:26 +0000 (11:17 -0800)
committerAntony Sargent <asargent@google.com>
Fri, 7 Dec 2018 21:40:28 +0000 (13:40 -0800)
commit270296ea2380ad251fcd832259135796e8c3ffca
treee2e1fd9b84889cd908eda5daab102dc74cef6770
parentbccad4abd83664611d0e9501db471d8a1746bf0e
Add a helper class for filtering available subscriptions

In several places implementing the new changes for better UX with
multiple mobile subscriptions, we need a bit of code that filters the
results coming from the SubscriptionManager. This CL adds that common
code in a util class that will be used in later CLs.

Bug: 116349402
Test: RunSettingsRoboTests
Change-Id: Ie9376629604ac2c4a2f15123edc380c5999f2f83
src/com/android/settings/network/SubscriptionUtil.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/network/SubscriptionUtilTest.java [new file with mode: 0644]