/frameworks/base/wifi/java/src/android/net/wifi/sharedconnectivity/app/ |
D | NetworkProviderInfo.java | 175 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/ |
D | BatteryController.java | 86 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()
|
D | IdleController.java | 105 mService.isBatteryCharging(), mService.isBatteryNotLow()); in onBatteryStateChangedLocked()
|
D | ConnectivityController.java | 741 && 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()
|
D | QuotaController.java | 779 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/ |
D | ConnectivityControllerTest.java | 201 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 …]
|
D | BatteryControllerTest.java | 131 doReturn(true).when(mJobSchedulerService).isBatteryCharging(); in setCharging() 139 doReturn(false).when(mJobSchedulerService).isBatteryCharging(); in setDischarging()
|
D | QuotaControllerTest.java | 293 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/ |
D | KeyguardStatusBarViewBinder.kt | 43 launch { viewModel.isBatteryCharging.collect { view.onBatteryChargingChanged(it) } } in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ui/viewmodel/ |
D | KeyguardStatusBarViewModelTest.kt | 154 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/ |
D | KeyguardStatusBarViewModel.kt | 69 val isBatteryCharging: Flow<Boolean> = conflatedCallbackFlow { in <lambda>() constant
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/ |
D | JobSchedulerServiceTest.java | 1756 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/ |
D | HotspotNetworkEntryTest.java | 534 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/ |
D | HotspotNetworkEntry.java | 390 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/ |
D | DeviceIdlenessTracker.java | 146 mIsStablePower = service.isBatteryCharging() && service.isBatteryNotLow(); in startTracking()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/idle/ |
D | DeviceIdlenessTrackerTest.java | 155 doReturn(isCharging).when(mJobSchedulerService).isBatteryCharging(); in setBatteryState()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
D | JobSchedulerShellCommand.java | 453 boolean val = mInternal.isBatteryCharging(); in getBatteryCharging()
|
D | JobSchedulerService.java | 5510 public boolean isBatteryCharging() {
|
/frameworks/base/core/api/ |
D | system-current.txt | 10342 …droid.net.wifi.flags.network_provider_battery_charging_status") public boolean isBatteryCharging();
|
/frameworks/base/services/ |
D | art-profile | 1666 HSPLcom/android/server/job/JobSchedulerService;->isBatteryCharging()Z+]Lcom/android/server/job/JobS…
|
D | art-wear-profile | 12853 HPLcom/android/server/job/JobSchedulerService;->isBatteryCharging()Z
|