Home
last modified time | relevance | path

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

/frameworks/base/wifi/java/src/android/net/wifi/sharedconnectivity/app/
DNetworkProviderInfo.java175 public Builder setBatteryCharging(boolean isBatteryCharging) { in setBatteryCharging() argument
176 mIsBatteryCharging = isBatteryCharging; in setBatteryCharging()
232 @NonNull String modelName, int batteryPercentage, boolean isBatteryCharging, in NetworkProviderInfo() argument
239 mIsBatteryCharging = isBatteryCharging; in NetworkProviderInfo()
290 public boolean isBatteryCharging() { in isBatteryCharging() method in NetworkProviderInfo
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DBatteryController.java86 mService.isBatteryCharging() && mService.isBatteryNotLow()); in maybeStartTrackingJobLocked()
167 final boolean stablePower = mService.isBatteryCharging() && mService.isBatteryNotLow(); in maybeReportNewChargingStateLocked()
189 JobStatus.CONSTRAINT_CHARGING, mService.isBatteryCharging(), nowElapsed); in maybeReportNewChargingStateLocked()
240 pw.println("Stable power: " + (mService.isBatteryCharging() && mService.isBatteryNotLow())); in dumpControllerStateLocked()
263 mService.isBatteryCharging() && mService.isBatteryNotLow()); in dumpControllerStateLocked()
DIdleController.java105 mService.isBatteryCharging(), mService.isBatteryNotLow()); in onBatteryStateChangedLocked()
DConnectivityController.java741 && mService.isBatteryCharging()) { in isInsane()
975 return (mService.isBatteryCharging() && mService.isBatteryNotLow()) in isStrongEnough()
985 if (mService.isBatteryCharging() && mService.isBatteryNotLow()) { in isStrongEnough()
1031 if (!mService.isBatteryCharging() || !mService.isBatteryNotLow()) { in isRelaxedSatisfied()
DQuotaController.java779 if (mService.isBatteryCharging()) { in getMaxJobExecutionTimeMsLocked()
803 if (mService.isBatteryCharging()) { in getMaxJobExecutionTimeMsLocked()
929 if (mService.isBatteryCharging()) {
1663 mService.isBatteryCharging()); in handleNewChargingStateLocked()
1665 Slog.d(TAG, "handleNewChargingStateLocked: " + mService.isBatteryCharging()); in handleNewChargingStateLocked()
4703 mService.isBatteryCharging()); in dumpControllerStateLocked()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java201 when(mService.isBatteryCharging()).thenReturn(false); in testUsable()
261 when(mService.isBatteryCharging()).thenReturn(true); in testUsable()
268 when(mService.isBatteryCharging()).thenReturn(false); in testUsable()
293 when(mService.isBatteryCharging()).thenReturn(true); in testUsable()
510 when(mService.isBatteryCharging()).thenReturn(false); in testStrongEnough_Cellular()
546 when(mService.isBatteryCharging()).thenReturn(true); in testStrongEnough_Cellular()
557 when(mService.isBatteryCharging()).thenReturn(true); in testStrongEnough_Cellular()
568 when(mService.isBatteryCharging()).thenReturn(false); in testStrongEnough_Cellular()
582 when(mService.isBatteryCharging()).thenReturn(false); in testStrongEnough_Cellular()
593 when(mService.isBatteryCharging()).thenReturn(true); in testStrongEnough_Cellular()
[all …]
DBatteryControllerTest.java131 doReturn(true).when(mJobSchedulerService).isBatteryCharging(); in setCharging()
139 doReturn(false).when(mJobSchedulerService).isBatteryCharging(); in setDischarging()
DQuotaControllerTest.java293 doReturn(true).when(mJobSchedulerService).isBatteryCharging(); in setCharging()
300 doReturn(false).when(mJobSchedulerService).isBatteryCharging(); in setDischarging()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ui/binder/
DKeyguardStatusBarViewBinder.kt43 launch { viewModel.isBatteryCharging.collect { view.onBatteryChargingChanged(it) } } in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ui/viewmodel/
DKeyguardStatusBarViewModelTest.kt154 val latest by collectLastValue(underTest.isBatteryCharging) in isBatteryCharging_matchesCallback()
181 val job = underTest.isBatteryCharging.launchIn(this) in isBatteryCharging_unregistersWhenNotListening()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ui/viewmodel/
DKeyguardStatusBarViewModel.kt69 val isBatteryCharging: Flow<Boolean> = conflatedCallbackFlow { in <lambda>() constant
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java1756 assertFalse(mService.isBatteryCharging()); in testIsCharging_standardChargingIntent()
1760 assertTrue(mService.isBatteryCharging()); in testIsCharging_standardChargingIntent()
1764 assertFalse(mService.isBatteryCharging()); in testIsCharging_standardChargingIntent()
1773 assertFalse(mService.isBatteryCharging()); in testIsCharging_adaptiveCharging_batteryTooLow()
1778 assertFalse(mService.isBatteryCharging()); in testIsCharging_adaptiveCharging_batteryTooLow()
1784 assertTrue(mService.isBatteryCharging()); in testIsCharging_adaptiveCharging_batteryTooLow()
1797 assertTrue(mService.isBatteryCharging()); in testIsCharging_adaptiveCharging_chargeBelowThreshold()
1802 assertTrue(mService.isBatteryCharging()); in testIsCharging_adaptiveCharging_chargeBelowThreshold()
1816 assertTrue(mService.isBatteryCharging()); in testIsCharging_adaptiveCharging_dischargeAboveThreshold()
1821 assertEquals(level >= 70, mService.isBatteryCharging()); in testIsCharging_adaptiveCharging_dischargeAboveThreshold()
[all …]
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DHotspotNetworkEntryTest.java534 assertThat(entry.isBatteryCharging()).isTrue(); in testIsBatteryCharging_apiFlagOn_usesHotspotNetworkDataApi()
567 assertThat(entry.isBatteryCharging()).isTrue(); in testIsBatteryCharging_apiFlagOn_usesHotspotNetworkDataExtras()
599 assertThat(entry.isBatteryCharging()).isTrue(); in testIsBatteryCharging_apiFlagOff_usesHotspotNetworkDataExtras()
631 assertThat(entry.isBatteryCharging()).isFalse(); in testIsBatteryCharging_apiFlagOn_extraFalse()
661 assertThat(entry.isBatteryCharging()).isFalse(); in testIsBatteryCharging_apiFlagOn_apiFalse()
690 assertThat(entry.isBatteryCharging()).isFalse(); in testIsBatteryCharging_apiFlagOn_noneSet()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DHotspotNetworkEntry.java390 public synchronized boolean isBatteryCharging() { in isBatteryCharging() method in HotspotNetworkEntry
396 && mHotspotNetworkData.getNetworkProviderInfo().isBatteryCharging()) { in isBatteryCharging()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/idle/
DDeviceIdlenessTracker.java146 mIsStablePower = service.isBatteryCharging() && service.isBatteryNotLow(); in startTracking()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/idle/
DDeviceIdlenessTrackerTest.java155 doReturn(isCharging).when(mJobSchedulerService).isBatteryCharging(); in setBatteryState()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerShellCommand.java453 boolean val = mInternal.isBatteryCharging(); in getBatteryCharging()
DJobSchedulerService.java5510 public boolean isBatteryCharging() {
/frameworks/base/core/api/
Dsystem-current.txt10342 …droid.net.wifi.flags.network_provider_battery_charging_status") public boolean isBatteryCharging();
/frameworks/base/services/
Dart-profile1666 HSPLcom/android/server/job/JobSchedulerService;->isBatteryCharging()Z+]Lcom/android/server/job/JobS…
Dart-wear-profile12853 HPLcom/android/server/job/JobSchedulerService;->isBatteryCharging()Z