Home
last modified time | relevance | path

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

/frameworks/native/libs/vr/libpdx/private/pdx/
Dchannel_handle.h29 explicit ChannelHandleBase(const int32_t& value) : value_{value} {} in ChannelHandleBase()
34 std::int32_t value() const { return value_; } in value()
35 bool valid() const { return value_ >= 0; } in valid()
38 void Close() { value_ = kEmptyHandle; } in Close()
45 std::int32_t value_{kEmptyHandle};
53 ChannelHandle(ChannelHandle&& other) noexcept : ChannelHandleBase{other.value_} { in ChannelHandle()
54 other.value_ = kEmptyHandle;
58 ChannelHandle Duplicate() const { return ChannelHandle{value_}; } in Duplicate()
61 value_ = other.value_;
62 other.value_ = kEmptyHandle;
[all …]
Dstatus.h36 Status(const T& value) : value_{value} {} in Status()
38 Status(T&& value) : value_{std::move(value)} {} in Status()
48 : value_{std::move(other.value_)}, error_{other.error_} { in Status()
56 value_ = std::move(other.value_);
59 std::swap(other.value_, empty);
66 value_ = std::move(value); in SetValue()
71 std::swap(value_, empty); in SetError()
97 const T& get() const { return value_; } in get()
100 return std::move(value_); in take()
132 T value_{};
/frameworks/native/cmds/installd/
Dunique_file.cpp33 : value_(value), path_(path), cleanup_(cleanup), do_cleanup_(true), auto_close_(true) {} in UniqueFile()
44 value_ = other.value_; in operator =()
58 if (auto_close_ && value_ >= 0) { in reset()
59 if (close(value_) < 0) { in reset()
60 PLOG(ERROR) << "Failed to close fd " << value_ << ", with path " << path; in reset()
67 value_ = new_value; in reset()
73 value_ = -1; in release()
Dunique_file.h70 return value_; in fd()
91 int value_; variable
/frameworks/base/media/mca/filterfw/native/core/
Dstatistics.h51 : gain_(gain), n_(0), value_(0.0f) {} in RCFilter()
54 value_ = n_++ ? gain_ * measurement + (1.0f - gain_) * value_ : measurement; in Add()
60 float Output() const { return value_; } in Output()
65 float value_; variable
/frameworks/native/libs/vr/libdisplay/include/private/dvr/
Ddisplay_protocol.h64 Flags(const Integer& value) : value_{value} {} in Flags()
68 Integer value() const { return value_; } in value()
70 operator Integer() const { return value_; } in Integer()
72 bool IsSet(Integer bits) const { return (value_ & bits) == bits; } in IsSet()
73 bool IsClear(Integer bits) const { return (value_ & bits) == 0; } in IsClear()
75 void Set(Integer bits) { value_ |= bits; } in Set()
76 void Clear(Integer bits) { value_ &= ~bits; } in Clear()
78 Integer operator|(Integer bits) const { return value_ | bits; }
79 Integer operator&(Integer bits) const { return value_ & bits; }
82 value_ |= bits;
[all …]
/frameworks/av/media/utils/tests/
Dmedia_synchronization_tests.cpp30 T value_; member in MyObject
32 MyObject(const T& value) : value_(value) {} in MyObject()
33 MyObject(const MyObject<T>& mo) : value_(mo.get()) {} in MyObject()
34 T get() const { return value_; } in get()
35 void set(const T& value) { value_ = value; } in set()
/frameworks/base/tools/aapt2/
DDominatorTree.cpp43 CHECK(new_child->value_) << "cannot add a root or empty node as a child"; in TryAddChild()
44 if (value_ && !Dominates(new_child.get())) { in TryAddChild()
92 return value_->config.Dominates(other->value_->config); in Dominates()
DDominatorTree.h56 : value_(value), parent_(parent) {} in value_() function
58 inline ResourceConfigValue* value() const { return value_; } in value()
62 inline bool is_root_node() const { return !value_; } in is_root_node()
74 ResourceConfigValue* value_; variable
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
Dvariant.h435 : value_(0, &index_, DecayedTypeTag<T>{}, std::forward<T>(value)) {}
439 : value_(0, &index_, std::forward<T>(value)) {}
449 : index_{other.index_}, value_{other.value_, other.index_} {}
451 : index_{other.index_}, value_{std::move(other.value_), other.index_} {}
532 index_ = value_.Become(target_index, std::forward<Args>(args)...)
542 return value_.Visit(index_, std::forward<Op>(op));
546 return value_.Visit(index_, std::forward<Op>(op));
556 return value_.index(DecayedTypeTag<T>{});
578 return &value_.get(DecayedTypeTag<T>{});
585 return &value_.template get(DecayedTypeTag<T>{});
[all …]
/frameworks/native/libs/vr/libpdx/
Dvariant_tests.cpp31 TestType(const T& value) : value_(value) {} in TestType()
33 TestType(T&& value) : value_(std::move(value)) {} in TestType()
40 const T& get() const { return value_; } in get()
41 T&& take() { return std::move(value_); } in take()
44 T value_; member in __anon5eba89260111::TestType
51 InstrumentType(const T& value) : value_(value) { constructor_count_++; } in InstrumentType()
53 InstrumentType(T&& value) : value_(std::move(value)) { constructor_count_++; } in InstrumentType()
54 InstrumentType(const InstrumentType& other) : value_(other.value_) { in InstrumentType()
57 InstrumentType(InstrumentType&& other) : value_(std::move(other.value_)) { in InstrumentType()
61 InstrumentType(const TestType<T>& other) : value_(other.get()) { in InstrumentType()
[all …]
/frameworks/av/media/codec2/core/include/
DC2Enum.h208 inline constexpr C2EasyEnum(E value_) : value(value_) { } in C2EasyEnum()
209 inline constexpr C2EasyEnum(U value_) : value(E(value_)) { } in C2EasyEnum()
DC2Config.h2274 inline C2TimestampGapAdjustmentStruct(mode_t mode_, uint64_t value_) in C2TimestampGapAdjustmentStruct()
2275 : mode(mode_), value(value_) { } in C2TimestampGapAdjustmentStruct()
/frameworks/base/tools/aapt2/test/
DBuilders.h96 explicit ValueBuilder(Args&&... args) : value_(new T{std::forward<Args>(args)...}) { in ValueBuilder()
101 value_->SetSource(Source{std::forward<Args>(args)...}); in SetSource()
106 value_->SetComment(str); in SetComment()
111 return std::move(value_); in Build()
117 std::unique_ptr<Value> value_; variable
/frameworks/base/startop/view_compiler/
Ddex_builder.h132 size_t value() const { return value_; } in value()
134 constexpr Value() : value_{0}, kind_{Kind::kInvalid} {} in Value()
139 size_t value_; variable
142 constexpr Value(size_t value, Kind kind) : value_{value}, kind_{kind} {} in Value()
/frameworks/base/libs/androidfw/
DAssetsProvider.cpp77 : value_(std::forward<std::string>(value)), is_path_(is_path) {} in PathOrDebugName()
80 return is_path_ ? &value_ : nullptr; in GetPath()
84 return value_; in GetDebugName()
/frameworks/base/libs/androidfw/include/androidfw/
DAssetsProvider.h120 std::string value_;
/frameworks/av/services/mediametrics/tests/
Dmediametrics_tests.cpp172 int32_t value_ = 0; in TEST() member in TEST::Accumulator
175 const int32_t temp = value_; in TEST()
177 value_ = temp + incr; in TEST()
179 int32_t get() { return value_; } in TEST()