/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/ |
D | WifiSliceTest.java | 220 final List<SliceItem> sliceItems = wifiSlice.getItems(); in getWifiSlice_noAp_shouldReturnLoadingRow() local 225 SliceTester.assertAnySliceItemContainsSubtitle(sliceItems, in getWifiSlice_noAp_shouldReturnLoadingRow() 252 final List<SliceItem> sliceItems = wifiSlice.getItems(); in getWifiSlice_oneConnectedAp_shouldReturnLoadingRow() local 254 SliceTester.assertAnySliceItemContainsTitle(sliceItems, AP1_NAME); in getWifiSlice_oneConnectedAp_shouldReturnLoadingRow() 256 SliceTester.assertAnySliceItemContainsSubtitle(sliceItems, in getWifiSlice_oneConnectedAp_shouldReturnLoadingRow() 267 final List<SliceItem> sliceItems = wifiSlice.getItems(); in getWifiSlice_oneConnectedApAndOneDisconnectedAp_shouldReturnLoadingRow() local 269 SliceTester.assertAnySliceItemContainsTitle(sliceItems, AP1_NAME); in getWifiSlice_oneConnectedApAndOneDisconnectedAp_shouldReturnLoadingRow() 270 SliceTester.assertAnySliceItemContainsTitle(sliceItems, AP2_NAME); in getWifiSlice_oneConnectedApAndOneDisconnectedAp_shouldReturnLoadingRow() 272 SliceTester.assertAnySliceItemContainsSubtitle(sliceItems, in getWifiSlice_oneConnectedApAndOneDisconnectedAp_shouldReturnLoadingRow() 281 final List<SliceItem> sliceItems = wifiSlice.getItems(); in getWifiSlice_oneDisconnectedAp_shouldReturnLoadingRow() local [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
D | SliceTester.java | 244 public static void assertAnySliceItemContainsTitle(List<SliceItem> sliceItems, String title) { in assertAnySliceItemContainsTitle() argument 245 assertThat(hasText(sliceItems, title, HINT_TITLE)).isTrue(); in assertAnySliceItemContainsTitle() 254 public static void assertAnySliceItemContainsSubtitle(List<SliceItem> sliceItems, in assertAnySliceItemContainsSubtitle() argument 257 assertThat(hasText(sliceItems, subtitle, null /* hints */)).isTrue(); in assertAnySliceItemContainsSubtitle() 266 public static void assertNoSliceItemContainsSubtitle(List<SliceItem> sliceItems, in assertNoSliceItemContainsSubtitle() argument 269 assertThat(hasText(sliceItems, subtitle, null /* hints */)).isFalse(); in assertNoSliceItemContainsSubtitle() 272 private static boolean hasText(List<SliceItem> sliceItems, String text, String hints) { in hasText() argument 274 for (SliceItem item : sliceItems) { in hasText() 297 public static void assertAnySliceItemContainsIcon(List<SliceItem> sliceItems, IconCompat icon) { in assertAnySliceItemContainsIcon() argument 299 for (SliceItem item : sliceItems) { in assertAnySliceItemContainsIcon()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/ |
D | Enhanced4gLteSliceHelperTest.java | 205 final List<SliceItem> sliceItems = slice.getItems(); in testEnhanced4gLteSettingsUnavailableSlice() local 206 assertTitle(sliceItems, in testEnhanced4gLteSettingsUnavailableSlice() 231 final List<SliceItem> sliceItems = slice.getItems(); in testEnhanced4gLteSettingsToggleSlice() local 232 assertTitle(sliceItems, in testEnhanced4gLteSettingsToggleSlice() 251 private void assertTitle(List<SliceItem> sliceItems, String title) { in assertTitle() argument 253 for (SliceItem item : sliceItems) { in assertTitle()
|
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/ |
D | SlicePreferencesUtil.java | 349 private static List<Pair<CharSequence, CharSequence>> getInfoList(List<SliceItem> sliceItems) { in getInfoList() argument 351 for (SliceItem item : sliceItems) { in getInfoList() 385 static SliceItem getScreenTitleItem(List<SliceContent> sliceItems) { in getScreenTitleItem() argument 386 for (SliceContent contentItem : sliceItems) { in getScreenTitleItem() 396 static SliceItem getRedirectSlice(List<SliceContent> sliceItems) { in getRedirectSlice() argument 397 for (SliceContent contentItem : sliceItems) { in getRedirectSlice() 407 static SliceItem getFocusedPreferenceItem(List<SliceContent> sliceItems) { in getFocusedPreferenceItem() argument 408 for (SliceContent contentItem : sliceItems) { in getFocusedPreferenceItem() 418 static SliceItem getEmbeddedItem(List<SliceContent> sliceItems) { in getEmbeddedItem() argument 419 for (SliceContent contentItem : sliceItems) { in getEmbeddedItem()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | BluetoothDevicesSliceTest.java | 162 final List<SliceItem> sliceItems = slice.getItems(); in getSlice_bluetoothTurningOn_shouldHaveBluetoothDevicesTitleAndPairNewDevice() local 163 SliceTester.assertAnySliceItemContainsTitle(sliceItems, mContext.getString( in getSlice_bluetoothTurningOn_shouldHaveBluetoothDevicesTitleAndPairNewDevice() 174 final List<SliceItem> sliceItems = slice.getItems(); in getSlice_bluetoothOn_shouldHaveBluetoothDevicesTitleAndPairNewDevice() local 175 SliceTester.assertAnySliceItemContainsTitle(sliceItems, mContext.getString( in getSlice_bluetoothOn_shouldHaveBluetoothDevicesTitleAndPairNewDevice() 186 final List<SliceItem> sliceItems = slice.getItems(); in getSlice_hasBluetoothDevices_shouldMatchBluetoothMockTitle() local 187 SliceTester.assertAnySliceItemContainsTitle(sliceItems, BLUETOOTH_MOCK_TITLE); in getSlice_hasBluetoothDevices_shouldMatchBluetoothMockTitle()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/ |
D | WifiCallingSliceHelperTest.java | 322 final List<SliceItem> sliceItems = slice.getItems(); in testWifiCallingSettingsUnavailableSlice() local 323 assertTitle(sliceItems, title); in testWifiCallingSettingsUnavailableSlice() 348 final List<SliceItem> sliceItems = slice.getItems(); in testWifiCallingSettingsToggleSlice() local 349 assertTitle(sliceItems, mContext.getString(R.string.wifi_calling_settings_title)); in testWifiCallingSettingsToggleSlice() 407 private void assertTitle(List<SliceItem> sliceItems, String title) { in assertTitle() argument 409 for (SliceItem item : sliceItems) { in assertTitle()
|