Searched refs:total (Results 1 - 25 of 40) sorted by relevance

12

/frameworks/av/media/libmediaplayerservice/nuplayer/mp4/
H A DMP4Source.cpp71 size_t total = 0; local
72 while (total < size) {
74 (uint8_t *)data + total, size - total, &extra);
82 mPosition += total;
86 total += n;
91 mPosition += total;
93 return total;
/frameworks/base/core/java/android/net/
H A DTrafficStats.java263 * Get the total number of packets transmitted through the mobile interface.
269 long total = 0;
271 total += getTxPackets(iface);
273 return total;
277 * Get the total number of packets received through the mobile interface.
283 long total = 0;
285 total += getRxPackets(iface);
287 return total;
291 * Get the total number of bytes transmitted through the mobile interface.
297 long total
[all...]
/frameworks/base/services/java/com/android/server/
H A DRandomBlock.java54 int total = 0;
55 while(total < BLOCK_SIZE) {
56 int result = in.read(retval.block, total, BLOCK_SIZE - total);
60 total += result;
H A DDiskStatsService.java92 long total = statfs.getBlockCount();
93 if (bsize <= 0 || total <= 0) {
95 "Invalid stat: bsize=" + bsize + " avail=" + avail + " total=" + total);
102 pw.print(total * bsize / 1024);
103 pw.print("K total = ");
104 pw.print(avail * 100 / total);
/frameworks/av/media/libnbaio/
H A DNBAIO.cpp95 ssize_t NBAIO_Sink::writeVia(writeVia_t via, size_t total, void *user, size_t block) argument
109 while (accumulator < total) {
110 size_t count = total - accumulator;
131 ssize_t NBAIO_Source::readVia(readVia_t via, size_t total, void *user, argument
146 while (accumulator < total) {
147 size_t count = total - accumulator;
H A DAudioBufferProviderSource.cpp84 ssize_t AudioBufferProviderSource::readVia(readVia_t via, size_t total, void *user, argument
94 ALOG_ASSERT(accumulator <= total);
95 size_t count = total - accumulator;
/frameworks/av/include/media/nbaio/
H A DAudioBufferProviderSource.h46 virtual ssize_t readVia(readVia_t via, size_t total, void *user,
H A DNBAIO.h176 // total Estimate of the number of frames the provider has available. This is an estimate,
201 virtual ssize_t writeVia(writeVia_t via, size_t total, void *user, size_t block = 0);
275 // total Estimate of the number of frames the consumer desires. This is an estimate,
302 virtual ssize_t readVia(readVia_t via, size_t total, void *user,
/frameworks/base/libs/hwui/
H A DCaches.cpp175 log.appendFormat("Current memory usage / total memory usage (bytes):\n");
206 uint32_t total = 0; local
207 total += textureCache.getSize();
208 total += layerCache.getSize();
209 total += gradientCache.getSize();
210 total += pathCache.getSize();
211 total += dropShadowCache.getSize();
212 total += roundRectShapeCache.getSize();
213 total += circleShapeCache.getSize();
214 total
[all...]
/frameworks/base/core/java/com/android/internal/http/multipart/
H A DPart.java395 * Return the total sum of all parts and that of the last boundary
398 * @return The total length
412 * @return The total length
423 long total = 0;
431 total += l;
433 total += EXTRA_BYTES.length;
434 total += partBoundary.length;
435 total += EXTRA_BYTES.length;
436 total += CRLF_BYTES.length;
437 return total;
[all...]
/frameworks/base/core/java/android/webkit/
H A DByteArrayBuilder.java83 int total = 0;
87 total += c.mLength;
89 return total;
/frameworks/base/core/java/com/android/internal/util/
H A DArrayUtils.java145 public static long total(long[] array) { method in class:ArrayUtils
146 long total = 0;
148 total += value;
150 return total;
/frameworks/base/test-runner/src/android/test/
H A DInstrumentationCoreTestRunner.java152 long total = runtime.totalMemory();
154 long used = total - free;
156 Log.d(TAG, "Total memory : " + total);
/frameworks/native/libs/ui/
H A DGraphicBufferAllocator.cpp58 size_t total = 0; local
76 total += rec.size;
78 snprintf(buffer, SIZE, "Total allocated (estimate): %.2f KB\n", total/1024.0f);
/frameworks/support/renderscript/v8/rs_support/
H A DrsContext.cpp128 double total = 0; local
130 total += mTimers[ct];
141 100.0 * mTimers[RS_TIMER_SCRIPT] / total, mTimeMSLastScript,
142 100.0 * mTimers[RS_TIMER_CLEAR_SWAP] / total, mTimeMSLastSwap,
143 100.0 * mTimers[RS_TIMER_IDLE] / total, mTimers[RS_TIMER_IDLE] / 1000000,
144 100.0 * mTimers[RS_TIMER_INTERNAL] / total, mTimers[RS_TIMER_INTERNAL] / 1000000,
H A DrsElement.cpp64 size_t total = 0; local
66 total += mFields[ct].e->mBits * mFields[ct].arraySize;
68 return total;
76 size_t total = 0; local
78 total += mFields[ct].e->mBitsUnpadded * mFields[ct].arraySize;
80 return total;
/frameworks/av/media/libstagefright/codecs/aacenc/SampleCode/
H A DAAC_E_SAMPLES.c149 int total = 0; local
258 total += t2 - t1;
/frameworks/base/tests/RenderScriptTests/LivePreview/src/com/android/rs/livepreview/
H A DCameraPreviewActivity.java313 float total = 0;
315 total += (float)mTiming[i];
317 total /= mTiming.length;
318 Log.e(TAG, "time + " + total);
/frameworks/base/core/java/android/view/
H A DScaleGestureDetector.java183 float total = 0;
197 total += major;
221 final float avg = total / sampleCount;
H A DHardwareRenderer.java319 * Outputs the total number of frames rendered (used for fps calculations)
1214 float total = (now - getDisplayListStartTime) * 0.000001f;
1216 mProfileData[mProfileCurrentFrame] = total;
1235 float total = (now - drawDisplayListStartTime) * 0.000001f;
1236 mProfileData[mProfileCurrentFrame + 1] = total;
1277 float total = (now - eglSwapBuffersStartTime) * 0.000001f;
1278 mProfileData[mProfileCurrentFrame + 2] = total;
/frameworks/rs/
H A DrsElement.cpp64 size_t total = 0; local
66 total += mFields[ct].e->mBits * mFields[ct].arraySize;
68 return total;
76 size_t total = 0; local
78 total += mFields[ct].e->mBitsUnpadded * mFields[ct].arraySize;
80 return total;
/frameworks/base/core/java/android/database/
H A DCursorWindow.java740 int total = 0;
765 total += num;
769 return "# Open Cursors=" + total + s;
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/
H A DPlaybackGraphs.java79 double total = 0, totalCount = 0;
83 total += coverage * (data.isReady ? 100 : 0);
89 return total / totalCount;
/frameworks/native/opengl/libagl/
H A Darray.cpp375 total = 0;
404 uint32_t hits = total - misses;
407 case GL_POINTS: prim_count = total; break;
408 case GL_LINE_STRIP: prim_count = total - 1; break;
409 case GL_LINE_LOOP: prim_count = total - 1; break;
410 case GL_LINES: prim_count = total / 2; break;
411 case GL_TRIANGLE_STRIP: prim_count = total - 2; break;
412 case GL_TRIANGLE_FAN: prim_count = total - 2; break;
413 case GL_TRIANGLES: prim_count = total / 3; break;
416 printf( "total
[all...]
/frameworks/base/core/jni/
H A Dcom_android_internal_content_NativeLibraryHelper.cpp148 size_t* total = (size_t*) arg; local
155 *total += uncompLen;

Completed in 1146 milliseconds

12