/cts/hostsidetests/devicepolicy/app/VpnApp/src/com/android/cts/vpnfirewall/ |
D | Rfc1071.java | 21 int sum = 0; in checksum() local 25 sum += (data[i] & 0xFF) << 8; in checksum() 26 sum = (sum & 0xFFFF) + (sum >> 16); in checksum() 31 sum += (data[i] & 0xFF); in checksum() 32 sum = (sum & 0xFFFF) + (sum >> 16); in checksum() 36 sum = (sum & 0xFFFF) + (sum >> 16); in checksum() 37 return sum ^ 0xFFFF; in checksum()
|
/cts/tests/camera/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/tests/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/tests/tests/hardware/src/android/hardware/cts/helpers/ |
D | SensorCtsHelper.java | 77 double sum = 0.0; in getMean() local 79 sum += value.doubleValue(); in getMean() 81 return sum / collection.size(); in getMean() 99 double sum = 0.0; in getVariance() local 101 sum += value; in getVariance() 103 return sum / (squaredDiffs.size() - 1); in getVariance()
|
/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/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 | 59 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_plus_raw12.py | 62 sum([pow(rgb0[i] - rgb1[i], 2.0) for i in range(3)]) / 3.0)
|
D | test_yuv_plus_raw10.py | 62 sum([pow(rgb0[i] - rgb1[i], 2.0) for i in range(3)]) / 3.0)
|
D | test_yuv_plus_raw.py | 62 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/CtsVerifier/jni/verifier/ |
D | com_android_cts_verifier_camera_StatsImage.cpp | 49 float sum[4] = {0}; in com_android_cts_verifier_camera_its_computeStatsImage() local 61 sum[ch] += pixelValue; in com_android_cts_verifier_camera_its_computeStatsImage() 67 float m = (float)sum[ch] / count[ch]; in com_android_cts_verifier_camera_its_computeStatsImage()
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | TelephonyManagerTest.java | 288 int sum = 0; in getLuhnCheckDigit() local 293 sum += digit; in getLuhnCheckDigit() 295 sum += DOUBLE_DIGIT_SUM[digit]; in getLuhnCheckDigit() 298 sum %= 10; in getLuhnCheckDigit() 299 return sum == 0 ? 0 : 10 - sum; in getLuhnCheckDigit()
|
/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/common/util/src/com/android/compatibility/common/util/ |
D | Stat.java | 109 double sum = data[0]; in getAverage() local 111 sum += data[i]; in getAverage() 113 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/libs/deviceutil/src/android/cts/util/ |
D | MediaUtils.java | 741 double sum = 0; in movingAverage() local 743 sum += mData[i]; in movingAverage() 745 avgs[i - n + 1] = sum / n; in movingAverage() 746 sum -= mData[i - n + 1]; in movingAverage() 773 double sum = 0; // sum of elements in the window in movingAverageOverSum() local 795 sum += mData[ei]; in movingAverageOverSum() 804 avgs[ix++] = sum / num; in movingAverageOverSum() 821 sum -= mData[bi]; in movingAverageOverSum()
|
/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/tests/tests/renderscript/src/android/renderscript/cts/ |
D | ReduceTest.java | 475 int sum = 0; in sumXor() local 477 sum += (input1[idx] ^ input2[idx]); in sumXor() 478 return sum; in sumXor() 579 long sum = 0; in sillySum() local 581 …sum += ((((input1[i] + (long)Math.ceil(Math.log(input2[i]))) + input3[3*i + 0]) + input3[3*i + 1])… in sillySum() 582 return sum; in sillySum()
|
/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))
|