Home
last modified time | relevance | path

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

1234

/frameworks/base/libs/androidfw/tests/
DDynamicRefTable_test.cpp28 value.dataType = Res_value::TYPE_REFERENCE; in TEST()
37 value2.dataType = Res_value::TYPE_REFERENCE; in TEST()
48 value.dataType = Res_value::TYPE_ATTRIBUTE; in TEST()
57 value2.dataType = Res_value::TYPE_ATTRIBUTE; in TEST()
69 value.dataType = Res_value::TYPE_DYNAMIC_REFERENCE; in TEST()
78 value3.dataType = Res_value::TYPE_DYNAMIC_REFERENCE; in TEST()
90 value2.dataType = Res_value::TYPE_DYNAMIC_ATTRIBUTE; in TEST()
100 value.dataType = Res_value::TYPE_REFERENCE; in TEST()
110 value2.dataType = Res_value::TYPE_ATTRIBUTE; in TEST()
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()
DAssetManager2_test.cpp263 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), (*bag)->entries[0].value.dataType); in TEST_F()
267 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), (*bag)->entries[1].value.dataType); in TEST_F()
271 EXPECT_EQ(static_cast<uint8_t>(Res_value::TYPE_INT_DEC), (*bag)->entries[2].value.dataType); in TEST_F()
347 EXPECT_EQ(Res_value::TYPE_INT_DEC, (*bag_one)->entries[0].value.dataType); in TEST_F()
352 EXPECT_EQ(Res_value::TYPE_INT_DEC, (*bag_one)->entries[1].value.dataType); in TEST_F()
362 EXPECT_EQ(Res_value::TYPE_INT_DEC, (*bag_two)->entries[0].value.dataType); in TEST_F()
369 EXPECT_EQ(Res_value::TYPE_STRING, (*bag_two)->entries[1].value.dataType); in TEST_F()
378 EXPECT_EQ(Res_value::TYPE_ATTRIBUTE, (*bag_two)->entries[2].value.dataType); in TEST_F()
384 EXPECT_EQ(Res_value::TYPE_REFERENCE, (*bag_two)->entries[3].value.dataType); in TEST_F()
390 EXPECT_EQ(Res_value::TYPE_INT_DEC, (*bag_two)->entries[4].value.dataType); in TEST_F()
[all …]
/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()
/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/core/java/android/content/om/
DFabricatedOverlay.java100 public Builder setResourceValue(@NonNull String resourceName, int dataType, int value) { in setResourceValue() argument
103 entry.dataType = dataType; in setResourceValue()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DSignalIcon.java141 public final int dataType; field in SignalIcon.MobileIconGroup
147 int discContentDesc, int dataContentDesc, int dataType, boolean isWide) { in MobileIconGroup() argument
151 this.dataType = dataType; in MobileIconGroup()
153 this.qsDataType = dataType; // TODO: remove this field in MobileIconGroup()
/frameworks/base/tools/aapt2/
DResourceValues.cpp89 out_value->dataType = android::Res_value::TYPE_STRING; in Flatten()
128 out_value->dataType = android::Res_value::TYPE_DYNAMIC_REFERENCE; in Flatten()
130 out_value->dataType = android::Res_value::TYPE_REFERENCE; in Flatten()
134 out_value->dataType = android::Res_value::TYPE_DYNAMIC_ATTRIBUTE; in Flatten()
136 out_value->dataType = android::Res_value::TYPE_ATTRIBUTE; in Flatten()
218 out->dataType = android::Res_value::TYPE_INT_BOOLEAN; in Flatten()
260 out_value->dataType = android::Res_value::TYPE_STRING; in Flatten()
307 out_value->dataType = android::Res_value::TYPE_STRING; in Flatten()
335 out_value->dataType = android::Res_value::TYPE_STRING; in Flatten()
360 BinaryPrimitive::BinaryPrimitive(uint8_t dataType, uint32_t data) { in BinaryPrimitive() argument
[all …]
DResourceUtils.cpp381 value.dataType = symbol.type; in TryParseEnumSymbol()
392 flags.dataType = android::Res_value::TYPE_INT_HEX; in TryParseFlagSymbol()
447 value.dataType = android::Res_value::TYPE_INT_COLOR_RGB4; in TryParseColor()
456 value.dataType = android::Res_value::TYPE_INT_COLOR_ARGB4; in TryParseColor()
466 value.dataType = android::Res_value::TYPE_INT_COLOR_RGB8; in TryParseColor()
475 value.dataType = android::Res_value::TYPE_INT_COLOR_ARGB8; in TryParseColor()
517 if (value.dataType == android::Res_value::TYPE_INT_HEX) { in ParseResourceId()
681 if (type_mask & AndroidTypeToAttributeTypeMask(floating_point->value.dataType)) { in TryParseItemForAttribute()
744 if (res_value.dataType != android::Res_value::TYPE_REFERENCE && in ParseBinaryResValue()
745 res_value.dataType != android::Res_value::TYPE_DYNAMIC_REFERENCE) { 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/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/base/core/java/android/app/backup/
DRestoreDescription.java67 public RestoreDescription(String packageName, int dataType) { in RestoreDescription() argument
69 mDataType = dataType; in RestoreDescription()
/frameworks/base/media/java/android/media/
DAudioMetadata.java733 int dataType = buffer.getInt(); in unpack() local
734 DataPackage dataPackage = DATA_PACKAGES.get(dataType); in unpack()
736 Log.e(TAG, "Cannot find DataPackage for type:" + dataType); in unpack()
751 final Integer dataType = AUDIO_METADATA_OBJ_TYPES.get(obj.first); in pack() local
752 if (dataType == null) { in pack()
756 DataPackage dataPackage = DATA_PACKAGES.get(dataType); in pack()
758 Log.e(TAG, "Cannot find DataPackage for type:" + dataType); in pack()
761 output.putInt(dataType); in pack()
/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/external/localstorage/converter/
DSchemaToProtoConverter.java71 @AppSearchSchema.PropertyConfig.DataType int dataType = property.getDataType(); in toPropertyConfigProto() local
73 PropertyConfigProto.DataType.Code.forNumber(dataType); in toPropertyConfigProto()
75 throw new IllegalArgumentException("Invalid dataType: " + dataType); in toPropertyConfigProto()
84 throw new IllegalArgumentException("Invalid cardinality: " + dataType); in toPropertyConfigProto()
DGenericDocumentToProtoConverter.java190 @AppSearchSchema.PropertyConfig.DataType int dataType = 0; in setEmptyProperty() local
193 dataType = schema.getProperties(i).getDataType().getNumber(); in setEmptyProperty()
198 switch (dataType) { in setEmptyProperty()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp209 EXPECT_THAT(prim->value.dataType, Eq(0x10)); in TEST()
215 EXPECT_THAT(prim->value.dataType, Eq(0x11)); in TEST()
322 EXPECT_THAT(prim->value.dataType, Eq(android::Res_value::TYPE_DIMENSION)); in TEST()
418 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_INT_BOOLEAN)); in TEST()
424 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_INT_BOOLEAN)); in TEST()
430 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_INT_COLOR_RGB8)); in TEST()
436 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_INT_COLOR_ARGB8)); in TEST()
442 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_INT_COLOR_RGB4)); in TEST()
448 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_INT_COLOR_ARGB4)); in TEST()
454 EXPECT_THAT(bp->value.dataType, Eq(android::Res_value::TYPE_INT_DEC)); in TEST()
[all …]
DProtoDeserialize.cpp890 val.dataType = android::Res_value::TYPE_NULL; in DeserializeItemFromPb()
894 val.dataType = android::Res_value::TYPE_NULL; in DeserializeItemFromPb()
898 val.dataType = android::Res_value::TYPE_FLOAT; in DeserializeItemFromPb()
903 val.dataType = android::Res_value::TYPE_DIMENSION; in DeserializeItemFromPb()
907 val.dataType = android::Res_value::TYPE_FRACTION; in DeserializeItemFromPb()
911 val.dataType = android::Res_value::TYPE_INT_DEC; in DeserializeItemFromPb()
915 val.dataType = android::Res_value::TYPE_INT_HEX; in DeserializeItemFromPb()
919 val.dataType = android::Res_value::TYPE_INT_BOOLEAN; in DeserializeItemFromPb()
923 val.dataType = android::Res_value::TYPE_INT_COLOR_ARGB8; in DeserializeItemFromPb()
927 val.dataType = android::Res_value::TYPE_INT_COLOR_RGB8; in DeserializeItemFromPb()
[all …]
/frameworks/base/cmds/idmap2/idmap2d/aidl/core/android/os/
DFabricatedOverlayInternalEntry.aidl24 int dataType;
/frameworks/base/libs/androidfw/
DResourceTypes.cpp155 dataType = src.dataType; in copyFrom_dtoh()
1456 uint8_t type = attr->typedValue.dataType; in getAttributeDataType()
3877 attrRes, bag->map.value.dataType, bag->map.value.data, in applyStyle()
3878 curEntry->value.dataType); in applyStyle()
3880 if (force || (curEntry->value.dataType == Res_value::TYPE_NULL in applyStyle()
4006 te.value.dataType, te.value.data); in getAttribute()
4008 const uint8_t type = te.value.dataType; in getAttribute()
4039 if (inOutValue->dataType == Res_value::TYPE_ATTRIBUTE) { in resolveAttributeReference()
4044 (int)blockIndex, (int)inOutValue->dataType, inOutValue->data); in resolveAttributeReference()
4075 if (te.value.dataType == Res_value::TYPE_NULL) continue; in dumpToLog()
[all …]
/frameworks/compile/slang/
Dslang_rs_export_element.cpp36 DataType dataType; member
60 EI->type = DataElementInfoTable[i].dataType; in Init()

1234