PowerStatus 622 ash/shell.cc PowerStatus::Initialize(); PowerStatus 775 ash/shell.cc PowerStatus::Shutdown(); PowerStatus 68 ash/system/chromeos/power/power_status.cc static PowerStatus* g_power_status = NULL; PowerStatus 82 ash/system/chromeos/power/power_status.cc const int PowerStatus::kMaxBatteryTimeToDisplaySec = 24 * 60 * 60; PowerStatus 85 ash/system/chromeos/power/power_status.cc void PowerStatus::Initialize() { PowerStatus 87 ash/system/chromeos/power/power_status.cc g_power_status = new PowerStatus(); PowerStatus 91 ash/system/chromeos/power/power_status.cc void PowerStatus::Shutdown() { PowerStatus 98 ash/system/chromeos/power/power_status.cc bool PowerStatus::IsInitialized() { PowerStatus 103 ash/system/chromeos/power/power_status.cc PowerStatus* PowerStatus::Get() { PowerStatus 109 ash/system/chromeos/power/power_status.cc bool PowerStatus::ShouldDisplayBatteryTime(const base::TimeDelta& time) { PowerStatus 115 ash/system/chromeos/power/power_status.cc void PowerStatus::SplitTimeIntoHoursAndMinutes(const base::TimeDelta& time, PowerStatus 126 ash/system/chromeos/power/power_status.cc void PowerStatus::AddObserver(Observer* observer) { PowerStatus 131 ash/system/chromeos/power/power_status.cc void PowerStatus::RemoveObserver(Observer* observer) { PowerStatus 136 ash/system/chromeos/power/power_status.cc void PowerStatus::RequestStatusUpdate() { PowerStatus 141 ash/system/chromeos/power/power_status.cc bool PowerStatus::IsBatteryPresent() const { PowerStatus 146 ash/system/chromeos/power/power_status.cc bool PowerStatus::IsBatteryFull() const { PowerStatus 151 ash/system/chromeos/power/power_status.cc bool PowerStatus::IsBatteryCharging() const { PowerStatus 156 ash/system/chromeos/power/power_status.cc bool PowerStatus::IsBatteryDischargingOnLinePower() const { PowerStatus 161 ash/system/chromeos/power/power_status.cc double PowerStatus::GetBatteryPercent() const { PowerStatus 165 ash/system/chromeos/power/power_status.cc int PowerStatus::GetRoundedBatteryPercent() const { PowerStatus 170 ash/system/chromeos/power/power_status.cc bool PowerStatus::IsBatteryTimeBeingCalculated() const { PowerStatus 174 ash/system/chromeos/power/power_status.cc base::TimeDelta PowerStatus::GetBatteryTimeToEmpty() const { PowerStatus 178 ash/system/chromeos/power/power_status.cc base::TimeDelta PowerStatus::GetBatteryTimeToFull() const { PowerStatus 182 ash/system/chromeos/power/power_status.cc bool PowerStatus::IsLinePowerConnected() const { PowerStatus 187 ash/system/chromeos/power/power_status.cc bool PowerStatus::IsMainsChargerConnected() const { PowerStatus 192 ash/system/chromeos/power/power_status.cc bool PowerStatus::IsUsbChargerConnected() const { PowerStatus 197 ash/system/chromeos/power/power_status.cc bool PowerStatus::IsOriginalSpringChargerConnected() const { PowerStatus 202 ash/system/chromeos/power/power_status.cc gfx::ImageSkia PowerStatus::GetBatteryImage(IconSet icon_set) const { PowerStatus 239 ash/system/chromeos/power/power_status.cc base::string16 PowerStatus::GetAccessibleNameString() const { PowerStatus 264 ash/system/chromeos/power/power_status.cc PowerStatus::SplitTimeIntoHoursAndMinutes(time, &hour, &min); PowerStatus 281 ash/system/chromeos/power/power_status.cc PowerStatus::PowerStatus() { PowerStatus 288 ash/system/chromeos/power/power_status.cc PowerStatus::~PowerStatus() { PowerStatus 293 ash/system/chromeos/power/power_status.cc void PowerStatus::SetProtoForTesting( PowerStatus 299 ash/system/chromeos/power/power_status.cc void PowerStatus::PowerChanged( PowerStatus 22 ash/system/chromeos/power/power_status.h class ASH_EXPORT PowerStatus : public chromeos::PowerManagerClient::Observer { PowerStatus 56 ash/system/chromeos/power/power_status.h static PowerStatus* Get(); PowerStatus 138 ash/system/chromeos/power/power_status.h PowerStatus(); PowerStatus 139 ash/system/chromeos/power/power_status.h virtual ~PowerStatus(); PowerStatus 151 ash/system/chromeos/power/power_status.h DISALLOW_COPY_AND_ASSIGN(PowerStatus); PowerStatus 20 ash/system/chromeos/power/power_status_unittest.cc class TestObserver : public PowerStatus::Observer { PowerStatus 45 ash/system/chromeos/power/power_status_unittest.cc PowerStatus::Initialize(); PowerStatus 46 ash/system/chromeos/power/power_status_unittest.cc power_status_ = PowerStatus::Get(); PowerStatus 54 ash/system/chromeos/power/power_status_unittest.cc PowerStatus::Shutdown(); PowerStatus 60 ash/system/chromeos/power/power_status_unittest.cc PowerStatus* power_status_; // Not owned. PowerStatus 84 ash/system/chromeos/power/power_status_unittest.cc EXPECT_FALSE(PowerStatus::ShouldDisplayBatteryTime( PowerStatus 86 ash/system/chromeos/power/power_status_unittest.cc EXPECT_FALSE(PowerStatus::ShouldDisplayBatteryTime( PowerStatus 88 ash/system/chromeos/power/power_status_unittest.cc EXPECT_FALSE(PowerStatus::ShouldDisplayBatteryTime( PowerStatus 90 ash/system/chromeos/power/power_status_unittest.cc EXPECT_TRUE(PowerStatus::ShouldDisplayBatteryTime( PowerStatus 92 ash/system/chromeos/power/power_status_unittest.cc EXPECT_TRUE(PowerStatus::ShouldDisplayBatteryTime( PowerStatus 94 ash/system/chromeos/power/power_status_unittest.cc EXPECT_TRUE(PowerStatus::ShouldDisplayBatteryTime( PowerStatus 96 ash/system/chromeos/power/power_status_unittest.cc EXPECT_TRUE(PowerStatus::ShouldDisplayBatteryTime( PowerStatus 98 ash/system/chromeos/power/power_status_unittest.cc PowerStatus::kMaxBatteryTimeToDisplaySec))); PowerStatus 99 ash/system/chromeos/power/power_status_unittest.cc EXPECT_FALSE(PowerStatus::ShouldDisplayBatteryTime( PowerStatus 101 ash/system/chromeos/power/power_status_unittest.cc PowerStatus::kMaxBatteryTimeToDisplaySec + 1))); PowerStatus 106 ash/system/chromeos/power/power_status_unittest.cc PowerStatus::SplitTimeIntoHoursAndMinutes( PowerStatus 111 ash/system/chromeos/power/power_status_unittest.cc PowerStatus::SplitTimeIntoHoursAndMinutes( PowerStatus 116 ash/system/chromeos/power/power_status_unittest.cc PowerStatus::SplitTimeIntoHoursAndMinutes( PowerStatus 121 ash/system/chromeos/power/power_status_unittest.cc PowerStatus::SplitTimeIntoHoursAndMinutes( PowerStatus 126 ash/system/chromeos/power/power_status_unittest.cc PowerStatus::SplitTimeIntoHoursAndMinutes( PowerStatus 132 ash/system/chromeos/power/power_status_unittest.cc PowerStatus::SplitTimeIntoHoursAndMinutes( PowerStatus 137 ash/system/chromeos/power/power_status_unittest.cc PowerStatus::SplitTimeIntoHoursAndMinutes( PowerStatus 38 ash/system/chromeos/power/power_status_view.cc PowerStatus::Get()->AddObserver(this); PowerStatus 53 ash/system/chromeos/power/power_status_view.cc PowerStatus::Get()->RemoveObserver(this); PowerStatus 62 ash/system/chromeos/power/power_status_view.cc PowerStatus::Get()->GetBatteryImage(PowerStatus::ICON_DARK)); PowerStatus 105 ash/system/chromeos/power/power_status_view.cc const PowerStatus& status = *PowerStatus::Get(); PowerStatus 126 ash/system/chromeos/power/power_status_view.cc if (PowerStatus::ShouldDisplayBatteryTime(time) && PowerStatus 129 ash/system/chromeos/power/power_status_view.cc PowerStatus::SplitTimeIntoHoursAndMinutes(time, &hour, &min); PowerStatus 152 ash/system/chromeos/power/power_status_view.cc const PowerStatus& status = *PowerStatus::Get(); PowerStatus 175 ash/system/chromeos/power/power_status_view.cc } else if (PowerStatus::ShouldDisplayBatteryTime(time) && PowerStatus 178 ash/system/chromeos/power/power_status_view.cc PowerStatus::SplitTimeIntoHoursAndMinutes(time, &hour, &min); PowerStatus 20 ash/system/chromeos/power/power_status_view.h public PowerStatus::Observer { PowerStatus 40 ash/system/chromeos/power/power_status_view_unittest.cc PowerStatus::Get()->SetProtoForTesting(proto); PowerStatus 69 ash/system/chromeos/power/tray_power.cc SetVisible(PowerStatus::Get()->IsBatteryPresent()); PowerStatus 72 ash/system/chromeos/power/tray_power.cc accessible_name_ = PowerStatus::Get()->GetAccessibleNameString(); PowerStatus 88 ash/system/chromeos/power/tray_power.cc SetImage(PowerStatus::Get()->GetBatteryImage(PowerStatus::ICON_LIGHT)); PowerStatus 142 ash/system/chromeos/power/tray_power.cc SetIconImage(PowerStatus::Get()->GetBatteryImage(PowerStatus::ICON_DARK)); PowerStatus 170 ash/system/chromeos/power/tray_power.cc PowerStatus::Get()->AddObserver(this); PowerStatus 174 ash/system/chromeos/power/tray_power.cc PowerStatus::Get()->RemoveObserver(this); PowerStatus 189 ash/system/chromeos/power/tray_power.cc PowerStatus::Get()->RequestStatusUpdate(); PowerStatus 195 ash/system/chromeos/power/tray_power.cc if (!PowerStatus::Get()->IsBatteryPresent()) PowerStatus 225 ash/system/chromeos/power/tray_power.cc if (PowerStatus::Get()->IsOriginalSpringChargerConnected()) { PowerStatus 250 ash/system/chromeos/power/tray_power.cc usb_charger_was_connected_ = PowerStatus::Get()->IsUsbChargerConnected(); PowerStatus 251 ash/system/chromeos/power/tray_power.cc line_power_was_connected_ = PowerStatus::Get()->IsLinePowerConnected(); PowerStatus 257 ash/system/chromeos/power/tray_power.cc bool usb_charger_is_connected = PowerStatus::Get()->IsUsbChargerConnected(); PowerStatus 288 ash/system/chromeos/power/tray_power.cc const PowerStatus& status = *PowerStatus::Get(); PowerStatus 306 ash/system/chromeos/power/tray_power.cc PowerStatus::Get()->GetBatteryTimeToEmpty().InSecondsF() / 60.0 + 0.5); PowerStatus 309 ash/system/chromeos/power/tray_power.cc PowerStatus::Get()->IsBatteryFull()) { PowerStatus 342 ash/system/chromeos/power/tray_power.cc PowerStatus::Get()->GetRoundedBatteryPercent(); PowerStatus 345 ash/system/chromeos/power/tray_power.cc PowerStatus::Get()->IsBatteryFull()) { PowerStatus 375 ash/system/chromeos/power/tray_power.cc if (!PowerStatus::Get()->IsLinePowerConnected() || PowerStatus 380 ash/system/chromeos/power/tray_power.cc if (PowerStatus::Get()->IsMainsChargerConnected()) { PowerStatus 382 ash/system/chromeos/power/tray_power.cc } else if (PowerStatus::Get()->IsUsbChargerConnected()) { PowerStatus 384 ash/system/chromeos/power/tray_power.cc } else if (PowerStatus::Get()->IsOriginalSpringChargerConnected()) { PowerStatus 29 ash/system/chromeos/power/tray_power.h public PowerStatus::Observer { PowerStatus 72 ash/system/chromeos/power/tray_power_unittest.cc PowerStatus::Get()->SetProtoForTesting(proto); PowerStatus 77 ash/system/chromeos/power/tray_power_unittest.cc PowerStatus::Get()->SetProtoForTesting(proto); PowerStatus 31 ash/system/chromeos/settings/tray_settings.cc public PowerStatus::Observer { PowerStatus 37 ash/system/chromeos/settings/tray_settings.cc PowerStatus::Get()->AddObserver(this); PowerStatus 60 ash/system/chromeos/settings/tray_settings.cc if (PowerStatus::Get()->IsBatteryPresent()) { PowerStatus 69 ash/system/chromeos/settings/tray_settings.cc PowerStatus::Get()->RemoveObserver(this); PowerStatus 105 ash/system/chromeos/settings/tray_settings.cc if (!PowerStatus::Get()->IsBatteryPresent()) PowerStatus 110 ash/system/chromeos/settings/tray_settings.cc PowerStatus::Get()->GetAccessibleNameString() : PowerStatus 111 ash/system/chromeos/settings/tray_settings.cc PowerStatus::Get()->GetAccessibleNameString(); PowerStatus 139 ash/system/chromeos/settings/tray_settings.cc !PowerStatus::Get()->IsBatteryPresent())