Home
last modified time | relevance | path

Searched refs:dataType (Results 1 – 25 of 35) 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.cpp481 if (value.dataType == Res_value::TYPE_NULL) { in printXMLBlock()
483 } else if (value.dataType == Res_value::TYPE_REFERENCE) { in printXMLBlock()
485 } else if (value.dataType == Res_value::TYPE_ATTRIBUTE) { in printXMLBlock()
487 } else if (value.dataType == Res_value::TYPE_STRING) { in printXMLBlock()
492 printf("=(type 0x%x)0x%x", (int)value.dataType, (int)value.data); in printXMLBlock()
969 String8(e.name).string(), e.value.dataType, in parseValues()
1520 cdataExt.typedData.dataType = mCharsValue.dataType; in flatten_node()
1550 if (ae.value.dataType == Res_value::TYPE_NULL in flatten_node()
1551 || ae.value.dataType == Res_value::TYPE_STRING) { in flatten_node()
1553 attr.typedValue.dataType = Res_value::TYPE_STRING; in flatten_node()
[all …]
/frameworks/base/libs/androidfw/tests/
DResTable_test.cpp55 ASSERT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST()
86 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
91 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
106 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
111 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
126 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
137 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
142 EXPECT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST()
153 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST()
167 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.cpp89 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST()
110 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST()
179 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType); in TEST()
/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/core/jni/
Dandroid_util_AssetManager.cpp105 env->SetIntField(outValue, gTypedValueOffsets.mType, value.dataType); in copyValue()
1067 if (value.dataType == Res_value::TYPE_REFERENCE) { in android_content_AssetManager_resolveAttrs()
1097 value.dataType = Res_value::TYPE_NULL; in android_content_AssetManager_resolveAttrs()
1105 value.dataType = Res_value::TYPE_ATTRIBUTE; in android_content_AssetManager_resolveAttrs()
1108 value.dataType, value.data)); in android_content_AssetManager_resolveAttrs()
1117 if (value.dataType == Res_value::TYPE_NULL) { in android_content_AssetManager_resolveAttrs()
1122 value.dataType, value.data)); in android_content_AssetManager_resolveAttrs()
1128 if (value.dataType != Res_value::TYPE_NULL) { in android_content_AssetManager_resolveAttrs()
1134 value.dataType, value.data)); in android_content_AssetManager_resolveAttrs()
1141 value.dataType, value.data)); in android_content_AssetManager_resolveAttrs()
[all …]
Dandroid_util_XmlBlock.cpp332 return value.dataType == value.TYPE_REFERENCE in android_content_XmlBlock_nativeGetStyleAttribute()
333 || value.dataType == value.TYPE_ATTRIBUTE in android_content_XmlBlock_nativeGetStyleAttribute()
/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/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()
310 RsDataType dataType = field->mHal.state.dataType; in logUniform() local
316 if (dataType == RS_TYPE_MATRIX_4X4) { in logUniform()
322 } else if (dataType == RS_TYPE_MATRIX_3X3) { in logUniform()
327 } else if (dataType == RS_TYPE_MATRIX_2X2) { in logUniform()
357 RsDataType dataType = field->mHal.state.dataType; in setUniform() local
358 if (dataType == RS_TYPE_MATRIX_4X4) { in setUniform()
360 } 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/base/core/java/android/app/backup/
DRestoreDescription.java65 public RestoreDescription(String packageName, int dataType) { in RestoreDescription() argument
67 mDataType = dataType; in RestoreDescription()
/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/rs/api/
Dgen_runtime.cpp331 void writeJavaRandomCompatibleFloatAllocation(ofstream& file, const string& dataType,
335 void writeJavaRandomCompatibleIntegerAllocation(ofstream& file, const string& dataType,
361 void convertToRsType(const string& name, string* dataType, char* vectorSize) const;
1462 string dataType; in writeJavaInputAllocationDefinition() local
1464 convertToRsType(param.rsType, &dataType, &vectorSize); in writeJavaInputAllocationDefinition()
1470 writeJavaRandomCompatibleFloatAllocation(file, dataType, seed, vectorSize, in writeJavaInputAllocationDefinition()
1474 writeJavaRandomCompatibleIntegerAllocation(file, dataType, seed, vectorSize, in writeJavaInputAllocationDefinition()
1482 file << "createRandomFloatAllocation(mRS, Element.DataType." << dataType << ", " in writeJavaInputAllocationDefinition()
1487 file << "createRandomAllocation(mRS, Element.DataType." << dataType << ", " << vectorSize in writeJavaInputAllocationDefinition()
1495 void Permutation::writeJavaRandomCompatibleFloatAllocation(ofstream& file, const string& dataType, in writeJavaRandomCompatibleFloatAllocation() argument
[all …]
/frameworks/base/libs/androidfw/
DResourceTypes.cpp142 dataType = src.dataType; in copyFrom_dtoh()
1224 uint8_t type = attr->typedValue.dataType; in getAttributeDataType()
1246 if (attr->typedValue.dataType != Res_value::TYPE_DYNAMIC_REFERENCE || in getAttributeData()
3120 attrRes, bag->map.value.dataType, bag->map.value.data, in applyStyle()
3121 curEntry->value.dataType)); in applyStyle()
3122 if (force || curEntry->value.dataType == Res_value::TYPE_NULL) { in applyStyle()
3206 te.value.dataType, te.value.data)); in getAttribute()
3207 const uint8_t type = te.value.dataType; in getAttribute()
3237 if (inOutValue->dataType == Res_value::TYPE_ATTRIBUTE) { in resolveAttributeReference()
3241 (int)blockIndex, (int)inOutValue->dataType, (void*)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.h196 rs_data_type dataType; member
Drs_element.c91 return element->mHal.state.dataType; in rsElementGetDataType()
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl84 void notePhoneDataConnectionState(int dataType, boolean hasData); in notePhoneDataConnectionState() argument
/frameworks/rs/
DrsElement.h43 RsDataType dataType; member
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp59 switch(dataType) { \
683 jint count, jobject data, jint sizeBytes, jint dataType) in nAllocationData1D() argument
687 (RsContext)con, (RsAllocation)alloc, offset, count, sizeBytes, dataType); in nAllocationData1D()
706 jint w, jint h, jobject data, jint sizeBytes, jint dataType) in nAllocationData2D() argument
711 (RsContext)con, alloc, xoff, yoff, w, h, sizeBytes, dataType); in nAllocationData2D()
744 jint w, jint h, jint d, jobject data, int sizeBytes, int dataType) in nAllocationData3D() argument
779 nAllocationRead(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jobject data, int dataType) in nAllocationRead() argument
789 jint count, jobject data, int sizeBytes, int dataType) in nAllocationRead1D() argument
793 (RsContext)con, alloc, offset, count, sizeBytes, dataType); in nAllocationRead1D()
800 jint w, jint h, jobject data, int sizeBytes, int dataType) in nAllocationRead2D() argument
[all …]
/frameworks/base/core/java/android/content/
DIntentFilter.java344 public static IntentFilter create(String action, String dataType) { in create() argument
346 return new IntentFilter(action, dataType); in create()
389 public IntentFilter(String action, String dataType) in IntentFilter() argument
394 addDataType(dataType); in IntentFilter()

12