Home
last modified time | relevance | path

Searched refs:MAX_WIFI_ENTRY_COUNT (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
DInternetAdapterTest.java3 import static com.android.systemui.qs.tiles.dialog.InternetDialogController.MAX_WIFI_ENTRY_COUNT;
95 for (int i = 0; i < MAX_WIFI_ENTRY_COUNT; i++) { in getItemCount_returnWifiEntriesCount()
144 final int wifiCount = MAX_WIFI_ENTRY_COUNT - 1; in setWifiEntries_wifiCountLessThenMaxCount_setWifiCount()
145 mInternetAdapter.mMaxEntriesCount = MAX_WIFI_ENTRY_COUNT; in setWifiEntries_wifiCountLessThenMaxCount_setWifiCount()
154 final int wifiCount = MAX_WIFI_ENTRY_COUNT; in setWifiEntries_wifiCountGreaterThenMaxCount_setMaxCount()
155 mInternetAdapter.mMaxEntriesCount = MAX_WIFI_ENTRY_COUNT - 1; in setWifiEntries_wifiCountGreaterThenMaxCount_setMaxCount()
164 mInternetAdapter.mMaxEntriesCount = MAX_WIFI_ENTRY_COUNT; in setMaxEntriesCount_maxCountLessThenZero_doNothing()
169 assertThat(mInternetAdapter.mMaxEntriesCount).isEqualTo(MAX_WIFI_ENTRY_COUNT); in setMaxEntriesCount_maxCountLessThenZero_doNothing()
174 mInternetAdapter.mWifiEntriesCount = MAX_WIFI_ENTRY_COUNT - 2; in setMaxEntriesCount_maxCountGreaterThenWifiCount_updateMaxCount()
175 mInternetAdapter.mMaxEntriesCount = MAX_WIFI_ENTRY_COUNT; in setMaxEntriesCount_maxCountGreaterThenWifiCount_updateMaxCount()
[all …]
DInternetDialogDelegateTest.java3 import static com.android.systemui.qs.tiles.dialog.InternetDialogController.MAX_WIFI_ENTRY_COUNT;
436 mInternetDialogDelegate.mWifiEntriesCount = MAX_WIFI_ENTRY_COUNT; in updateDialog_wifiOnAndHasMaxWifiList_showWifiListAndSeeAll()
450 mInternetDialogDelegate.mWifiEntriesCount = MAX_WIFI_ENTRY_COUNT - 1; in updateDialog_wifiOnAndHasBothWifiEntry_showBothWifiEntryAndSeeAll()
655 assertThat(mInternetDialogDelegate.getWifiListMaxCount()).isEqualTo(MAX_WIFI_ENTRY_COUNT); in getWifiListMaxCount_returnCountCorrectly()
661 .isEqualTo(MAX_WIFI_ENTRY_COUNT - 1); in getWifiListMaxCount_returnCountCorrectly()
667 assertThat(mInternetDialogDelegate.getWifiListMaxCount()).isEqualTo(MAX_WIFI_ENTRY_COUNT); in getWifiListMaxCount_returnCountCorrectly()
671 assertThat(mInternetDialogDelegate.getWifiListMaxCount()).isEqualTo(MAX_WIFI_ENTRY_COUNT); in getWifiListMaxCount_returnCountCorrectly()
677 .isEqualTo(MAX_WIFI_ENTRY_COUNT - 1); in getWifiListMaxCount_returnCountCorrectly()
682 .isEqualTo(MAX_WIFI_ENTRY_COUNT - 1); in getWifiListMaxCount_returnCountCorrectly()
689 .isEqualTo(MAX_WIFI_ENTRY_COUNT - 1); in getWifiListMaxCount_returnCountCorrectly()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogDelegate.java20 import static com.android.systemui.qs.tiles.dialog.InternetDialogController.MAX_WIFI_ENTRY_COUNT;
663 if (count > MAX_WIFI_ENTRY_COUNT) { in getWifiListMaxCount()
664 count = MAX_WIFI_ENTRY_COUNT; in getWifiListMaxCount()
DInternetAdapter.java64 protected int mMaxEntriesCount = InternetDialogController.MAX_WIFI_ENTRY_COUNT;
DInternetDialogController.java152 static final int MAX_WIFI_ENTRY_COUNT = 3; field in InternetDialogController
1133 final boolean hasMoreWifiEntries = (accessPointsSize > MAX_WIFI_ENTRY_COUNT);
1136 final int count = hasMoreWifiEntries ? MAX_WIFI_ENTRY_COUNT : accessPointsSize;