Home
last modified time | relevance | path

Searched refs:isBatteryCharging (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/details/
DWifiNetworkDetailsViewModelTest.java82 when(mHotspotNetworkEntry.isBatteryCharging()).thenReturn(false); in setWifiEntry_hotspotNetworkEntryWifi_postValueCorrect()
92 assertThat(data.isBatteryCharging()).isEqualTo(false); in setWifiEntry_hotspotNetworkEntryWifi_postValueCorrect()
101 when(mHotspotNetworkEntry.isBatteryCharging()).thenReturn(true); in setWifiEntry_hotspotNetworkEntryMobileData_postValueCorrect()
111 assertThat(data.isBatteryCharging()).isEqualTo(true); in setWifiEntry_hotspotNetworkEntryMobileData_postValueCorrect()
118 when(mHotspotNetworkEntry.isBatteryCharging()).thenReturn(true); in setWifiEntry_hotspotNetworkEntryEthernet_postValueCorrect()
127 assertThat(data.isBatteryCharging()).isEqualTo(true); in setWifiEntry_hotspotNetworkEntryEthernet_postValueCorrect()
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiNetworkDetailsViewModel.java57 entry.isBatteryCharging()); in setWifiEntry()
76 boolean isBatteryCharging) { in HotspotNetworkData() argument
80 mIsBatteryCharging = isBatteryCharging; in HotspotNetworkData()
99 public boolean isBatteryCharging() { in isBatteryCharging() method in WifiNetworkDetailsViewModel.HotspotNetworkData
DWifiNetworkDetailsFragment.java414 updateBattery(data.isBatteryCharging(), data.getBatteryPercentage()); in onHotspotNetworkChanged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/
DWifiNetworkDetailsFragmentTest.java121 doReturn(true).when(mHotspotNetworkData).isBatteryCharging(); in setUp()
242 verify(mFragment).updateBattery(mHotspotNetworkData.isBatteryCharging(), in onHotspotNetworkChanged_dataNotNull_hotspotSetVisibleTrue()