Searched refs:timers (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/jni/ |
D | android_content_res_ResourceTimer.cpp | 30 jfieldID timers; member 92 jobjectArray timers = env->NewObjectArray(ResourceTimer::counterSize, str, empty); in NativeEnableTimers() local 94 env->SetObjectArrayElement(timers, i, counterName(env, i)); in NativeEnableTimers() 96 env->SetObjectField(config, gConfigOffsets.timers, timers); in NativeEnableTimers() 115 gConfigOffsets.timers = GetFieldIDOrDie(env, config, "timers", "[Ljava/lang/String;"); in register_android_content_res_ResourceTimer() 117 jclass timers = FindClassOrDie(env, "android/content/res/ResourceTimer$Timer"); in register_android_content_res_ResourceTimer() local 118 gTimerOffsets.count = GetFieldIDOrDie(env, timers, "count", "I"); in register_android_content_res_ResourceTimer() 119 gTimerOffsets.total = GetFieldIDOrDie(env, timers, "total", "J"); in register_android_content_res_ResourceTimer() 120 gTimerOffsets.mintime = GetFieldIDOrDie(env, timers, "mintime", "I"); in register_android_content_res_ResourceTimer() 121 gTimerOffsets.maxtime = GetFieldIDOrDie(env, timers, "maxtime", "I"); in register_android_content_res_ResourceTimer() [all …]
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | MemoryPowerCalculator.java | 60 LongSparseArray<? extends BatteryStats.Timer> timers = batteryStats.getKernelMemoryStats(); in calculateDuration() local 61 for (int i = 0; i < timers.size() && i < mPowerEstimators.length; i++) { in calculateDuration() 62 usageDurationMs += mPowerEstimators[i].calculateDuration(timers.valueAt(i), in calculateDuration() 70 LongSparseArray<? extends BatteryStats.Timer> timers = batteryStats.getKernelMemoryStats(); in calculatePower() local 71 for (int i = 0; i < timers.size() && i < mPowerEstimators.length; i++) { in calculatePower() 72 UsageBasedPowerEstimator estimator = mPowerEstimators[(int) timers.keyAt(i)]; in calculatePower() 74 estimator.calculateDuration(timers.valueAt(i), rawRealtimeUs, statsType); in calculatePower()
|
D | BatteryStatsImpl.java | 11041 ArrayList<StopwatchTimer> timers = mBsi.mSensorTimers.get(sensor); in getSensorTimerLocked() local 11042 if (timers == null) { in getSensorTimerLocked() 11043 timers = new ArrayList<StopwatchTimer>(); in getSensorTimerLocked() 11044 mBsi.mSensorTimers.put(sensor, timers); in getSensorTimerLocked() 11046 t = new DualTimer(mBsi.mClock, this, BatteryStats.SENSOR, timers, in getSensorTimerLocked()
|
/frameworks/base/core/java/android/content/res/ |
D | ResourceTimer.java | 90 String[] timers; field in ResourceTimer.Config 183 if (sConfig.timers[i].equals("GetResourceValue")) { in start() 185 } else if (sConfig.timers[i].equals("RetrieveAttributes")) { in start() 254 sConfig.timers[i], timer.count, packedString(timer.percentile))); in publish() 302 String name = sConfig.timers[i]; in dumpTimers()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | NetworkTypeController.java | 389 private void createTimerRules(String icons, String timers, String secondaryTimers) { in createTimerRules() argument 421 if (!TextUtils.isEmpty(timers)) { in createTimerRules() 423 for (String triple : timers.trim().split(";")) { in createTimerRules()
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 5481 final ArrayList<TimerEntry> timers = new ArrayList<>(); in dumpLocked() local 5506 timers.add(new TimerEntry(wakelocks.keyAt(iw), u.getUid(), in dumpLocked() 5991 if (timers.size() > 0) { in dumpLocked() 5992 Collections.sort(timers, timerComparator); in dumpLocked() 5994 for (int i=0; i<timers.size(); i++) { in dumpLocked() 5995 TimerEntry timer = timers.get(i); in dumpLocked() 6005 timers.clear(); in dumpLocked()
|