Searched defs:elem (Results 1 - 17 of 17) sorted by relevance

/frameworks/base/core/java/android/hardware/camera2/utils/
H A DArrayUtils.java40 for (T elem : array) {
41 if (Objects.equals(elem, needle)) {
151 for (int elem : list) {
152 arr[i] = elem;
162 * @param array {@code array} to check for {@code elem}
163 * @param elem {@code elem} to test for
166 public static boolean contains(int[] array, int elem) { argument
167 return getArrayIndex(array, elem) != -1;
173 * @param array {@code array} to check for {@code elem}
177 contains(T[] array, T elem) argument
[all...]
/frameworks/rs/driver/
H A DrsdMeshObj.cpp52 bool RsdMeshObj::isValidGLComponent(const Element *elem, uint32_t fieldIdx) { argument
55 RsDataType dt = elem->mHal.state.fields[fieldIdx]->mHal.state.dataType;
63 uint32_t arraySize = elem->mHal.state.fieldArraySizes[fieldIdx];
78 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); local
79 for (uint32_t ct=0; ct < elem->mHal.state.fieldsCount; ct++) {
80 if (isValidGLComponent(elem, ct)) {
101 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); local
102 uint32_t stride = elem->mHal.state.elementSizeBytes;
103 for (uint32_t fieldI=0; fieldI < elem->mHal.state.fieldsCount; fieldI++) {
104 const Element *f = elem
[all...]
H A DrsdBcc.cpp133 const android::renderscript::Element *elem,
136 cs->setGlobalVarWithElemDims(slot, data, dataLength, elem, dims, dimLength);
131 rsdScriptSetGlobalVarWithElemDims(const Context *dc, const Script *s, uint32_t slot, void *data, size_t dataLength, const android::renderscript::Element *elem, const uint32_t *dims, size_t dimLength) argument
H A DrsdShader.cpp576 const Element *elem = mRSProgram->mHal.state.inputElements[ct]; local
577 mAttribCount += elem->mHal.state.fieldsCount;
582 const Element *elem = mRSProgram->mHal.state.constantTypes[ct]->getElement(); local
583 mUniformCount += elem->mHal.state.fieldsCount;
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/
H A DVCardEntryTests.java151 public void addExpectedElement(EntryElement elem) { argument
152 mExpectedElements.put(elem.getEntryLabel(), elem);
190 public boolean onElement(EntryElement elem) { argument
191 EntryElement expectedElem = mExpectedElements.remove(elem.getEntryLabel());
192 assertNotNull("Unexpected elem: " + elem.toString(), expectedElem);
193 assertEquals(expectedElem, elem);
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DColladaParser.java500 private String getString(Element elem, String name) { argument
502 NodeList nl = elem.getElementsByTagName(name);
509 private String getString(Element elem) { argument
511 text = elem.getFirstChild().getNodeValue();
515 private int getInt(Element elem, String name) { argument
516 return Integer.parseInt(getString(elem, name));
519 private float getFloat(Element elem, String name) { argument
520 return Float.parseFloat(getString(elem, name));
523 private float getFloat(Element elem) { argument
524 return Float.parseFloat(getString(elem));
544 getFloat3(Element elem, String name) argument
549 getFloat4(Element elem, String name) argument
554 getFloat3(Element elem) argument
559 getFloat4(Element elem) argument
[all...]
/frameworks/opt/net/wifi/service/jni/
H A Djni_helper.cpp141 jlong *elem = (env)->GetLongArrayElements(array, 0); local
142 if (elem == NULL) {
147 jlong value = elem[index];
148 (env)->ReleaseLongArrayElements(array, elem, 0);
173 jlong *elem = (env)->GetLongArrayElements(array, 0); local
174 if (elem == NULL) {
179 jlong value = elem[index];
180 (env)->ReleaseLongArrayElements(array, elem, 0);
196 jobject elem = (env)->GetObjectArrayElement(array, index); local
197 if (elem
340 jlong *elem = (env)->GetLongArrayElements(array, NULL); local
[all...]
/frameworks/rs/
H A DrsElement.h119 ObjectBaseRef<const Element> elem = createRef(rsc, dt, dk, isNorm, vecSize); local
120 elem->incUserRef();
121 return elem.get();
128 ObjectBaseRef<const Element> elem = createRef(rsc, count, ein, nin, lengths, asin); local
129 elem->incUserRef();
130 return elem.get();
H A DrsElement.cpp157 const Element *elem = Element::create(rsc, fieldCount, subElems, subElemNames, local
169 return (Element *)elem;
439 extern "C" void rsaElementGetNativeData(RsContext con, RsElement elem, argument
443 Element *e = static_cast<Element *>(elem);
452 extern "C" void rsaElementGetSubElements(RsContext con, RsElement elem, uintptr_t *ids, argument
454 Element *e = static_cast<Element *>(elem);
H A DrsType.cpp186 Element *elem = Element::createFromStream(rsc, stream); local
187 if (!elem) {
196 Type *type = Type::getType(rsc, elem, x, y, z, lod != 0, faces !=0, 0);
197 elem->decUserRef();
H A DrsAllocation.cpp281 const Element *elem = type->getElement(); local
282 uint32_t unpaddedBytes = elem->getSizeBytesUnpadded();
283 uint32_t paddedBytes = elem->getSizeBytes();
290 uint32_t fieldCount = elem->getFieldCount();
306 offsetsPadded[i] = elem->getFieldOffsetBytes(i);
307 offsetsUnpadded[i] = elem->getFieldOffsetBytesUnpadded(i);
308 sizeUnpadded[i] = elem->getField(i)->getSizeBytesUnpadded();
/frameworks/native/cmds/flatland/
H A DMain.cpp673 size_t elem = (samples.size() * (outlierFraction-1) / outlierFraction); local
674 result = (samples[elem-1] + samples[elem]) * 0.5;
/frameworks/rs/cpu_ref/
H A DrsCpuScript.cpp1176 const Element *elem,
1198 size_t stride = elem->getSizeBytes();
1201 elem->incRefs(cVal);
1208 elem->decRefs(oldVal);
1175 setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength, const Element *elem, const uint32_t *dims, size_t dimLength) argument
/frameworks/rs/driver/runtime/
H A Drs_sample.c539 const Element_t *elem = type->mHal.state.element; local
540 rs_data_kind dk = elem->mHal.state.dataKind;
541 rs_data_type dt = elem->mHal.state.dataType;
591 const Element_t *elem = type->mHal.state.element; local
592 rs_data_kind dk = elem->mHal.state.dataKind;
593 rs_data_type dt = elem->mHal.state.dataType;
638 const Element_t *elem = type->mHal.state.element; local
639 rs_data_kind dk = elem->mHal.state.dataKind;
640 rs_data_type dt = elem->mHal.state.dataType;
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardEntry.java1581 public boolean onElement(EntryElement elem); argument
1619 for (EntryElement elem : elemList) {
1620 iterator.onElement(elem);
1646 public boolean onElement(EntryElement elem) { argument
1647 if (!elem.isEmpty()) {
1679 public boolean onElement(EntryElement elem) { argument
1684 mBuilder.append("[").append(elem.toString()).append("]");
1732 public boolean onElement(EntryElement elem) { argument
1733 if (!elem.isEmpty()) {
1734 elem
[all...]
/frameworks/support/v8/renderscript/jni/
H A Dandroid_renderscript_RenderScript.cpp736 nScriptSetVarVE(JNIEnv *_env, jobject _this, RsContext con, jint script, jint slot, jbyteArray data, jint elem, jintArray dims) argument
743 rsScriptSetVarVE(con, (RsScript)script, slot, ptr, len, (RsElement)elem,
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp1046 nScriptSetVarVE(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jbyteArray data, jlong elem, jintArray dims) argument
1053 rsScriptSetVarVE((RsContext)con, (RsScript)script, slot, ptr, len, (RsElement)elem,

Completed in 334 milliseconds