Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DSensorTest.java47 float sum = 0; in RunAve() local
49 sum += weights[i]; in RunAve()
51 mWeightScale = 1 / sum; in RunAve()
66 float sum = 0; in computeAve() local
68 sum += mWeights[i] * mSamples[index]; in computeAve()
74 return sum * mWeightScale; in computeAve()
/development/samples/SimpleJNI/src/com/example/android/simplejni/
DSimpleJNI.java29 int sum = Native.add(2, 3); in onCreate() local
30 tv.setText("2 + 3 = " + Integer.toString(sum)); in onCreate()
/development/tools/axl/
Dchewperf.py59 bytes = sum(x[1] for x in chewed)
81 print "%s\t%s" % (buckets.items()[x][0], sum(window) / len(window))
/development/tools/repo_diff/service/repodiff/mappers/
Dmappers.go206 var sum int
208 sum += getAttr(d)
210 return sum
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceRandom.java205 float sum = 0.0f; in adjustEventFactors() local
207 sum += mFactors[i] / 100.0f; in adjustEventFactors()
208 mFactors[i] = sum; in adjustEventFactors()
/development/tools/ninja_dependency_analysis/
Dcollect_ninja_inputs.py43 file_count = sum(f.startswith(p + os.path.sep) for f in input_files)
/development/tools/cargo_embargo/testdata/either/
Dcargo.metadata41 …"description": "The enum `Either` with variants `Left` and `Right` is a general purpose sum type w…
/development/samples/SearchableDictionary/res/raw/
Ddefinitions.txt199 contributor - n. someone who contributes (or promises to contribute) a sum of money
/development/tools/cargo_embargo/testdata/plotters/
Dcargo.metadata6818 …"description": "The enum `Either` with variants `Left` and `Right` is a general purpose sum type w…