Home
last modified time | relevance | path

Searched refs:charging (Results 1 – 25 of 31) sorted by relevance

12

/external/chromium_org/content/browser/battery_status/
Dbattery_status_manager_linux_unittest.cc19 EXPECT_EQ(default_status.charging, status.charging); in TEST()
33 EXPECT_TRUE(status.charging); in TEST()
47 EXPECT_TRUE(status.charging); in TEST()
62 EXPECT_TRUE(status.charging); in TEST()
77 EXPECT_FALSE(status.charging); in TEST()
92 EXPECT_FALSE(status.charging); in TEST()
107 EXPECT_TRUE(status.charging); in TEST()
122 EXPECT_FALSE(status.charging); in TEST()
135 EXPECT_FALSE(status.charging); in TEST()
Dbattery_status_manager_win_unittest.cc20 EXPECT_FALSE(status.charging); in TEST()
33 EXPECT_FALSE(status.charging); in TEST()
46 EXPECT_TRUE(status.charging); in TEST()
59 EXPECT_TRUE(status.charging); in TEST()
72 EXPECT_TRUE(status.charging); in TEST()
Dbattery_status_manager_android.cc34 jboolean charging, in GotBatteryStatus() argument
39 status.charging = charging; in GotBatteryStatus()
Dbattery_status_manager_chromeos.cc121 status.charging = IsBatteryCharging(proto); in PowerChanged()
126 if (time_unreliable || !status.charging) in PowerChanged()
133 if (!time_unreliable && !status.charging) in PowerChanged()
Dbattery_status_service_unittest.cc157 status.charging = true; in TEST_F()
166 EXPECT_EQ(status.charging, battery_status().charging); in TEST_F()
Dbattery_status_manager_win.cc209 status.charging = win_status.ACLineStatus != WIN_AC_LINE_STATUS_OFFLINE; in ComputeWebBatteryStatus()
217 if (!status.charging) { in ComputeWebBatteryStatus()
Dbattery_status_manager_android.h26 jboolean charging,
Dbattery_status_browsertest.cc124 status.charging = true; in IN_PROC_BROWSER_TEST_F()
Dbattery_status_manager_mac.cc75 status.charging = !on_battery_power || is_charging; in FetchBatteryStatus()
Dbattery_status_manager_linux.cc338 status.charging = state != UPOWER_DEVICE_STATE_DISCHARGING && in ComputeWebBatteryStatus()
/external/chromium_org/third_party/WebKit/Source/modules/battery/
DBatteryStatus.cpp17 BatteryStatus* BatteryStatus::create(bool charging, double chargingTime, double dischargingTime, do… in create() argument
19 return new BatteryStatus(charging, chargingTime, dischargingTime, level); in create()
30 BatteryStatus::BatteryStatus(bool charging, double chargingTime, double dischargingTime, double lev… in BatteryStatus() argument
31 : m_charging(charging) in BatteryStatus()
DBatteryStatus.h17 …static BatteryStatus* create(bool charging, double chargingTime, double dischargingTime, double le…
19 bool charging() const { return m_charging; } in charging() function
28 BatteryStatus(bool charging, double chargingTime, double dischargingTime, double level);
DBatteryManager.cpp56 bool BatteryManager::charging() in charging() function in blink::BatteryManager
58 return m_batteryStatus->charging(); in charging()
97 if (m_batteryStatus->charging() != oldStatus->charging()) in didUpdateData()
DBatteryDispatcher.cpp30 …m_batteryStatus = BatteryStatus::create(batteryStatus.charging, batteryStatus.chargingTime, batter… in updateBatteryStatus()
DBatteryManager.idl11 readonly attribute boolean charging;
DBatteryManager.h34 bool charging();
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
DBatteryStatusManager.java101 boolean charging = pluggedStatus != 0; in onReceive()
117 double chargingTime = (charging & batteryFull) ? 0 : Double.POSITIVE_INFINITY; in onReceive()
120 gotBatteryStatus(charging, chargingTime, dischargingTime, level); in onReceive()
133 protected void gotBatteryStatus(boolean charging, double chargingTime, in gotBatteryStatus() argument
137 nativeGotBatteryStatus(mNativePtr, charging, chargingTime, dischargingTime, level); in gotBatteryStatus()
147 boolean charging, double chargingTime, double dischargingTime, double level); in nativeGotBatteryStatus() argument
/external/chromium_org/content/renderer/battery_status/
Dbattery_status_dispatcher_unittest.cc51 status.charging = true; in TEST_F()
63 EXPECT_EQ(status.charging, received_status.charging); in TEST_F()
/external/chromium_org/third_party/WebKit/public/platform/
DWebBatteryStatus.h15 : charging(true) in WebBatteryStatus()
22 bool charging; variable
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
DBatteryStatusManagerTest.java138 private void verifyValues(boolean charging, double chargingTime, in verifyValues() argument
140 assertEquals(charging, mCharging); in verifyValues()
156 protected void gotBatteryStatus(boolean charging, double chargingTime, in gotBatteryStatus() argument
158 mCharging = charging; in gotBatteryStatus()
/external/chromium_org/ash/system/chromeos/power/
Dtray_power_unittest.cc155 PowerSupplyProperties charging = DefaultPowerSupplyProperties(); in TEST_F() local
156 charging.set_external_power( in TEST_F()
158 charging.set_battery_state( in TEST_F()
160 EXPECT_FALSE(UpdateNotificationState(charging)); in TEST_F()
/external/nist-sip/java/gov/nist/javax/sip/parser/ims/
DPChargingFunctionAddressesParser.java71 public PChargingFunctionAddressesParser(String charging) { in PChargingFunctionAddressesParser() argument
73 super(charging); in PChargingFunctionAddressesParser()
/external/chromium_org/content/common/
Dbattery_status_messages.h16 IPC_STRUCT_TRAITS_MEMBER(charging)
/external/chromium_org/content/shell/renderer/test_runner/
Dtest_runner.cc203 void DidChangeBatteryStatus(bool charging,
938 void TestRunnerBindings::DidChangeBatteryStatus(bool charging, in DidChangeBatteryStatus() argument
943 runner_->DidChangeBatteryStatus(charging, chargingTime, in DidChangeBatteryStatus()
2403 void TestRunner::DidChangeBatteryStatus(bool charging, in DidChangeBatteryStatus() argument
2408 status.charging = charging; in DidChangeBatteryStatus()
Dtest_runner.h310 void DidChangeBatteryStatus(bool charging,

12