/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/ |
D | VectorAverage.java | 24 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 …]
|
D | DspBufferMath.java | 78 ((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 …]
|
D | DspBufferDouble.java | 20 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()
|
D | DspWindow.java | 114 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()
|
D | DspFftServer.java | 40 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/jni/graphics/ |
D | Matrix.cpp | 34 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 …]
|
D | PerspectiveMeshNode.cpp | 48 glUniformMatrix4fv(prog.mMVMatrixHandle, 1, false, prog.mMVMatrix.mData); in before() 55 glUniformMatrix4fv(prog.mMVPMatrixHandle, 1, false, prog.mMVPMatrix.mData); in before()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | TestMediaDataSource.java | 34 private byte[] mData; field in TestMediaDataSource 61 mData = data; in TestMediaDataSource() 75 if (position >= mData.length) { in readAt() 78 if (position + size > mData.length) { in readAt() 79 size -= (position + size) - mData.length; in readAt() 81 System.arraycopy(mData, (int)position, buffer, offset, size); in readAt() 94 Log.v(TAG, "getSize: " + mData.length); in getSize() 95 return mData.length; in getSize()
|
D | AudioTrackSurroundTest.java | 453 private final short[] mData; field in AudioTrackSurroundTest.SamplePlayerShorts 457 mData = new short[64 * 1024]; in SamplePlayerShorts() 461 for (int i = 0; i < mData.length; i++) { in SamplePlayerShorts() 462 mData[i] = (short)(random.nextInt(amplitude) - (amplitude / 2)); in SamplePlayerShorts() 469 mData = loadRawResourceShorts(resourceId); in SamplePlayerShorts() 470 assertTrue("SamplePlayerShorts: load resource file as shorts", mData.length > 0); in SamplePlayerShorts() 477 int shortsLeft = mData.length - mOffset; in writeBlock() 482 result = mTrack.write(mData, mOffset, shortsToWrite); in writeBlock() 493 private final byte[] mData; field in AudioTrackSurroundTest.SamplePlayerBytes 497 mData = new byte[128 * 1024]; in SamplePlayerBytes() [all …]
|
D | AudioTrackLatencyTest.java | 133 private short[] mData; field in AudioTrackLatencyTest.TestSetup 137 mData = AudioHelper.createSineWavesShort(framesPerBuffer, in createTrack() 160 samplesWritten = mTrack.write(mData, 0, mData.length); in primeAudioTrack() 164 } while (samplesWritten == mData.length); in primeAudioTrack() 179 … int samplesWritten = mTrack.write(mData, 0, mData.length, AudioTrack.WRITE_NON_BLOCKING); in writeSeconds() 180 if (samplesWritten < mData.length) { in writeSeconds() 181 int samplesRemaining = mData.length - samplesWritten; in writeSeconds()
|
/cts/tests/tests/media/libaudiojni/ |
D | Blob.h | 32 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/tests/openglperf2/test/ |
D | MatrixTest.cpp | 38 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/ |
D | Buffer.cpp | 30 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/app/app/src/android/app/stubs/ |
D | ActivityTestsBase.java | 40 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/os/src/android/os/cts/ |
D | ActivityTestsBase.java | 40 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/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleScannerHardwareScanFilterActivity.java | 126 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/suite/audio_quality/lib/include/audio/ |
D | Buffer.h | 59 return mData; in getData() 64 memcpy(mData, data, len); in setData() 69 return mData + mHandled; in getUnhanledData() 131 char* mData; variable
|
/cts/tests/tests/nativemedia/aaudio/src/ |
D | test_aaudio.cpp | 53 std::unique_ptr<int16_t[]> mData; member in AAudioStreamTest 80 mData.reset(new int16_t[mFramesPerRead * actual().channelCount]); in SetUp() 95 stream(), &mData[0], std::min(framesToRecord, mFramesPerRead), in TEST_P() 116 stream(), &mData[0], std::min(framesToRecord, mFramesPerRead), in TEST_P() 135 stream(), &mData[0], std::min(framesToRecord, mFramesPerRead), in TEST_P() 187 mData.reset(new int16_t[dataSizeSamples]); in SetUp() 188 memset(&mData[0], 0, dataSizeSamples); in SetUp() 200 stream(), &mData[0], framesPerBurst(), timeoutNanos); in TEST_P() 232 stream(), &mData[0], framesPerBurst(), timeoutNanos); in TEST_P() 284 stream(), &mData[0], framesPerBurst(), timeoutNanos); in TEST_P() [all …]
|
/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
D | ServiceProcessController.java | 47 final Parcel mData; field in ServiceProcessController 70 mData = Parcel.obtain(); in ServiceProcessController() 90 mData.recycle(); in cleanup() 110 serviceBinder.transact(IBinder.FIRST_CALL_TRANSACTION, mData, null, 0); in ensureProcessGone()
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | MultipartForm.java | 39 /* package */ byte[] mData; field in MultipartForm 71 mData = data; in addFormFile() 138 if (mData != null) { in getContentBody() 141 byteOutput.write(mData); in getContentBody()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | SendToClient.java | 44 outArray[1] = mData[0]; 45 outArray[2] = mData[1]; 46 outArray[3] = mData[2];
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 702 mData = data; in Stats() 703 if (mData != null) { in Stats() 704 mNum = mData.length; in Stats() 718 if (mData != null) { in analyze() 719 for (double x : mData) { in analyze() 777 sum += mData[i]; in movingAverage() 780 sum -= mData[i - n + 1]; in movingAverage() 827 while (ei < mData.length && mData[ei] <= space) { in movingAverageOverSum() 828 space -= mData[ei]; in movingAverageOverSum() 829 sum += mData[ei]; in movingAverageOverSum() [all …]
|
/cts/tests/openglperf2/jni/reference/scene/flocking/ |
D | WaterMeshNode.cpp | 52 glUniformMatrix4fv(prog.mMVMatrixHandle, 1, false, prog.mMVMatrix.mData); in before() 59 glUniformMatrix4fv(prog.mMVPMatrixHandle, 1, false, prog.mMVPMatrix.mData); in before()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioFrequencyLineActivity.java | 92 private DspBufferDouble mData; field in AudioFrequencyLineActivity 167 mData = new DspBufferDouble(mBlockSizeSamples); in onCreate() 646 mData.mData[index] = value; in onPeriodicNotification() 654 DspBufferMath.mult(mData, mData, mWindow.mBuffer); in onPeriodicNotification() 655 DspBufferMath.set(mC, mData); in onPeriodicNotification()
|
D | AudioFrequencySpeakerActivity.java | 98 private DspBufferDouble mData; field in AudioFrequencySpeakerActivity 153 mData = new DspBufferDouble(mBlockSizeSamples); in onCreate() 662 mData.mData[index] = value; in onPeriodicNotification() 670 DspBufferMath.mult(mData, mData, mWindow.mBuffer); in onPeriodicNotification() 671 DspBufferMath.set(mC, mData); in onPeriodicNotification()
|