/cts/libs/commonutil/src/com/android/cts/util/ |
D | Stat.java | 48 public static StatResult getStat(double[] data) { in getStat() argument 49 double average = data[0]; in getStat() 50 double min = data[0]; in getStat() 51 double max = data[0]; in getStat() 52 double eX2 = data[0] * data[0]; // will become E[X^2] in getStat() 53 for (int i = 1; i < data.length; i++) { in getStat() 54 average += data[i]; in getStat() 55 eX2 += data[i] * data[i]; in getStat() 56 if (data[i] > max) { in getStat() 57 max = data[i]; in getStat() [all …]
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | Stat.java | 47 public static StatResult getStat(double[] data) { in getStat() argument 48 double average = data[0]; in getStat() 49 double min = data[0]; in getStat() 50 double max = data[0]; in getStat() 51 double eX2 = data[0] * data[0]; // will become E[X^2] in getStat() 52 for (int i = 1; i < data.length; i++) { in getStat() 53 average += data[i]; in getStat() 54 eX2 += data[i] * data[i]; in getStat() 55 if (data[i] > max) { in getStat() 56 max = data[i]; in getStat() [all …]
|
/cts/tests/tests/opengl/libopengltest/ |
D | gl2_jni_libone.cpp | 54 Data data = attachShaderOne(); in Java_android_opengl_cts_GL2JniLibOne_init() local 55 LOGI("Attach Shader Error : %d\n", data.mShaderError); in Java_android_opengl_cts_GL2JniLibOne_init() 56 LOGI("Shader Count : %d\n", data.mShaderCount); in Java_android_opengl_cts_GL2JniLibOne_init() 57 errorAttachShader = data.mShaderError; in Java_android_opengl_cts_GL2JniLibOne_init() 58 shaderCount = data.mShaderCount; in Java_android_opengl_cts_GL2JniLibOne_init() 60 Data data = attachShaderTwo(); in Java_android_opengl_cts_GL2JniLibOne_init() local 61 LOGI("Attach Shader Error : %d\n", data.mShaderError); in Java_android_opengl_cts_GL2JniLibOne_init() 62 errorAttachShader = data.mShaderError; in Java_android_opengl_cts_GL2JniLibOne_init() 64 Data data = attachShaderThree(); in Java_android_opengl_cts_GL2JniLibOne_init() local 65 LOGI("Attach Shader Error : %d\n", data.mShaderError); in Java_android_opengl_cts_GL2JniLibOne_init() [all …]
|
/cts/suite/audio_quality/lib/src/audio/ |
D | AudioProtocol.cpp | 36 bool AudioProtocol::handleReply(const uint32_t* data, AudioParam* param) in handleReply() argument 38 if (!checkHeaderId(data, mCommand)) { in handleReply() 41 if (data[1] != 0) { // no endian change for 0 in handleReply() 42 LOGE("error in reply %d", ntohl(data[1])); in handleReply() 45 if (data[2] != 0) { in handleReply() 46 LOGE("payload length %d not zero", ntohl(data[2])); in handleReply() 52 bool AudioProtocol::handleReplyHeader(ClientSocket& socket, uint32_t* data, CommandId& id) in handleReplyHeader() argument 54 if (!socket.readData((char*)data, REPLY_HEADER_SIZE)) { in handleReplyHeader() 58 uint32_t command = ntohl(data[0]); in handleReplyHeader() 60 LOGE("Wrong header %x %x", command, data[0]); in handleReplyHeader() [all …]
|
D | AudioSignalFactory.cpp | 31 int16_t* data = reinterpret_cast<int16_t*>(buffer->getData()); in generateSineWave() local 35 *data = (int16_t)val; in generateSineWave() 36 data++; in generateSineWave() 38 *data = (int16_t)val; in generateSineWave() 39 data++; in generateSineWave() 53 int16_t* data = reinterpret_cast<int16_t*>(buffer->getData()); in generateWhiteNoise() local 59 *data = val; in generateWhiteNoise() 60 data++; in generateWhiteNoise() 62 *data = val; in generateWhiteNoise() 63 data++; in generateWhiteNoise() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | Util.java | 24 public static double mean(double[] data) { in mean() argument 26 return mean.evaluate(data); in mean() 32 public static double std(double[] data) { in std() argument 34 return std.evaluate(data); in std() 40 public static double median(double[] data) { in median() argument 42 median.setData(data); in median() 50 public static Complex[] padZeros(Complex[] data, int length) { in padZeros() argument 52 if (length < data.length) { in padZeros() 53 System.arraycopy(data, 0, result, 0, length); in padZeros() 55 System.arraycopy(data, 0, result, 0, data.length); in padZeros() [all …]
|
D | Correlation.java | 38 public boolean computeCorrelation(double [] data, int samplingRate) { in computeCorrelation() argument 40 log("Started Auto Correlation for data with " + data.length + " points"); in computeCorrelation() 43 downsampleData(data, mDataDownsampled); in computeCorrelation() 48 int N = data.length; //all samples available in computeCorrelation() 72 mDataAutocorrelated.length, data.length, minIndex)); in computeCorrelation() 98 private boolean downsampleData(double [] data, double [] dataDownsampled) { in downsampleData() argument 106 int N = data.length; //all samples available in downsampleData() 121 dataDownsampled[currentIndex] += Math.abs(data[i]); in downsampleData() 128 private boolean autocorrelation(double [] data, double [] dataOut) { in autocorrelation() argument 132 int N = data.length; in autocorrelation() [all …]
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | ScanRecordTest.java | 43 ScanRecord data = TestUtils.parseScanRecord(scanRecord); in testParser() local 44 assertEquals(0x1a, data.getAdvertiseFlags()); in testParser() 47 assertTrue(data.getServiceUuids().contains(uuid1)); in testParser() 48 assertTrue(data.getServiceUuids().contains(uuid2)); in testParser() 50 assertEquals("Ped", data.getDeviceName()); in testParser() 51 assertEquals(-20, data.getTxPowerLevel()); in testParser() 53 assertTrue(data.getManufacturerSpecificData().get(0x00E0) != null); in testParser() 58 data.getManufacturerSpecificData().get(0x00E0)); in testParser() 59 TestUtils.assertArrayEquals(manufacturerData, data.getManufacturerSpecificData(0x00E0)); in testParser() 61 assertTrue(data.getServiceData().containsKey(uuid2)); in testParser() [all …]
|
D | AdvertiseDataTest.java | 43 AdvertiseData data = mAdvertiseDataBuilder.build(); in testEmptyData() local 44 data.writeToParcel(parcel, 0); in testEmptyData() 48 assertEquals(data, dataFromParcel); in testEmptyData() 59 AdvertiseData data = mAdvertiseDataBuilder.setIncludeDeviceName(true).build(); in testEmptyServiceUuid() local 60 data.writeToParcel(parcel, 0); in testEmptyServiceUuid() 64 assertEquals(data, dataFromParcel); in testEmptyServiceUuid() 74 AdvertiseData data = in testEmptyManufacturerData() local 77 data.writeToParcel(parcel, 0); in testEmptyManufacturerData() 81 assertEquals(data, dataFromParcel); in testEmptyManufacturerData() 90 AdvertiseData data = in testEmptyServiceData() local [all …]
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetManager_AssetInputStreamTest.java | 81 byte[] data = new byte[dataLength]; in testReadMethods() 82 int ret = mAssetInputStream.read(data); in testReadMethods() 85 assertEquals(bytes[i], data[i]); in testReadMethods() 87 data = new byte[len - dataLength]; in testReadMethods() 88 assertEquals(len - dataLength, mAssetInputStream.read(data)); in testReadMethods() 90 assertEquals(bytes[i + dataLength], data[i]); in testReadMethods() 92 assertEquals(end, mAssetInputStream.read(data)); in testReadMethods() 97 ret = mAssetInputStream.read(data, offset, dataLength); in testReadMethods() 100 assertEquals(bytes[i], data[offset + i]); in testReadMethods() 104 ret = mAssetInputStream.read(data, offset, dataLength); in testReadMethods() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | MemoryFileTest.java | 40 byte[] data = new byte[512]; in testWriteBytes() 43 mMemoryFile.writeBytes(data, 0, 0, 512); in testWriteBytes() 56 byte[] data = new byte[512]; in checkWriteBytesInIllegalParameter() 57 mMemoryFile.writeBytes(data, srcOffset, destOffset, count); in checkWriteBytesInIllegalParameter() 84 byte[] data = new byte[512]; in testAllowPurging() 86 mMemoryFile.writeBytes(data, 0, 0, 512); in testAllowPurging() 93 mMemoryFile.writeBytes(data, 0, 0, 512); in testAllowPurging() 118 byte[] data = new byte[] { 1, 2, 3, 4 }; in testReadBytes() 119 mMemoryFile.writeBytes(data, 0, 0, data.length); in testReadBytes() 142 byte[] data = new byte[512]; in checkReadBytesInIllegalParameter() [all …]
|
D | LocalService.java | 48 protected boolean onTransact(int code, Parcel data, Parcel reply, 51 data.enforceInterface(SERVICE_LOCAL); 52 mReportObject = data.readStrongBinder(); 55 return super.onTransact(code, data, reply, flags); 105 Parcel data = Parcel.obtain(); in bindAction() local 106 data.writeInterfaceToken(SERVICE_LOCAL); in bindAction() 108 data.writeInt(mStartCount); in bindAction() 112 bindCode, data, null, 0); in bindAction() 113 data.recycle(); in bindAction()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/ |
D | VectorAverage.java | 27 public void setData(double[] data, boolean replace) { in setData() argument 28 int size = data.length; in setData() 34 System.arraycopy(data, 0, mData, 0, size); in setData() 38 mData[i] += data[i]; in setData() 44 public int getData(double[] data, boolean raw) { in getData() argument 46 if (mData != null && mData.length <= data.length) { in getData() 50 data[i] = 0; in getData() 54 data[i] = mData[i] / mValueCount; in getData() 58 data[i] = mData[i]; in getData() 89 double[] data = new double[getSize()]; in toString() local [all …]
|
/cts/suite/audio_quality/test/ |
D | BufferTest.cpp | 43 int16_t* data = (int16_t*)buffer->getData(); in TEST_F() local 44 ASSERT_TRUE(data != NULL); in TEST_F() 46 data[2*i] = i; in TEST_F() 47 data[2*i+1] = i; in TEST_F() 58 ASSERT_TRUE(data[2*i] == dataRead[2*i]); in TEST_F() 59 ASSERT_TRUE(data[2*i+1] == dataRead[2*i+1]); in TEST_F() 68 int16_t* data = (int16_t*)buffer->getData(); in TEST_F() local 69 ASSERT_TRUE(data != NULL); in TEST_F() 71 data[i] = i; in TEST_F() 75 data = (int16_t*)bufferl->getData(); in TEST_F() [all …]
|
D | AudioSignalFactoryTest.cpp | 28 int16_t* data = reinterpret_cast<int16_t*>(buffer->getData()); in testSignalBasic() local 30 ASSERT_TRUE(*data <= maxPositive); in testSignalBasic() 31 ASSERT_TRUE(*data >= -maxPositive); in testSignalBasic() 32 data++; in testSignalBasic() 33 ASSERT_TRUE(*data <= maxPositive); in testSignalBasic() 34 ASSERT_TRUE(*data >= -maxPositive); in testSignalBasic() 35 data++; in testSignalBasic()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | send_to_client.rs | 6 int data[4]; 7 data[0] = in->y; 8 data[1] = in->z; 9 data[2] = in->w; 10 rsSendToClient(id, data, sizeof(data));
|
/cts/tests/tests/database/src/android/database/cts/ |
D | CharArrayBufferTest.java | 27 assertEquals(0, charArrayBuffer.data.length); in testCharArrayBuffer() 28 charArrayBuffer.data = new char[100]; in testCharArrayBuffer() 29 assertEquals(100, charArrayBuffer.data.length); in testCharArrayBuffer() 31 assertEquals(100, (new CharArrayBuffer(100)).data.length); in testCharArrayBuffer() 33 assertNull((new CharArrayBuffer(null)).data); in testCharArrayBuffer() 36 assertSame(expectedData, (new CharArrayBuffer(expectedData)).data); in testCharArrayBuffer()
|
/cts/tests/app/src/android/app/cts/ |
D | LocalService.java | 48 protected boolean onTransact(int code, Parcel data, Parcel reply, 51 data.enforceInterface(SERVICE_LOCAL); 52 mReportObject = data.readStrongBinder(); 55 return super.onTransact(code, data, reply, flags); 105 Parcel data = Parcel.obtain(); in bindAction() local 106 data.writeInterfaceToken(SERVICE_LOCAL); in bindAction() 108 data.writeInt(mStartCount); in bindAction() 112 bindCode, data, null, 0); in bindAction() 113 data.recycle(); in bindAction()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioTrackTest.java | 414 byte data[] = new byte[minBuffSize]; in testPlaybackHeadPositionIncrease() 417 track.write(data, OFFSET_DEFAULT, data.length); in testPlaybackHeadPositionIncrease() 418 track.write(data, OFFSET_DEFAULT, data.length); in testPlaybackHeadPositionIncrease() 441 byte data[] = new byte[minBuffSize]; in testPlaybackHeadPositionAfterFlush() 444 track.write(data, OFFSET_DEFAULT, data.length); in testPlaybackHeadPositionAfterFlush() 445 track.write(data, OFFSET_DEFAULT, data.length); in testPlaybackHeadPositionAfterFlush() 471 byte data[] = new byte[minBuffSize]; in testPlaybackHeadPositionAfterStop() 474 track.write(data, OFFSET_DEFAULT, data.length); in testPlaybackHeadPositionAfterStop() 475 track.write(data, OFFSET_DEFAULT, data.length); in testPlaybackHeadPositionAfterStop() 506 byte data[] = new byte[minBuffSize]; in testPlaybackHeadPositionAfterPause() [all …]
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | base.js | 206 BenchmarkSuite.prototype.RunSingleBenchmark = function(benchmark, data) { argument 207 function Measure(data) { argument 214 if (data != null) { 215 data.runs += n; 216 data.elapsed += elapsed; 220 if (data == null) { 226 Measure(data); 228 if (data.runs < benchmark.minIterations) return data; 229 var usec = (data.elapsed * 1000) / data.runs; 246 var data; [all …]
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/js/ |
D | bootstrap-collapse.js | 62 hasData = actives.data('collapse') 65 hasData || actives.data('collapse', null) 129 , data = $this.data('collapse') 131 if (!data) $this.data('collapse', (data = new Collapse(this, options))) 132 if (typeof option == 'string') data[option]() 152 , option = $(target).data('collapse') ? 'toggle' : $this.data()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | MyActivity.java | 32 public final Intent data; field in MyActivity.Result 34 public Result(int resultCode, Intent data) { in Result() argument 36 this.data = data; in Result() 50 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 52 mResult.offer(new Result(resultCode, data), 5, TimeUnit.SECONDS); in onActivityResult()
|
/cts/suite/audio_quality/lib/include/audio/ |
D | AudioProtocol.h | 70 virtual bool handleReply(const uint32_t* data, AudioParam* param); 79 static bool handleReplyHeader(ClientSocket& socket, uint32_t* data, CommandId& id); 86 bool sendData(const char* data, int len) { in sendData() argument 87 return mSocket.sendData(data, len); in sendData() 90 bool checkHeaderId(const uint32_t* data, uint32_t command); 91 bool readData(char* data, int len) { in readData() argument 92 return mSocket.readData(data, len); in readData() 135 virtual bool handleReply(const uint32_t* data, AudioParam* param); 151 virtual bool handleReply(const uint32_t* data, AudioParam* param);
|
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
D | IntentSenderActivity.java | 43 public final Intent data; field in IntentSenderActivity.Result 45 public Result(int resultCode, Intent data) { in Result() argument 47 this.data = data; in Result() 58 protected void onActivityResult(int requestCode, int resultCode, Intent data) { in onActivityResult() argument 61 mResult.offer(new Result(resultCode, data), 5, TimeUnit.SECONDS); in onActivityResult() 73 Log.d(TAG, "Result intent: " + result.data); in getResult() 75 return (result != null) ? result.data : null; in getResult()
|
/cts/tests/leanbackjank/app/src/android/cts/jank/leanback/model/ |
D | Movie.java | 38 String[] data = new String[5]; in Movie() local 40 in.readStringArray(data); in Movie() 41 mId = data[0]; in Movie() 42 mTitle = data[1]; in Movie() 43 mDescription = data[2]; in Movie() 44 mStudio = data[3]; in Movie() 45 mCategory = data[4]; in Movie()
|