/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 …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/analyzers/ |
D | InfiniteRecording.java | 25 private float[] mData; field in InfiniteRecording 31 mData = new float[mMaxSamples]; in InfiniteRecording() 56 System.arraycopy(mData, offset, mData, offset + firstReadSize, firstReadSize); in readFrom() 60 System.arraycopy(mData, 0, mData, numToRead - firstReadSize, numToRead - firstReadSize); in readFrom() 72 mData[offset] = sample; in write()
|
/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/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/audio/jni/ |
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/tests/media/common/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()
|
/cts/tests/tests/media/misc/src/android/media/misc/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()
|
/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/hostsidetests/appcloning/test-apps/AppCloningTestApp/src/com/android/cts/appcloningtestapp/ |
D | Image.java | 24 private final String mData; field in Image 30 mData = data; in Image() 35 return mData; in getData()
|
/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 | 128 private Map<String, Integer> mData; field in BleScannerHardwareScanFilterActivity.MapAdapter 131 mData = new HashMap<>(); in MapAdapter() 137 return mData.size(); in getCount() 142 return mData.get(mKeys.get(position)); in getItem() 151 if (!mData.containsKey(key)) { in addItem() 153 mData.put(key, new Integer(1)); in addItem() 155 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/media/common/src/android/mediav2/common/cts/ |
D | BitStreamUtils.java | 54 protected final byte[] mData; field in BitStreamUtils.ParsableBitArray 61 mData = data; in ParsableBitArray() 74 boolean returnValue = (mData[mCurrByteOffset] & (0x80 >> mCurrBitOffset)) != 0; in readBit() 118 && mData[mCurrByteOffset] == (byte) 0x03 in readBit() 119 && mData[mCurrByteOffset - 1] == (byte) 0x00 in readBit() 120 && mData[mCurrByteOffset - 2] == (byte) 0x00) { in readBit() 169 protected byte[] mData; field in BitStreamUtils.ParserBase 174 mData = data; in set() 197 ParsableBitArray bitArray = new ParsableBitArray(mData, mOffset, mLimit); in getProfileLevel() 228 ParsableBitArray bitArray = new ParsableBitArray(mData, mOffset, mLimit); in getProfileLevel() [all …]
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioTrackSurroundTest.java | 415 private final short[] mData; field in AudioTrackSurroundTest.SamplePlayerShorts 419 mData = new short[64 * 1024]; in SamplePlayerShorts() 423 for (int i = 0; i < mData.length; i++) { in SamplePlayerShorts() 424 mData[i] = (short)(random.nextInt(amplitude) - (amplitude / 2)); in SamplePlayerShorts() 431 mData = loadRawResourceShorts(resourceId); in SamplePlayerShorts() 432 assertTrue("SamplePlayerShorts: load resource file as shorts", mData.length > 0); in SamplePlayerShorts() 439 int shortsLeft = mData.length - mOffset; in writeBlock() 444 result = mTrack.write(mData, mOffset, shortsToWrite); in writeBlock() 455 private final byte[] mData; field in AudioTrackSurroundTest.SamplePlayerBytes 459 mData = new byte[128 * 1024]; in SamplePlayerBytes() [all …]
|
/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 | 110 mData = std::make_unique<float[]>(maxFrames); in allocate() 122 mData[mFrameCounter++] = inputData[i * inputChannelCount] * (1.0f / 32768); in write() 134 mData[mFrameCounter++] = inputData[i * inputChannelCount]; in write() 143 mData[mFrameCounter++] = sample; in write() 162 return mData.get(); in getData() 177 float *x = mData.get(); in square() 186 float *x = mData.get(); in detectPeaks() 207 maxValue = std::max(maxValue, abs(mData[i])); in normalize() 211 mData[i] *= gain; in normalize() 217 std::unique_ptr<float[]> mData;
|
/cts/tests/tests/gameservice/src/android/service/games/testing/ |
D | ActivityResult.java | 114 private final Intent mData; field in ActivityResult.Success 118 mData = data; in Success() 127 return mData; in getData() 138 dest.writeParcelable(mData, flags); in writeToParcel()
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | Post.java | 56 private final byte[] mData; field in Post 65 mData = data == null ? in Post() 104 out.write(mData); in send()
|