/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | means_yuvx_444_2d_to_1d.rs | 35 uint3 sum = { 0, 0, 0 }; 46 sum.x += elem.x; 47 sum.y += elem.y; 48 sum.z += elem.z; 51 sum.x *= inv_width; // multiply by 1/w 52 sum.y *= inv_width; // multiply by 1/w 53 sum.z *= inv_width; // multiply by 1/w 55 yuvx_444 avg = convert_yuvx_444(sum); 66 uint3 sum = { 0, 0, 0 }; 73 sum.x += elem.x; [all …]
|
D | means_yuvx_444_1d_to_single.rs | 31 uint3 sum = { 0, 0, 0 }; 41 sum.x += elem.x; 42 sum.y += elem.y; 43 sum.z += elem.z; 46 sum.x *= inv_width; // multiply by 1/w 47 sum.y *= inv_width; // multiply by 1/w 48 sum.z *= inv_width; // multiply by 1/w 50 yuvx_444 avg = convert_yuvx_444(sum);
|
/cts/libs/commonutil/src/com/android/cts/util/ |
D | StatisticsUtils.java | 62 double sum = 0.0; in getMean() local 64 sum += value.doubleValue(); in getMean() 66 return sum / collection.size(); in getMean() 84 double sum = 0.0; in getVariance() local 86 sum += value; in getVariance() 88 return sum / (squaredDiffs.size() - 1); in getVariance()
|
D | Stat.java | 125 double sum = data[0]; in getAverage() local 127 sum += data[i]; in getAverage() 129 return sum / data.length; in getAverage()
|
/cts/suite/cts/deviceTests/simplecpu/jni/ |
D | CpuNativeJni.cpp | 217 float sum[M]; in doMatrixMultiplication() local 219 sum[k] = 0; in doMatrixMultiplication() 226 sum[0] += a * B[k * n + j]; in doMatrixMultiplication() 227 sum[1] += a * B[k * n + j + 1]; in doMatrixMultiplication() 228 sum[2] += a * B[k * n + j + 2]; in doMatrixMultiplication() 229 sum[3] += a * B[k * n + j + 3]; in doMatrixMultiplication() 230 sum[4] += a * B[k * n + j + 4]; in doMatrixMultiplication() 231 sum[5] += a * B[k * n + j + 5]; in doMatrixMultiplication() 232 sum[6] += a * B[k * n + j + 6]; in doMatrixMultiplication() 233 sum[7] += a * B[k * n + j + 7]; in doMatrixMultiplication() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | BaseActivity.java | 29 int sum = Native.add(2, 3); in onCreate() local 30 tv.setText("2 + 3 = " + Integer.toString(sum)); in onCreate()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
D | SensorCtsHelper.java | 66 double sum = 0.0; in getMean() local 68 sum += value.doubleValue(); in getMean() 70 return sum / collection.size(); in getMean() 88 double sum = 0.0; in getVariance() local 90 sum += value; in getVariance() 92 return sum / (squaredDiffs.size() - 1); in getVariance()
|
/cts/apps/CameraITS/tests/scene1/ |
D | test_param_tonemap_mode.py | 58 sum([[i/LM1, min(1.0,(1+0.5*n)*i/LM1)] for i in range(L)], [])) 60 sum([[i/LM1, min(1.0,(1+1.0*n)*i/LM1)] for i in range(L)], [])) 62 sum([[i/LM1, min(1.0,(1+1.5*n)*i/LM1)] for i in range(L)], [])) 82 curve = sum([[i/m, i/m] for i in range(size)], [])
|
D | test_linearity.py | 44 sum([[i/LM1, math.pow(i/LM1, 1/2.2)] for i in xrange(L)], [])) 46 sum([[i/LM1, math.pow(i/LM1, 2.2)] for i in xrange(L)], []))
|
D | test_yuv_plus_jpeg.py | 55 sum([pow(rgb0[i] - rgb1[i], 2.0) for i in range(3)]) / 3.0)
|
D | test_yuv_plus_raw12.py | 57 sum([pow(rgb0[i] - rgb1[i], 2.0) for i in range(3)]) / 3.0)
|
D | test_yuv_plus_raw10.py | 57 sum([pow(rgb0[i] - rgb1[i], 2.0) for i in range(3)]) / 3.0)
|
D | test_yuv_plus_raw.py | 56 sum([pow(rgb0[i] - rgb1[i], 2.0) for i in range(3)]) / 3.0)
|
D | test_jpeg.py | 57 sum([pow(rgb0[i] - rgb1[i], 2.0) for i in range(3)]) / 3.0)
|
D | test_yuv_jpeg_all.py | 77 sum([pow(rgb0[i] - rgb1[i], 2.0) for i in range(3)]) / 3.0)
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/ |
D | BaseRenderScriptComparer.java | 50 float sum = 0; in sum1DFloatAllocation() local 53 sum += returnValue[i]; in sum1DFloatAllocation() 55 return sum; in sum1DFloatAllocation()
|
/cts/tools/cfassembler/src/dxconvext/ |
D | ClassFileAssembler.java | 163 int sum = (int) a32.getValue(); in calcChecksum() local 165 bytes[8] = (byte) sum; in calcChecksum() 166 bytes[9] = (byte) (sum >> 8); in calcChecksum() 167 bytes[10] = (byte) (sum >> 16); in calcChecksum() 168 bytes[11] = (byte) (sum >> 24); in calcChecksum()
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_jitter.py | 46 avg = sum(deltas_ms) / len(deltas_ms) 47 var = sum([d*d for d in deltas_ms]) / len(deltas_ms) - avg * avg
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | TelephonyManagerTest.java | 278 int sum = 0; in getLuhnCheckDigit() local 283 sum += digit; in getLuhnCheckDigit() 285 sum += DOUBLE_DIGIT_SUM[digit]; in getLuhnCheckDigit() 288 sum %= 10; in getLuhnCheckDigit() 289 return sum == 0 ? 0 : 10 - sum; in getLuhnCheckDigit()
|
/cts/libs/deviceutil/src/android/cts/util/ |
D | MediaUtils.java | 429 double sum = data[0]; in getAverage() local 431 sum += data[i]; in getAverage() 433 return sum / num; in getAverage() 460 double sum = array[0]; in calculateMovingAverage() local 462 sum += array[i]; in calculateMovingAverage() 464 avgs[0] = sum / n; in calculateMovingAverage() 467 sum = sum - array[i - n] + array[i]; in calculateMovingAverage() 468 avgs[i - n + 1] = sum / n; in calculateMovingAverage()
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | Stat.java | 124 double sum = data[0]; in getAverage() local 126 sum += data[i]; in getAverage() 128 return sum / data.length; in getAverage()
|
/cts/suite/audio_quality/test_description/ |
D | processing_main.py | 50 sum = inputData[0] + inputData[1] 51 print "intsum sum is ", sum 53 outputData.append(sum)
|
/cts/tools/utils/ |
D | monsoon.py | 269 checksum = (data_len + sum(struct.unpack("B" * len(data), data))) % 256 288 checksum = (data_len + sum(struct.unpack("B" * len(body), body))) % 256 379 this_sample = sum(collected[:need]) / need 387 sum(history_deque) / len(history_deque))
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | SensorManagerStaticTest.java | 614 float sum = 0.f; in assertVectorRoughlyEqual() local 616 sum += (v1[i] - v2[i]) * (v1[i] - v2[i]); in assertVectorRoughlyEqual() 618 assertRoughlyEqual(message, (float)Math.sqrt(sum), 0.f, bound); in assertVectorRoughlyEqual() 732 float sum = 0.f; in vecInner() local 735 sum += u[i]*v[i]; in vecInner() 737 return (float)Math.sqrt(sum); in vecInner()
|
/cts/apps/CtsVerifier/assets/scripts/ |
D | execute_power_tests.py | 553 sub_avg = sum(sub_measurements[0:decimate_by]) / decimate_by 668 avg = sum(measurements) / len(measurements) 671 stddev = math.sqrt(sum(squared) / len(squared)) 880 this_sample = sum(collected[:need]) / need 888 sum(history_deque) / len(history_deque))
|