/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | CircularBufferFloat.java | 22 private float[] mData; field in CircularBufferFloat 27 mData = new float[numSamples]; in CircularBufferFloat() 47 if (numSamples > mData.length) { in write() 50 if ((mCursor + numSamples) > mData.length) { in write() 52 int numWrite1 = mData.length - mCursor; in write() 53 System.arraycopy(buffer, offset, mData, mCursor, numWrite1); in write() 56 System.arraycopy(buffer, offset, mData, 0, numWrite2); in write() 59 System.arraycopy(buffer, offset, mData, mCursor, numSamples); in write() 61 if (mCursor == mData.length) { in write() 66 if (mNumValidSamples > mData.length) { in write() [all …]
|
D | WaveformView.java | 38 private float[] mData; field in WaveformView 81 float [] localData = mData; in onDraw() 143 if (mData == null || count > mData.length) { in setSampleData() 144 mData = new float[count]; in setSampleData() 146 System.arraycopy(samples, offset, mData, 0, count); in setSampleData() 155 mData = null; in clearSampleData()
|
/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/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/ |
D | CustomEvent.java | 51 SerializableQueryHelper<CustomEventQuery> mData = new SerializableQueryHelper<>(this); field in CustomEvent.CustomEventQuery 66 return mData; in whereData() 74 if (!mData.matches(event.mData)) { in filter() 84 .field("data", mData) in describeQuery() 107 mEvent.mData = data; in setData() 113 protected Serializable mData; field in CustomEvent 122 return mData; in data() 129 + ", data=" + mData in toString()
|
/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/hostsidetests/car/src/android/car/cts/powerpolicy/ |
D | TestResultTable.java | 72 private final String mData; field in TestResultTable.RecordEntry 78 mData = data; in RecordEntry() 94 || !mData.equals(peerEntry.mData)) { in equals() 102 int code = mTestcase.hashCode() + mAction.hashCode() + mData.hashCode(); in hashCode() 114 return strBuilder.append(mData).toString(); in toString() 120 && mData.equals(peerEntry.mData); in equalsIgnoreSubject() 126 peerPolicy = PowerPolicyDef.parse(/* policyDefStr= */ peerEntry.mData, in equalsWithPowerPolicyData() 129 CLog.wtf("failed to parse policy string: " + peerEntry.mData, e); in equalsWithPowerPolicyData() 146 PowerPolicyDef myPolicy = PowerPolicyDef.parse(/* policyDefStr= */ mData, in equalsWithPowerPolicyData() 152 CLog.wtf("failed to parse policy string: " + mData, e); in equalsWithPowerPolicyData()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | TestProxyFileDescriptorCallback.java | 36 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()
|
D | TestMediaDataSource.java | 36 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()
|
D | AudioTrackSurroundTest.java | 467 private final short[] mData; field in AudioTrackSurroundTest.SamplePlayerShorts 471 mData = new short[64 * 1024]; in SamplePlayerShorts() 475 for (int i = 0; i < mData.length; i++) { in SamplePlayerShorts() 476 mData[i] = (short)(random.nextInt(amplitude) - (amplitude / 2)); in SamplePlayerShorts() 483 mData = loadRawResourceShorts(res); in SamplePlayerShorts() 484 assertTrue("SamplePlayerShorts: load resource file as shorts", mData.length > 0); in SamplePlayerShorts() 491 int shortsLeft = mData.length - mOffset; in writeBlock() 496 result = mTrack.write(mData, mOffset, shortsToWrite); in writeBlock() 507 private final byte[] mData; field in AudioTrackSurroundTest.SamplePlayerBytes 511 mData = new byte[128 * 1024]; in SamplePlayerBytes() [all …]
|
D | MediaCasTest.java | 618 private final byte[] mData; field in MediaCasTest.TestEventListener 625 mData = null; in TestEventListener() 633 mData = data; in TestEventListener() 643 mData = data; in TestEventListener() 650 mData = null; in TestEventListener() 658 mData = null; in TestEventListener() 677 && arg == mArg && (Arrays.equals(data, mData) || in onEvent() 678 data == null && mData.length == 0 || in onEvent() 679 mData == null && data.length == 0)) { in onEvent() 691 && arg == mArg && (Arrays.equals(data, mData) || in onSessionEvent() [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/hostsidetests/car/app/src/android/car/cts/app/ |
D | PowerPolicyTestCommand.java | 31 protected final String mData; field in PowerPolicyTestCommand 36 mData = data; in PowerPolicyTestCommand() 47 return mData; in getData() 62 mTestClient.printlnResult(mData); in execute() 63 mTestClient.setTestcase(mData); in execute() 64 Log.d(TAG, "setTestcase: " + mData); in execute() 124 mTestClient.registerPowerPolicyListener(mData); in execute() 143 mTestClient.unregisterPowerPolicyListener(mData); in execute() 160 mTestClient.printResultHeader(getType().name() + ": " + mData); in execute() 162 CarPowerPolicy policy = mTestClient.getListenerCurrentPolicy(mData); in execute() [all …]
|
/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/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/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/tests/app/app/src/android/app/stubs/ |
D | ActivityTestsBase.java | 40 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/tests/tests/role/src/android/app/role/cts/ |
D | WaitForResultActivity.java | 38 private Intent mData; field in WaitForResultActivity 49 return new Pair<>(mResultCode, mData); in waitForActivityResult() 56 mData = data; in onActivityResult()
|
/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/apps/CtsVerifier/jni/audio_loopback/analyzer/ |
D | LatencyAnalyzer.h | 100 mData = std::make_unique<float[]>(maxFrames); in allocate() 111 mData[mFrameCounter++] = inputData[i * inputChannelCount] * (1.0f / 32768); in write() 123 mData[mFrameCounter++] = inputData[i * inputChannelCount]; in write() 132 mData[mFrameCounter++] = sample; in write() 150 return mData.get(); in getData() 165 float *x = mData.get(); in square() 180 maxValue = std::max(maxValue, abs(mData[i])); in normalize() 184 mData[i] *= gain; in normalize() 190 std::unique_ptr<float[]> mData;
|