Home
last modified time | relevance | path

Searched refs:fieldCount (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/java/android/util/proto/
DProtoStream.java463 public static @Nullable String getFieldCountString(long fieldCount) { in getFieldCountString() argument
464 if (fieldCount == FIELD_COUNT_SINGLE) { in getFieldCountString()
466 } else if (fieldCount == FIELD_COUNT_REPEATED) { in getFieldCountString()
468 } else if (fieldCount == FIELD_COUNT_PACKED) { in getFieldCountString()
501 final long fieldCount = fieldId & FIELD_COUNT_MASK; in getFieldIdString() local
502 String countString = getFieldCountString(fieldCount); in getFieldIdString()
504 countString = "fieldCount=" + fieldCount; in getFieldIdString()
DProtoOutputStream.java2209 final long fieldCount = fieldId & FIELD_COUNT_MASK; in checkFieldId() local
2218 || !((fieldCount == expectedCount) in checkFieldId()
2219 || (fieldCount == FIELD_COUNT_PACKED in checkFieldId()
2221 final String countString = getFieldCountString(fieldCount); in checkFieldId()
2242 if (fieldCount == FIELD_COUNT_PACKED) { in checkFieldId()
/frameworks/rs/
DrsElement.cpp136 uint32_t fieldCount = stream->loadU32(); in createFromStream() local
137 if (!fieldCount) { in createFromStream()
145 const Element **subElems = new const Element *[fieldCount]; in createFromStream()
146 const char **subElemNames = new const char *[fieldCount]; in createFromStream()
147 size_t *subElemNamesLengths = new size_t[fieldCount]; in createFromStream()
148 uint32_t *arraySizes = new uint32_t[fieldCount]; in createFromStream()
150 for (uint32_t ct = 0; ct < fieldCount; ct ++) { in createFromStream()
157 const Element *elem = Element::create(rsc, fieldCount, subElems, subElemNames, in createFromStream()
159 for (uint32_t ct = 0; ct < fieldCount; ct ++) { in createFromStream()
DrsAllocation.cpp382 uint32_t fieldCount = elem->getFieldCount(); in writePackedData() local
383 if (fieldCount == 0) { in writePackedData()
393 uint32_t *offsetsPadded = new uint32_t[fieldCount]; in writePackedData()
394 uint32_t *offsetsUnpadded = new uint32_t[fieldCount]; in writePackedData()
395 uint32_t *sizeUnpadded = new uint32_t[fieldCount]; in writePackedData()
397 for (uint32_t i = 0; i < fieldCount; i++) { in writePackedData()
408 for (uint32_t fI = 0; fI < fieldCount; fI++) { in writePackedData()
/frameworks/rs/cpp/
DElement.cpp159 size_t fieldCount = mElementsCount; in updateVisibleSubElements() local
161 for (size_t ct = 0; ct < fieldCount; ct ++) { in updateVisibleSubElements()
169 for (size_t ct = 0; ct < fieldCount; ct ++) { in updateVisibleSubElements()
489 size_t fieldCount = mElementsCount; in create() local
490 void ** elementArray = (void **)calloc(fieldCount, sizeof(void *)); in create()
492 for (size_t ct = 0; ct < fieldCount; ct++) { in create()
497 (RsElement *)elementArray, fieldCount, in create()
498 … (const char **)mElementNames, fieldCount, mElementNameLengths, in create()
499 mArraySizes, fieldCount); in create()
/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/
DParcelUtils.kt65 fieldCount: Int, in assertParcelSane()
68 assertFieldCountEquals(fieldCount, obj::class.java)
/frameworks/rs/support/java/src/androidx/renderscript/
DElement.java85 int fieldCount = mElementNames.length; in updateVisibleSubElements() local
87 for (int ct = 0; ct < fieldCount; ct ++) { in updateVisibleSubElements()
95 for (int ct = 0, ctNoPadding = 0; ct < fieldCount; ct ++) { in updateVisibleSubElements()
/frameworks/base/rs/java/android/renderscript/
DElement.java80 int fieldCount = mElementNames.length; in updateVisibleSubElements() local
82 for (int ct = 0; ct < fieldCount; ct ++) { in updateVisibleSubElements()
90 for (int ct = 0, ctNoPadding = 0; ct < fieldCount; ct ++) { in updateVisibleSubElements()
/frameworks/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp949 int fieldCount = _env->GetArrayLength(_ids); in nElementCreate2() local
955 RsElement *ids = (RsElement*)malloc(fieldCount * sizeof(RsElement)); in nElementCreate2()
956 uint32_t *arraySizes = (uint32_t *)malloc(fieldCount * sizeof(uint32_t)); in nElementCreate2()
958 for(int i = 0; i < fieldCount; i ++) { in nElementCreate2()
963 AutoJavaStringArrayToUTF8 names(_env, _names, fieldCount); in nElementCreate2()
969 fieldCount, nameArray, in nElementCreate2()
970 fieldCount * sizeof(size_t), sizeArray, in nElementCreate2()
971 … (const uint32_t *)arraySizes, fieldCount); in nElementCreate2()
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp1084 int fieldCount = _env->GetArrayLength(_ids); in nElementCreate2() local
1100 RsElement *ids = (RsElement*)malloc(fieldCount * sizeof(RsElement)); in nElementCreate2()
1101 uint32_t *arraySizes = (uint32_t *)malloc(fieldCount * sizeof(uint32_t)); in nElementCreate2()
1103 for(int i = 0; i < fieldCount; i ++) { in nElementCreate2()
1108 AutoJavaStringArrayToUTF8 names(_env, _names, fieldCount); in nElementCreate2()
1114 (const RsElement *)ids, fieldCount, in nElementCreate2()
1115 nameArray, fieldCount * sizeof(size_t), sizeArray, in nElementCreate2()
1116 (const uint32_t *)arraySizes, fieldCount); in nElementCreate2()