Home
last modified time | relevance | path

Searched refs:arraySize (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableArray.java76 int arraySize = remaining / elementSize; in unmarshal() local
88 arraySize, elementSize, remaining, mClass)); in unmarshal()
91 array = Array.newInstance(mComponentClass, arraySize); in unmarshal()
92 for (int i = 0; i < arraySize; ++i) { in unmarshal()
106 int arraySize = arrayList.size(); in unmarshal() local
107 array = copyListToArray(arrayList, Array.newInstance(mComponentClass, arraySize)); in unmarshal()
/frameworks/rs/driver/
DrsdShaderCache.cpp47 if (data[ct].slot >= 0 && data[ct].arraySize > 1) { in updateUniformArrayData()
51 data[ct].arraySize = (uint32_t)uniformList[ui]->arraySize; in updateUniformArrayData()
60 data[ct].arraySize); in updateUniformArrayData()
70 data[ct].arraySize = prog->getUniformArraySize(ct); in populateUniformData()
77 if (data[ct].slot >= 0 && data[ct].arraySize > 1) { in hasArrayUniforms()
83 if (data[ct].slot >= 0 && data[ct].arraySize > 1) { in hasArrayUniforms()
203 &uniformList[ct]->arraySize, &uniformList[ct]->type, in link()
DrsdShader.cpp315 void RsdShader::logUniform(const Element *field, const float *fd, uint32_t arraySize ) { in logUniform() argument
318 for (uint32_t i = 0; i < arraySize; i ++) { in logUniform()
319 if (arraySize > 1) { in logUniform()
362 int32_t slot, uint32_t arraySize ) { in setUniform() argument
365 RSD_CALL_GL(glUniformMatrix4fv, slot, arraySize, GL_FALSE, fd); in setUniform()
367 RSD_CALL_GL(glUniformMatrix3fv, slot, arraySize, GL_FALSE, fd); in setUniform()
369 RSD_CALL_GL(glUniformMatrix2fv, slot, arraySize, GL_FALSE, fd); in setUniform()
373 RSD_CALL_GL(glUniform1fv, slot, arraySize, fd); in setUniform()
376 RSD_CALL_GL(glUniform2fv, slot, arraySize, fd); in setUniform()
379 RSD_CALL_GL(glUniform3fv, slot, arraySize, fd); in setUniform()
[all …]
DrsdShaderCache.h60 uint32_t vtxUniformSize(uint32_t a) const {return mCurrent->vtxUniforms[a].arraySize;} in vtxUniformSize()
62 uint32_t fragUniformSize(uint32_t a) const {return mCurrent->fragUniforms[a].arraySize;} in fragUniformSize()
75 int32_t arraySize; member
93 uint32_t arraySize; member
DrsdShader.h127 const float *fd, uint32_t arraySize);
130 const float *fd, int32_t slot, uint32_t arraySize );
DrsdMeshObj.cpp67 uint32_t arraySize = elem->mHal.state.fieldArraySizes[fieldIdx]; in isValidGLComponent() local
68 if (arraySize != 1) { in isValidGLComponent()
/frameworks/rs/
DrsElement.cpp78 total += mFields[ct].e->mBits * mFields[ct].arraySize; in getSizeBits()
90 total += mFields[ct].e->mBitsUnpadded * mFields[ct].arraySize; in getSizeBitsUnpadded()
102 prefix, mFields[ct].name, mFields[ct].offsetBits, mFields[ct].arraySize); in dumpLOGV()
118 stream->addU32(mFields[ct].arraySize); in serialize()
205 bits += mFields[ct].e->getSizeBits() * mFields[ct].arraySize; in compute()
206 bitsUnpadded += mFields[ct].e->getSizeBitsUnpadded() * mFields[ct].arraySize; in compute()
217 mHal.state.fieldArraySizes[ctNoPadding] = mFields[ct].arraySize; in compute()
300 (ee->mFields[i].arraySize != asize)) { in createRef()
339 e->mFields[ct].arraySize = asize; in createRef()
364 for (uint32_t ct=0; ct < mFields[i].arraySize; ct++) { in incRefs()
[all …]
DrsElement.h91 uint32_t getFieldArraySize(uint32_t idx) const {return mFields[idx].arraySize;} in getFieldArraySize()
149 uint32_t arraySize; member
Drs.spec158 param const uint32_t * arraySize
DrsApiStubs.cpp292 const uint32_t * arraySize, size_t arraySize_length) in rsElementCreate2() argument
297 arraySize, arraySize_length); in rsElementCreate2()
DrsApiStubs.h49 …ze_t names_length_length, const size_t * names_length, const uint32_t * arraySize, size_t arraySiz…
/frameworks/rs/support/java/src/android/support/v8/renderscript/
DElement.java947 public Builder add(Element element, String name, int arraySize) { in add() argument
948 if (arraySize < 1) { in add()
979 mArraySizes[mCount] = arraySize; in add()
/frameworks/rs/cpp/
DElement.cpp431 …ent::Builder::add(const android::RSC::sp<const Element>&e, const char * name, uint32_t arraySize) { in add() argument
477 mArraySizes[mElementsCount] = arraySize; in add()
DrsCppStructs.h1417 void add(const sp<const Element>& e, const char * name, uint32_t arraySize = 1);
/frameworks/compile/slang/
Dslang_rs_reflection.cpp1648 << "[" << std::max(TypeData.arraySize, 1U) << "];\n"; in genExportReduceResultType()
1650 if (TypeData.arraySize == 0) { // result type is non-array non-vector in genExportReduceResultType()
1670 << "[" << TypeData.arraySize << "];\n"; in genExportReduceResultType()
1672 mOut.indent() << "for (int Idx = 0; Idx < " << TypeData.arraySize << "; ++Idx)"; in genExportReduceResultType()
1690 const unsigned OutArrayElementCount = VectorElementCount * std::max(TypeData.arraySize, 1U); in genExportReduceResultType()
1700 if (TypeData.arraySize == 0) { // result type is vector in genExportReduceResultType()
1716 << "[" << TypeData.arraySize << "];\n"; in genExportReduceResultType()
1717 mOut.indent() << "for (int Idx = 0; Idx < " << TypeData.arraySize << "; ++Idx)"; in genExportReduceResultType()
Dslang_rs_export_type.h181 uint32_t arraySize; // number of elements; zero if not an array member
Dslang_rs_export_type.cpp1681 rtd->arraySize = CAT->getNumElement(); in convertToRTD()
/frameworks/av/drm/common/
DIDrmManagerService.cpp581 const int arraySize = reply.readInt32(); in getAllSupportInfo() local
582 if (0 < arraySize) { in getAllSupportInfo()
583 *drmSupportInfoArray = new DrmSupportInfo[arraySize]; in getAllSupportInfo()
585 for (int index = 0; index < arraySize; ++index) { in getAllSupportInfo()
602 *length = arraySize; in getAllSupportInfo()
/frameworks/base/rs/java/android/renderscript/
DElement.java1327 public Builder add(Element element, String name, int arraySize) { in add() argument
1328 if (arraySize < 1) { in add()
1359 mArraySizes[mCount] = arraySize; in add()
/frameworks/native/vulkan/doc/implementors_guide/
Dimplementors_guide.adoc114 .arraySize = 1
/frameworks/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp999 const jint arraySize = (jint)arraySizes[i]; in nElementGetSubElements() local
1002 _env->SetIntArrayRegion(_arraySizes, i, 1, &arraySize); in nElementGetSubElements()
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp1167 const jint arraySize = (jint)arraySizes[i]; in nElementGetSubElements() local
1170 _env->SetIntArrayRegion(_arraySizes, i, 1, &arraySize); in nElementGetSubElements()