Home
last modified time | relevance | path

Searched refs:cpuUsage (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DKernelCpuThreadReaderDiff.java245 private static int totalCpuUsage(int[] cpuUsage) { in totalCpuUsage() argument
247 for (int i = 0; i < cpuUsage.length; i++) { in totalCpuUsage()
248 total += cpuUsage[i]; in totalCpuUsage()
DLooperStats.java109 final long cpuUsage = getThreadTimeMicro() - session.cpuStartMicro; in messageDispatched() local
112 entry.cpuUsageMicro += cpuUsage; in messageDispatched()
113 entry.maxCpuUsageMicro = Math.max(entry.maxCpuUsageMicro, cpuUsage); in messageDispatched()
/frameworks/base/libs/hwui/tests/macrobench/
DTestSceneRunner.cpp93 size_t cpuUsage, gpuUsage; in outputBenchmarkReport() local
94 RenderProxy::getMemoryUsage(&cpuUsage, &gpuUsage); in outputBenchmarkReport()
95 report.counters["Rendering RAM"] = Counter{static_cast<double>(cpuUsage + gpuUsage), in outputBenchmarkReport()
/frameworks/base/libs/hwui/renderthread/
DCacheManager.cpp171 void CacheManager::getMemoryUsage(size_t* cpuUsage, size_t* gpuUsage) { in getMemoryUsage() argument
172 *cpuUsage = 0; in getMemoryUsage()
180 *cpuUsage += cpuTracer.total(); in getMemoryUsage()
DCacheManager.h54 void getMemoryUsage(size_t* cpuUsage, size_t* gpuUsage);
DRenderProxy.h126 static void getMemoryUsage(size_t* cpuUsage, size_t* gpuUsage);
DRenderThread.cpp373 void RenderThread::getMemoryUsage(size_t* cpuUsage, size_t* gpuUsage) { in getMemoryUsage() argument
374 mCacheManager->getMemoryUsage(cpuUsage, gpuUsage); in getMemoryUsage()
DRenderThread.h161 void getMemoryUsage(size_t* cpuUsage, size_t* gpuUsage);
DRenderProxy.cpp344 void RenderProxy::getMemoryUsage(size_t* cpuUsage, size_t* gpuUsage) { in getMemoryUsage() argument
347 thread.queue().runSync([&]() { thread.getMemoryUsage(cpuUsage, gpuUsage); }); in getMemoryUsage()
/frameworks/base/libs/hwui/platform/host/renderthread/
DCacheManager.cpp36 void CacheManager::getMemoryUsage(size_t* cpuUsage, size_t* gpuUsage) {} in getMemoryUsage() argument
DRenderThread.cpp88 void RenderThread::getMemoryUsage(size_t* cpuUsage, size_t* gpuUsage) {} in getMemoryUsage() argument
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuThreadReaderDiffTest.java290 int[] cpuUsage = cpuUsageMillis[i]; in createProcess() local
292 new KernelCpuThreadReader.ThreadCpuUsage(0, "thread" + i, cpuUsage)); in createProcess()
/frameworks/base/services/core/jni/
Dcom_android_server_HardwarePropertiesManagerService.cpp348 jobject cpuUsage = env->NewObject(gCpuUsageInfoClassInfo.clazz, in nativeGetCpuUsages() local
352 env->SetObjectArrayElement(cpuUsages, i, cpuUsage); in nativeGetCpuUsages()
/frameworks/base/media/jni/
Dandroid_media_MediaCodec.cpp2635 uint64_t cpuUsage = 0; in android_media_MediaCodec_mapHardwareBuffer() local
2636 cpuUsage |= (desc.usage & AHARDWAREBUFFER_USAGE_CPU_READ_MASK); in android_media_MediaCodec_mapHardwareBuffer()
2637 cpuUsage |= (desc.usage & AHARDWAREBUFFER_USAGE_CPU_WRITE_MASK); in android_media_MediaCodec_mapHardwareBuffer()
2641 hardwareBuffer, cpuUsage, -1 /* fence */, nullptr /* rect */, &planes); in android_media_MediaCodec_mapHardwareBuffer()