HomeSort by relevance Sort by last modified time
    Searched refs:PowerStatus (Results 1 - 11 of 11) sorted by null

  /external/chromium_org/ash/system/chromeos/power/
power_status_unittest.cc 22 class TestObserver : public PowerStatus::Observer {
29 // PowerStatus::Observer overrides:
47 PowerStatus::Initialize();
48 power_status_ = PowerStatus::Get();
56 PowerStatus::Shutdown();
62 PowerStatus* power_status_; // Not owned.
71 // PowerStatus is instantiated. This depends on
86 EXPECT_FALSE(PowerStatus::ShouldDisplayBatteryTime(
88 EXPECT_FALSE(PowerStatus::ShouldDisplayBatteryTime(
90 EXPECT_FALSE(PowerStatus::ShouldDisplayBatteryTime
    [all...]
power_status.cc 62 static PowerStatus* g_power_status = NULL;
76 const int PowerStatus::kMaxBatteryTimeToDisplaySec = 24 * 60 * 60;
79 void PowerStatus::Initialize() {
81 g_power_status = new PowerStatus();
85 void PowerStatus::Shutdown() {
92 bool PowerStatus::IsInitialized() {
97 PowerStatus* PowerStatus::Get() {
98 CHECK(g_power_status) << "PowerStatus::Get() called before Initialize().";
103 bool PowerStatus::ShouldDisplayBatteryTime(const base::TimeDelta& time)
    [all...]
tray_power.cc 60 SetVisible(PowerStatus::Get()->IsBatteryPresent());
63 accessible_name_ = PowerStatus::Get()->GetAccessibleNameString();
70 SetImage(PowerStatus::Get()->GetBatteryImage(PowerStatus::ICON_LIGHT));
88 SetIconImage(PowerStatus::Get()->GetBatteryImage(PowerStatus::ICON_DARK));
116 PowerStatus::Get()->AddObserver(this);
120 PowerStatus::Get()->RemoveObserver(this);
135 PowerStatus::Get()->RequestStatusUpdate();
141 if (!PowerStatus::Get()->IsBatteryPresent()
    [all...]
power_status.h 20 // PowerStatus is a singleton that receives updates about the system's
23 class ASH_EXPORT PowerStatus : public chromeos::PowerManagerClient::Observer {
57 static PowerStatus* Get();
139 PowerStatus();
140 virtual ~PowerStatus();
152 DISALLOW_COPY_AND_ASSIGN(PowerStatus);
power_status_view.cc 39 PowerStatus::Get()->AddObserver(this);
54 PowerStatus::Get()->RemoveObserver(this);
63 PowerStatus::Get()->GetBatteryImage(PowerStatus::ICON_DARK));
107 const PowerStatus& status = *PowerStatus::Get();
128 if (PowerStatus::ShouldDisplayBatteryTime(time) &&
131 PowerStatus::SplitTimeIntoHoursAndMinutes(time, &hour, &min);
154 const PowerStatus& status = *PowerStatus::Get()
    [all...]
power_status_view.h 19 class PowerStatusView : public views::View, public PowerStatus::Observer {
34 // Overridden from PowerStatus::Observer.
tray_power.h 31 public PowerStatus::Observer {
84 // Overridden from PowerStatus::Observer.
tray_power_unittest.cc 73 PowerStatus::Get()->SetProtoForTesting(proto);
78 PowerStatus::Get()->SetProtoForTesting(proto);
  /external/chromium_org/ash/system/chromeos/settings/
tray_settings.cc 34 public PowerStatus::Observer {
40 PowerStatus::Get()->AddObserver(this);
63 if (PowerStatus::Get()->IsBatteryPresent()) {
72 PowerStatus::Get()->RemoveObserver(this);
106 // Overridden from PowerStatus::Observer.
108 if (!PowerStatus::Get()->IsBatteryPresent())
113 PowerStatus::Get()->GetAccessibleNameString() :
114 PowerStatus::Get()->GetAccessibleNameString();
142 !PowerStatus::Get()->IsBatteryPresent())
  /external/chromium/chrome/browser/chromeos/cros/
power_library.cc 20 status_(chromeos::PowerStatus()) {
99 const chromeos::PowerStatus& status) {
116 void UpdatePowerStatus(const chromeos::PowerStatus& status) {
157 chromeos::PowerStatus status_;
  /external/chromium_org/ash/
shell.cc 590 internal::PowerStatus::Initialize();
718 internal::PowerStatus::Shutdown();
    [all...]

Completed in 245 milliseconds