Home
last modified time | relevance | path

Searched refs:mArray (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/graphics/java/android/graphics/
DColorMatrix.java62 private final float[] mArray = new float[20]; field in ColorMatrix
76 System.arraycopy(src, 0, mArray, 0, 20); in ColorMatrix()
83 System.arraycopy(src.mArray, 0, mArray, 0, 20); in ColorMatrix()
89 public final float[] getArray() { return mArray; } in getArray()
101 final float[] a = mArray; in reset()
110 System.arraycopy(src.mArray, 0, mArray, 0, 20); in set()
117 System.arraycopy(src, 0, mArray, 0, 20); in set()
125 final float[] a = mArray; in setScale()
152 mArray[6] = mArray[12] = cosine; in setRotate()
153 mArray[7] = sine; in setRotate()
[all …]
/frameworks/av/media/libmedia/
DStringArray.cpp32 : mMax(0), mCurrent(0), mArray(NULL) in StringArray()
38 delete[] mArray[i]; in ~StringArray()
39 delete[] mArray; in ~StringArray()
58 memcpy(tmp, mArray, mCurrent * sizeof(char*)); in push_back()
59 delete[] mArray; in push_back()
60 mArray = tmp; in push_back()
64 mArray[mCurrent] = new char[len+1]; in push_back()
65 memcpy(mArray[mCurrent], str, len+1); in push_back()
77 delete[] mArray[idx]; in erase()
79 memmove(&mArray[idx], &mArray[idx+1], in erase()
[all …]
/frameworks/base/obex/javax/obex/
DPrivateOutputStream.java48 private ByteArrayOutputStream mArray; field in PrivateOutputStream
60 mArray = new ByteArrayOutputStream(); in PrivateOutputStream()
70 return mArray.size(); in size()
85 mArray.write(b); in write()
86 if (mArray.size() == mMaxPacketSize) { in write()
110 while ((mArray.size() + remainLength) >= mMaxPacketSize) { in write()
111 int bufferLeft = mMaxPacketSize - mArray.size(); in write()
112 mArray.write(buffer, offset1, bufferLeft); in write()
118 mArray.write(buffer, offset1, remainLength); in write()
128 if (mArray.size() > 0) { in readBytes()
[all …]
DApplicationParameter.java40 private byte[] mArray; field in ApplicationParameter
140 mArray = new byte[mMaxLength]; in ApplicationParameter()
147 System.arraycopy(mArray, 0, array_tmp, 0, mLength); in addAPPHeader()
148 mArray = array_tmp; in addAPPHeader()
151 mArray[mLength++] = tag; in addAPPHeader()
152 mArray[mLength++] = len; in addAPPHeader()
153 System.arraycopy(value, 0, mArray, mLength, len); in addAPPHeader()
159 System.arraycopy(mArray, 0, para, 0, mLength); in getAPPparam()
/frameworks/base/core/java/android/util/
DArrayMap.java111 Object[] mArray; field in ArrayMap
145 if (key.equals(mArray[index<<1])) { in indexOf()
152 if (key.equals(mArray[end << 1])) return end; in indexOf()
157 if (key.equals(mArray[i << 1])) return i; in indexOf()
184 if (null == mArray[index<<1]) { in indexOfNull()
191 if (null == mArray[end << 1]) return end; in indexOfNull()
196 if (null == mArray[i << 1]) return i; in indexOfNull()
215 mArray = array; in allocArrays()
229 mArray = array; in allocArrays()
242 mArray = new Object[size<<1]; in allocArrays()
[all …]
DArraySet.java81 Object[] mArray; field in ArraySet
103 if (key.equals(mArray[index])) { in indexOf()
110 if (key.equals(mArray[end])) return end; in indexOf()
115 if (key.equals(mArray[i])) return i; in indexOf()
142 if (null == mArray[index]) { in indexOfNull()
149 if (null == mArray[end]) return end; in indexOfNull()
154 if (null == mArray[i]) return i; in indexOfNull()
171 mArray = array; in allocArrays()
196 mArray = array; in allocArrays()
219 mArray = new Object[size]; in allocArrays()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DUnmodifiableSparseIntArray.java27 private final SparseIntArray mArray; field in UnmodifiableSparseIntArray
30 mArray = array; in UnmodifiableSparseIntArray()
34 return mArray.size(); in size()
38 return mArray.get(key); in get()
42 return mArray.get(key, valueIfKeyNotFound); in get()
46 return mArray.keyAt(index); in keyAt()
50 return mArray.valueAt(index); in valueAt()
54 return mArray.indexOfValue(value); in indexOfValue()
59 return mArray.toString(); in toString()
DUnmodifiableSparseArray.java27 private final SparseArray<E> mArray; field in UnmodifiableSparseArray
30 mArray = array; in UnmodifiableSparseArray()
34 return mArray.size(); in size()
38 return mArray.get(key); in get()
42 return mArray.get(key, valueIfKeyNotFound); in get()
46 return mArray.keyAt(index); in keyAt()
50 return mArray.valueAt(index); in valueAt()
54 return mArray.indexOfValue(value); in indexOfValue()
59 return mArray.toString(); in toString()
/frameworks/base/core/tests/utiltests/src/android/util/
DRemoteMemoryIntArrayService.java31 private MemoryIntArray mArray; field in RemoteMemoryIntArrayService
41 mArray = new MemoryIntArray(size); in onBind()
51 return mArray; in onBind()
58 return mArray.isWritable(); in onBind()
66 return mArray.get(index); in onBind()
77 mArray.set(index, value); in onBind()
88 return mArray.size(); in onBind()
99 mArray.close(); in onBind()
109 return mArray.isClosed(); in onBind()
/frameworks/base/wifi/java/android/net/wifi/aware/
DTlvBufferUtils.java66 private byte[] mArray; field in TlvBufferUtils.TlvConstructor
112 mArray = array; in wrap()
126 mArray = new byte[capacity]; in allocate()
170 mArray[mPosition++] = b; in putByte()
182 mArray[mPosition++] = b; in putRawByte()
204 System.arraycopy(array, offset, mArray, mPosition, length); in putByteArray()
235 System.arraycopy(array, 0, mArray, mPosition, array.length); in putRawByteArray()
269 Memory.pokeShort(mArray, mPosition, data, mByteOrder); in putShort()
287 Memory.pokeInt(mArray, mPosition, data, mByteOrder); in putInt()
322 return Arrays.copyOf(mArray, getActualLength()); in getArray()
[all …]
/frameworks/wilhelm/src/itf/
DIBufferQueue.cpp58 if ((newRear = oldRear + 1) == &thiz->mArray[thiz->mNumBuffers + 1]) { in IBufferQueue_Enqueue()
59 newRear = thiz->mArray; in IBufferQueue_Enqueue()
95 thiz->mFront = &thiz->mArray[0]; in IBufferQueue_Clear()
96 thiz->mRear = &thiz->mArray[0]; in IBufferQueue_Clear()
187 thiz->mArray = NULL; in IBufferQueue_init()
210 if ((NULL != thiz->mArray) && (thiz->mArray != thiz->mTypical)) { in IBufferQueue_deinit()
211 free(thiz->mArray); in IBufferQueue_deinit()
212 thiz->mArray = NULL; in IBufferQueue_deinit()
DIEngine.cpp28 ap->mBufferQueue.mArray = ap->mBufferQueue.mTypical; in initializeBufferQueueMembers()
36 ap->mBufferQueue.mArray = (BufferHeader *) in initializeBufferQueueMembers()
38 if (NULL == ap->mBufferQueue.mArray) { in initializeBufferQueueMembers()
42 ap->mBufferQueue.mFront = ap->mBufferQueue.mArray; in initializeBufferQueueMembers()
43 ap->mBufferQueue.mRear = ap->mBufferQueue.mArray; in initializeBufferQueueMembers()
505 thiz->mBufferQueue.mArray = thiz->mBufferQueue.mTypical; in IEngine_CreateAudioRecorder()
514 thiz->mBufferQueue.mArray = (BufferHeader *) malloc((thiz->mBufferQueue. in IEngine_CreateAudioRecorder()
516 if (NULL == thiz->mBufferQueue.mArray) { in IEngine_CreateAudioRecorder()
521 thiz->mBufferQueue.mFront = thiz->mBufferQueue.mArray; in IEngine_CreateAudioRecorder()
522 thiz->mBufferQueue.mRear = thiz->mBufferQueue.mArray; in IEngine_CreateAudioRecorder()
DIOutputMixExt.cpp73 audioPlayer->mBufferQueue.mFront = &audioPlayer->mBufferQueue.mArray[0]; in track_check()
74 audioPlayer->mBufferQueue.mRear = &audioPlayer->mBufferQueue.mArray[0]; in track_check()
281 if (++newFront == &bufferQueue->mArray[bufferQueue->mNumBuffers + 1]) { in IOutputMixExt_FillBuffer()
282 newFront = bufferQueue->mArray; in IOutputMixExt_FillBuffer()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_script_group2_gatherscatter.java32 int[] mArray; field in UT_script_group2_gatherscatter
39 mArray = new int[ARRAY_SIZE * 4]; in initializeGlobals()
42 mArray[i * 4] = i * 7; in initializeGlobals()
43 mArray[i * 4 + 1] = i * 7 + 1; in initializeGlobals()
44 mArray[i * 4 + 2] = i * 7 + 2; in initializeGlobals()
45 mArray[i * 4 + 3] = i * 7 + 3; in initializeGlobals()
70 input.copyFrom(mArray); in run()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_script_group2_gatherscatter.java30 int[] mArray; field in UT_script_group2_gatherscatter
37 mArray = new int[ARRAY_SIZE * 4]; in initializeGlobals()
40 mArray[i * 4] = i * 7; in initializeGlobals()
41 mArray[i * 4 + 1] = i * 7 + 1; in initializeGlobals()
42 mArray[i * 4 + 2] = i * 7 + 2; in initializeGlobals()
43 mArray[i * 4 + 3] = i * 7 + 3; in initializeGlobals()
68 input.copyFrom(mArray); in run()
/frameworks/base/core/java/android/os/health/
DHealthKeys.java185 int[] mArray; field in HealthKeys.SortedIntArray
191 mArray = new int[maxCount]; in SortedIntArray()
198 mArray[mCount++] = value; in addValue()
206 if (mCount == mArray.length) { in getArray()
207 Arrays.sort(mArray); in getArray()
208 return mArray; in getArray()
211 System.arraycopy(mArray, 0, result, 0, mCount); in getArray()
/frameworks/base/core/java/android/animation/
DFloatArrayEvaluator.java27 private float[] mArray; field in FloatArrayEvaluator
48 mArray = reuseArray; in FloatArrayEvaluator()
65 float[] array = mArray; in evaluate()
DIntArrayEvaluator.java27 private int[] mArray; field in IntArrayEvaluator
48 mArray = reuseArray; in IntArrayEvaluator()
64 int[] array = mArray; in evaluate()
/frameworks/av/media/libmedia/include/media/
DStringArray.h66 return (unsigned(idx) >= unsigned(mCurrent)) ? NULL : mArray[idx]; in getEntry()
78 char** mArray; variable
/frameworks/base/rs/java/android/renderscript/
DType.java340 int[] mArray = new int[mMaxArrays]; field in Type.Builder
399 mArray[dim] = value; in setArray()
469 if (mArray[ct] != 0 && arrays == null) { in create()
472 if ((mArray[ct] == 0) && (arrays != null)) { in create()
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DPowerProfile.java283 private ArrayList<Float> mArray; field in PowerProfile.AndroidResourceHandler
334 mArray = new ArrayList<Float>(); in startElement()
367 final int N = mArray.size(); in endElement()
370 values[i] = mArray.get(i); in endElement()
372 mArray = null; in endElement()
378 mArray.add(parseFloat(finishCapturingText())); in endElement()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DMultiClientInputMethodManagerService.java1171 private final SparseArray<InputMethodInfo> mArray = new SparseArray<>(); field in MultiClientInputMethodManagerService.UserToInputMethodInfoMap
1175 synchronized (mArray) { in put()
1176 mArray.put(userId, imi); in put()
1182 synchronized (mArray) { in remove()
1183 mArray.remove(userId); in remove()
1190 synchronized (mArray) { in get()
1191 return mArray.get(userId); in get()
1206 synchronized (mArray) { in dump()
1207 for (int i = 0; i < mArray.size(); i++) { in dump()
1208 ipw.println("userId=" + mArray.keyAt(i)); in dump()
[all …]
/frameworks/base/services/core/java/com/android/server/
DIpSecService.java544 SparseArray<RefcountedResource<T>> mArray = new SparseArray<>(); field in IpSecService.RefcountedResourceArray
566 RefcountedResource<T> resource = mArray.get(key); in getRefcountedResourceOrThrow()
577 mArray.put(key, obj); in put()
581 mArray.remove(key); in remove()
586 return mArray.toString(); in toString()
/frameworks/base/media/jni/
Dandroid_mtp_MtpDevice.cpp113 mEnv(env), mArray(array), mSize(mEnv->GetArrayLength(mArray)) {} in JavaArrayWriter()
118 mEnv->SetByteArrayRegion(mArray, offset, length, static_cast<jbyte*>(data)); in write()
127 jbyteArray mArray; member in __anon8000defa0111::JavaArrayWriter
/frameworks/wilhelm/src/android/
DAudioRecorder_to_android.cpp348 if (newFront == &ar->mBufferQueue.mArray[ar->mBufferQueue.mNumBuffers + 1]) { in audioRecorder_callback()
349 newFront = ar->mBufferQueue.mArray; in audioRecorder_callback()

12