Home
last modified time | relevance | path

Searched refs:value_ (Results 1 – 25 of 33) 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/update_engine/common/
Ddynamic_partition_control_interface.h35 constexpr explicit FeatureFlag(Value value) : value_(value) {} in FeatureFlag()
36 constexpr bool IsEnabled() const { return value_ != Value::NONE; } in IsEnabled()
37 constexpr bool IsRetrofit() const { return value_ == Value::RETROFIT; } in IsRetrofit()
38 constexpr bool IsLaunch() const { return value_ == Value::LAUNCH; } in IsLaunch()
41 Value 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/bt/gd/cert/
Dcert_self_test.py61 self.value_ = value
65 return "BogusRpc value = " + str(self.value_)
69 yield [field, self.value_]
146 … lambda data: data.value_ == 1, timeout=timedelta(milliseconds=300), at_least_times=2)
150 … event_stream.assert_event_occurs(lambda data: data.value_ == 1, timeout=timedelta(seconds=1))
155 … event_stream.assert_event_occurs(lambda data: data.value_ == 4, timeout=timedelta(seconds=1))
164 lambda data: data.value_ < 4, timeout=timedelta(seconds=1), at_most_times=3)
170 lambda data: data.value_ > 1, timeout=timedelta(seconds=1), at_most_times=2)
261 assertThat(event_stream).emits(lambda data: data.value_ == 1)
265 … 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()
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.h43 const int64_t value_; variable
Denum_field.h48 std::string value_; variable
Denum_field.cc24 : ScalarField(name, enum_def.size_, loc), enum_def_(enum_def), value_(value) {} in EnumField()
/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/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.cpp356 AIDL_ERROR(other) << "Failed to parse expression as integer: " << other.value_; in ShallowIntegralCopy()
387 AIDL_ERROR(this) << "Invalid constant value: " + value_; in ValueString()
455 std::string_view raw_view(value_.c_str()); in ValueString()
462 AIDL_ERROR(this) << "Could not parse " << value_; in ValueString()
471 AIDL_ERROR(this) << "Could not parse " << value_; in ValueString()
539 AIDL_ERROR(this) << "Invalid array element: " << value->value_; in evaluate()
563 if ((value_ != "true") && (value_ != "false")) { in evaluate()
564 AIDL_ERROR(this) << "Invalid constant boolean value: " << value_; in evaluate()
568 final_value_ = (value_ == "true") ? 1 : 0; in evaluate()
579 final_string_value_ = value_; in evaluate()
[all …]
/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/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/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/keymaster/ng/include/
Dkeymaster_tags.h311 NullOr() : value_(initializer_t<ValueT>::init()), null_(true) {}
313 NullOr(ValueT&& value) : value_(std::forward<ValueT>(value)), null_(false) {}
317 const ValueT& value() const & { return value_; }
318 ValueT& value() & { return value_; }
319 ValueT&& value() && { return std::move(value_); }
322 ValueT value_;
/system/libbase/
Dresult_test.cpp313 TestStruct(int value) : value_(value) {} in TEST()
314 TestStruct(Result<TestStruct> result, int value) : value_(result->value_ * value) {} in TEST()
315 int value_; in TEST() member
324 EXPECT_EQ(36, result->value_); in TEST()

12