Home
last modified time | relevance | path

Searched refs:UpdateRestrictions (Results 1 – 9 of 9) 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.cc417 : public UpdaterVariableBase<UpdateRestrictions> {
420 : UpdaterVariableBase<UpdateRestrictions>( in UpdateRestrictionsVariable()
424 const UpdateRestrictions* GetValue(TimeDelta /* timeout */, in GetValue()
428 UpdateRestrictions restriction_flags = UpdateRestrictions::kNone; in GetValue()
432 restriction_flags = static_cast<UpdateRestrictions>( in GetValue()
433 restriction_flags | UpdateRestrictions::kRestrictDownloading); in GetValue()
436 return new UpdateRestrictions(restriction_flags); in GetValue()
Dboxed_value.cc224 string BoxedValue::ValuePrinter<UpdateRestrictions>(const void* value) { in ValuePrinter()
225 const UpdateRestrictions* val = in ValuePrinter()
226 reinterpret_cast<const UpdateRestrictions*>(value); in ValuePrinter()
228 if (*val == UpdateRestrictions::kNone) { in ValuePrinter()
Dupdater_provider.h48 enum UpdateRestrictions : int { enum
116 virtual Variable<UpdateRestrictions>* var_update_restrictions() = 0;
Dfake_updater_provider.h82 FakeVariable<UpdateRestrictions>* var_update_restrictions() override { in var_update_restrictions()
109 FakeVariable<UpdateRestrictions> var_update_restrictions_{
Dboxed_value_unittest.cc265 BoxedValue(new UpdateRestrictions(UpdateRestrictions::kNone)).ToString()); in TEST()
267 BoxedValue(new UpdateRestrictions( in TEST()
268 UpdateRestrictions::kRestrictDownloading)) in TEST()
Dreal_updater_provider.h93 Variable<UpdateRestrictions>* var_update_restrictions() override { in var_update_restrictions()
116 std::unique_ptr<Variable<UpdateRestrictions>> var_update_restrictions_;
Dandroid_things_policy_unittest.cc178 new UpdateRestrictions(UpdateRestrictions::kRestrictDownloading)); in TEST_F()
Dreal_updater_provider_unittest.cc437 UmTestUtils::ExpectVariableHasValue(UpdateRestrictions::kRestrictDownloading, in TEST_F()
445 UmTestUtils::ExpectVariableHasValue(UpdateRestrictions::kNone, in TEST_F()