Home
last modified time | relevance | path

Searched refs:dataType (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/tools/aapt/
DAaptXml.cpp36 if (value.dataType != Res_value::TYPE_STRING) { in getStringAttributeAtIndex()
58 if (value.dataType < Res_value::TYPE_FIRST_INT in getIntegerAttributeAtIndex()
59 || value.dataType > Res_value::TYPE_LAST_INT) { in getIntegerAttributeAtIndex()
104 if (value.dataType == Res_value::TYPE_STRING) { in getResolvedAttribute()
110 if (value.dataType != Res_value::TYPE_STRING) { in getResolvedAttribute()
149 if (value.dataType == Res_value::TYPE_REFERENCE) { in getResolvedIntegerAttribute()
152 if (value.dataType < Res_value::TYPE_FIRST_INT in getResolvedIntegerAttribute()
153 || value.dataType > Res_value::TYPE_LAST_INT) { in getResolvedIntegerAttribute()
173 if (outValue->dataType == Res_value::TYPE_REFERENCE) { in getResolvedResourceAttribute()
DXMLNode.h77 value.dataType = Res_value::TYPE_NULL; in attribute_entry()
82 || value.dataType == Res_value::TYPE_NULL in needStringValue()
83 || value.dataType == Res_value::TYPE_STRING; in needStringValue()
DXMLNode.cpp477 if (value.dataType == Res_value::TYPE_NULL) { in printXMLBlock()
479 } else if (value.dataType == Res_value::TYPE_REFERENCE) { in printXMLBlock()
481 } else if (value.dataType == Res_value::TYPE_ATTRIBUTE) { in printXMLBlock()
483 } else if (value.dataType == Res_value::TYPE_STRING) { in printXMLBlock()
488 printf("=(type 0x%x)0x%x", (int)value.dataType, (int)value.data); in printXMLBlock()
980 String8(e.name).string(), e.value.dataType, in parseValues()
1536 cdataExt.typedData.dataType = mCharsValue.dataType; in flatten_node()
1566 if (ae.value.dataType == Res_value::TYPE_NULL in flatten_node()
1567 || ae.value.dataType == Res_value::TYPE_STRING) { in flatten_node()
1569 attr.typedValue.dataType = Res_value::TYPE_STRING; in flatten_node()
[all …]
/frameworks/base/libs/androidfw/tests/
DResTable_test.cpp80 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
85 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
100 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
105 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
120 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
131 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
136 EXPECT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
147 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
161 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
175 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
[all …]
DTheme_test.cpp48 ASSERT_EQ(Res_value::TYPE_INT_COLOR_RGB8, val.dataType); in TEST()
51 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
61 ASSERT_EQ(Res_value::TYPE_INT_COLOR_RGB8, val.dataType); in TEST()
64 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
DIdmap_test.cpp75 ASSERT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST_F()
90 ASSERT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST_F()
DSplit_test.cpp92 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST()
113 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST()
209 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST()
DTestHelpers.cpp32 if (val.dataType != Res_value::TYPE_STRING) { in IsStringEqual()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp107 env->SetIntField(outValue, gTypedValueOffsets.mType, value.dataType); in copyValue()
1129 if (value.dataType == Res_value::TYPE_REFERENCE) { in android_content_AssetManager_resolveAttrs()
1161 value.dataType = Res_value::TYPE_NULL; in android_content_AssetManager_resolveAttrs()
1169 value.dataType = Res_value::TYPE_ATTRIBUTE; in android_content_AssetManager_resolveAttrs()
1172 ALOGI("-> From values: type=0x%x, data=0x%08x", value.dataType, value.data); in android_content_AssetManager_resolveAttrs()
1176 if (value.dataType == Res_value::TYPE_NULL) { in android_content_AssetManager_resolveAttrs()
1183 ALOGI("-> From def style: type=0x%x, data=0x%08x", value.dataType, value.data); in android_content_AssetManager_resolveAttrs()
1189 if (value.dataType != Res_value::TYPE_NULL) { in android_content_AssetManager_resolveAttrs()
1195 ALOGI("-> Resolved attr: type=0x%x, data=0x%08x", value.dataType, value.data); in android_content_AssetManager_resolveAttrs()
1203 ALOGI("-> From theme: type=0x%x, data=0x%08x", value.dataType, value.data); in android_content_AssetManager_resolveAttrs()
[all …]
Dandroid_util_XmlBlock.cpp333 return value.dataType == value.TYPE_REFERENCE in android_content_XmlBlock_nativeGetStyleAttribute()
334 || value.dataType == value.TYPE_ATTRIBUTE in android_content_XmlBlock_nativeGetStyleAttribute()
/frameworks/base/core/java/android/bluetooth/
DBluetoothHealthAppConfiguration.java43 BluetoothHealthAppConfiguration(String name, int dataType) { in BluetoothHealthAppConfiguration() argument
45 mDataType = dataType; in BluetoothHealthAppConfiguration()
59 BluetoothHealthAppConfiguration(String name, int dataType, int role, int in BluetoothHealthAppConfiguration() argument
62 mDataType = dataType; in BluetoothHealthAppConfiguration()
DBluetoothHealth.java145 public boolean registerSinkAppConfiguration(String name, int dataType, in registerSinkAppConfiguration() argument
149 if (VDBG) log("registerSinkApplication(" + name + ":" + dataType + ")"); in registerSinkAppConfiguration()
150 return registerAppConfiguration(name, dataType, SINK_ROLE, in registerSinkAppConfiguration()
170 public boolean registerAppConfiguration(String name, int dataType, int role, in registerAppConfiguration() argument
175 if (VDBG) log("registerApplication(" + name + ":" + dataType + ")"); in registerAppConfiguration()
178 new BluetoothHealthAppConfiguration(name, dataType, role, channelType); in registerAppConfiguration()
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
DDemoModeController.java280 private static final String getDataType(int dataType) { in getDataType() argument
281 if (dataType == 1) return "1x"; in getDataType()
282 if (dataType == 2) return "3g"; in getDataType()
283 if (dataType == 3) return "4g"; in getDataType()
284 if (dataType == 4) return "e"; in getDataType()
285 if (dataType == 5) return "g"; in getDataType()
286 if (dataType == 6) return "h"; in getDataType()
287 if (dataType == 7) return "lte"; in getDataType()
288 if (dataType == 8) return "roam"; in getDataType()
/frameworks/rs/api/
DGenerateTestFiles.cpp29 static void convertToRsType(const string& name, string* dataType, char* vectorSize) { in convertToRsType() argument
39 dataType->clear(); in convertToRsType()
42 *dataType = TYPES[i].rsDataType; in convertToRsType()
108 void writeJavaRandomCompatibleFloatAllocation(const string& dataType, const string& seed,
112 void writeJavaRandomCompatibleIntegerAllocation(const string& dataType, const string& seed,
295 string dataType; in writeJavaInputAllocationDefinition() local
297 convertToRsType(param.rsType, &dataType, &vectorSize); in writeJavaInputAllocationDefinition()
303 writeJavaRandomCompatibleFloatAllocation(dataType, seed, vectorSize, in writeJavaInputAllocationDefinition()
307 writeJavaRandomCompatibleIntegerAllocation(dataType, seed, vectorSize, in writeJavaInputAllocationDefinition()
312 *mJava << "createRandomFloatAllocation(mRS, Element.DataType." << dataType << ", " in writeJavaInputAllocationDefinition()
[all …]
/frameworks/base/tools/aapt2/
DResourceValues.cpp47 outValue.dataType = ExtendedTypes::TYPE_RAW_STRING; in flatten()
67 outValue.dataType = (referenceType == Reference::Type::kResource) in flatten()
104 out.dataType = android::Res_value::TYPE_INT_BOOLEAN; in flatten()
126 outValue.dataType = android::Res_value::TYPE_STRING; in flatten()
147 outValue.dataType = android::Res_value::TYPE_STRING; in flatten()
168 outValue.dataType = android::Res_value::TYPE_STRING; in flatten()
194 switch (value.dataType) { in print()
214 out << "(unknown 0x" << std::hex << (int) value.dataType << ") 0x" in print()
DManifestValidator.cpp72 if (value.dataType == android::Res_value::TYPE_REFERENCE) { in getAttributeValue()
80 if (value.dataType != android::Res_value::TYPE_STRING || !pool) { in getAttributeValue()
93 if (value.dataType != android::Res_value::TYPE_STRING) { in getAttributeInlineValue()
DResourceParser.cpp200 value.dataType = android::Res_value::TYPE_REFERENCE; in tryParseNullOrEmpty()
203 value.dataType = android::Res_value::TYPE_NULL; in tryParseNullOrEmpty()
220 value.dataType = android::Res_value::TYPE_INT_DEC; in tryParseEnumSymbol()
231 flags.dataType = android::Res_value::TYPE_INT_DEC; in tryParseFlagSymbol()
279 value.dataType = android::Res_value::TYPE_INT_COLOR_RGB4; in tryParseColor()
288 value.dataType = android::Res_value::TYPE_INT_COLOR_ARGB4; in tryParseColor()
298 value.dataType = android::Res_value::TYPE_INT_COLOR_RGB8; in tryParseColor()
307 value.dataType = android::Res_value::TYPE_INT_COLOR_ARGB8; in tryParseColor()
331 value.dataType = android::Res_value::TYPE_INT_BOOLEAN; in tryParseBool()
440 if (typeMask & androidTypeToAttributeTypeMask(floatingPoint->value.dataType)) { in parseItemForAttribute()
DBinaryResourceParser.cpp669 if (value->dataType == Res_value::TYPE_STRING) { in parseValue()
702 if (value->dataType == Res_value::TYPE_REFERENCE || in parseValue()
703 value->dataType == Res_value::TYPE_ATTRIBUTE) { in parseValue()
704 const Reference::Type type = (value->dataType == Res_value::TYPE_REFERENCE) ? in parseValue()
720 nullType.dataType = Res_value::TYPE_REFERENCE; in parseValue()
724 if (value->dataType == ExtendedTypes::TYPE_RAW_STRING) { in parseValue()
/frameworks/rs/driver/
DrsdShader.cpp283 if (f->mHal.state.dataType == RS_TYPE_MATRIX_4X4) { in appendUserConstants()
285 } else if (f->mHal.state.dataType == RS_TYPE_MATRIX_3X3) { in appendUserConstants()
287 } else if (f->mHal.state.dataType == RS_TYPE_MATRIX_2X2) { in appendUserConstants()
312 RsDataType dataType = field->mHal.state.dataType; in logUniform() local
318 if (dataType == RS_TYPE_MATRIX_4X4) { in logUniform()
324 } else if (dataType == RS_TYPE_MATRIX_3X3) { in logUniform()
329 } else if (dataType == RS_TYPE_MATRIX_2X2) { in logUniform()
359 RsDataType dataType = field->mHal.state.dataType; in setUniform() local
360 if (dataType == RS_TYPE_MATRIX_4X4) { in setUniform()
362 } else if (dataType == RS_TYPE_MATRIX_3X3) { in setUniform()
[all …]
DrsdMeshObj.cpp55 RsDataType dt = elem->mHal.state.fields[fieldIdx]->mHal.state.dataType; in isValidGLComponent()
112 mAttribs[userNum].type = rsdTypeToGLType(f->mHal.state.dataType); in init()
113 mAttribs[userNum].normalized = f->mHal.state.dataType != RS_TYPE_FLOAT_32; in init()
/frameworks/native/opengl/libs/GLES_trace/tools/
Dgenapi.py230 dataType = " ".join(elements[:-1]).strip() # everything else is the data type
237 dataType += "*" * pointersInName
244 dataType += "*"
246 dataType = elements[0]
247 return (name, getDataTypeFromKw(dataType))
/frameworks/base/core/java/android/app/backup/
DRestoreDescription.java65 public RestoreDescription(String packageName, int dataType) { in RestoreDescription() argument
67 mDataType = dataType; in RestoreDescription()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp145 dataType = src.dataType; in copyFrom_dtoh()
1273 uint8_t type = attr->typedValue.dataType; in getAttributeDataType()
1295 if (attr->typedValue.dataType != Res_value::TYPE_DYNAMIC_REFERENCE || in getAttributeData()
3315 attrRes, bag->map.value.dataType, bag->map.value.data, in applyStyle()
3316 curEntry->value.dataType); in applyStyle()
3318 if (force || curEntry->value.dataType == Res_value::TYPE_NULL) { in applyStyle()
3443 te.value.dataType, te.value.data); in getAttribute()
3445 const uint8_t type = te.value.dataType; in getAttribute()
3475 if (inOutValue->dataType == Res_value::TYPE_ATTRIBUTE) { in resolveAttributeReference()
3480 (int)blockIndex, (int)inOutValue->dataType, inOutValue->data); in resolveAttributeReference()
[all …]
/frameworks/compile/slang/
Dslang_rs_export_element.cpp36 DataType dataType; member
60 EI->type = DataElementInfoTable[i].dataType; in Init()
/frameworks/rs/driver/runtime/
Drs_structs.h211 rs_data_type dataType; member

12