Home
last modified time | relevance | path

Searched refs:enumValue (Results 1 – 7 of 7) 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/ml/nn/runtime/test/
DTestAssertions.cpp24 #define CHECK_TEST_ENUM(EnumType, enumValue) \ argument
25 static_assert(static_cast<int32_t>(EnumType::enumValue) == ANEURALNETWORKS_##enumValue)
/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.java189 Integer enumValue = enumValues != null ? enumValues.get(value) : null; in getAttributeIntValue()
190 if (enumValue != null) { in getAttributeIntValue()
191 return enumValue; in getAttributeIntValue()
/frameworks/base/cmds/incident_helper/src/
Dih_util.h148 void addEnumNameToValue(const char* enumName, const int enumValue);
Dih_util.cpp306 Table::addEnumNameToValue(const char* enumName, const int enumValue) in addEnumNameToValue() argument
308 mEnumValuesByName[enumName] = enumValue; in addEnumNameToValue()
/frameworks/layoutlib/bridge/src/android/content/res/
DBridgeTypedArray.java664 Integer enumValue = resolveEnumAttribute(index); in getResourceId() local
665 if (enumValue != null) { in getResourceId()
666 return enumValue; in getResourceId()