/packages/modules/NeuralNetworks/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 …]
|
D | L2Normalization.cpp | 61 float sum = 0.0f; in l2normFloat32Impl() local 64 sum += val * val; in l2normFloat32Impl() 66 float l2_norm = std::max(std::sqrt(sum), kEpsilon); in l2normFloat32Impl() 88 int32_t sum = 0; in l2normQuant8Impl() local 91 sum += val * val; in l2normQuant8Impl() 94 tflite::GetInvSqrtQuantizedMultiplierExp(sum, -1, &invMultiplier, &invShift); in l2normQuant8Impl() 120 int32_t sum = 0; in l2normQuant8SignedImpl() local 123 sum += val * val; in l2normQuant8SignedImpl() 126 tflite::GetInvSqrtQuantizedMultiplierExp(sum, -1, &invMultiplier, &invShift); in l2normQuant8SignedImpl()
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | ProcDiskStats.cpp | 175 auto sum = [](const uint64_t& l, const uint64_t& r) -> uint64_t { in operator +=() local 180 numReadsCompleted = sum(numReadsCompleted, rhs.numReadsCompleted); in operator +=() 181 numReadsMerged = sum(numReadsMerged, rhs.numReadsMerged); in operator +=() 182 numKibRead = sum(numKibRead, rhs.numKibRead); in operator +=() 183 readTimeInMs = sum(readTimeInMs, rhs.readTimeInMs); in operator +=() 184 numWritesCompleted = sum(numWritesCompleted, rhs.numWritesCompleted); in operator +=() 185 numWritesMerged = sum(numWritesMerged, rhs.numWritesMerged); in operator +=() 186 numKibWritten = sum(numKibWritten, rhs.numKibWritten); in operator +=() 187 writeTimeInMs = sum(writeTimeInMs, rhs.writeTimeInMs); in operator +=() 188 totalIoTimeInMs = sum(totalIoTimeInMs, rhs.totalIoTimeInMs); in operator +=() [all …]
|
/packages/modules/NeuralNetworks/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.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),
|
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),
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/ |
D | AnglesClassifier.java | 96 private float sum; field in AnglesClassifier.Data 112 sum = secondSum = 0.0f; in Data() 152 firstAngleVariance = getAnglesVariance(sumSquares, sum, count); in addPoint() 162 sum += difference; in addPoint() 170 public float getAnglesVariance(float sumSquares, float sum, float count) { in getAnglesVariance() argument 171 return sumSquares / count - (sum / count) * (sum / count); in getAnglesVariance() 175 float anglesVariance = getAnglesVariance(sumSquares, sum, count); in getAnglesVariance()
|
D | SpeedAnglesClassifier.java | 86 private float sum; field in SpeedAnglesClassifier.Data 96 sum = 0.0f; in Data() 128 sum += difference; in addPoint() 137 return sumSquares / count - (sum / count) * (sum / count); in getAnglesVariance()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
D | EmojiCategory.java | 314 int sum = 0; in getPageIdFromCategoryId() local 318 return sum + lastSavedCategoryPageId; in getPageIdFromCategoryId() 320 sum += props.mPageCount; in getPageIdFromCategoryId() 340 int sum = 0; in getCategoryIdAndPageIdFromPagePosition() local 342 final int temp = sum; in getCategoryIdAndPageIdFromPagePosition() 343 sum += properties.mPageCount; in getCategoryIdAndPageIdFromPagePosition() 344 if (sum > position) { in getCategoryIdAndPageIdFromPagePosition() 401 int sum = 0; in getTotalPageCountOfAllCategories() local 403 sum += properties.mPageCount; in getTotalPageCountOfAllCategories() 405 return sum; in getTotalPageCountOfAllCategories()
|
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/ |
D | ContactsAdapter.java | 74 int sum = 0; in updateCursor() local 76 sum += count; in updateCursor() 79 if (sum != cursor.getCount()) { in updateCursor() 81 "ContactsAdapter", "Count sum (%d) != cursor count (%d).", sum, cursor.getCount()); in updateCursor() 214 int sum = 0; in getHeaderString() local 215 while (sum <= position) { in getHeaderString() 216 sum += counts[++index]; in getHeaderString()
|
/packages/services/Car/cpp/evs/manager/1.1/stats/ |
D | CameraUsageStats.cpp | 66 it->second.sum += roundtrip; in updateFrameStatsOnReturn() 68 it->second.sum -= it->second.history.front(); in updateFrameStatsOnReturn() 161 int32_t sum = 0; in snapshot() local 165 sum += rec.sum; in snapshot() 173 mStats.framesAvgRoundtripLatency = (double)sum / len; in snapshot()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | KalmanFilterTest.java | 118 double sum = 0.0; in testPhaseLockedLoop() local 123 sum += residual[i]; in testPhaseLockedLoop() 127 double mean = sum / n; in testPhaseLockedLoop() 128 double variance = (sumSquares - sum * sum) / (n * n); in testPhaseLockedLoop()
|
/packages/services/Car/tools/perf/app-launch-test/ |
D | app_launch_perf_test.sh | 34 local sum=0 42 sum=$(echo "scale=${SCALE};${sum} + ${val}" | bc) 45 mean=$(echo "scale=${SCALE};${sum} / ${count}" | bc)
|
/packages/modules/ExtServices/java/src/android/ext/services/storage/ |
D | CacheQuotaServiceImpl.java | 92 double sum = getSumOfFairShares(flattenedRequests.size()); in onComputeCacheQuotaHints() 96 double share = getFairShareForPosition(count) / sum; in onComputeCacheQuotaHints() 115 double sum = 0; in getSumOfFairShares() local 117 sum += getFairShareForPosition(i); in getSumOfFairShares() 119 return sum; in getSumOfFairShares()
|
/packages/apps/Gallery2/jni/filters/ |
D | wbalance.c | 107 int sum = 0; in estmateWhiteBox() local 125 sum++; in estmateWhiteBox() 128 *wr = r/sum; in estmateWhiteBox() 129 *wg = g/sum; in estmateWhiteBox() 130 *wb = b/sum; in estmateWhiteBox()
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_feature_matching.h | 31 …reAlign_u(short *patch,const unsigned char * const *f_img,int x_f,int y_f,float *sum,float *recip); 32 …reAlign_u(short *patch,const unsigned char * const *f_img,int x_f,int y_f,float *sum,float *recip); 50 float sum; variable 77 float sum; variable
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ranking/ |
D | SuggestionRanker.java | 99 double sum = 0; in getRelevanceMetric() local 101 return sum; in getRelevanceMetric() 104 sum += WEIGHTS.get(feature) * features.get(feature); in getRelevanceMetric() 106 return sum; in getRelevanceMetric()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DataManager.java | 284 long sum = 0; in getTotalUsedCacheSize() local 286 sum += source.getTotalUsedCacheSize(); in getTotalUsedCacheSize() 288 return sum; in getTotalUsedCacheSize() 294 long sum = 0; in getTotalTargetCacheSize() local 296 sum += source.getTotalTargetCacheSize(); in getTotalTargetCacheSize() 298 return sum; in getTotalTargetCacheSize()
|
/packages/services/Telephony/src/com/android/phone/ |
D | EditPhoneNumberPreference.java | 167 CharSequence sum; in onBindView() local 173 sum = (mSummaryOn == null) ? getSummary() : mSummaryOn; in onBindView() 175 sum = (mSummaryOff == null) ? getSummary() : mSummaryOff; in onBindView() 178 sum = getSummary(); in onBindView() 181 if (sum != null) { in onBindView() 182 summaryView.setText(sum); in onBindView()
|
D | CallBarringEditPreference.java | 139 CharSequence sum; in onBindView() local 144 sum = (mSummaryOn == null) ? getSummary() : mSummaryOn; in onBindView() 146 sum = (mSummaryOff == null) ? getSummary() : mSummaryOff; in onBindView() 149 if (sum != null) { in onBindView() 150 summaryView.setText(sum); in onBindView()
|
/packages/apps/TV/tests/tunerscripts/ |
D | measure-tuning-time.awk | 5 sum = 0; 12 sum += tune_time; 27 average = sum / n;
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CameraUtil.java | 885 float sum = 0; in getGaussianMask() local 892 sum += mask[i]; in getGaussianMask() 894 sum += mask[symmetricIndex]; in getGaussianMask() 899 mask[i] /= sum; in getGaussianMask() 947 int sum = 0; in blur() local 951 sum = addPixel(sum, src[rowPointer + dx], k[i]); in blur() 953 tmp[x + rowPointer] = sum; in blur() 963 int sum = 0; in blur() local 967 sum = addPixel(sum, tmp[dy * w + x], k[i]); in blur() 969 out[x + rowPointer] = sum; in blur()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | BlobCache.java | 218 int sum = readInt(buf, IH_CHECKSUM); in loadIndex() local 219 if (checkSum(buf, 0, IH_CHECKSUM) != sum) { in loadIndex() 399 int sum = checkSum(data); in insertInternal() local 401 writeInt(header, BH_CHECKSUM, sum); in insertInternal() 506 int sum = readInt(header, BH_CHECKSUM); in getBlob() local 528 if (checkSum(blob, 0, length) != sum) { in getBlob() 529 Log.w(TAG, "blob checksum does not match: " + sum); in getBlob()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/ |
D | misctest.cpp | 203 unsigned sum = 0; 205 sum += CountDecimalDigit_naive(i); 206 printf("%u\n", sum); 210 unsigned sum = 0; 212 sum += CountDecimalDigit_enroll4(i); 213 printf("%u\n", sum); 217 unsigned sum = 0; 219 sum += CountDecimalDigit_fast(i); 220 printf("%u\n", sum);
|
/packages/modules/NeuralNetworks/common/ |
D | QuantUtils.cpp | 15 int64_t sum = 0; in ApplyLayerNorm() local 20 sum += val; in ApplyLayerNorm() 23 int32_t mean = static_cast<int32_t>(static_cast<int64_t>(sum) * 1024 / n_input); in ApplyLayerNorm() 143 int32_t sum = input_1[index] + input_2[index]; in CwiseAdd() local 144 const int32_t sum_clamped = std::min(INT16_MAX, std::max(INT16_MIN, sum)); in CwiseAdd()
|