Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 25 of 46) sorted by relevance

12

/packages/experimental/procstatlog/
Dprocstatreport.py181 stime = sum([int(next[x]) - int(last[x]) for x in [2, 5, 6]])
182 utime = sum([int(next[x]) - int(last[x]) for x in [0, 1]])
183 idle = sum([int(next[x]) - int(last[x]) for x in [3, 4]])
272 total_switches = sum(context_switches.values())
340 "label_html": FAULTS_LABEL % {"major": sum(total_faults.values())},
371 "label_html": BINDER_LABEL % {"calls": sum(binder_calls.values())},
413 total_rx, total_tx = sum(rx.values()), sum(tx.values())
465 totals = [sum(ops.get(var, {}).values()) for var in yaffs_vars]
466 if not sum(totals): continue
527 total_reads, total_writes = sum(reads.values()), sum(writes.values())
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiCategory.java314 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/Camera2/src/com/android/camera/util/
DCameraUtil.java880 float sum = 0; in getGaussianMask() local
887 sum += mask[i]; in getGaussianMask()
889 sum += mask[symmetricIndex]; in getGaussianMask()
894 mask[i] /= sum; in getGaussianMask()
942 int sum = 0; in blur() local
946 sum = addPixel(sum, src[rowPointer + dx], k[i]); in blur()
948 tmp[x + rowPointer] = sum; in blur()
958 int sum = 0; in blur() local
962 sum = addPixel(sum, tmp[dy * w + x], k[i]); in blur()
964 out[x + rowPointer] = sum; in blur()
/packages/services/Telephony/src/com/android/phone/
DEditPhoneNumberPreference.java161 CharSequence sum; in onBindView() local
167 sum = (mSummaryOn == null) ? getSummary() : mSummaryOn; in onBindView()
169 sum = (mSummaryOff == null) ? getSummary() : mSummaryOff; in onBindView()
172 sum = getSummary(); in onBindView()
175 if (sum != null) { in onBindView()
176 summaryView.setText(sum); in onBindView()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Dmisctest.cpp203 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);
Dplatformtest.cpp84 double sum = 0; in TEST_F() local
86 sum += pow(10.0, i & 255); in TEST_F()
87 EXPECT_GT(sum, 0.0); in TEST_F()
Drapidjsontest.cpp295 double sum = 0; in TEST_F() local
297 sum += internal::Pow10(int(i & 255)); in TEST_F()
298 EXPECT_GT(sum, 0.0); in TEST_F()
/packages/apps/Gallery2/jni/filters/
Dwbalance.c107 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()
Dkmeans.h26 inline void sum(T values[], int len, int dimension, int stride, N dst[]) { in sum() function
73 N sum = 0; in euclideanDist() local
76 sum += diff * diff; in euclideanDist()
78 return sqrt(sum); in euclideanDist()
Dhsv.c24 double sum = poly[0]+poly[1]*f; in fastevalPoly() local
28 sum += poly[i]*f; in fastevalPoly()
30 return sum; in fastevalPoly()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDataManager.java284 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/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBlobCache.java218 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/Settings/src/com/android/settings/dashboard/suggestions/
DSuggestionRanker.java74 double sum = 0; in getRelevanceMetric() local
76 return sum; in getRelevanceMetric()
79 sum += WEIGHTS.get(feature) * features.get(feature); in getRelevanceMetric()
81 return sum; in getRelevanceMetric()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_feature_matching.h31 …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
Ddb_feature_matching.cpp402 inline void db_SignedSquareNormCorr11x11_Pre_u(unsigned char **f_img,int x_f,int y_f,float *sum,flo… in db_SignedSquareNormCorr11x11_Pre_u() argument
554 *sum= (float) fsum; in db_SignedSquareNormCorr11x11_Pre_u()
559 …PreAlign_u(short *patch,const unsigned char * const *f_img,int x_f,int y_f,float *sum,float *recip) in db_SignedSquareNormCorr5x5_PreAlign_u() argument
621 *sum= (float) fsum; in db_SignedSquareNormCorr5x5_PreAlign_u()
626 …PreAlign_u(short *patch,const unsigned char * const *f_img,int x_f,int y_f,float *sum,float *recip) in db_SignedSquareNormCorr21x21_PreAlign_u() argument
651 *sum= (float) fsum; in db_SignedSquareNormCorr21x21_PreAlign_u()
660 …PreAlign_u(short *patch,const unsigned char * const *f_img,int x_f,int y_f,float *sum,float *recip) in db_SignedSquareNormCorr11x11_PreAlign_u() argument
1118 *sum= (float) fsum; in db_SignedSquareNormCorr11x11_PreAlign_u()
1139 … int xi,int yi,float *sum,float *recip, in db_SignedSquareNormCorr11x11_PreAlign_AffinePatchWarp_u() argument
1178 *sum= (float) fsum; in db_SignedSquareNormCorr11x11_PreAlign_AffinePatchWarp_u()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ringbuffer/
DAvailableTicketCounter.java63 int sum = 0; in compute() local
65 sum += input.get(); in compute()
67 return sum; in compute()
/packages/services/Car/tools/bootanalyze/
Dbootanalyze.py179 item[0], sum(item[1])/num_runs, stddev(item[1]),\
187 item[0], sum(item[1])/num_runs, stddev(item[1]),\
197 item[0], sum(item[1])/num_runs, stddev(item[1]),\
212 average_with_stddev.append((item[0], sum(item[1])/len(item[1]), stddev(item[1]),\
224 average = sum(item[1])/len(item[1])
796 avg = sum(data) / items_count
797 sq_diffs_sum = sum([(v - avg) ** 2 for v in data])
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DAnglesClassifier.java170 public float getAnglesVariance(float sumSquares, float sum, float count) { in getAnglesVariance() argument
171 return sumSquares / count - (sum / count) * (sum / count); in getAnglesVariance()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DIconNormalizer.java202 int sum = 0; in isTransparentBitmap() local
205 sum++; in isTransparentBitmap()
208 float percentageDiffPixels = ((float) sum) / (mBounds.width() * mBounds.height()); in isTransparentBitmap()
213 + "=" + sum + "/" + mBounds.width() * mBounds.height()); in isTransparentBitmap()
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/
DContactsAdapter.java169 int sum = 0; in getHeaderString() local
170 while (sum <= position) { in getHeaderString()
171 sum += counts[++index]; in getHeaderString()
/packages/apps/Dialer/java/com/android/dialer/persistentlog/
DPersistentLogFileHandler.java133 int sum = 0; in getTotalSize() local
135 sum += (int) file.length(); in getTotalSize()
137 return sum; in getTotalSize()
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/
DUtils.java39 int totalSize = Arrays.stream(arrays).mapToInt((int[] array) -> array.length).sum(); in concatIntArrays()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationItemView.java291 int sum = 0; in sumWidth() local
293 sum += i; in sumWidth()
295 return sum + (arr.length - 1) * mFolderDrawableResources.folderInBetweenPadding; in sumWidth()
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DVideoCallFragment.java1011 float sum = videoAspectRatio + displayAspectRatio; in updateRemoteVideoScaling() local
1012 if (delta / sum < ASPECT_RATIO_MATCH_THRESHOLD) { in updateRemoteVideoScaling()
/packages/apps/ExactCalculator/src/com/android/calculator2/
DEvaluator.java1432 private ExprInfo sum(long index1, long index2) { in sum() method in Evaluator
1691 ExprInfo newEi = sum(mMemoryIndex, index); in addToMemory()

12