Home
last modified time | relevance | path

Searched refs:GetEnum (Results 1 – 25 of 52) sorted by relevance

123

/external/openscreen/util/
Denum_name_table_unittest.cc51 EXPECT_EQ(TestEnum::kFoo, GetEnum(kTestEnumNames, "foo").value()); in TEST()
52 EXPECT_EQ(TestEnum::kBar, GetEnum(kTestEnumNames, "bar").value()); in TEST()
53 EXPECT_EQ(TestEnum::kBaz, GetEnum(kTestEnumNames, "baz").value()); in TEST()
54 EXPECT_EQ(TestEnum::kBuzz, GetEnum(kTestEnumNames, "buzz").value()); in TEST()
58 EXPECT_FALSE(GetEnum(kTestEnumNames, "").is_value()); in TEST()
59 EXPECT_FALSE(GetEnum(kTestEnumNames, "1").is_value()); in TEST()
60 EXPECT_FALSE(GetEnum(kTestEnumNames, "foobar").is_value()); in TEST()
61 EXPECT_FALSE(GetEnum(kTestEnumNamesMissing, "bar").is_value()); in TEST()
62 EXPECT_FALSE(GetEnum(kTestEnumNamesMissing, "baz").is_value()); in TEST()
63 EXPECT_FALSE(GetEnum(kTestEnumNamesMissing, "buzz").is_value()); in TEST()
[all …]
Denum_name_table.h41 ErrorOr<Enum> GetEnum(const EnumNameTable<Enum, Size>& map, in GetEnum() function
/external/openscreen/cast/streaming/
Dmessage_fields.cc33 return GetEnum(kAudioCodecNames, name); in StringToAudioCodec()
41 return GetEnum(kVideoCodecNames, name); in StringToVideoCodec()
Dsender_message.cc34 ErrorOr<SenderMessage::Type> parsed = GetEnum(kMessageTypeNames, type); in GetMessageType()
Dreceiver_message.cc37 ErrorOr<ReceiverMessage::Type> parsed = GetEnum(kMessageTypeNames, type); in GetMessageType()
/external/protobuf/src/google/protobuf/
Dpreserve_unknown_enum_test.cc193 const EnumValueDescriptor* enum_value = r->GetEnum(message, field); in TEST()
198 const EnumValueDescriptor* enum_value_second = r->GetEnum(message, field); in TEST()
213 EXPECT_EQ(enum_value, r->GetEnum(*m, field)); in TEST()
233 const EnumValueDescriptor* enum_value = r->GetEnum(message, singular_field); in TEST()
256 EXPECT_EQ(r->GetEnum(message, singular_field)->number(), in TEST()
Dtest_util.h534 reflection->GetEnum(message, F("optional_nested_enum"))); in ExpectAllFieldsSetViaReflection1()
536 reflection->GetEnum(message, F("optional_foreign_enum"))); in ExpectAllFieldsSetViaReflection1()
538 reflection->GetEnum(message, F("optional_import_enum"))); in ExpectAllFieldsSetViaReflection1()
792 reflection->GetEnum(message, F("default_nested_enum"))); in ExpectAllFieldsSetViaReflection3()
794 reflection->GetEnum(message, F("default_foreign_enum"))); in ExpectAllFieldsSetViaReflection3()
796 reflection->GetEnum(message, F("default_import_enum"))); in ExpectAllFieldsSetViaReflection3()
954 reflection->GetEnum(message, F("optional_nested_enum"))); in ExpectClearViaReflection()
956 reflection->GetEnum(message, F("optional_foreign_enum"))); in ExpectClearViaReflection()
958 reflection->GetEnum(message, F("optional_import_enum"))); in ExpectClearViaReflection()
1044 reflection->GetEnum(message, F("default_nested_enum"))); in ExpectClearViaReflection()
[all …]
Ddynamic_message_unittest.cc207 reflection->GetEnum(*message, descriptor->FindFieldByName("foo_enum")) in TEST_P()
241 reflection->GetEnum(*message, descriptor->FindFieldByName("bar_enum")) in TEST_P()
/external/pdfium/xfa/fxfa/parser/
Dcxfa_line.cpp45 return JSObject()->GetEnum(XFA_Attribute::Hand); in GetHand()
49 return JSObject()->GetEnum(XFA_Attribute::Slope) == XFA_AttributeValue::Slash; in GetSlope()
Dcxfa_checkbutton.cpp51 return JSObject()->GetEnum(XFA_Attribute::Shape) == XFA_AttributeValue::Round; in IsRound()
55 return JSObject()->GetEnum(XFA_Attribute::Mark); in GetMark()
Dcxfa_validate.cpp59 return JSObject()->GetEnum(XFA_Attribute::FormatTest); in GetFormatTest()
70 return JSObject()->GetEnum(XFA_Attribute::NullTest); in GetNullTest()
74 return JSObject()->GetEnum(XFA_Attribute::ScriptTest); in GetScriptTest()
Dcxfa_stroke.cpp91 return JSObject()->GetEnum(XFA_Attribute::Cap); in GetCapType()
95 return JSObject()->GetEnum(XFA_Attribute::Stroke); in GetStrokeType()
136 return JSObject()->GetEnum(XFA_Attribute::Join); in GetJoinType()
Dcxfa_image.cpp42 return JSObject()->GetEnum(XFA_Attribute::Aspect); in GetAspect()
55 JSObject()->GetEnum(XFA_Attribute::TransferEncoding)); in GetTransferEncoding()
Dcxfa_font.cpp116 return JSObject()->GetEnum(XFA_Attribute::Weight) == XFA_AttributeValue::Bold; in IsBold()
120 return JSObject()->GetEnum(XFA_Attribute::Posture) == in IsItalic()
Dcxfa_button.cpp45 return JSObject()->GetEnum(XFA_Attribute::Highlight); in GetHighlight()
Dcxfa_choicelist.cpp46 return JSObject()->GetEnum(XFA_Attribute::Open) == in GetValueNodeType()
Dcxfa_submit.cpp49 return JSObject()->GetEnum(XFA_Attribute::Format); in GetSubmitFormat()
Dcxfa_script.cpp61 return JSObject()->GetEnum(XFA_Attribute::RunAt); in GetRunAt()
Dcxfa_event.cpp51 return JSObject()->GetEnum(XFA_Attribute::Activity); in GetActivity()
Dcxfa_pattern.cpp49 return JSObject()->GetEnum(XFA_Attribute::Type); in GetType()
Dcxfa_document.cpp421 ? pTemplateNodeBind->JSObject()->GetEnum(XFA_Attribute::Match) in FindMatchingDataNode()
770 pDDNode->JSObject()->GetEnum(XFA_Attribute::Contains) == in MaybeCreateDataNode()
879 ? pTemplateNode->JSObject()->GetEnum(XFA_Attribute::Relation) in CopyContainer_SubformSet()
1124 ? pTemplateNodeBind->JSObject()->GetEnum(XFA_Attribute::Match) in UpdateBindingRelations()
1135 pFormNode->JSObject()->GetEnum(XFA_Attribute::Scope) != in UpdateBindingRelations()
/external/pdfium/xfa/fxfa/layout/
Dcxfa_viewlayoutprocessor.cpp371 m_pPageSetNode->JSObject()->GetEnum(XFA_Attribute::Relation); in InitLayoutPage()
450 pBreakNode->JSObject()->GetEnum(XFA_Attribute::Before) != in PrepareFirstPage()
698 pPageSetLayoutItem->GetFormNode()->JSObject()->GetEnum( in FinishPaginatedPageSets()
806 pCurNode->JSObject()->GetEnum(XFA_Attribute::TargetType), in ExecuteBreakBeforeOrAfter()
835 pCurNode->JSObject()->GetEnum( in ExecuteBreakBeforeOrAfter()
1204 pCurrentNode->JSObject()->GetEnum(XFA_Attribute::PagePosition); in FindPageAreaFromPageSet_SimplexDuplex()
1209 pCurrentNode->JSObject()->GetEnum(XFA_Attribute::OddOrEven) == in FindPageAreaFromPageSet_SimplexDuplex()
1225 pCurrentNode->JSObject()->GetEnum(XFA_Attribute::OddOrEven) == in FindPageAreaFromPageSet_SimplexDuplex()
1412 pPageSetNode->JSObject()->GetEnum(XFA_Attribute::Relation); in InitPageSetMap()
1961 pNode->JSObject()->GetEnum(XFA_Attribute::PagePosition); in ProcessSimplexOrDuplexPageSets()
[all …]
Dcxfa_viewlayoutitem.cpp52 if (pMedium->JSObject()->GetEnum(XFA_Attribute::Orientation) == in GetPageSize()
Dcxfa_contentlayoutprocessor.cpp274 pParaNode->JSObject()->GetEnum(XFA_Attribute::VAlign); in RelocateTableRowCells()
313 if (pLayoutRow->GetFormNode()->JSObject()->GetEnum(XFA_Attribute::Layout) == in RelocateTableRowCells()
417 if (pBreakNode->JSObject()->GetEnum(eAttributeType) == in FindBreakNode()
549 pNode->JSObject()->GetEnum(XFA_Attribute::AnchorType); in CalculatePositionedContainerPos()
1216 pLayoutChild->GetFormNode()->JSObject()->GetEnum( in DoLayoutTableContainer()
1307 pLayoutChild->GetFormNode()->JSObject()->GetEnum( in DoLayoutTableContainer()
1320 switch (pLayoutChild->GetFormNode()->JSObject()->GetEnum( in DoLayoutTableContainer()
1366 GetFormNode()->JSObject()->GetEnum(XFA_Attribute::Layout); in IsAddNewRowForTrailer()
1583 HAlignEnumToInt(pLayoutNext->GetFormNode()->JSObject()->GetEnum( in DoLayoutFlowedContainer()
2138 pLayoutItem->GetFormNode()->JSObject()->GetEnum(XFA_Attribute::Layout); in UpdatePendingItemLayout()
[all …]
/external/pdfium/fxjs/xfa/
Dcjx_object.h193 XFA_AttributeValue GetEnum(XFA_Attribute eAttr) const;

123