Home
last modified time | relevance | path

Searched refs:value_ (Results 1 – 25 of 35) sorted by relevance

12

/system/bt/gd/l2cap/
Dsignal_id.h26 constexpr SignalId(uint8_t value) : value_(value) {} in SignalId()
27 constexpr SignalId() : value_(1) {} in SignalId()
31 return value_; in Value()
35 return value_ != 0; in IsValid()
47 uint8_t value_;
54 return lhs.value_ == rhs.value_;
62 value_++;
63 if (value_ == 0) value_++;
74 value_--;
75 if (value_ == 0) value_ = 0xff;
/system/update_engine/update_manager/
Dboxed_value.h59 BoxedValue() : value_(nullptr), deleter_(nullptr), printer_(nullptr) {} in BoxedValue()
65 : value_(static_cast<const void*>(value)), in BoxedValue()
75 : value_(other.value_), in BoxedValue()
78 other.value_ = nullptr; in BoxedValue()
87 deleter_(value_); in ~BoxedValue()
90 const void* value() const { return value_; } in value()
95 if (!value_) in ToString()
97 return printer_(value_); in ToString()
113 const void* value_;
Dgeneric_variables.h190 value_(value) {} in AsyncCopyVariable()
193 bool should_notify = !(has_value_ && new_value == value_); in SetValue()
194 value_ = new_value; in SetValue()
216 return new T(value_); in GetValue()
224 T value_; variable
/system/security/keystore/include/keystore/
Dkeystore_concurrency.h28 LockedType* value_; variable
32 UnlockProxyLockHelper() : value_(nullptr) {} in UnlockProxyLockHelper()
34 : unlock_(std::move(unlock)), value_(value) {} in UnlockProxyLockHelper()
36 if (unlock_) unlock_(value_); in ~UnlockProxyLockHelper()
39 : unlock_(std::move(rhs.unlock_)), value_(rhs.value_) { in UnlockProxyLockHelper()
40 rhs.value_ = nullptr; in UnlockProxyLockHelper()
47 value_ = std::move(rhs.value_);
48 rhs.value_ = nullptr;
58 return value_; in value()
60 const LockedType* value() const { return value_; } in value()
[all …]
/system/nvram/messages/include/nvram/messages/
Doptional.h27 explicit Optional(ValueType value) : value_(value), valid_(true) {} in Optional()
30 const ValueType& value() const { return value_; } in value()
35 value_ = ValueType{}; in Activate()
36 return value_; in Activate()
45 ValueType value_{};
/system/keymaster/include/keymaster/
Dremote_provisioning_utils.h39 : status_code_(0), value_(std::move(val)) {} // NOLINT(google-explicit-constructor) in StatusOr()
45 return &value_.value();
49 return value_.value();
53 return std::move(value_).value();
61 T moveValue() { return std::move(value_).value(); } in moveValue()
65 std::optional<T> value_; variable
/system/bt/gd/cert/
Dcert_self_test_lib.py58 self.value_ = value
62 return "BogusRpc value = " + str(self.value_)
66 yield [field, self.value_]
135 lambda data: data.value_ == 1, timeout=timedelta(milliseconds=300), at_least_times=2)
140 … event_stream.assert_event_occurs(lambda data: data.value_ == 1, timeout=timedelta(seconds=1))
146 … event_stream.assert_event_occurs(lambda data: data.value_ == 4, timeout=timedelta(seconds=1))
156 lambda data: data.value_ < 4, timeout=timedelta(seconds=1), at_most_times=3)
163 lambda data: data.value_ > 1, timeout=timedelta(seconds=1), at_most_times=2)
266 assertThat(event_stream).emits(lambda data: data.value_ == 1)
271 … assertThat(event_stream).emits(lambda data: data.value_ == 1).then(lambda data: data.value_ == 3)
[all …]
/system/bt/gd/packet/parser/fields/
Dfixed_scalar_field.cc23 : FixedField("fixed_scalar", size, loc), value_(value) {} in FixedScalarField()
34 s << value_; in GenValue()
38 s << "+" << value_; in GenStringRepresentation()
42 s << "let " << GetName() << ": " << GetRustDataType() << " = " << value_ << ";"; in GenRustWriter()
Dfixed_enum_field.cc23 : FixedField("fixed_enum", enum_def->size_, loc), enum_(enum_def), value_(value) {} in FixedEnumField()
34 s << enum_->name_ << "::" << value_; in GenValue()
Dfixed_enum_field.h42 std::string value_; variable
Dfixed_scalar_field.h48 const int64_t value_;
/system/bt/service/common/bluetooth/
Davrcp_string_value.h27 AvrcpStringValue(int id, const std::string& value) : id_(id), value_(value){}; in AvrcpStringValue()
31 const std::string& value() const { return value_; } in value()
35 std::string value_; variable
Davrcp_int_value.h29 int value() const { return value_; } in value()
33 int value_ = 0; variable
Davrcp_int_value.cc23 AvrcpIntValue::AvrcpIntValue(int id, int value) : id_(id), value_(value) {} in AvrcpIntValue()
/system/update_engine/common/
Ddynamic_partition_control_interface.h48 constexpr explicit FeatureFlag(Value value) : value_(value) {} in FeatureFlag()
49 constexpr bool IsEnabled() const { return value_ != Value::NONE; } in IsEnabled()
50 constexpr bool IsRetrofit() const { return value_ == Value::RETROFIT; } in IsRetrofit()
51 constexpr bool IsLaunch() const { return value_ == Value::LAUNCH; } in IsLaunch()
54 Value value_;
/system/bt/service/common/android/bluetooth/
Dbluetooth_avrcp_string_value.cc33 status = parcel->writeString16(String16(value_.c_str(), value_.size())); in writeToParcel()
48 value_ = String8(value).string(); in readFromParcel()
Dbluetooth_avrcp_int_value.cc33 status = parcel->writeInt32(value_); in writeToParcel()
47 value_ = tmp; in readFromParcel()
/system/keymaster/include/keymaster/cppcose/
Dcppcose.h92 : value_(std::move(val)) {} in ErrMsgOr()
94 explicit operator bool() const { return value_.has_value(); }
97 assert(value_);
98 return &value_.value();
101 assert(value_);
102 return value_.value();
105 assert(value_);
106 return std::move(value_).value();
113 assert(value_); in moveValue()
114 return std::move(value_).value(); in moveValue()
[all …]
/system/core/fs_mgr/libstorage_literals/storage_literals/
Dstorage_literals.h26 explicit constexpr Size(uint64_t count) : value_(count) {} in Size()
28 constexpr uint64_t bytes() const { return value_ << power; } in bytes()
29 constexpr uint64_t count() const { return value_; } in count()
33 uint64_t value_;
/system/tools/aidl/
Daidl_const_expressions.cpp450 str_values.push_back(v->value_); in Array()
483 AIDL_ERROR(this) << "Invalid constant value: " + value_; in ValueString()
492 << ") for a const value (" << value_ << ")"; in ValueString()
496 AIDL_ERROR(this) << "Invalid value (" << value_ << ") for enum " in ValueString()
500 return decorator(type, value_); in ValueString()
570 if (!ParseFloating(value_, &parsed_value)) { in ValueString()
571 AIDL_ERROR(this) << "Could not parse " << value_; in ValueString()
579 if (!ParseFloating(value_, &parsed_value)) { in ValueString()
580 AIDL_ERROR(this) << "Could not parse " << value_; in ValueString()
647 AIDL_ERROR(this) << "Invalid array element: " << value->value_; in evaluate()
[all …]
/system/update_engine/payload_consumer/
Dcached_file_descriptor_unittest.cc77 int value_{1}; member in chromeos_update_engine::CachedFileDescriptorTest
87 brillo::Blob blob_in(kFileSize, value_); in TEST_F()
98 brillo::Blob blob_in(kFileSize, value_); in TEST_F()
150 brillo::Blob blob_in(kFileSize, value_); in TEST_F()
161 std::fill_n(&blob_in[seek], kCacheSize, value_); in TEST_F()
176 std::fill_n(&blob_in[seek], less_than_cache_size, value_); in TEST_F()
192 std::fill_n(&blob_in[seek], less_than_cache_size, value_); in TEST_F()
/system/bt/include/hardware/avrcp/
Davrcp_common.h150 : attribute_(attribute), value_(value) {} in AttributeEntry()
158 std::string value() const { return value_; } in value()
168 size_t size() const { return kHeaderSize() + value_.size(); } in size()
172 if (value_.size() > new_size) { in resize()
173 value_.resize(new_size); in resize()
177 bool empty() { return value_.empty(); } in empty()
185 std::string value_; variable
/system/teeui/libteeui/include/teeui/
Dutils.h333 Numeric value_;
337 constexpr Coordinate() : value_{} {}
338 constexpr Coordinate(Numeric value) : value_(value) {}
343 value_ = bits::round(other.count());
345 value_ = other.count();
351 constexpr Coordinate operator-(const Coordinate& v) const { return value_ - v.value_; }
352 constexpr Coordinate operator+(const Coordinate& v) const { return value_ + v.value_; }
354 value_ -= v.value_;
358 value_ += v.value_;
361 constexpr Coordinate operator*(const Coordinate& v) const { return value_ * v.value_; }
[all …]
/system/core/libprocessgroup/
Dtask_profiles.h101 : attribute_(attribute), value_(value) {} in SetAttributeAction()
108 std::string value_; variable
147 : filepath_(filepath), value_(value), logfailures_(logfailures) {} in WriteFileAction()
153 std::string filepath_, value_;
/system/keymaster/ng/include/
Dkeymaster_tags.h309 NullOr() : value_(initializer_t<ValueT>::init()), null_(true) {}
311 NullOr(ValueT&& value) : value_(std::forward<ValueT>(value)), null_(false) {}
315 const ValueT& value() const& { return value_; }
316 ValueT& value() & { return value_; }
317 ValueT&& value() && { return std::move(value_); }
320 ValueT value_;

12