/frameworks/av/media/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/libs/net/common/framework/com/android/net/module/util/ |
D | IpUtils.java | 46 int sum = seed; in checksum() local 59 sum += intAbs(shortBuf.get(i)); in checksum() 72 sum += b * 256; in checksum() 75 sum = ((sum >> 16) & 0xFFFF) + (sum & 0xFFFF); in checksum() 76 sum = ((sum + ((sum >> 16) & 0xFFFF)) & 0xFFFF); in checksum() 77 int negated = ~sum; in checksum() 114 int sum; in transportChecksum() local 117 sum = pseudoChecksumIPv4(buf, ipOffset, protocol, transportLen); in transportChecksum() 119 sum = pseudoChecksumIPv6(buf, ipOffset, protocol, transportLen); in transportChecksum() 124 sum = checksum(buf, sum, transportOffset, transportOffset + transportLen); in transportChecksum() [all …]
|
/frameworks/av/media/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_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/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/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 | 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()
|
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()
|
/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/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/av/media/libstagefright/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/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);
|
/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/base/services/tests/servicestests/src/com/android/server/am/ |
D | FgsTempAllowListTest.java | 107 final AtomicInteger sum = new AtomicInteger(); in testForEach() 108 sum.set(0); in testForEach() 110 sum.set(sum.get() + uid); in testForEach() 113 return sum.get(); in testForEach()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/tare/ |
D | Ledger.java | 92 final long sum = mCumulativeDeltaPerReason.get(transaction.eventId); in recordTransaction() local 93 mCumulativeDeltaPerReason.put(transaction.eventId, sum + transaction.delta); in recordTransaction() 107 long sum = mCumulativeDeltaPerReason.get(transaction.eventId); in get24HourSum() local 109 sum += transaction.delta; in get24HourSum() 112 sum += (long) (1.0 * (transaction.endTimeMs - windowStartTime) in get24HourSum() 116 mCumulativeDeltaPerReason.put(transaction.eventId, sum); in get24HourSum()
|
/frameworks/base/core/java/android/net/metrics/ |
D | NetworkMetrics.java | 153 100 * tcpLossRate.average(), tcpLossRate.count, (int) tcpLossRate.sum)); in toString() 162 public double sum; field in NetworkMetrics.Metrics 168 this.sum += that.sum; in merge() 178 sum += value; in count() 183 double a = sum / (double) count; in average()
|