/frameworks/av/media/libstagefright/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/base/core/java/android/net/util/ |
D | IpUtils.java | 47 int sum = seed; in checksum() local 60 sum += intAbs(shortBuf.get(i)); in checksum() 73 sum += b * 256; in checksum() 76 sum = ((sum >> 16) & 0xFFFF) + (sum & 0xFFFF); in checksum() 77 sum = ((sum + ((sum >> 16) & 0xFFFF)) & 0xFFFF); in checksum() 78 int negated = ~sum; in checksum() 115 int sum; in transportChecksum() local 118 sum = pseudoChecksumIPv4(buf, ipOffset, protocol, transportLen); in transportChecksum() 120 sum = pseudoChecksumIPv6(buf, ipOffset, protocol, transportLen); in transportChecksum() 125 sum = checksum(buf, sum, transportOffset, transportOffset + transportLen); in transportChecksum() [all …]
|
/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/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/av/media/libstagefright/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/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/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/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/ml/nn/common/operations/ |
D | GroupedConv2D.cpp | 70 float sum = 0.0f; in groupedConvFloat32() local 83 sum += filterBase[filterIndex] * inputBase[inputIndex]; in groupedConvFloat32() 88 sum += biasData[g * outputGroupDepth + d]; in groupedConvFloat32() 89 sum = std::max(std::min(sum, output_activation_max), output_activation_min); in groupedConvFloat32() 90 outPtr[d] = sum; in groupedConvFloat32() 142 int32_t sum = 0.0f; in groupedConvQuant8() local 155 sum += (static_cast<int32_t>(filterBase[filterIndex]) + in groupedConvQuant8() 163 sum += biasData[g * outputGroupDepth + d]; in groupedConvQuant8() 164 sum = tflite::MultiplyByQuantizedMultiplier(sum, outputMultiplier, in groupedConvQuant8() 166 sum += outputOffset; in groupedConvQuant8() [all …]
|
/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()
|
D | contrast.cpp | 44 float sum = 0; in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator() local 47 sum += (lumArray[i] - avg) * (lumArray[i] - avg); in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator() 50 return ((float) sqrt(sum / numPixels)); in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator()
|
/frameworks/ml/nn/runtime/test/specs/V1_3/ |
D | while_sum_of_powers.mod.py | 61 sum = Input("sum", DataType) 67 model.IdentifyInputs(sum, i, n, x) 73 sum = Input("sum", DataType) 85 model.IdentifyInputs(sum, i, n, x) 89 model.Operation("ADD", sum, xi, 0).To(sum_out) 95 sum = Output("sum", DataType) 100 model = Model().Operation("WHILE", cond, body, sum_init, i_init, n, x).To(sum) 105 sum: sum_data,
|
D | while_sum_of_powers_quant8_signed.mod.py | 65 sum = Input("sum", DataType10) 71 model.IdentifyInputs(sum, i, n, x) 77 sum = Input("sum", DataType10) 90 model.IdentifyInputs(sum, i, n, x) 95 model.Operation("ADD", sum, xi, 0).To(sum_out) 101 sum = Output("sum", DataType10) 106 model = Model().Operation("WHILE", cond, body, sum_init, i_init, n, x).To(sum) 111 sum: quantize(sum_data, 1.0, 12),
|
D | while_sum_of_powers_quant8.mod.py | 65 sum = Input("sum", DataType10) 71 model.IdentifyInputs(sum, i, n, x) 77 sum = Input("sum", DataType10) 90 model.IdentifyInputs(sum, i, n, x) 95 model.Operation("ADD", sum, xi, 0).To(sum_out) 101 sum = Output("sum", DataType10) 106 model = Model().Operation("WHILE", cond, body, sum_init, i_init, n, x).To(sum) 111 sum: quantize(sum_data, 1.0, 128),
|
/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/core/java/android/net/metrics/ |
D | NetworkMetrics.java | 157 100 * tcpLossRate.average(), tcpLossRate.count, (int) tcpLossRate.sum)); in toString() 166 public double sum; field in NetworkMetrics.Metrics 172 this.sum += that.sum; in merge() 182 sum += value; in count() 187 double a = sum / (double) count; in average()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | KalmanFilterTest.java | 116 double sum = 0.0; in testPhaseLockedLoop() local 121 sum += residual[i]; in testPhaseLockedLoop() 125 double mean = sum / n; in testPhaseLockedLoop() 126 double variance = (sumSquares - sum * sum) / (n * n); in testPhaseLockedLoop()
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | EchoSuppressor.cpp | 104 uint32_t sum = 0; in run() local 108 sum += ((mLastX >= 0) ? mLastX : -mLastX) >> 15; in run() 111 mXs[i] = sum >> mShift; in run() 130 uint32_t sum = 0; in run() local 134 sum += ((mLastY >= 0) ? mLastY : -mLastY) >> 15; in run() 137 ys[i] = sum >> mShift; in run()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | vlc_dequant.cpp | 75 int sum; in VlcDequantMpegIntraBlock() local 102 sum = 0; in VlcDequantMpegIntraBlock() 157 sum ^= temp; in VlcDequantMpegIntraBlock() 198 sum ^= temp; /* 7/5/01 */ in VlcDequantMpegIntraBlock() 214 sum ^= temp; /* 7/5/01 */ in VlcDequantMpegIntraBlock() 247 sum ^= temp; in VlcDequantMpegIntraBlock() 264 sum ^= temp; in VlcDequantMpegIntraBlock() 303 sum ^= temp; /* 7/5/01 */ in VlcDequantMpegIntraBlock() 319 sum ^= temp; in VlcDequantMpegIntraBlock() 336 sum ^= temp; in VlcDequantMpegIntraBlock() [all …]
|
/frameworks/base/tests/net/java/com/android/server/net/ipmemorystore/ |
D | NetworkAttributesTest.java | 46 float sum = 0f; in testTotalWeight() local 51 sum += (float) field.get(null); in testTotalWeight() 53 assertEquals(sum, NetworkAttributes.TOTAL_WEIGHT, EPSILON); in testTotalWeight()
|