Home
last modified time | relevance | path

Searched refs:lastUpdate (Results 1 – 7 of 7) sorted by relevance

/frameworks/native/libs/cputimeinstate/
Dcputimeinstate.cpp274 static std::optional<bool> uidUpdatedSince(uint32_t uid, uint64_t lastUpdate, in uidUpdatedSince() argument
281 if (uidLastUpdate + NSEC_PER_SEC < lastUpdate) return false; in uidUpdatedSince()
301 getUidsUpdatedCpuFreqTimes(uint64_t *lastUpdate) { in getUidsUpdatedCpuFreqTimes() argument
313 uint64_t newLastUpdate = lastUpdate ? *lastUpdate : 0; in getUidsUpdatedCpuFreqTimes()
316 if (lastUpdate) { in getUidsUpdatedCpuFreqTimes()
317 auto uidUpdated = uidUpdatedSince(key.uid, *lastUpdate, &newLastUpdate); in getUidsUpdatedCpuFreqTimes()
338 if (lastUpdate && newLastUpdate > *lastUpdate) *lastUpdate = newLastUpdate; in getUidsUpdatedCpuFreqTimes()
411 uint64_t *lastUpdate) { in getUidsUpdatedConcurrentTimes() argument
426 uint64_t newLastUpdate = lastUpdate ? *lastUpdate : 0; in getUidsUpdatedConcurrentTimes()
428 if (lastUpdate) { in getUidsUpdatedConcurrentTimes()
[all …]
Dtesttimeinstate.cpp154 uint64_t lastUpdate = 0; in TEST() local
155 auto map1 = getUidsUpdatedCpuFreqTimes(&lastUpdate); in TEST()
158 ASSERT_NE(lastUpdate, (uint64_t)0); in TEST()
159 uint64_t oldLastUpdate = lastUpdate; in TEST()
167 auto map2 = getUidsUpdatedCpuFreqTimes(&lastUpdate); in TEST()
170 ASSERT_NE(lastUpdate, oldLastUpdate); in TEST()
230 uint64_t lastUpdate = 0; in TEST() local
231 auto map1 = getUidsUpdatedConcurrentTimes(&lastUpdate); in TEST()
234 ASSERT_NE(lastUpdate, (uint64_t)0); in TEST()
242 uint64_t oldLastUpdate = lastUpdate; in TEST()
[all …]
Dcputimeinstate.h30 getUidsUpdatedCpuFreqTimes(uint64_t *lastUpdate);
41 getUidsUpdatedConcurrentTimes(uint64_t *lastUpdate);
/frameworks/base/core/jni/
Dcom_android_internal_os_KernelCpuUidBpfMapReader.cpp65 static uint64_t lastUpdate = 0; in KernelCpuUidFreqTimeBpfMapReader_readBpfData() local
66 uint64_t newLastUpdate = lastUpdate; in KernelCpuUidFreqTimeBpfMapReader_readBpfData()
81 lastUpdate = newLastUpdate; in KernelCpuUidFreqTimeBpfMapReader_readBpfData()
107 static uint64_t lastUpdate = 0; in KernelCpuUidActiveTimeBpfMapReader_readBpfData() local
108 uint64_t newLastUpdate = lastUpdate; in KernelCpuUidActiveTimeBpfMapReader_readBpfData()
122 lastUpdate = newLastUpdate; in KernelCpuUidActiveTimeBpfMapReader_readBpfData()
140 static uint64_t lastUpdate = 0; in KernelCpuUidClusterTimeBpfMapReader_readBpfData() local
141 uint64_t newLastUpdate = lastUpdate; in KernelCpuUidClusterTimeBpfMapReader_readBpfData()
156 lastUpdate = newLastUpdate; in KernelCpuUidClusterTimeBpfMapReader_readBpfData()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServiceManager.java152 public void setLastUpdate(long lastUpdate) { in setLastUpdate() argument
153 mLastUpdate = lastUpdate; in setLastUpdate()
/frameworks/base/core/tests/coretests/src/android/animation/
DValueAnimatorTests.java368 final long[] lastUpdate = new long[1]; in testResume()
384 lastUpdate[0] = l1.lastUpdateTime; in testResume()
395 assertEquals(lastUpdate[0], l1.lastUpdateTime); in testResume()
405 assertTrue(l1.lastUpdateTime > lastUpdate[0]); in testResume()
406 lastUpdate[0] = l1.lastUpdateTime; in testResume()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportProgressService.java1683 long lastUpdate = System.currentTimeMillis(); field in BugreportProgressService.BugreportInfo
1785 Long.toString(lastUpdate) : formattedLastUpdate; in getFormattedLastUpdate()
1787 return DateUtils.formatDateTime(context, lastUpdate, in getFormattedLastUpdate()
1838 lastUpdate = in.readLong(); in BugreportInfo()
1863 dest.writeLong(lastUpdate); in writeToParcel()
1991 info.lastUpdate = System.currentTimeMillis(); in updateProgressInfo()