/frameworks/base/core/java/android/net/ |
H A D | TrafficStats.java | 263 * 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/av/media/libmediaplayerservice/nuplayer/mp4/ |
H A D | MP4Source.cpp | 71 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/services/java/com/android/server/ |
H A D | RandomBlock.java | 54 int total = 0; 55 while(total < BLOCK_SIZE) { 56 int result = in.read(retval.block, total, BLOCK_SIZE - total); 60 total += result;
|
H A D | DiskStatsService.java | 92 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 D | NBAIO.cpp | 95 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 D | AudioBufferProviderSource.cpp | 84 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 D | AudioBufferProviderSource.h | 46 virtual ssize_t readVia(readVia_t via, size_t total, void *user,
|
H A D | NBAIO.h | 176 // 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 D | Caches.cpp | 175 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 D | Part.java | 395 * 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 D | ByteArrayBuilder.java | 83 int total = 0; 87 total += c.mLength; 89 return total;
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ArrayUtils.java | 145 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 D | InstrumentationCoreTestRunner.java | 152 long total = runtime.totalMemory(); 154 long used = total - free; 156 Log.d(TAG, "Total memory : " + total);
|
/frameworks/support/renderscript/v8/rs_support/ |
H A D | rsContext.cpp | 128 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 D | rsElement.cpp | 64 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 D | AAC_E_SAMPLES.c | 149 int total = 0; local 258 total += t2 - t1;
|
/frameworks/base/tests/RenderScriptTests/LivePreview/src/com/android/rs/livepreview/ |
H A D | CameraPreviewActivity.java | 313 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 D | ScaleGestureDetector.java | 183 float total = 0; 197 total += major; 221 final float avg = total / sampleCount;
|
H A D | HardwareRenderer.java | 319 * 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/native/libs/ui/ |
H A D | GraphicBufferAllocator.cpp | 58 size_t total = 0; local 76 total += rec.size; 78 snprintf(buffer, SIZE, "Total allocated (estimate): %.2f KB\n", total/1024.0f);
|
/frameworks/rs/ |
H A D | rsElement.cpp | 64 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 D | CursorWindow.java | 740 int total = 0; 765 total += num; 769 return "# Open Cursors=" + total + s;
|
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/ |
H A D | PlaybackGraphs.java | 79 double total = 0, totalCount = 0; 83 total += coverage * (data.isReady ? 100 : 0); 89 return total / totalCount;
|
/frameworks/native/opengl/libagl/ |
H A D | array.cpp | 375 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 D | com_android_internal_content_NativeLibraryHelper.cpp | 148 size_t* total = (size_t*) arg; local 155 *total += uncompLen;
|