Home
last modified time | relevance | path

Searched refs:mData (Results 1 – 25 of 42) sorted by relevance

12

/cts/tests/openglperf2/jni/graphics/
DMatrix.cpp34 const float* d = &(mData[i * 4]); in print()
41 const float* d = src.mData; in equals()
43 if (mData[i] != d[i]) { in equals()
51 memcpy(mData, src.mData, MATRIX_SIZE * sizeof(float)); in loadWith()
55 mData[0] = 1.0f; in identity()
56 mData[1] = 0.0f; in identity()
57 mData[2] = 0.0f; in identity()
58 mData[3] = 0.0f; in identity()
60 mData[4] = 0.0f; in identity()
61 mData[5] = 1.0f; in identity()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
DDspBufferMath.java78 ((DspBufferDouble) x).mData[i] + ((DspBufferDouble) y).mData[i]; in add()
93 ((DspBufferComplex) x).mReal[i] + ((DspBufferDouble) y).mData[i]; in add()
102 ((DspBufferDouble) r).mData[i] = in add()
103 ((DspBufferDouble) x).mData[i] + ((DspBufferDouble) y).mData[i]; in add()
108 ((DspBufferDouble) r).mData[i] = in add()
114 ((DspBufferDouble) r).mData[i] = in add()
115 ((DspBufferComplex) x).mReal[i] + ((DspBufferDouble) y).mData[i]; in add()
150 ((DspBufferDouble) x).mData[i] * ((DspBufferDouble) y).mData[i]; in mult()
168 double C = ((DspBufferDouble) y).mData[i]; in mult()
179 ((DspBufferDouble) r).mData[i] = in mult()
[all …]
DVectorAverage.java24 private double[] mData; field in VectorAverage
35 if (mData == null || mData.length != size) { in setData()
36 mData = new double[size]; in setData()
40 System.arraycopy(data, 0, mData, 0, size); in setData()
47 mData[i] += data[i]; in setData()
54 if (data[i] > mData[i]) { in setData()
55 mData[i] = data[i]; in setData()
63 if (data[i] < mData[i]) { in setData()
64 mData[i] = data[i]; in setData()
76 if (mData != null && mData.length <= data.length) { in getData()
[all …]
DDspBufferDouble.java20 public double[] mData; field in DspBufferDouble
31 mData = new double[size]; in setSize()
38 mData[index] = values[0]; in setValues()
43 mData[index] = value; in setValue()
53 sb.append(String.format("%.3f, ", mData[i])); in toString()
56 sb.append(String.format("%.3f", mData[i])); in toString()
DDspWindow.java114 b.mData[i] = value; in fillTriangular()
120 b.mData[i] = 1.0; in fillTriangular()
127 b.mData[i] = value; in fillTriangular()
147 b.mData[i] = value; in fillHamming()
153 b.mData[i] = 1.0; in fillHamming()
162 b.mData[i] = value; in fillHamming()
182 b.mData[i] = value; in fillHanning()
188 b.mData[i] = 1.0; in fillHanning()
196 b.mData[i] = value; in fillHanning()
DDspFftServer.java40 mCos.mData[i] = Math.cos(-2 * Math.PI * i / mN); in init()
41 mSin.mData[i] = Math.sin(-2 * Math.PI * i / mN); in init()
86 cc = mCos.mData[aa]; in fft()
87 ss = sign * mSin.mData[aa]; in fft()
/cts/tests/openglperf2/test/
DMatrixTest.cpp38 m1.mData[4] = 9; in TEST()
39 m2.mData[4] = 9; in TEST()
57 checkValues(m.mData, expected, Matrix::MATRIX_SIZE); in TEST()
63 float* d1 = m1.mData; in TEST()
79 checkValues(m2.mData, data, Matrix::MATRIX_SIZE); in TEST()
114 float* d1 = m1.mData; in TEST()
115 float* d2 = m2.mData; in TEST()
134 checkValues(m3.mData, expected, Matrix::MATRIX_SIZE); in TEST()
163 checkValues(m->mData, expected, Matrix::MATRIX_SIZE); in TEST()
184 checkValues(m->mData, expected, Matrix::MATRIX_SIZE); in TEST()
[all …]
/cts/suite/audio_quality/lib/src/audio/
DBuffer.cpp30 mData = new char[capacity]; in Buffer()
33 ASSERT(((long)mData & 0x3) == 0); in Buffer()
36 memset(mData, 0, capacity); in Buffer()
41 delete[] mData; in ~Buffer()
48 int16_t* data = reinterpret_cast<int16_t*>(mData); in changeToMono()
103 file.read(buffer->mData, size); //TODO handle read error in loadFromFile()
123 file.write(mData, mSize); in saveToFile()
144 if (mData[i] != b.mData[i]) { in operator ==()
145 LOGD("%d %x vs %x", i, mData[i], b.mData[i]); in operator ==()
/cts/tests/tests/media/src/android/media/cts/
DTestMediaDataSource.java36 private byte[] mData; field in TestMediaDataSource
63 mData = data; in TestMediaDataSource()
77 if (position >= mData.length) { in readAt()
80 if (position + size > mData.length) { in readAt()
81 size -= (position + size) - mData.length; in readAt()
83 System.arraycopy(mData, (int)position, buffer, offset, size); in readAt()
96 Log.v(TAG, "getSize: " + mData.length); in getSize()
97 return mData.length; in getSize()
DTestProxyFileDescriptorCallback.java36 private byte[] mData; field in TestProxyFileDescriptorCallback
64 mData = data; in TestProxyFileDescriptorCallback()
77 if (offset >= mData.length) { in onRead()
80 if (offset + size > mData.length) { in onRead()
81 size -= (offset + size) - mData.length; in onRead()
83 System.arraycopy(mData, (int)offset, data, 0, size); in onRead()
96 Log.v(TAG, "getSize: " + mData.length); in onGetSize()
97 return mData.length; in onGetSize()
DAudioTrackSurroundTest.java456 private final short[] mData; field in AudioTrackSurroundTest.SamplePlayerShorts
460 mData = new short[64 * 1024]; in SamplePlayerShorts()
464 for (int i = 0; i < mData.length; i++) { in SamplePlayerShorts()
465 mData[i] = (short)(random.nextInt(amplitude) - (amplitude / 2)); in SamplePlayerShorts()
472 mData = loadRawResourceShorts(resourceId); in SamplePlayerShorts()
473 assertTrue("SamplePlayerShorts: load resource file as shorts", mData.length > 0); in SamplePlayerShorts()
480 int shortsLeft = mData.length - mOffset; in writeBlock()
485 result = mTrack.write(mData, mOffset, shortsToWrite); in writeBlock()
496 private final byte[] mData; field in AudioTrackSurroundTest.SamplePlayerBytes
500 mData = new byte[128 * 1024]; in SamplePlayerBytes()
[all …]
DMediaCasTest.java502 private final byte[] mData; field in MediaCasTest.TestEventListener
509 mData = data; in TestEventListener()
519 mData = data; in TestEventListener()
537 && arg == mArg && (Arrays.equals(data, mData) || in onEvent()
538 data == null && mData.length == 0 || in onEvent()
539 mData == null && data.length == 0)) { in onEvent()
551 && arg == mArg && (Arrays.equals(data, mData) || in onSessionEvent()
552 data == null && mData.length == 0 || in onSessionEvent()
553 mData == null && data.length == 0)) { in onSessionEvent()
DAudioTrackLatencyTest.java136 private short[] mData; field in AudioTrackLatencyTest.TestSetup
140 mData = AudioHelper.createSineWavesShort(framesPerBuffer, in createTrack()
163 samplesWritten = mTrack.write(mData, 0, mData.length); in primeAudioTrack()
167 } while (samplesWritten == mData.length); in primeAudioTrack()
182 … int samplesWritten = mTrack.write(mData, 0, mData.length, AudioTrack.WRITE_NON_BLOCKING); in writeSeconds()
183 if (samplesWritten < mData.length) { in writeSeconds()
184 int samplesRemaining = mData.length - samplesWritten; in writeSeconds()
/cts/tests/tests/media/libaudiojni/
DBlob.h32 mData(byReference ? data : mMem), in BlobReadOnly()
46 const void * const mData;
55 mData(malloc(size)), in Blob()
58 mMem(mData) { } in Blob()
62 mData(data), in Blob()
71 void * const mData; variable
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleScannerHardwareScanFilterActivity.java126 private Map<String, Integer> mData; field in BleScannerHardwareScanFilterActivity.MapAdapter
129 mData = new HashMap<>(); in MapAdapter()
135 return mData.size(); in getCount()
140 return mData.get(mKeys.get(position)); in getItem()
149 if (!mData.containsKey(key)) { in addItem()
151 mData.put(key, new Integer(1)); in addItem()
153 mData.put(key, mData.get(key) + 1); in addItem()
/cts/tests/tests/os/src/android/os/cts/
DActivityTestsBase.java40 private Intent mData; field in ActivityTestsBase
122 mData = data; in finishWithResult()
154 throw new RuntimeException(mData != null ? mData.toString() : "Unable to launch", in waitForResultOrThrow()
157 throw new RuntimeException(mData != null ? mData.toString() : "Unable to launch"); in waitForResultOrThrow()
200 return mData; in getResultData()
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio.cpp53 std::unique_ptr<int16_t[]> mData; member in AAudioStreamTest
81 mData.reset(new int16_t[mFramesPerRead * actual().channelCount]); in SetUp()
96 stream(), &mData[0], std::min(framesToRecord, mFramesPerRead), in TEST_P()
117 stream(), &mData[0], std::min(framesToRecord, mFramesPerRead), in TEST_P()
136 stream(), &mData[0], std::min(framesToRecord, mFramesPerRead), in TEST_P()
189 mData.reset(new int16_t[dataSizeSamples]{}); in SetUp()
201 stream(), &mData[0], framesPerBurst(), timeoutNanos); in TEST_P()
233 stream(), &mData[0], framesPerBurst(), timeoutNanos); in TEST_P()
285 stream(), &mData[0], framesPerBurst(), timeoutNanos); in TEST_P()
301 framesWritten = AAudioStream_write(stream(), &mData[0], framesPerBurst(), timeoutNanos); in TEST_P()
[all …]
/cts/tests/app/app/src/android/app/stubs/
DActivityTestsBase.java40 private Intent mData; field in ActivityTestsBase
135 mData = data; in finishWithResult()
168 throw new RuntimeException(mData != null ? mData.toString() : "Unable to launch", in waitForResultOrThrow()
171 throw new RuntimeException(mData != null ? mData.toString() : "Unable to launch"); in waitForResultOrThrow()
214 return mData; in getResultData()
/cts/suite/audio_quality/lib/include/audio/
DBuffer.h59 return mData; in getData()
64 memcpy(mData, data, len); in setData()
69 return mData + mHandled; in getUnhanledData()
131 char* mData; variable
/cts/tests/tests/role/src/android/app/role/cts/
DWaitForResultActivity.java38 private Intent mData; field in WaitForResultActivity
49 return new Pair<>(mResultCode, mData); in waitForActivityResult()
56 mData = data; in onActivityResult()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java721 mData = data; in Stats()
722 if (mData != null) { in Stats()
723 mNum = mData.length; in Stats()
737 if (mData != null) { in analyze()
738 for (double x : mData) { in analyze()
796 sum += mData[i]; in movingAverage()
799 sum -= mData[i - n + 1]; in movingAverage()
846 while (ei < mData.length && mData[ei] <= space) { in movingAverageOverSum()
847 space -= mData[ei]; in movingAverageOverSum()
848 sum += mData[ei]; in movingAverageOverSum()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java828 mData = data; in Stats()
829 if (mData != null) { in Stats()
830 mNum = mData.length; in Stats()
844 if (mData != null) { in analyze()
845 for (double x : mData) { in analyze()
903 sum += mData[i]; in movingAverage()
906 sum -= mData[i - n + 1]; in movingAverage()
953 while (ei < mData.length && mData[ei] <= space) { in movingAverageOverSum()
954 space -= mData[ei]; in movingAverageOverSum()
955 sum += mData[ei]; in movingAverageOverSum()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DSendToClient.java44 outArray[1] = mData[0];
45 outArray[2] = mData[1];
46 outArray[3] = mData[2];
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DServiceProcessController.java49 final Parcel mData; field in ServiceProcessController
82 mData = Parcel.obtain(); in ServiceProcessController()
169 mData.recycle(); in cleanup()
205 serviceBinder.transact(IBinder.FIRST_CALL_TRANSACTION, mData, null, 0); in ensureProcessGone()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DDirectShellCommand.java58 private final Bundle mData; field in DirectShellCommand.Result
64 mData = data; in Result()
80 return mData; in getData()

12