Home
last modified time | relevance | path

Searched refs:UpdateRestrictions (Results 1 – 8 of 8) sorted by relevance

/system/update_engine/update_manager/
Dapi_restricted_downloads_policy_impl.cc33 const UpdateRestrictions* update_restrictions_p = in UpdateCanBeApplied()
36 if (*update_restrictions_p & UpdateRestrictions::kRestrictDownloading) { in UpdateCanBeApplied()
Dreal_updater_provider.cc410 : public UpdaterVariableBase<UpdateRestrictions> {
413 : UpdaterVariableBase<UpdateRestrictions>(name, kVariableModePoll) {} in UpdateRestrictionsVariable()
416 const UpdateRestrictions* GetValue(TimeDelta /* timeout */, in GetValue()
420 UpdateRestrictions restriction_flags = UpdateRestrictions::kNone; in GetValue()
424 restriction_flags = static_cast<UpdateRestrictions>( in GetValue()
425 restriction_flags | UpdateRestrictions::kRestrictDownloading); in GetValue()
428 return new UpdateRestrictions(restriction_flags); in GetValue()
Dupdater_provider.h49 enum UpdateRestrictions : int { enum
117 virtual Variable<UpdateRestrictions>* var_update_restrictions() = 0;
Dboxed_value.cc205 string BoxedValue::ValuePrinter<UpdateRestrictions>(const void* value) { in ValuePrinter()
206 const UpdateRestrictions* val = in ValuePrinter()
207 reinterpret_cast<const UpdateRestrictions*>(value); in ValuePrinter()
209 if (*val == UpdateRestrictions::kNone) { in ValuePrinter()
Dfake_updater_provider.h82 FakeVariable<UpdateRestrictions>* var_update_restrictions() override { in var_update_restrictions()
113 FakeVariable<UpdateRestrictions> var_update_restrictions_{
Dboxed_value_unittest.cc255 BoxedValue(new UpdateRestrictions(UpdateRestrictions::kNone)).ToString()); in TEST()
257 BoxedValue(new UpdateRestrictions( in TEST()
258 UpdateRestrictions::kRestrictDownloading)) in TEST()
Dreal_updater_provider.h91 Variable<UpdateRestrictions>* var_update_restrictions() override { in var_update_restrictions()
115 std::unique_ptr<Variable<UpdateRestrictions>> var_update_restrictions_;
Dreal_updater_provider_unittest.cc437 UmTestUtils::ExpectVariableHasValue(UpdateRestrictions::kRestrictDownloading, in TEST_F()
445 UmTestUtils::ExpectVariableHasValue(UpdateRestrictions::kNone, in TEST_F()