Home
last modified time | relevance | path

Searched refs:Timer (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/base/libs/androidfw/include/androidfw/
DResourceTimer.h69 struct Timer { struct
74 Timer(); argument
75 ~Timer();
134 static void copy(Timer &dst, Timer &src, bool reset); argument
168 static bool copy(int src, Timer &dst, bool reset);
188 Timer timer_;
194 Timer &t;
198 Timer *operator->() {
201 Timer& operator*() {
/frameworks/base/libs/androidfw/
DResourceTimer.cpp100 bool ResourceTimer::copy(int counter, Timer &dst, bool reset) { in copy()
107 Timer::copy(dst, *t, reset); in copy()
118 ResourceTimer::Timer::Timer() { in Timer() function in android::ResourceTimer::Timer
124 ResourceTimer::Timer::~Timer() { in ~Timer()
130 void ResourceTimer::Timer::freeBuckets() { in freeBuckets()
137 void ResourceTimer::Timer::reset() { in reset()
147 void ResourceTimer::Timer::copy(Timer &dst, Timer &src, bool reset) { in copy()
165 void ResourceTimer::Timer::record(int ticks) { in record()
197 if (ticks > largest[Timer::MaxLargest-1]) { in record()
198 for (size_t i = 0; i < Timer::MaxLargest; i++) { in record()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/src/
DTimer.cpp42 Timer::Timer() { in Timer() function in android::scheduler::Timer
47 Timer::~Timer() { in ~Timer()
53 void Timer::reset() { in reset()
76 void Timer::cleanup() { in cleanup()
100 void Timer::endDispatch() { in endDispatch()
105 nsecs_t Timer::now() const { in now()
109 void Timer::alarmAt(std::function<void()> callback, nsecs_t time) { in alarmAt()
129 void Timer::alarmCancel() { in alarmCancel()
148 void Timer::threadMain() { in threadMain()
154 bool Timer::dispatch() { in dispatch()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_utils_AnrTimer.cpp148 class Timer;
227 void insertLocked(const Timer&);
230 Timer removeLocked(timer_id_t timerId);
233 void addExpiredLocked(Timer const&);
262 std::set<Timer> running_;
265 std::set<Timer> expired_;
337 class AnrTimerService::Timer { class in android::__anoncbc99b2b0111::AnrTimerService
370 Timer() : in Timer() function in android::__anoncbc99b2b0111::AnrTimerService::Timer
386 Timer(timer_id_t id) : in Timer() function in android::__anoncbc99b2b0111::AnrTimerService::Timer
401 Timer(int pid, int uid, nsecs_t timeout, bool extend, bool freeze) : in Timer() function in android::__anoncbc99b2b0111::AnrTimerService::Timer
[all …]
Dcom_android_server_power_PowerManagerService.cpp92 android::base::Timer t; in setPowerMode()
218 android::base::Timer t; in nativeSetAutoSuspend()
224 android::base::Timer t; in nativeSetAutoSuspend()
/frameworks/native/services/surfaceflinger/Scheduler/include/scheduler/
DTimer.h30 class Timer : public TimeKeeper {
32 Timer();
33 ~Timer();
/frameworks/base/core/java/android/content/res/
DResourceTimer.java96 private static class Timer { class in ResourceTimer
130 private static Timer[] sTimers;
172 sTimers = new Timer[sConfig.maxTimer]; in start()
174 sTimers[i] = new Timer(); in start()
300 Timer t = sTimers[i]; in dumpTimers()
322 private static native int nativeGetTimers(@NonNull Timer[] stats, boolean reset); in nativeGetTimers()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaClock.h83 struct Timer { struct
84 Timer(const sp<AMessage> &notify, int64_t mediaTimeUs, int64_t adjustRealUs);
113 std::list<Timer> mTimers;
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DInstallerTest.java46 private final Timer mManual = new Timer("Manual");
47 private final Timer mQuota = new Timer("Quota");
49 private static class Timer { class in InstallerTest
54 public Timer(String title) { in Timer() method in InstallerTest.Timer
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsSensorTest.java71 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats() in testSensorStartStop()
73 BatteryStats.Timer sensorBgTimer = bi.getUidStats().get(UID).getSensorStats() in testSensorStartStop()
102 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats() in testCountingWhileOffBattery()
137 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats() in testCountingWhileOnBattery()
185 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats() in testBatteryStatusOnToOff()
218 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats() in testBatteryStatusOffToOn()
334 BatteryStats.Timer timer1 = bi.getUidStats().get(UID).getSensorStats() in testPooledBackgroundUsage()
336 BatteryStats.Timer bgTimer1 = bi.getUidStats().get(UID).getSensorStats() in testPooledBackgroundUsage()
339 BatteryStats.Timer timer2 = bi.getUidStats().get(UID_2).getSensorStats() in testPooledBackgroundUsage()
341 BatteryStats.Timer bgTimer2 = bi.getUidStats().get(UID_2).getSensorStats() in testPooledBackgroundUsage()
[all …]
DBatteryStatsBackgroundStatsTest.java271 BatteryStats.Timer timer = bi.getUidStats().get(UID).getBluetoothScanTimer(); in doTestAppBluetoothScanInternal()
272 BatteryStats.Timer bgTimer = bi.getUidStats().get(UID).getBluetoothScanBackgroundTimer(); in doTestAppBluetoothScanInternal()
273 BatteryStats.Timer badTimer = bi.getUidStats().get(UID).getBluetoothUnoptimizedScanTimer(); in doTestAppBluetoothScanInternal()
274 BatteryStats.Timer badBgTimer = bi.getUidStats().get(UID) in doTestAppBluetoothScanInternal()
333 final ArrayMap<String, ? extends BatteryStats.Timer> jobs = in testJob()
336 BatteryStats.Timer timer = jobs.valueAt(0); in testJob()
337 BatteryStats.Timer bgTimer = timer.getSubTimer(); in testJob()
395 final ArrayMap<String, ? extends BatteryStats.Timer> syncs = in testSyncs()
398 BatteryStats.Timer timer = syncs.valueAt(0); in testSyncs()
399 BatteryStats.Timer bgTimer = timer.getSubTimer(); in testSyncs()
DBatteryStatsTimerTest.java27 import com.android.server.power.stats.BatteryStatsImpl.Timer;
38 class TestTimer extends Timer {
126 Timer.writeTimerToParcel(parcel, timer1, 77); in testParceling()
146 Timer.writeTimerToParcel(parcel, null, 88); in testParcelingNull()
/frameworks/base/core/java/android/os/
DBatteryStats.java566 public static abstract class Timer { class in BatteryStats
569 public Timer() {} in Timer() method in BatteryStats.Timer
637 public Timer getSubTimer() { in getSubTimer()
732 public abstract Timer getMulticastWakelockStats(); in getMulticastWakelockStats()
739 public abstract ArrayMap<String, ? extends Timer> getSyncStats(); in getSyncStats()
746 public abstract ArrayMap<String, ? extends Timer> getJobStats(); in getJobStats()
763 public abstract Timer getWakeTime(int type); in getWakeTime()
771 public abstract Timer getAggregatedPartialWakelockTimer(); in getAggregatedPartialWakelockTimer()
840 public abstract Timer getWifiScanTimer(); in getWifiScanTimer()
847 public abstract Timer getWifiScanBackgroundTimer(); in getWifiScanBackgroundTimer()
[all …]
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DMainActivity.java36 import java.util.Timer;
49 private Timer mTimer;
64 mTimer = new Timer(); in onPermissionOK()
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
DSeamlessRotationActivity.java31 import java.util.Timer;
53 new Timer().schedule(new TimerTask() { in starveUiThread()
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DMainActivity.java28 import java.util.Timer;
43 private Timer mTimer;
77 mTimer = new Timer(); in onCreate()
/frameworks/base/core/jni/
Dandroid_content_res_ResourceTimer.cpp52 ResourceTimer::Timer src; in NativeGetTimers()
73 env->SetIntArrayRegion(largest, 0, ResourceTimer::Timer::MaxLargest, src.largest); in NativeGetTimers()
88 env->SetIntField(config, gConfigOffsets.maxLargest, ResourceTimer::Timer::MaxLargest); in NativeEnableTimers()
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
DRSTestCore.java25 import java.util.Timer;
53 private Timer mTimer;
113 mTimer = new Timer(); in init()
/frameworks/base/libs/androidfw/tests/
DResourceTimer_test.cpp39 ResourceTimer::Timer timer; in TEST()
118 ResourceTimer::Timer timer; in TEST()
135 ResourceTimer::Timer source; in TEST()
139 ResourceTimer::Timer timer; in TEST()
140 ResourceTimer::Timer::copy(timer, source, true); in TEST()
218 ResourceTimer::Timer timer; in TEST()
/frameworks/base/services/core/java/com/android/server/power/stats/
DMemoryPowerCalculator.java60 LongSparseArray<? extends BatteryStats.Timer> timers = batteryStats.getKernelMemoryStats(); in calculateDuration()
70 LongSparseArray<? extends BatteryStats.Timer> timers = batteryStats.getKernelMemoryStats(); in calculatePower()
DUsageBasedPowerEstimator.java42 public long calculateDuration(BatteryStats.Timer timer, long rawRealtimeUs, int statsType) { in calculateDuration()
/frameworks/base/services/core/java/com/android/server/location/countrydetector/
DLocationBasedCountryDetector.java33 import java.util.Timer;
56 protected Timer mTimer;
199 mTimer = new Timer(); in detectCountry()
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
DRSTestCore.java25 import java.util.Timer;
53 private Timer mTimer;
117 mTimer = new Timer(); in init()
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
DRSTestCore.java25 import java.util.Timer;
53 private Timer mTimer;
117 mTimer = new Timer(); in init()
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
DRgbPlayerActivity.java31 import java.util.Timer;
88 private Timer mTimer;
151 mTimer = new Timer(); in RgbView()

123