Home
last modified time | relevance | path

Searched refs:subs (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileNetworkEntryPreferenceController.java88 List<SubscriptionInfo> subs = SubscriptionUtils.getAvailableSubscriptions( in updateState() local
90 preference.setEnabled(!subs.isEmpty()); in updateState()
91 preference.setSummary(getSummary(subs)); in updateState()
96 List<SubscriptionInfo> subs = SubscriptionUtils.getAvailableSubscriptions( in handlePreferenceClicked() local
98 if (subs.isEmpty()) { in handlePreferenceClicked()
102 if (subs.size() == 1) { in handlePreferenceClicked()
104 MobileNetworkFragment.newInstance(subs.get(0).getSubscriptionId())); in handlePreferenceClicked()
116 private CharSequence getSummary(List<SubscriptionInfo> subs) { in getSummary() argument
117 int count = subs.size(); in getSummary()
118 if (subs.isEmpty()) { in getSummary()
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DMobileNetworkSummaryController.java112 List<SubscriptionAnnotation> subs = mStatusCache.getSubscriptionList(); in getSummary() local
114 if (subs.isEmpty()) { in getSummary()
121 } else if (subs.size() == 1) { in getSummary()
122 SubscriptionAnnotation info = subs.get(0); in getSummary()
131 return getSummaryForProviderModel(subs); in getSummary()
133 final int count = subs.size(); in getSummary()
139 private CharSequence getSummaryForProviderModel(List<SubscriptionAnnotation> subs) { in getSummaryForProviderModel() argument
140 return subs.stream() in getSummaryForProviderModel()
172 List<SubscriptionAnnotation> subs = mStatusCache.getSubscriptionList(); in update() local
173 if (subs.isEmpty()) { in update()
[all …]
DNetworkProviderCallsSmsController.java89 final List<SubscriptionInfo> subs = SubscriptionUtil.getActiveSubscriptions( in getSummary() local
92 if (subs.isEmpty()) { in getSummary()
96 for (SubscriptionInfo subInfo : subs) { in getSummary()
97 int subsSize = subs.size(); in getSummary()
121 if (subInfo != subs.get(subs.size() - 1)) { in getSummary()
172 final List<SubscriptionInfo> subs = SubscriptionUtil.getActiveSubscriptions( in update() local
174 if (subs.isEmpty()) { in update()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DSubscriptionUtilTest.java75 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions(mContext); in getAvailableSubscriptions_nullInfoFromSubscriptionManager_nonNullResult() local
77 assertThat(subs).isNotNull(); in getAvailableSubscriptions_nullInfoFromSubscriptionManager_nonNullResult()
78 assertThat(subs).isEmpty(); in getAvailableSubscriptions_nullInfoFromSubscriptionManager_nonNullResult()
86 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions(mContext); in getAvailableSubscriptions_oneSubscription_oneResult() local
88 assertThat(subs).isNotNull(); in getAvailableSubscriptions_oneSubscription_oneResult()
89 assertThat(subs).hasSize(1); in getAvailableSubscriptions_oneSubscription_oneResult()
100 final List<SubscriptionInfo> subs = SubscriptionUtil.getAvailableSubscriptions(mContext); in getAvailableSubscriptions_twoSubscriptions_twoResults() local
102 assertThat(subs).isNotNull(); in getAvailableSubscriptions_twoSubscriptions_twoResults()
103 assertThat(subs).hasSize(2); in getAvailableSubscriptions_twoSubscriptions_twoResults()
110 final List<SubscriptionInfo> subs = SubscriptionUtil.getActiveSubscriptions(mSubMgr); in getActiveSubscriptions_nullInfoFromSubscriptionManager_nonNullResult() local
[all …]
DSubscriptionsPreferenceControllerTest.java242 final List<SubscriptionInfo> subs = setupMockSubscriptions(2); in onSubscriptionsChanged_countBecameTwo_eventFired() local
243 SubscriptionUtil.setActiveSubscriptionsForTesting(subs.subList(0, 1)); in onSubscriptionsChanged_countBecameTwo_eventFired()
251 SubscriptionUtil.setActiveSubscriptionsForTesting(subs); in onSubscriptionsChanged_countBecameTwo_eventFired()
262 final List<SubscriptionInfo> subs = setupMockSubscriptions(2); in onSubscriptionsChanged_countBecameOne_eventFiredAndPrefsRemoved() local
271 SubscriptionUtil.setActiveSubscriptionsForTesting(subs.subList(0, 1)); in onSubscriptionsChanged_countBecameOne_eventFiredAndPrefsRemoved()
283 final List<SubscriptionInfo> subs = setupMockSubscriptions(3); in onSubscriptionsChanged_subscriptionReplaced_preferencesChanged() local
284 doReturn(subs).when(mSubscriptionManager).getAvailableSubscriptionInfoList(); in onSubscriptionsChanged_subscriptionReplaced_preferencesChanged()
287 SubscriptionUtil.setActiveSubscriptionsForTesting(subs.subList(0, 2)); in onSubscriptionsChanged_subscriptionReplaced_preferencesChanged()
298 SubscriptionUtil.setActiveSubscriptionsForTesting(Arrays.asList(subs.get(0), subs.get(2))); in onSubscriptionsChanged_subscriptionReplaced_preferencesChanged()
377 final List<SubscriptionInfo> subs = setupMockSubscriptions(2, 1, true); in setIcon_greatSignal_correctLevels() local
[all …]
/packages/apps/Settings/src/com/android/settings/network/telephony/
DDefaultSubscriptionController.java93 final List<SubscriptionInfo> subs = SubscriptionUtil.getActiveSubscriptions(mManager); in getAvailabilityStatus() local
94 if (subs.size() > 1 || Utils.isProviderModelEnabled(mContext)) { in getAvailabilityStatus()
154 final List<SubscriptionInfo> subs = SubscriptionUtil.getActiveSubscriptions(mManager); in updateEntries() local
161 if (Utils.isProviderModelEnabled(mContext) && subs.size() == 1) { in updateEntries()
164 subs.get(0), mContext)); in updateEntries()
171 for (SubscriptionInfo sub : subs) { in updateEntries()
DMobileNetworkUtils.java927 final List<SubscriptionInfo> subs = SubscriptionUtil.getActiveSubscriptions( in getPreferredStatus() local
929 if (!subs.isEmpty()) { in getPreferredStatus()
931 for (SubscriptionInfo subInfo : subs) { in getPreferredStatus()
932 int subsSize = subs.size(); in getPreferredStatus()
956 if (subInfo != subs.get(subs.size() - 1)) { in getPreferredStatus()
/packages/services/Mms/src/com/android/mms/service/
DMmsConfigManager.java106 List<SubscriptionInfo> subs = mSubscriptionManager.getActiveSubscriptionInfoList(); in load() local
107 if (subs == null || subs.size() < 1) { in load()
114 for (SubscriptionInfo sub : subs) { in load()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DSubscriptionListData.java93 public void bind(final List<ParticipantData> subs) { in bind() argument
96 for (final ParticipantData sub : subs) { in bind()
/packages/inputmethods/LatinIME/dictionaries/
Dpt_BR_wordlist.combined.gz1dictionary=main:pt_br,locale=pt_BR,description=Português (Brasil),date ...
Dpt_PT_wordlist.combined.gz1dictionary=main:pt_pt,locale=pt_PT,description=Português (Portugal),date ...
Dfr_wordlist.combined.gz1dictionary=main:fr,locale=fr,description=Français,date=1414726264, ...
Dlv_wordlist.combined.gz1dictionary=main:lv,locale=lv,description=Latviešu,date=1393228136, ...
Des_wordlist.combined.gz