Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/util/proto/
DProtoStream.java393 public static @Nullable String getFieldCountString(long fieldCount) { in getFieldCountString() argument
394 if (fieldCount == FIELD_COUNT_SINGLE) { in getFieldCountString()
396 } else if (fieldCount == FIELD_COUNT_REPEATED) { in getFieldCountString()
398 } else if (fieldCount == FIELD_COUNT_PACKED) { in getFieldCountString()
431 final long fieldCount = fieldId & FIELD_COUNT_MASK; in getFieldIdString() local
432 String countString = getFieldCountString(fieldCount); in getFieldIdString()
434 countString = "fieldCount=" + fieldCount; in getFieldIdString()
DProtoOutputStream.java2207 final long fieldCount = fieldId & FIELD_COUNT_MASK; in checkFieldId() local
2216 || !((fieldCount == expectedCount) in checkFieldId()
2217 || (fieldCount == FIELD_COUNT_PACKED in checkFieldId()
2219 final String countString = getFieldCountString(fieldCount); in checkFieldId()
2240 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/devicetests/com/android/testutils/
DParcelUtils.kt63 fieldCount: Int, in assertParcelSane()
66 assertFieldCountEquals(fieldCount, obj::class.java)
/frameworks/base/packages/Tethering/tests/unit/common/android/net/
DTetheredClientTest.kt54 assertParcelSane(TEST_ADDRINFO1, fieldCount = 2) in makeLinkAddress()
55 assertParcelSane(makeTestClient(), fieldCount = 3) in makeLinkAddress()
/frameworks/base/tests/net/common/java/android/net/
DCaptivePortalDataTest.kt50 assertParcelSane(data, fieldCount = 7) in makeBuilder()
/frameworks/rs/support/java/src/androidx/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/base/rs/java/android/renderscript/
DElement.java75 int fieldCount = mElementNames.length; in updateVisibleSubElements() local
77 for (int ct = 0; ct < fieldCount; ct ++) { in updateVisibleSubElements()
85 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.cpp1085 int fieldCount = _env->GetArrayLength(_ids); in nElementCreate2() local
1101 RsElement *ids = (RsElement*)malloc(fieldCount * sizeof(RsElement)); in nElementCreate2()
1102 uint32_t *arraySizes = (uint32_t *)malloc(fieldCount * sizeof(uint32_t)); in nElementCreate2()
1104 for(int i = 0; i < fieldCount; i ++) { in nElementCreate2()
1109 AutoJavaStringArrayToUTF8 names(_env, _names, fieldCount); in nElementCreate2()
1115 (const RsElement *)ids, fieldCount, in nElementCreate2()
1116 nameArray, fieldCount * sizeof(size_t), sizeArray, in nElementCreate2()
1117 (const uint32_t *)arraySizes, fieldCount); in nElementCreate2()