#include "components/download/internal/background_service/scheduler/device_status.h"
namespace download {
const int DeviceStatus::kBatteryPercentageAlwaysStart = …;
DeviceStatus::Result::Result()
: … { … }
bool DeviceStatus::Result::MeetsRequirements() const { … }
DeviceStatus::DeviceStatus()
: … { … }
DeviceStatus::DeviceStatus(BatteryStatus battery, NetworkStatus network)
: … { … }
DeviceStatus::DeviceStatus(BatteryStatus battery,
int battery_percentage,
NetworkStatus network)
: … { … }
bool DeviceStatus::operator==(const DeviceStatus& rhs) const { … }
bool DeviceStatus::operator!=(const DeviceStatus& rhs) const { … }
DeviceStatus::Result DeviceStatus::MeetsCondition(
const SchedulingParams& params,
int download_battery_percentage) const { … }
Criteria::Criteria(int optimal_battery_percentage)
: … { … }
Criteria::Criteria(bool requires_battery_charging,
bool requires_unmetered_network,
int optimal_battery_percentage)
: … { … }
bool Criteria::operator==(const Criteria& other) const { … }
}