Home
last modified time | relevance | path

Searched refs:cpuCount (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/libs/hwui/thread/
DTaskManager.cpp34 int cpuCount = sysconf(_SC_NPROCESSORS_CONF); in TaskManager() local
38 int workerCount = cpuCount > 2 ? 2 : 1; in TaskManager()
/frameworks/base/services/core/java/com/android/server/
DAssetAtlasService.java363 int cpuCount = Runtime.getRuntime().availableProcessors(); in computeBestConfiguration() local
364 if (cpuCount == 1) { in computeBestConfiguration()
367 int start = MIN_SIZE + (cpuCount - 1) * STEP; in computeBestConfiguration()
369 int step = STEP * cpuCount; in computeBestConfiguration()
371 final CountDownLatch signal = new CountDownLatch(cpuCount); in computeBestConfiguration()
373 for (int i = 0; i < cpuCount; i++, start -= STEP, end -= STEP) { in computeBestConfiguration()