Home
last modified time | relevance | path

Searched refs:InvalidValue (Results 1 – 25 of 57) sorted by relevance

123

/external/perfetto/include/perfetto/ext/base/
Dscoped_file.h40 template <typename T, T InvalidValue>
42 static bool IsValid(T t) { return t != InvalidValue; } in IsValid()
51 T InvalidValue,
53 class Checker = internal::DefaultValidityChecker<T, InvalidValue>>
57 static constexpr T kInvalid = InvalidValue;
59 explicit ScopedResource(T t = InvalidValue) : t_(t) {} in t_()
62 other.t_ = InvalidValue; in ScopedResource()
66 other.t_ = InvalidValue;
72 void reset(T r = InvalidValue) {
82 t_ = InvalidValue; in release()
[all …]
/external/cronet/base/mac/
Dscoped_nsobject.h71 static NST InvalidValue() { return nil; } in InvalidValue() function
86 NST object = Traits::InvalidValue(),
90 explicit constexpr scoped_nsprotocol(NST object = Traits::InvalidValue())
114 void reset(NST object = Traits::InvalidValue(),
120 void reset(NST object = Traits::InvalidValue()) {
154 NST* object = Traits::InvalidValue(),
158 explicit constexpr scoped_nsobject(NST* object = Traits::InvalidValue())
182 void reset(NST* object = Traits::InvalidValue(),
188 void reset(NST* object = Traits::InvalidValue()) {
207 id object = Traits::InvalidValue(),
[all …]
Dscoped_mach_port.h19 static mach_port_t InvalidValue() { in InvalidValue() function
27 static mach_port_t InvalidValue() { in InvalidValue() function
35 static mach_port_t InvalidValue() { in InvalidValue() function
Dscoped_typeref.h56 element_type object = Traits::InvalidValue(),
78 that.object_ = Traits::InvalidValue(); in ScopedTypeRef()
103 void reset(element_type object = Traits::InvalidValue(),
140 object_ = Traits::InvalidValue(); in release()
Dscoped_ionotificationportref.h17 static IONotificationPortRef InvalidValue() { return nullptr; } in InvalidValue() function
Dscoped_cffiledescriptorref.h17 static CFFileDescriptorRef InvalidValue() { return nullptr; } in InvalidValue() function
/external/cronet/third_party/protobuf/src/google/protobuf/util/internal/
Dprotostream_objectwriter_test.cc546 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_INT32"), in TEST_P()
549 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_UINT32"), in TEST_P()
552 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_SFIXED64"), in TEST_P()
555 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_BOOL"), in TEST_P()
579 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_INT32"), in TEST_P()
582 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_UINT32"), in TEST_P()
585 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_SFIXED64"), in TEST_P()
588 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_BOOL"), in TEST_P()
711 EXPECT_CALL(listener_, InvalidValue(_, _, _)).Times(0); in TEST_P()
736 InvalidValue( in TEST_P()
[all …]
Dprotostream_objectwriter.cc228 parent_->InvalidValue("Any", in StartObject()
270 parent_->InvalidValue("Any", in StartList()
305 parent_->InvalidValue("Any", in RenderDataPiece()
313 parent_->InvalidValue("Any", "Expect a JSON object."); in RenderDataPiece()
319 if (!status.ok()) ow_->InvalidValue("Any", status.message()); in RenderDataPiece()
335 parent_->InvalidValue("String", s.status().message()); in StartAny()
345 parent_->InvalidValue("Any", resolved_type.status().message()); in StartAny()
395 parent_->InvalidValue("Any", in WriteAny()
527 InvalidValue(kStructListValueType, in StartObject()
615 InvalidValue( in StartObject()
[all …]
Derror_listener.h64 virtual void InvalidValue(const LocationTrackerInterface& loc,
90 void InvalidValue(const LocationTrackerInterface& /*loc*/, in InvalidValue() function
/external/protobuf/src/google/protobuf/util/internal/
Dprotostream_objectwriter_test.cc546 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_INT32"), in TEST_P()
549 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_UINT32"), in TEST_P()
552 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_SFIXED64"), in TEST_P()
555 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_BOOL"), in TEST_P()
579 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_INT32"), in TEST_P()
582 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_UINT32"), in TEST_P()
585 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_SFIXED64"), in TEST_P()
588 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_BOOL"), in TEST_P()
711 EXPECT_CALL(listener_, InvalidValue(_, _, _)).Times(0); in TEST_P()
736 InvalidValue( in TEST_P()
[all …]
Dprotostream_objectwriter.cc228 parent_->InvalidValue("Any", in StartObject()
270 parent_->InvalidValue("Any", in StartList()
305 parent_->InvalidValue("Any", in RenderDataPiece()
313 parent_->InvalidValue("Any", "Expect a JSON object."); in RenderDataPiece()
319 if (!status.ok()) ow_->InvalidValue("Any", status.message()); in RenderDataPiece()
335 parent_->InvalidValue("String", s.status().message()); in StartAny()
345 parent_->InvalidValue("Any", resolved_type.status().message()); in StartAny()
395 parent_->InvalidValue("Any", in WriteAny()
527 InvalidValue(kStructListValueType, in StartObject()
615 InvalidValue( in StartObject()
[all …]
Derror_listener.h64 virtual void InvalidValue(const LocationTrackerInterface& loc,
90 void InvalidValue(const LocationTrackerInterface& /*loc*/, in InvalidValue() function
/external/cronet/base/
Dscoped_generic.h101 ScopedGeneric() : data_(traits_type::InvalidValue()) {} in ScopedGeneric()
137 void reset(const element_type& value = traits_type::InvalidValue()) {
138 if (data_.generic != traits_type::InvalidValue() && data_.generic == value)
150 data_.generic = traits_type::InvalidValue(); in release()
233 T value_ = Traits::InvalidValue();
242 bool is_valid() const { return data_.generic != traits_type::InvalidValue(); } in is_valid()
256 if (data_.generic != traits_type::InvalidValue()) { in FreeIfNecessary()
259 data_.generic = traits_type::InvalidValue(); in FreeIfNecessary()
268 if (value != traits_type::InvalidValue()) { in TrackAcquire()
284 if (value != traits_type::InvalidValue()) { in TrackRelease()
Dscoped_generic_unittest.cc25 static int InvalidValue() { in InvalidValue() function
45 ScopedInt a(IntTraits::InvalidValue(), traits); in TEST()
63 ScopedInt b(IntTraits::InvalidValue(), traits); in TEST()
64 EXPECT_EQ(IntTraits::InvalidValue(), b.release()); in TEST()
86 ASSERT_EQ(IntTraits::InvalidValue(), a.get()); in TEST()
101 ASSERT_EQ(IntTraits::InvalidValue(), a.get()); in TEST()
169 static int InvalidValue() { return -1; } in InvalidValue() function
/external/libchrome/base/
Dscoped_generic.h73 ScopedGeneric() : data_(traits_type::InvalidValue()) {} in ScopedGeneric()
102 void reset(const element_type& value = traits_type::InvalidValue()) {
103 if (data_.generic != traits_type::InvalidValue() && data_.generic == value)
123 data_.generic = traits_type::InvalidValue(); in release()
138 bool is_valid() const { return data_.generic != traits_type::InvalidValue(); } in is_valid()
152 if (data_.generic != traits_type::InvalidValue()) { in FreeIfNecessary()
154 data_.generic = traits_type::InvalidValue(); in FreeIfNecessary()
Dscoped_generic_unittest.cc19 static int InvalidValue() { in InvalidValue() function
39 ScopedInt a(IntTraits::InvalidValue(), traits); in TEST()
57 ScopedInt b(IntTraits::InvalidValue(), traits); in TEST()
58 EXPECT_EQ(IntTraits::InvalidValue(), b.release()); in TEST()
95 ASSERT_EQ(IntTraits::InvalidValue(), a.get()); in TEST()
110 ASSERT_EQ(IntTraits::InvalidValue(), a.get()); in TEST()
/external/cronet/base/allocator/partition_allocator/partition_alloc_base/mac/
Dscoped_typeref.h56 element_type object = Traits::InvalidValue(),
77 that.object_ = Traits::InvalidValue(); in ScopedTypeRef()
102 void reset(element_type object = Traits::InvalidValue(),
135 object_ = Traits::InvalidValue(); in release()
/external/cronet/crypto/
Dscoped_capi_types.h22 static CAPIHandle InvalidValue() { return 0; } in InvalidValue() function
36 static CAPIHandle InvalidValue() { return 0; } in InvalidValue() function
61 static HCERTCHAINENGINE InvalidValue() { return nullptr; } in InvalidValue() function
/external/webrtc/sdk/objc/helpers/
Dscoped_cftyperef.h27 static T InvalidValue() { return nullptr; } in InvalidValue() function
38 ScopedTypeRef() : ptr_(Traits::InvalidValue()) {} in ScopedTypeRef()
91 ptr_ = Traits::InvalidValue(); in release()
/external/cronet/base/files/
Dscoped_file.h23 static int InvalidValue() { return -1; } in InvalidValue() function
36 static int InvalidValue() {
/external/rust/crates/clap/src/error/
Dkind.rs19 InvalidValue, enumerator
319 Self::InvalidValue => Some("one of the values isn't valid for an argument"), in as_str()
Dcontext.rs17 InvalidValue, enumerator
51 Self::InvalidValue => Some("Invalid Value"), in as_str()
Dformat.rs177 ErrorKind::InvalidValue => { in write_dynamic_context()
179 let invalid_value = error.get(ContextKind::InvalidValue); in write_dynamic_context()
275 let invalid_value = error.get(ContextKind::InvalidValue); in write_dynamic_context()
315 let invalid_value = error.get(ContextKind::InvalidValue); in write_dynamic_context()
/external/rust/crates/clap/3.2.23/src/error/
Dkind.rs19 InvalidValue, enumerator
402 Self::InvalidValue => Some("One of the values isn't valid for an argument"), in as_str()
/external/cronet/base/win/
Dscoped_devinfo.h16 static HDEVINFO InvalidValue() { return INVALID_HANDLE_VALUE; } in InvalidValue() function

123