Home
last modified time | relevance | path

Searched refs:mElements (Results 1 – 14 of 14) sorted by relevance

/frameworks/support/v4/java/android/support/v4/util/
DCircularArray.java22 private E[] mElements; field in CircularArray
28 int n = mElements.length; in doubleCapacity()
35 System.arraycopy(mElements, mHead, a, 0, r); in doubleCapacity()
36 System.arraycopy(mElements, 0, a, r, mHead); in doubleCapacity()
37 mElements = (E[]) a; in doubleCapacity()
74 mElements = (E[]) new Object[arrayCapacity]; in CircularArray()
83 mElements[mHead] = e; in addFirst()
94 mElements[mTail] = e; in addLast()
110 E result = mElements[mHead]; in popFirst()
111 mElements[mHead] = null; in popFirst()
[all …]
DCircularIntArray.java23 private int[] mElements; field in CircularIntArray
29 int n = mElements.length; in doubleCapacity()
36 System.arraycopy(mElements, mHead, a, 0, r); in doubleCapacity()
37 System.arraycopy(mElements, 0, a, r, mHead); in doubleCapacity()
38 mElements = a; in doubleCapacity()
75 mElements = new int[arrayCapacity]; in CircularIntArray()
84 mElements[mHead] = e; in addFirst()
95 mElements[mTail] = e; in addLast()
109 int result = mElements[mHead]; in popFirst()
122 int result = mElements[t]; in popLast()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DColorSpaceTransform.java78 mElements = new int[COUNT_INT]; in ColorSpaceTransform()
82 mElements[i * RATIONAL_SIZE + OFFSET_NUMERATOR] = elements[i].getNumerator(); in ColorSpaceTransform()
83 mElements[i * RATIONAL_SIZE + OFFSET_DENOMINATOR] = elements[i].getDenominator(); in ColorSpaceTransform()
122 mElements = Arrays.copyOf(elements, elements.length); in ColorSpaceTransform()
142 int numerator = mElements[(row * COLUMNS + column) * RATIONAL_SIZE + OFFSET_NUMERATOR]; in getElement()
143 int denominator = mElements[(row * COLUMNS + column) * RATIONAL_SIZE + OFFSET_DENOMINATOR]; in getElement()
170 int numerator = mElements[j + OFFSET_NUMERATOR]; in copyElements()
171 int denominator = mElements[j + OFFSET_DENOMINATOR]; in copyElements()
206 destination[i + offset] = mElements[i]; in copyElements()
229 int numerator = mElements[j + OFFSET_NUMERATOR]; in equals()
[all …]
DLensShadingMap.java65 mElements = checkNotNull(elements, "elements must not be null"); in LensShadingMap()
136 return mElements[colorChannel + (row * mColumns + column) * COUNT ]; in getGainFactor()
165 mElements[RED + offset]; in getGainFactorVector()
167 mElements[GREEN_EVEN + offset]; in getGainFactorVector()
169 mElements[GREEN_ODD + offset]; in getGainFactorVector()
171 mElements[BLUE + offset]; in getGainFactorVector()
203 System.arraycopy(mElements, /*srcPos*/0, destination, offset, getGainFactorCount()); in copyGainFactors()
226 && Arrays.equals(mElements, other.mElements); in equals()
236 int elemsHash = HashCodeHelpers.hashCode(mElements); in hashCode()
288 private final float[] mElements; field in LensShadingMap
/frameworks/rs/cpp/
DElement.cpp35 return mElements[mVisibleElementMap[index]]; in getSubElement()
76 if (rs->mElements.N == nullptr) { \
77 rs->mElements.N = (createUser(rs, RS_TYPE_##T)); \
79 return rs->mElements.N; \
104 if (rs->mElements.N == nullptr) { \
105 rs->mElements.N = createPixel(rs, RS_TYPE_##T, RS_KIND_##K); \
107 return rs->mElements.N; \
119 if (rs->mElements.N##_2 == nullptr) { \
120 rs->mElements.N##_2 = createVector(rs, RS_TYPE_##T, 2); \
122 return rs->mElements.N##_2; \
[all …]
DRenderScript.cpp52 memset(&mElements, 0, sizeof(mElements)); in RS()
DrsCppStructs.h518 } mElements; variable
1408 sp<const Element> * mElements; variable
1440 sp<const Element> * mElements; variable
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DElement.java63 Element[] mElements; field in Element
75 if (mElements == null) { in updateVisibleSubElements()
206 if (mElements == null) { in isComplex()
209 for (int ct=0; ct < mElements.length; ct++) { in isComplex()
210 if (mElements[ct].mElements != null) { in isComplex()
244 return mElements[mVisibleElementMap[index]]; in getSubElement()
721 mElements = e; in Element()
726 mOffsetInBytes = new int[mElements.length]; in Element()
727 for (int ct = 0; ct < mElements.length; ct++ ) { in Element()
729 mSize += mElements[ct].mSize * mArraySizes[ct]; in Element()
[all …]
DAllocation.java1019 if (component_number >= mType.mElement.mElements.length) { in setFromFieldPacker()
1028 int eSize = mType.mElement.mElements[component_number].getBytesSize(); in setFromFieldPacker()
/frameworks/base/rs/java/android/renderscript/
DElement.java55 Element[] mElements; field in Element
68 if (mElements == null) { in updateVisibleSubElements()
202 if (mElements == null) { in isComplex()
205 for (int ct=0; ct < mElements.length; ct++) { in isComplex()
206 if (mElements[ct].mElements != null) { in isComplex()
240 return mElements[mVisibleElementMap[index]]; in getSubElement()
1063 mElements = e; in Element()
1068 mOffsetInBytes = new int[mElements.length]; in Element()
1069 for (int ct = 0; ct < mElements.length; ct++ ) { in Element()
1071 mSize += mElements[ct].mSize * mArraySizes[ct]; in Element()
[all …]
DAllocation.java1073 if (component_number >= mType.mElement.mElements.length) { in setFromFieldPacker()
1088 int eSize = mType.mElement.mElements[component_number].getBytesSize(); in setFromFieldPacker()
2030 if (component_number >= mType.mElement.mElements.length) { in copyToFieldPacker()
2045 int eSize = mType.mElement.mElements[component_number].getBytesSize(); in copyToFieldPacker()
/frameworks/rs/
DrsElement.cpp45 for (uint32_t ct = 0; ct < mRSC->mStateElement.mElements.size(); ct++) { in preDestroy()
46 if (mRSC->mStateElement.mElements[ct] == this) { in preDestroy()
47 mRSC->mStateElement.mElements.removeAt(ct); in preDestroy()
235 for (uint32_t ct=0; ct < rsc->mStateElement.mElements.size(); ct++) { in createRef()
236 const Element *ee = rsc->mStateElement.mElements[ct]; in createRef()
269 rsc->mStateElement.mElements.push(e); in createRef()
281 for (uint32_t ct=0; ct < rsc->mStateElement.mElements.size(); ct++) { in createRef()
282 const Element *ee = rsc->mStateElement.mElements[ct]; in createRef()
344 rsc->mStateElement.mElements.push(e); in createRef()
406 rsAssert(!mElements.size()); in ~ElementState()
DrsElement.h173 Vector<Element *> mElements; variable
/frameworks/base/tools/aapt2/java/
DClassDefinition.h118 mElements.push_back(val); in addElement()
130 const auto begin = mElements.begin(); in writeToStream()
131 const auto end = mElements.end(); in writeToStream()
147 std::vector<T> mElements; variable