Home
last modified time | relevance | path

Searched refs:enumValue (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableEnum.java60 int enumValue = getEnumValue(value); in marshal() local
63 buffer.putInt(enumValue); in marshal()
65 if (enumValue < UINT8_MIN || enumValue > UINT8_MAX) { in marshal()
67 "Enum value %x too large to fit into unsigned byte", enumValue)); in marshal()
69 buffer.put((byte)enumValue); in marshal()
77 int enumValue; in unmarshal() local
81 enumValue = buffer.getInt(); in unmarshal()
85 enumValue = buffer.get() & UINT8_MASK; in unmarshal()
92 return getEnumFromValue(mClass, enumValue); in unmarshal()
171 private static <T extends Enum<T>> int getEnumValue(T enumValue) { in getEnumValue() argument
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/Reflection/
DDescriptorPool.cs247 internal void AddEnumValueByNumber(EnumValueDescriptor enumValue) in AddEnumValueByNumber() argument
249 … DescriptorIntPair key = new DescriptorIntPair(enumValue.EnumDescriptor, enumValue.Number); in AddEnumValueByNumber()
252 enumValuesByNumber[key] = enumValue; in AddEnumValueByNumber()
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DRawBatteryStats.java703 for (final Object enumValue: fieldType.getEnumConstants()) { in EnumFieldSetter()
706 tag = (String)tagField.get(enumValue); in EnumFieldSetter()
711 mTags.put(tag, (Enum)enumValue); in EnumFieldSetter()
716 final Enum enumValue = mTags.get(value); in setField() local
717 if (enumValue == null) { in setField()
722 mField.set(object, enumValue); in setField()
736 final Enum enumValue = mTags.get(value); in setArray() local
737 if (enumValue == null) { in setArray()
741 Array.set(array, i, enumValue); in setArray()
/frameworks/layoutlib/bridge/src/android/util/
DBridgeXmlPullAttributes.java193 Integer enumValue = enumValues != null ? enumValues.get(value) : null; in getAttributeIntValue()
194 if (enumValue != null) { in getAttributeIntValue()
195 return enumValue; in getAttributeIntValue()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/main/java/com/google/protobuf/nano/
DExtension.java436 Integer enumValue = (Integer) value; in writeSingularData() local
437 output.writeEnumNoTag(enumValue); in writeSingularData()
685 Integer enumValue = (Integer) value; in computeSingularSerializedSize() local
686 return CodedOutputByteBufferNano.computeEnumSize(fieldNumber, enumValue); in computeSingularSerializedSize()
DCodedOutputByteBufferNano.java1182 Integer enumValue = (Integer) value; in writeField() local
1183 writeEnum(number, enumValue); in writeField()
/frameworks/base/cmds/incident_helper/src/
Dih_util.h147 void addEnumNameToValue(const char* enumName, const int enumValue);
Dih_util.cpp301 Table::addEnumNameToValue(const char* enumName, const int enumValue) in addEnumNameToValue() argument
303 mEnumValuesByName[enumName] = enumValue; in addEnumNameToValue()
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java641 Integer enumValue = resolveEnumAttribute(index); in getResourceId() local
642 if (enumValue != null) { in getResourceId()
643 return enumValue; in getResourceId()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
DGPBMessageTests+Serialization.m121 fooWithExtras.enumValue = DropUnknownsFooWithExtraFields_NestedEnum_Baz;
129 XCTAssertEqual(foo.enumValue, DropUnknownsFoo_NestedEnum_Baz);
138 XCTAssertEqual(fooWithExtras.enumValue,
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DGeneratedMessageTest.java1256 enumValue = OuterClassNameTest3OuterClass.TestMessage3.NestedMessage in testConflictingOuterClassName() local
1258 assertEquals(1, enumValue.getNumber()); in testConflictingOuterClassName()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBUtilities.m1185 int32_t enumValue = [valueObj intValue];
1189 valueStr = [descriptor textFormatNameForValue:enumValue];
1194 [toStr appendFormat:@"%d", enumValue];