/cts/apps/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/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | StatUtils.java | 22 double sum = 0.0; in calculateMeanAbsoluteDeviation() local 24 sum += Math.abs(values[index] - mean); in calculateMeanAbsoluteDeviation() 26 return sum / numValues; in calculateMeanAbsoluteDeviation() 30 double sum = 0.0; in calculateMean() local 32 sum += value; in calculateMean() 34 return sum / values.length; in calculateMean()
|
/cts/tests/tests/keystore/src/android/keystore/cts/performance/ |
D | PerformanceTestResult.java | 61 double sum = 0; in getTotalTime() local 63 sum += mSamples[i]; in getTotalTime() 65 return sum; in getTotalTime() 69 double sum = 0; in getTotalTimeSq() local 71 sum += (double) mSamples[i] * mSamples[i]; in getTotalTimeSq() 73 return sum; in getTotalTimeSq()
|
/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/hostsidetests/dumpsys/src/android/dumpsys/cts/ |
D | ProcessStatsDumpsysTest.java | 342 long sum = 0; in getTagValueSum() local 350 sum += assertInteger(parts[i].substring(m.end(0))); in getTagValueSum() 354 return sum; in getTagValueSum() 359 final long sum = getTagValueSum(parts, tagRegex); in assertTagValueLessThan() local 363 + sum, sum <= expectedMax); in assertTagValueLessThan() 368 final long sum = getTagValueSum(parts, tagRegex); in assertTagValueSumAbout() local 372 + sum, sum >= expectedValue); in assertTagValueSumAbout() 376 + sum, sum <= (expectedValue * DURATION_TIME_MAX_FACTOR)); in assertTagValueSumAbout()
|
/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/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/scene1_2/ |
D | test_param_tonemap_mode.py | 113 'red': sum([[i/(_L_TMAP-1), min(1.0, (1+0.5*n)*i/(_L_TMAP-1))] 115 'green': sum([[i/(_L_TMAP-1), min(1.0, (1+1.0*n)*i/(_L_TMAP-1))] 117 'blue': sum([[i/(_L_TMAP-1), min(1.0, (1+1.5*n)*i/(_L_TMAP-1))] 137 tonemap_curve = sum([[i/(size-1)]*2 for i in range(size)], [])
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_jitter.py | 70 avg = sum(deltas_ms) / len(deltas_ms) 71 var = sum([d * d for d in deltas_ms]) / len(deltas_ms) - avg * avg
|
D | test_vibration_restriction.py | 68 test_length_second = sum(_PATTERN_MS) / 1000
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | SensorCtsHelper.java | 91 double sum = 0.0; in getMean() local 93 sum += value.doubleValue(); in getMean() 95 return sum / collection.size(); in getMean() 113 double sum = 0.0; in getVariance() local 115 sum += value; in getVariance() 117 return sum / (squaredDiffs.size() - 1); in getVariance()
|
/cts/apps/CtsVerifier/jni/verifier/ |
D | com_android_cts_verifier_camera_StatsImage.cpp | 164 std::vector<double> sum(numOfChannels, 0); in computeSingleCellStats() local 181 sum[ch] += pixelValue; in computeSingleCellStats() 197 double m = sum[ch] / (double) count[ch]; in computeSingleCellStats()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | StatsdCtsForegroundActivity.java | 239 double sum = 0; in doBusyWork() local 241 sum += Math.sin(t); in doBusyWork() 243 Log.d(TAG, "Completed summing sines: " + sum); in doBusyWork()
|
/cts/apps/CameraITS/tests/scene1_1/ |
D | test_linearity.py | 44 sum([[i/_L, math.pow(i/_L, 1/2.2)] for i in range(_L+1)], [])) 46 sum([[i/_L, math.pow(i/_L, 2.2)] for i in range(_L+1)], []))
|
D | test_latching.py | 123 g_avg_for_caps = sum(g_means) / len(g_means)
|
/cts/tools/utils/ |
D | monsoon.py | 283 checksum = (data_len + sum(struct.unpack("B" * len(data), data))) % 256 302 checksum = (data_len + sum(struct.unpack("B" * len(body), body))) % 256 400 this_sample = [sum(chan[:need]) / need for chan in chan_buffers] 409 chan_avgs.append(sum(chan_deque) / len(chan_deque))
|
/cts/apps/CameraITS/utils/ |
D | sensor_fusion_utils.py | 126 return sum(coefficients[i] * x ** (n - i - 1) for i in range(n)) 470 x0 = (x-x.mean(0)) / np.sqrt(((x-x.mean(0))**2.0).sum()) 471 y0 = (y-y.mean(0)) / np.sqrt(((y-y.mean(0))**2.0).sum()) 638 total_sum_of_squares = np.sum( 662 limited_residuals = np.sum( 667 limited_total_sum_of_squares = np.sum(
|
/cts/tests/sensor/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/media/common/src/android/mediav2/common/cts/ |
D | VideoErrorManager.java | 98 long sse = 0, sum = 0; in computeFrameVariance() local 110 sum += sample; in computeFrameVariance() 115 double mean = ((double) sum) / (bSize * bSize); in computeFrameVariance()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | ReduceTest.java | 494 int sum = 0; in sumXor() local 496 sum += (input1[idx] ^ input2[idx]); in sumXor() 497 return sum; in sumXor() 607 long sum = 0; in sillySum() local 609 …sum += ((((input1[i] + (long)Math.ceil(Math.log(input2[i]))) + input3[3*i + 0]) + input3[3*i + 1])… in sillySum() 610 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))
|
/cts/hostsidetests/adpf/app/hintsession/src/cpp/ |
D | Renderer.cpp | 413 double sum = std::accumulate(durations.begin(), durations.end(), 0); in getFrameStats() local 414 double mean = static_cast<double>(sum) / static_cast<double>(durations.size()); in getFrameStats() 434 stats.efficiency = static_cast<double>(sum) / in getFrameStats()
|
/cts/apps/CtsVerifier/jni/audio_loopback/analyzer/ |
D | LatencyAnalyzer.h | 93 double sum = 0.0; in calculateRootMeanSquare() local 96 sum += sample * sample; in calculateRootMeanSquare() 98 return sqrt(sum / numSamples); in calculateRootMeanSquare()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 993 double sum = 0; in movingAverage() local 995 sum += mData[i]; in movingAverage() 997 avgs[i - n + 1] = sum / n; in movingAverage() 998 sum -= mData[i - n + 1]; in movingAverage() 1025 double sum = 0; // sum of elements in the window in movingAverageOverSum() local 1047 sum += mData[ei]; in movingAverageOverSum() 1056 avgs[ix++] = sum / num; in movingAverageOverSum() 1073 sum -= mData[bi]; in movingAverageOverSum()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | EffectBundleTest.java | 372 int sum = 0; in eqGetParamFreqRangeCommand() local 374 sum += Math.abs(reply[i]); in eqGetParamFreqRangeCommand() 377 assertEquals("reply expected to be all zeros", sum, 0); in eqGetParamFreqRangeCommand()
|