/frameworks/av/media/module/codecs/amrnb/enc/src/ |
D | autocorr.cpp | 314 Word32 sum; in Autocorr() local 338 sum = 0L; in Autocorr() 346 sum += ((Word32)temp * temp) << 1; in Autocorr() 347 if (sum < 0) in Autocorr() 392 sum = 0L; in Autocorr() 398 sum += ((Word32)temp * temp) << 1; in Autocorr() 401 sum += ((Word32)temp * temp) << 1; in Autocorr() 403 if (sum > 0) in Autocorr() 410 sum += 1L; /* Avoid the case of all zeros */ in Autocorr() 414 norm = norm_l(sum); in Autocorr() [all …]
|
D | ton_stab.cpp | 696 Word16 sum; in check_gp_clipping() local 698 sum = shr(g_pitch, 3, pOverflow); /* Division by 8 */ in check_gp_clipping() 701 sum = add(sum, st->gp[i], pOverflow); in check_gp_clipping() 704 if (sum > GP_CLIP) in check_gp_clipping()
|
/frameworks/av/media/module/codecs/amrnb/common/src/ |
D | add.cpp | 181 Word32 sum; in add() local 182 sum = (Word32) var1 + var2; in add() 188 if (sum > 0X00007fffL) in add() 191 sum = MAX_16; in add() 193 else if (sum < (Word32) 0xffff8000L) in add() 196 sum = MIN_16; in add() 201 return ((Word16) sum); in add()
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
D | canny.rscript | 105 ushort sum = 0; 108 sum += 2 * rsGetElementAt_uchar(edgeImage, x1++, y1); 109 sum += 4 * rsGetElementAt_uchar(edgeImage, x1++, y1); 110 sum += 5 * rsGetElementAt_uchar(edgeImage, x1++, y1); 111 sum += 4 * rsGetElementAt_uchar(edgeImage, x1++, y1); 112 sum += 2 * rsGetElementAt_uchar(edgeImage, x1++, y1); 115 sum += 4 * rsGetElementAt_uchar(edgeImage, x1++, y1); 116 sum += 9 * rsGetElementAt_uchar(edgeImage, x1++, y1); 117 sum += 12 * rsGetElementAt_uchar(edgeImage, x1++, y1); 118 sum += 9 * rsGetElementAt_uchar(edgeImage, x1++, y1); [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
D | ConstraintChangeTest.kt | 40 val sum = mock1 + mock2 in testSumNonNull() constant 41 sum?.invoke(constraintSet) in testSumNonNull() 53 val sum = (null as? ConstraintChange?) + mock in testSumThisNull() constant 54 sum?.invoke(constraintSet) in testSumThisNull() 63 val sum = (null as? ConstraintChange?) + change in testSumThisNull_notWrapped() constant 64 assertThat(sum).isSameInstanceAs(change) in testSumThisNull_notWrapped() 72 val sum = mock + (null as? ConstraintChange?) in testSumOtherNull() constant 73 sum?.invoke(constraintSet) in testSumOtherNull() 82 val sum = change + (null as? ConstraintChange?) in testSumOtherNull_notWrapped() constant 83 assertThat(sum).isSameInstanceAs(change) in testSumOtherNull_notWrapped()
|
D | ConstraintChangesTest.kt | 44 val sum = changes1 + changes2 in testSumWithoutNulls() constant 47 sum.qqsConstraintsChanges?.invoke(constraintSet) in testSumWithoutNulls() 48 sum.qsConstraintsChanges?.invoke(constraintSet) in testSumWithoutNulls() 49 sum.largeScreenConstraintsChanges?.invoke(constraintSet) in testSumWithoutNulls() 69 val sum = changes1 + changes2 in testSumWithSomeNulls() constant 71 assertThat(sum.qqsConstraintsChanges).isSameInstanceAs(mockQQS) in testSumWithSomeNulls() 72 assertThat(sum.qsConstraintsChanges).isSameInstanceAs(mockQS) in testSumWithSomeNulls() 73 assertThat(sum.largeScreenConstraintsChanges).isNull() in testSumWithSomeNulls()
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | convolve3x3.rscript | 32 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[0]; 33 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y1)) * gCoeffs[1]; 34 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[2]; 35 sum += convert_float4(rsGetElementAt_uchar4(gIn, x1, y)) * gCoeffs[3]; 36 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y)) * gCoeffs[4]; 37 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y)) * gCoeffs[5]; 38 sum += convert_float4(rsGetElementAt_uchar4(gIn, x1, y2)) * gCoeffs[6]; 39 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y2)) * gCoeffs[7]; 40 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y2)) * gCoeffs[8]; 42 sum = clamp(sum, 0.f, 255.f); [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | convolve3x3.rscript | 32 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[0]; 33 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y1)) * gCoeffs[1]; 34 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[2]; 35 sum += convert_float4(rsGetElementAt_uchar4(gIn, x1, y)) * gCoeffs[3]; 36 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y)) * gCoeffs[4]; 37 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y)) * gCoeffs[5]; 38 sum += convert_float4(rsGetElementAt_uchar4(gIn, x1, y2)) * gCoeffs[6]; 39 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y2)) * gCoeffs[7]; 40 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y2)) * gCoeffs[8]; 42 sum = clamp(sum, 0.f, 255.f); [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | convolve3x3.rscript | 32 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[0]; 33 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y1)) * gCoeffs[1]; 34 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[2]; 35 sum += convert_float4(rsGetElementAt_uchar4(gIn, x1, y)) * gCoeffs[3]; 36 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y)) * gCoeffs[4]; 37 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y)) * gCoeffs[5]; 38 sum += convert_float4(rsGetElementAt_uchar4(gIn, x1, y2)) * gCoeffs[6]; 39 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y2)) * gCoeffs[7]; 40 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y2)) * gCoeffs[8]; 42 sum = clamp(sum, 0.f, 255.f); [all …]
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | Matrix.java | 99 double sum = 0; in mult4() local 101 sum += m[col + j] * src[j]; in mult4() 103 dest[i] = (float) sum; in mult4() 110 double sum = m[col + 3]; in mult3() local 112 sum += m[col + j] * src[j]; in mult3() 114 dest[i] = (float) sum; in mult3() 121 double sum = 0; in mult3v() local 123 sum += m[col + j] * src[j]; in mult3v() 125 dest[i] = (float) sum; in mult3v() 132 double sum = 0; in mult4() local [all …]
|
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
D | focus_peak.rscript | 31 int sum = 0; 35 sum += tmp * tmp; 37 sum += tmp * tmp; 39 sum += tmp * tmp; 44 sum += tmp * tmp; 46 sum += tmp * tmp; 48 sum += tmp * tmp; 50 sum >>= 9; 51 sum *= sum * sum; 59 mergedPixel.b * 1436 / 1024 - 179 + sum; [all …]
|
/frameworks/av/media/libaaudio/src/flowgraph/resampler/ |
D | PolyphaseResamplerMono.cpp | 45 float sum = 0.0; in readFrame() local 53 sum += *xFrame++ * *coefficients++; in readFrame() 54 sum += *xFrame++ * *coefficients++; in readFrame() 55 sum += *xFrame++ * *coefficients++; in readFrame() 56 sum += *xFrame++ * *coefficients++; in readFrame() 62 frame[0] = sum; in readFrame()
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/ |
D | ArrayIterationPerfTest.java | 51 int sum = 0; in timeArrayIteration() local 53 sum += mArray[i].mSplat; in timeArrayIteration() 61 int sum = 0; in timeArrayIterationCached() local 66 sum += localArray[i].mSplat; in timeArrayIterationCached() 74 int sum = 0; in timeArrayIterationForEach() local 76 sum += a.mSplat; in timeArrayIterationForEach()
|
D | ArrayListIterationPerfTest.java | 52 int sum = 0; in timeArrayListIterationIndexed() local 56 sum += list.get(i).mSplat; in timeArrayListIterationIndexed() 64 int sum = 0; in timeArrayListIterationForEach() local 66 sum += a.mSplat; in timeArrayListIterationForEach()
|
D | BigIntegerPerfTest.java | 51 BigInteger sum = BigInteger.ZERO; in inner() local 53 sum = sum.add(big.multiply(big)); in inner() 55 if (sum.and(BigInteger.valueOf(0x3fffffff)).intValue() != n) { in inner() 57 "inner() got " + sum.and(BigInteger.valueOf(0x3fffffff)) + " instead of " + n); in inner() 77 BigInteger sum = BigInteger.ZERO; in harmonic1000() local 79 sum = sum.add(scaledOne.divide(BigInteger.valueOf(i))); in harmonic1000() 81 return sum; in harmonic1000()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
D | stats_scorer.cpp | 29 float sum = 0.0; in Java_androidx_media_filterpacks_numeric_StatsFilter_score() local 34 sum += val; in Java_androidx_media_filterpacks_numeric_StatsFilter_score() 38 result[0] = sum / numPixels; // mean in Java_androidx_media_filterpacks_numeric_StatsFilter_score() 53 float sum = 0.0; in Java_androidx_media_filterpacks_numeric_StatsFilter_regionscore() local 60 sum += val; in Java_androidx_media_filterpacks_numeric_StatsFilter_regionscore() 65 result[0] = sum / numPixels; // mean in Java_androidx_media_filterpacks_numeric_StatsFilter_regionscore()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ui/ |
D | AnimatedValueTest.kt | 114 val sum = zip(animating, notAnimating) { a, b -> a + b } in <lambda>() constant 115 assertThat(sum.value).isEqualTo(3) in <lambda>() 123 val sum = zip(animating, notAnimating) { a, b -> a + b } in <lambda>() constant 124 assertThat(sum.isAnimating).isTrue() in <lambda>() 126 sum.stopAnimating() in <lambda>() 135 val sum = zip(notAnimating, animating) { a, b -> a + b } in <lambda>() constant 136 assertThat(sum.isAnimating).isTrue() in <lambda>() 138 sum.stopAnimating() in <lambda>() 148 val sum = zip(first, second) { a, b -> a + b } in <lambda>() constant 149 assertThat(sum.isAnimating).isTrue() in <lambda>() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
D | MutableIntPerfTest.java | 60 int sum = 0; in ARRAY() local 62 sum += mValue[0]; in ARRAY() 64 return sum; in ARRAY() 86 int sum = 0; in ATOMIC() local 88 sum += mValue.intValue(); in ATOMIC() 90 return sum; in ATOMIC()
|
/frameworks/base/libs/androidfw/ |
D | ResourceTimer.cpp | 228 int sum = 0; in compute() local 231 for (int j = 0; j < MaxBuckets && sum < count; j++) { in compute() 234 sum += buckets[d][j]; in compute() 238 if (sum >= l50 && pvalues.p50.nominal == 0) { in compute() 239 pvalues.p50.compute(sum, buckets[d][j], count, width[d], j * width[d]); in compute() 241 if (sum >= l90 && pvalues.p90.nominal == 0) { in compute() 242 pvalues.p90.compute(sum, buckets[d][j], count, width[d], j * width[d]); in compute() 244 if (sum >= l95 && pvalues.p95.nominal == 0) { in compute() 245 pvalues.p95.compute(sum, buckets[d][j], count, width[d], j * width[d]); in compute() 247 if (sum >= l99 && pvalues.p99.nominal == 0) { in compute() [all …]
|
/frameworks/rs/toolkit/ |
D | ColorMatrix.cpp | 845 float4 sum; local 846 sum.x = f.x * coeff[0] + 850 sum.y = f.x * coeff[1] + 854 sum.z = f.x * coeff[2] + 858 sum.w = f.x * coeff[3] + 864 sum.x += add[0]; 865 sum.y += add[1]; 866 sum.z += add[2]; 867 sum.w += add[3]; 875 ((float4 *)out)[0] = sum; [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicColorMatrix.cpp | 821 float4 sum; in One() local 822 sum.x = f.x * coeff[0] + in One() 826 sum.y = f.x * coeff[1] + in One() 830 sum.z = f.x * coeff[2] + in One() 834 sum.w = f.x * coeff[3] + in One() 840 sum.x += add[0]; in One() 841 sum.y += add[1]; in One() 842 sum.z += add[2]; in One() 843 sum.w += add[3]; in One() 851 ((float4 *)out)[0] = sum; in One() [all …]
|
/frameworks/native/libs/debugstore/rust/src/ |
D | storage.rs | 62 let sum = storage.fold(0, |acc, &x| acc + x); in test_insert_and_retrieve() localVariable 63 assert_eq!(sum, 7, "The sum of the elements should be equal to the inserted value."); in test_insert_and_retrieve() 73 let sum = storage.fold(0, |acc, &x| acc + x); in test_fold_functionality() localVariable 75 sum, 6, in test_fold_functionality() 106 let sum = storage.fold(0, |acc, &x| acc + x); in test_storage_limit() localVariable 107 assert_eq!(sum, 4, "The sum of the elements should be equal to the inserted values."); in test_storage_limit()
|
/frameworks/av/media/module/foundation/ |
D | AAtomizer.cpp | 58 uint32_t sum = 0; in Hash() local 60 sum = (sum * 31) + *s; in Hash() 64 return sum; in Hash()
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | foreach_multi.rscript | 160 uint32_t sum = rsGetElementAt_uint(ain0, i) + 163 _RS_ASSERT(result->i0 == sum); 164 _RS_ASSERT(result->i1 == sum); 165 _RS_ASSERT(result->i2 == sum); 166 _RS_ASSERT(result->i3 == sum); 167 _RS_ASSERT(result->i4 == sum); 168 _RS_ASSERT(result->i5 == sum); 169 _RS_ASSERT(result->i6 == sum); 170 _RS_ASSERT(result->i7 == sum);
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | foreach_multi.rscript | 158 uint32_t sum = rsGetElementAt_uint(ain0, i) + 161 _RS_ASSERT(result->i0 == sum); 162 _RS_ASSERT(result->i1 == sum); 163 _RS_ASSERT(result->i2 == sum); 164 _RS_ASSERT(result->i3 == sum); 165 _RS_ASSERT(result->i4 == sum); 166 _RS_ASSERT(result->i5 == sum); 167 _RS_ASSERT(result->i6 == sum); 168 _RS_ASSERT(result->i7 == sum);
|