Home
last modified time | relevance | path

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

123

/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DAnglesClassifier.java96 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()
DSpeedAnglesClassifier.java86 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/
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/Dialer/java/com/android/dialer/contactsfragment/
DContactsAdapter.java74 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/modules/ExtServices/src/android/ext/services/storage/
DCacheQuotaServiceImpl.java88 double sum = getSumOfFairShares(flattenedRequests.size()); in onComputeCacheQuotaHints()
92 double share = getFairShareForPosition(count) / sum; in onComputeCacheQuotaHints()
111 double sum = 0; in getSumOfFairShares() local
113 sum += getFairShareForPosition(i); in getSumOfFairShares()
115 return sum; in getSumOfFairShares()
/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/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()
DCallBarringEditPreference.java167 CharSequence sum; in onBindView() local
172 sum = (mSummaryOn == null) ? getSummary() : mSummaryOn; in onBindView()
174 sum = (mSummaryOff == null) ? getSummary() : mSummaryOff; in onBindView()
177 if (sum != null) { in onBindView()
178 summaryView.setText(sum); in onBindView()
/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/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
/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/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ranking/
DSuggestionRanker.java99 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/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/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/TV/tests/tunerscripts/
Dmeasure-tuning-time.awk5 sum = 0;
12 sum += tune_time;
27 average = sum / n;
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java560 int sum = seed; in checksum() local
575 sum += intAbs(s); in checksum()
589 sum += b * 256; in checksum()
592 sum = ((sum >> 16) & 0xFFFF) + (sum & 0xFFFF); in checksum()
593 sum = ((sum + ((sum >> 16) & 0xFFFF)) & 0xFFFF); in checksum()
594 int negated = ~sum; in checksum()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRedactionInterstitialTest.java107 final ShadowUserManager sum = in managedProfileNoRestrictionsTest() local
109 sum.setManagedProfile(true); in managedProfileNoRestrictionsTest()
120 final ShadowUserManager sum = in managedProfileUnredactedRestrictionTest() local
122 sum.setManagedProfile(true); in managedProfileUnredactedRestrictionTest()
/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/modules/ExtServices/src/android/ext/services/resolver/
DLRResolverRankerService.java142 float sum = 0.0f; in predict() local
146 sum += weight * target.valueAt(i); in predict()
148 return (float) (1.0 / (1.0 + Math.exp(-mBias - sum))); in predict()
/packages/apps/Dialer/java/com/android/dialer/persistentlog/
DPersistentLogFileHandler.java157 int sum = 0; in getTotalSize() local
159 sum += (int) file.length(); in getTotalSize()
161 return sum; in getTotalSize()
/packages/apps/SecureElement/src/com/android/se/security/
DAccessRuleCache.java230 ApduFilter[] sum = new ApduFilter[filter.length + filter2.length]; in putWithMerge() local
233 sum[i++] = f; in putWithMerge()
236 sum[i++] = f; in putWithMerge()
238 ca.setApduFilter(sum); in putWithMerge()

123