Home
last modified time | relevance | path

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

123

/frameworks/base/libs/androidfw/
DAttributeResolution.cpp79 if (value.dataType == Res_value::TYPE_REFERENCE) { in ResolveAttrs()
112 value.dataType = Res_value::TYPE_NULL; in ResolveAttrs()
122 value.dataType = Res_value::TYPE_ATTRIBUTE; in ResolveAttrs()
125 ALOGI("-> From values: type=0x%x, data=0x%08x", value.dataType, in ResolveAttrs()
135 ALOGI("-> From def style: type=0x%x, data=0x%08x", value.dataType, value.data); in ResolveAttrs()
141 if (value.dataType != Res_value::TYPE_NULL) { in ResolveAttrs()
147 ALOGI("-> Resolved attr: type=0x%x, data=0x%08x", value.dataType, value.data); in ResolveAttrs()
155 ALOGI("-> From theme: type=0x%x, data=0x%08x", value.dataType, value.data); in ResolveAttrs()
160 ALOGI("-> Resolved theme: type=0x%x, data=0x%08x", value.dataType, value.data); in ResolveAttrs()
166 if (value.dataType == Res_value::TYPE_REFERENCE && value.data == 0) { in ResolveAttrs()
[all …]
DResourceTypes.cpp147 dataType = src.dataType; in copyFrom_dtoh()
1305 uint8_t type = attr->typedValue.dataType; in getAttributeDataType()
1327 if (attr->typedValue.dataType != Res_value::TYPE_DYNAMIC_REFERENCE || in getAttributeData()
3563 attrRes, bag->map.value.dataType, bag->map.value.data, in applyStyle()
3564 curEntry->value.dataType); in applyStyle()
3566 if (force || (curEntry->value.dataType == Res_value::TYPE_NULL in applyStyle()
3692 te.value.dataType, te.value.data); in getAttribute()
3694 const uint8_t type = te.value.dataType; in getAttribute()
3725 if (inOutValue->dataType == Res_value::TYPE_ATTRIBUTE) { in resolveAttributeReference()
3730 (int)blockIndex, (int)inOutValue->dataType, inOutValue->data); in resolveAttributeReference()
[all …]
DAssetManager2.cpp406 out_value->dataType = Res_value::TYPE_REFERENCE; in GetResource()
433 for (size_t iteration = 0u; in_out_value->dataType == Res_value::TYPE_REFERENCE && in ResolveReference()
779 if (force || entry.value.dataType == Res_value::TYPE_NULL) { in ApplyStyle()
822 switch (entry.value.dataType) { in GetAttribute()
845 out_value->dataType = Res_value::TYPE_REFERENCE; in GetAttribute()
879 if (in_out_value->dataType == Res_value::TYPE_ATTRIBUTE) { in ResolveAttributeReference()
/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()
112 if (value.dataType == Res_value::TYPE_STRING) { in getResolvedAttribute()
127 if (value.dataType != Res_value::TYPE_STRING) { in getResolvedAttribute()
165 if (value.dataType == Res_value::TYPE_REFERENCE) { in getResolvedIntegerAttribute()
168 if (value.dataType < Res_value::TYPE_FIRST_INT in getResolvedIntegerAttribute()
169 || value.dataType > Res_value::TYPE_LAST_INT) { in getResolvedIntegerAttribute()
189 if (outValue->dataType == Res_value::TYPE_REFERENCE) { in getResolvedResourceAttribute()
DXMLNode.h80 value.dataType = Res_value::TYPE_NULL; in attribute_entry()
85 || value.dataType == Res_value::TYPE_NULL in needStringValue()
86 || 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()
998 String8(e.name).string(), e.value.dataType, in parseValues()
1554 cdataExt.typedData.dataType = mCharsValue.dataType; in flatten_node()
1584 if (ae.value.dataType == Res_value::TYPE_NULL in flatten_node()
1585 || ae.value.dataType == Res_value::TYPE_STRING) { in flatten_node()
1587 attr.typedValue.dataType = Res_value::TYPE_STRING; in flatten_node()
[all …]
/frameworks/base/libs/androidfw/tests/
DAssetManager2_test.cpp107 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); in TEST_F()
137 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); in TEST_F()
159 EXPECT_EQ(Res_value::TYPE_REFERENCE, value.dataType); in TEST_F()
166 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); in TEST_F()
176 EXPECT_EQ(Res_value::TYPE_REFERENCE, value.dataType); in TEST_F()
183 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); in TEST_F()
201 EXPECT_EQ(Res_value::TYPE_REFERENCE, value.dataType); in TEST_F()
213 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[0].value.dataType); in TEST_F()
217 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[1].value.dataType); in TEST_F()
221 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), bag->entries[2].value.dataType); in TEST_F()
[all …]
DTheme_test.cpp82 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F()
88 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F()
106 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F()
112 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); in TEST_F()
121 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F()
141 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F()
148 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F()
155 EXPECT_EQ(Res_value::TYPE_REFERENCE, value.dataType); in TEST_F()
175 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F()
182 EXPECT_EQ(Res_value::TYPE_INT_DEC, value.dataType); in TEST_F()
[all …]
DResTable_test.cpp68 EXPECT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
115 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
120 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
139 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
144 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
163 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
168 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
184 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
189 EXPECT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
205 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
[all …]
DAppAsLib_test.cpp40 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
59 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
78 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
DIdmap_test.cpp66 ASSERT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST_F()
82 ASSERT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST_F()
DSplit_test.cpp98 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST_F()
122 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST_F()
228 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST_F()
/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.java146 public boolean registerSinkAppConfiguration(String name, int dataType, in registerSinkAppConfiguration() argument
150 if (VDBG) log("registerSinkApplication(" + name + ":" + dataType + ")"); in registerSinkAppConfiguration()
151 return registerAppConfiguration(name, dataType, SINK_ROLE, in registerSinkAppConfiguration()
171 public boolean registerAppConfiguration(String name, int dataType, int role, in registerAppConfiguration() argument
176 if (VDBG) log("registerApplication(" + name + ":" + dataType + ")"); in registerAppConfiguration()
179 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/script_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,
318 string dataType; in writeJavaInputAllocationDefinition() local
320 convertToRsType(param.rsType, &dataType, &vectorSize); in writeJavaInputAllocationDefinition()
326 writeJavaRandomCompatibleFloatAllocation(dataType, seed, vectorSize, in writeJavaInputAllocationDefinition()
330 writeJavaRandomCompatibleIntegerAllocation(dataType, seed, vectorSize, in writeJavaInputAllocationDefinition()
335 *mJava << "createRandomFloatAllocation(mRS, Element.DataType." << dataType << ", " in writeJavaInputAllocationDefinition()
[all …]
/frameworks/base/tools/aapt2/
DResourceValues.cpp65 out_value->dataType = android::Res_value::TYPE_STRING; in Flatten()
102 out_value->dataType = android::Res_value::TYPE_DYNAMIC_REFERENCE; in Flatten()
104 out_value->dataType = android::Res_value::TYPE_REFERENCE; in Flatten()
108 out_value->dataType = android::Res_value::TYPE_DYNAMIC_ATTRIBUTE; in Flatten()
110 out_value->dataType = android::Res_value::TYPE_ATTRIBUTE; in Flatten()
153 out->dataType = android::Res_value::TYPE_INT_BOOLEAN; in Flatten()
194 out_value->dataType = android::Res_value::TYPE_STRING; in Flatten()
242 out_value->dataType = android::Res_value::TYPE_STRING; in Flatten()
277 out_value->dataType = android::Res_value::TYPE_STRING; in Flatten()
296 BinaryPrimitive::BinaryPrimitive(uint8_t dataType, uint32_t data) { in BinaryPrimitive() argument
[all …]
DResourceUtils.cpp338 value.dataType = android::Res_value::TYPE_INT_DEC; in TryParseEnumSymbol()
349 flags.dataType = android::Res_value::TYPE_INT_HEX; in TryParseFlagSymbol()
404 value.dataType = android::Res_value::TYPE_INT_COLOR_RGB4; in TryParseColor()
413 value.dataType = android::Res_value::TYPE_INT_COLOR_ARGB4; in TryParseColor()
423 value.dataType = android::Res_value::TYPE_INT_COLOR_RGB8; in TryParseColor()
432 value.dataType = android::Res_value::TYPE_INT_COLOR_ARGB8; in TryParseColor()
474 if (value.dataType == android::Res_value::TYPE_INT_HEX) { in ParseResourceId()
622 if (type_mask & AndroidTypeToAttributeTypeMask(floating_point->value.dataType)) { in TryParseItemForAttribute()
689 switch (res_value.dataType) { in ParseBinaryResValue()
721 if (res_value.dataType == android::Res_value::TYPE_ATTRIBUTE || in ParseBinaryResValue()
[all …]
/frameworks/rs/driver/
DrsdShader.cpp287 if (f->mHal.state.dataType == RS_TYPE_MATRIX_4X4) { in appendUserConstants()
289 } else if (f->mHal.state.dataType == RS_TYPE_MATRIX_3X3) { in appendUserConstants()
291 } else if (f->mHal.state.dataType == RS_TYPE_MATRIX_2X2) { in appendUserConstants()
316 RsDataType dataType = field->mHal.state.dataType; in logUniform() local
322 if (dataType == RS_TYPE_MATRIX_4X4) { in logUniform()
328 } else if (dataType == RS_TYPE_MATRIX_3X3) { in logUniform()
333 } else if (dataType == RS_TYPE_MATRIX_2X2) { in logUniform()
363 RsDataType dataType = field->mHal.state.dataType; in setUniform() local
364 if (dataType == RS_TYPE_MATRIX_4X4) { in setUniform()
366 } else if (dataType == RS_TYPE_MATRIX_3X3) { in setUniform()
[all …]
DrsdMeshObj.cpp59 RsDataType dt = elem->mHal.state.fields[fieldIdx]->mHal.state.dataType; in isValidGLComponent()
116 mAttribs[userNum].type = rsdTypeToGLType(f->mHal.state.dataType); in init()
117 mAttribs[userNum].normalized = f->mHal.state.dataType != RS_TYPE_FLOAT_32; in init()
/frameworks/base/core/java/android/app/backup/
DRestoreDescription.java65 public RestoreDescription(String packageName, int dataType) { in RestoreDescription() argument
67 mDataType = dataType; in RestoreDescription()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_single_source_alloc.java67 for (rsDataType dataType : rsDataType.values()) { in run()
71 s.invoke_CreateAndTestAlloc(dataType.Value(), vecSize); in run()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_single_source_alloc.java69 for (rsDataType dataType : rsDataType.values()) { in run()
73 s.invoke_CreateAndTestAlloc(dataType.Value(), vecSize); in run()
/frameworks/compile/slang/
Dslang_rs_export_element.cpp36 DataType dataType; member
60 EI->type = DataElementInfoTable[i].dataType; in Init()
/frameworks/base/tools/aapt2/cmd/
DUtil.cpp244 if (compiled_prim->value.dataType >= android::Res_value::TYPE_FIRST_INT && in ExtractCompiledInt()
245 compiled_prim->value.dataType <= android::Res_value::TYPE_LAST_INT) { in ExtractCompiledInt()
268 if (compiled_prim->value.dataType >= android::Res_value::TYPE_FIRST_INT && in ExtractSdkVersion()
269 compiled_prim->value.dataType <= android::Res_value::TYPE_LAST_INT) { in ExtractSdkVersion()

123