Searched refs:StatusOr (Results 1 – 12 of 12) sorted by relevance
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/ |
D | statusor_test.cc | 71 TEST(StatusOr, TestDefaultCtor) { in TEST() argument 72 StatusOr<int> thing; in TEST() 77 TEST(StatusOr, TestStatusCtor) { in TEST() argument 78 StatusOr<int> thing(Status::CANCELLED); in TEST() 83 TEST(StatusOr, TestValueCtor) { in TEST() argument 85 StatusOr<int> thing(kI); in TEST() 90 TEST(StatusOr, TestCopyCtorStatusOk) { in TEST() argument 92 StatusOr<int> original(kI); in TEST() 93 StatusOr<int> copy(original); in TEST() 98 TEST(StatusOr, TestCopyCtorStatusNotOk) { in TEST() argument [all …]
|
D | statusor.h | 97 class StatusOr { 98 template<typename U> friend class StatusOr; variable 102 StatusOr(); 114 StatusOr(const Status& status); // NOLINT 127 StatusOr(const T& value); // NOLINT 130 StatusOr(const StatusOr& other); 134 StatusOr(const StatusOr<U>& other); 137 StatusOr& operator=(const StatusOr& other); 141 StatusOr& operator=(const StatusOr<U>& other); 189 inline StatusOr<T>::StatusOr() [all …]
|
D | status_macros.h | 61 Status DoAssignOrReturn(T& lhs, StatusOr<T> result) { in DoAssignOrReturn()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/ |
D | datapiece.h | 118 util::StatusOr<int32> ToInt32() const; 121 util::StatusOr<uint32> ToUint32() const; 124 util::StatusOr<int64> ToInt64() const; 127 util::StatusOr<uint64> ToUint64() const; 130 util::StatusOr<double> ToDouble() const; 133 util::StatusOr<float> ToFloat() const; 136 util::StatusOr<bool> ToBool() const; 139 util::StatusOr<string> ToString() const; 145 util::StatusOr<string> ToBytes() const; 153 util::StatusOr<int> ToEnum(const google::protobuf::Enum* enum_type) const; [all …]
|
D | datapiece.cc | 53 using util::StatusOr; 62 StatusOr<To> ValidateNumberConversion(To after, From before) { in ValidateNumberConversion() 79 StatusOr<To> NumberConvertAndCheck(From before) { in NumberConvertAndCheck() 89 StatusOr<To> FloatingPointToIntConvertAndCheck(From before) { in FloatingPointToIntConvertAndCheck() 98 StatusOr<To> FloatingPointConvertAndCheck(From before) { in FloatingPointConvertAndCheck() 115 StatusOr<int32> DataPiece::ToInt32() const { in ToInt32() 127 StatusOr<uint32> DataPiece::ToUint32() const { in ToUint32() 139 StatusOr<int64> DataPiece::ToInt64() const { in ToInt64() 151 StatusOr<uint64> DataPiece::ToUint64() const { in ToUint64() 163 StatusOr<double> DataPiece::ToDouble() const { in ToDouble() [all …]
|
D | proto_writer.cc | 57 using util::StatusOr; 117 StatusOr<int32> i32 = data.ToInt32(); in WriteInt32() 127 StatusOr<int32> i32 = data.ToInt32(); in WriteSFixed32() 137 StatusOr<int32> i32 = data.ToInt32(); in WriteSInt32() 147 StatusOr<uint32> u32 = data.ToUint32(); in WriteFixed32() 157 StatusOr<uint32> u32 = data.ToUint32(); in WriteUInt32() 167 StatusOr<int64> i64 = data.ToInt64(); in WriteInt64() 177 StatusOr<int64> i64 = data.ToInt64(); in WriteSFixed64() 187 StatusOr<int64> i64 = data.ToInt64(); in WriteSInt64() 197 StatusOr<uint64> u64 = data.ToUint64(); in WriteFixed64() [all …]
|
D | type_info.cc | 61 virtual util::StatusOr<const google::protobuf::Type*> ResolveTypeUrl( in ResolveTypeUrl() 122 typedef util::StatusOr<const google::protobuf::Type*> StatusOrType; 123 typedef util::StatusOr<const google::protobuf::Enum*> StatusOrEnum;
|
D | default_value_objectwriter.cc | 43 using util::StatusOr; 51 T ConvertTo(StringPiece value, StatusOr<T> (DataPiece::*converter_fn)() const, in ConvertTo() 54 StatusOr<T> result = (DataPiece(value, true).*converter_fn)(); in ConvertTo() 272 util::StatusOr<const google::protobuf::Type*> sub_type = in GetMapValueType() 336 util::StatusOr<const google::protobuf::Type*> found_result = in PopulateChildren() 557 util::StatusOr<string> data_string = data.ToString(); in RenderDataPiece() 563 util::StatusOr<const google::protobuf::Type*> found_type = in RenderDataPiece()
|
D | type_info.h | 57 virtual util::StatusOr<const google::protobuf::Type*> ResolveTypeUrl(
|
D | protostream_objectsource.h | 151 util::StatusOr<uint32> RenderList(const google::protobuf::Field* field, 157 util::StatusOr<uint32> RenderMap(const google::protobuf::Field* field,
|
D | protostream_objectwriter.cc | 56 using util::StatusOr; 317 StatusOr<string> s = value.ToString(); in StartAny() 326 StatusOr<const google::protobuf::Type*> resolved_type = in StartAny() 816 StatusOr<int64> int_value = data.ToInt64(); in RenderStructValue() 831 StatusOr<uint64> int_value = data.ToUint64(); in RenderStructValue()
|
D | protostream_objectsource.cc | 57 using util::StatusOr; 70 using util::StatusOr; 90 StatusOr<string> MapKeyDefaultValueAsString( in MapKeyDefaultValueAsString() 236 StatusOr<uint32> ProtoStreamObjectSource::RenderList( in RenderList() 258 StatusOr<uint32> ProtoStreamObjectSource::RenderMap( in RenderMap() 619 util::StatusOr<const google::protobuf::Type*> resolved_type = in RenderAny()
|