Home
last modified time | relevance | path

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

123

/frameworks/native/services/surfaceflinger/Scheduler/
DTimer.cpp38 Timer::Timer() { in Timer() function in android::scheduler::Timer
43 Timer::~Timer() { in ~Timer()
49 void Timer::reset() { in reset()
60 void Timer::cleanup() { in cleanup()
82 void Timer::endDispatch() { in endDispatch()
87 nsecs_t Timer::now() const { in now()
91 void Timer::alarmIn(std::function<void()> const& cb, nsecs_t fireIn) { in alarmIn()
111 void Timer::alarmCancel() { in alarmCancel()
128 void Timer::threadMain() { in threadMain()
134 bool Timer::dispatch() { in dispatch()
[all …]
DTimer.h27 class Timer : public TimeKeeper {
29 Timer();
30 ~Timer();
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DPowerCalculatorTest.java56 BatteryStats.Timer audioTimer = mock(BatteryStats.Timer.class); in testMediaPowerCalculator()
59 BatteryStats.Timer videoTimer = mock(BatteryStats.Timer.class); in testMediaPowerCalculator()
DBatteryStatsSensorTest.java58 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats() in testSensorStartStop()
60 BatteryStats.Timer sensorBgTimer = bi.getUidStats().get(UID).getSensorStats() in testSensorStartStop()
89 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats() in testCountingWhileOffBattery()
124 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats() in testCountingWhileOnBattery()
172 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats() in testBatteryStatusOnToOff()
205 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats() in testBatteryStatusOffToOn()
322 BatteryStats.Timer timer1 = bi.getUidStats().get(UID).getSensorStats() in testPooledBackgroundUsage()
324 BatteryStats.Timer bgTimer1 = bi.getUidStats().get(UID).getSensorStats() in testPooledBackgroundUsage()
327 BatteryStats.Timer timer2 = bi.getUidStats().get(UID_2).getSensorStats() in testPooledBackgroundUsage()
329 BatteryStats.Timer bgTimer2 = bi.getUidStats().get(UID_2).getSensorStats() in testPooledBackgroundUsage()
[all …]
DBatteryStatsBackgroundStatsTest.java255 BatteryStats.Timer timer = bi.getUidStats().get(UID).getBluetoothScanTimer(); in doTestAppBluetoothScanInternal()
256 BatteryStats.Timer bgTimer = bi.getUidStats().get(UID).getBluetoothScanBackgroundTimer(); in doTestAppBluetoothScanInternal()
257 BatteryStats.Timer badTimer = bi.getUidStats().get(UID).getBluetoothUnoptimizedScanTimer(); in doTestAppBluetoothScanInternal()
258 BatteryStats.Timer badBgTimer = bi.getUidStats().get(UID) in doTestAppBluetoothScanInternal()
316 final ArrayMap<String, ? extends BatteryStats.Timer> jobs = in testJob()
319 BatteryStats.Timer timer = jobs.valueAt(0); in testJob()
320 BatteryStats.Timer bgTimer = timer.getSubTimer(); in testJob()
377 final ArrayMap<String, ? extends BatteryStats.Timer> syncs = in testSyncs()
380 BatteryStats.Timer timer = syncs.valueAt(0); in testSyncs()
381 BatteryStats.Timer bgTimer = timer.getSubTimer(); in testSyncs()
DBatteryStatsTimerTest.java27 import com.android.internal.os.BatteryStatsImpl.Timer;
38 class TestTimer extends Timer {
125 Timer.writeTimerToParcel(parcel, timer1, 77); in testParceling()
145 Timer.writeTimerToParcel(parcel, null, 88); in testParcelingNull()
/frameworks/base/services/tests/servicestests/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/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/rs/tests/lldb/tests/harness/
Dutil_timer.py22 class Timer(object): class
67 self._timer = threading.Timer(self._interval, self._callback)
/frameworks/base/core/java/android/os/
DBatteryStats.java539 public static abstract class Timer { class in BatteryStats
542 public Timer() {} in Timer() method in BatteryStats.Timer
610 public Timer getSubTimer() { in getSubTimer()
676 public abstract Timer getMulticastWakelockStats(); in getMulticastWakelockStats()
683 public abstract ArrayMap<String, ? extends Timer> getSyncStats(); in getSyncStats()
690 public abstract ArrayMap<String, ? extends Timer> getJobStats(); in getJobStats()
707 public abstract Timer getWakeTime(int type); in getWakeTime()
715 public abstract Timer getAggregatedPartialWakelockTimer(); in getAggregatedPartialWakelockTimer()
778 public abstract Timer getWifiScanTimer(); in getWifiScanTimer()
785 public abstract Timer getWifiScanBackgroundTimer(); in getWifiScanBackgroundTimer()
[all …]
/frameworks/rs/tests/lldb/java/InfiniteLoop/src/com/android/rs/infiniteloop/
DMainActivity.java27 import java.util.Timer;
77 Timer t = new Timer(); in onCreate()
/frameworks/base/core/java/com/android/internal/os/
DMediaPowerCalculator.java40 final BatteryStats.Timer audioTimer = u.getAudioTurnedOnTimer(); in calculateApp()
51 final BatteryStats.Timer videoTimer = u.getVideoTurnedOnTimer(); in calculateApp()
/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/RsTest_11/src/com/android/rs/test/
DRSTestCore.java25 import java.util.Timer;
53 private Timer mTimer;
113 mTimer = new Timer(); in init()
/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/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/services/core/java/com/android/server/location/
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_CompatLibLegacy/src/com/android/rs/test/
DRSTestCore.java25 import java.util.Timer;
50 private Timer mTimer;
133 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()
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchRealtimeTest.cpp156 VSyncDispatchTimerQueue dispatch(std::make_unique<Timer>(), tracker, mDispatchGroupThreshold, in TEST_F()
185 VSyncDispatchTimerQueue dispatch(std::make_unique<Timer>(), tracker, mDispatchGroupThreshold, in TEST_F()
203 VSyncDispatchTimerQueue dispatch(std::make_unique<Timer>(), tracker, mDispatchGroupThreshold, in TEST_F()
/frameworks/base/services/core/java/com/android/server/display/
DAmbientBrightnessStatsTracker.java62 private final Timer mTimer;
76 mTimer = new Timer(() -> mInjector.elapsedRealtimeMillis()); in AmbientBrightnessStatsTracker()
312 static class Timer { class in AmbientBrightnessStatsTracker
318 public Timer(Clock clock) { in Timer() method in AmbientBrightnessStatsTracker.Timer
/frameworks/av/media/libstagefright/
DMediaClock.cpp33 MediaClock::Timer::Timer(const sp<AMessage> &notify, int64_t mediaTimeUs, int64_t adjustRealUs) in Timer() function in android::MediaClock::Timer
265 std::multimap<int64_t, Timer> notifyList; in processTimers_l()
/frameworks/base/services/core/java/com/android/server/am/
DHealthStatsBatteryStatsWriter.java52 BatteryStats.Timer timer; in writeUid()
108 for (final Map.Entry<String,? extends BatteryStats.Timer> entry: in writeUid()
114 for (final Map.Entry<String,? extends BatteryStats.Timer> entry: in writeUid()
458 private void addTimer(HealthStatsWriter writer, int key, BatteryStats.Timer timer) { in addTimer()
469 BatteryStats.Timer timer) { in addTimers()

123