Home
last modified time | relevance | path

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

/aosp12/frameworks/base/core/jni/
H A 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()
91 static uint64_t lastUpdate = 0; in KernelCpuUidActiveTimeBpfMapReader_readBpfData() local
92 uint64_t newLastUpdate = lastUpdate; in KernelCpuUidActiveTimeBpfMapReader_readBpfData()
106 lastUpdate = newLastUpdate; in KernelCpuUidActiveTimeBpfMapReader_readBpfData()
124 static uint64_t lastUpdate = 0; in KernelCpuUidClusterTimeBpfMapReader_readBpfData() local
125 uint64_t newLastUpdate = lastUpdate; in KernelCpuUidClusterTimeBpfMapReader_readBpfData()
140 lastUpdate = newLastUpdate; in KernelCpuUidClusterTimeBpfMapReader_readBpfData()
/aosp12/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
H A DHistoryEvaluator.java32 private long lastUpdate; field in HistoryEvaluator
35 lastUpdate = SystemClock.elapsedRealtime(); in HistoryEvaluator()
73 if (time <= lastUpdate) { in decayValue()
78 float factor = (float) Math.pow(HISTORY_FACTOR, (time - lastUpdate) / INTERVAL); in decayValue()
82 lastUpdate = time; in decayValue()
/aosp12/frameworks/native/libs/cputimeinstate/
H A Dcputimeinstate.cpp327 static std::optional<bool> uidUpdatedSince(uint32_t uid, uint64_t lastUpdate, in uidUpdatedSince() argument
334 if (uidLastUpdate + NSEC_PER_SEC < lastUpdate) return false; in uidUpdatedSince()
354 getUidsUpdatedCpuFreqTimes(uint64_t *lastUpdate) { in getUidsUpdatedCpuFreqTimes() argument
366 uint64_t newLastUpdate = lastUpdate ? *lastUpdate : 0; in getUidsUpdatedCpuFreqTimes()
369 if (lastUpdate) { in getUidsUpdatedCpuFreqTimes()
370 auto uidUpdated = uidUpdatedSince(key.uid, *lastUpdate, &newLastUpdate); in getUidsUpdatedCpuFreqTimes()
391 if (lastUpdate && newLastUpdate > *lastUpdate) *lastUpdate = newLastUpdate; in getUidsUpdatedCpuFreqTimes()
464 uint64_t *lastUpdate) { in getUidsUpdatedConcurrentTimes() argument
479 uint64_t newLastUpdate = lastUpdate ? *lastUpdate : 0; in getUidsUpdatedConcurrentTimes()
482 if (lastUpdate) { in getUidsUpdatedConcurrentTimes()
[all …]
H A Dtesttimeinstate.cpp167 uint64_t lastUpdate = 0; in TEST() local
168 auto map1 = getUidsUpdatedCpuFreqTimes(&lastUpdate); in TEST()
171 ASSERT_NE(lastUpdate, (uint64_t)0); in TEST()
172 uint64_t oldLastUpdate = lastUpdate; in TEST()
180 auto map2 = getUidsUpdatedCpuFreqTimes(&lastUpdate); in TEST()
183 ASSERT_NE(lastUpdate, oldLastUpdate); in TEST()
268 uint64_t lastUpdate = 0; in TEST() local
269 auto map1 = getUidsUpdatedConcurrentTimes(&lastUpdate); in TEST()
272 ASSERT_NE(lastUpdate, (uint64_t)0); in TEST()
280 uint64_t oldLastUpdate = lastUpdate; in TEST()
[all …]
H A Dcputimeinstate.h32 getUidsUpdatedCpuFreqTimes(uint64_t *lastUpdate);
43 getUidsUpdatedConcurrentTimes(uint64_t *lastUpdate);
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DWordListMetadata.java56 final String description, final long lastUpdate, final long fileSize, in WordListMetadata() argument
64 mLastUpdate = lastUpdate; // In milliseconds in WordListMetadata()
86 final Long lastUpdate = values.getAsLong(MetadataDbHelper.DATE_COLUMN); in createFromContentValues() local
100 || null == lastUpdate in createFromContentValues()
111 return new WordListMetadata(id, type, description, lastUpdate, fileSize, rawChecksum, in createFromContentValues()
H A DDictionaryService.java248 final long lastUpdate = MetadataDbHelper.getOldestUpdateTime(context); in isLastUpdateAtLeastThisOld() local
249 PrivateLog.log("Last update was " + lastUpdate); in isLastUpdateAtLeastThisOld()
250 return lastUpdate + time < now; in isLastUpdateAtLeastThisOld()
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/
H A DCachedSet.cpp57 CachedSet::Layer::Layer(const LayerState* state, std::chrono::steady_clock::time_point lastUpdate) in Layer() argument
58 : mState(state), mHash(state->getHash()), mLastUpdate(lastUpdate) {} in Layer()
60 CachedSet::CachedSet(const LayerState* layer, std::chrono::steady_clock::time_point lastUpdate) in CachedSet() argument
61 : mFingerprint(layer->getHash()), mLastUpdate(lastUpdate) { in CachedSet()
62 addLayer(layer, lastUpdate); in CachedSet()
74 std::chrono::steady_clock::time_point lastUpdate) { in addLayer() argument
75 mLayers.emplace_back(layer, lastUpdate); in addLayer()
389 const auto lastUpdate = in dump() local
392 mFingerprint, durationString(lastUpdate).c_str(), mAge); in dump()
H A DFlattener.cpp191 const auto lastUpdate = in dump() local
194 durationString(lastUpdate).c_str()); in dump()
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/planner/
H A DCachedSet.h39 Layer(const LayerState*, std::chrono::steady_clock::time_point lastUpdate);
59 CachedSet(const LayerState*, std::chrono::steady_clock::time_point lastUpdate);
62 void addLayer(const LayerState*, std::chrono::steady_clock::time_point lastUpdate);
/aosp12/packages/modules/DnsResolver/
H A DDnsStats.h37 lastUpdate = std::chrono::steady_clock::now(); in StatsData()
55 std::chrono::time_point<std::chrono::steady_clock> lastUpdate; member
H A DDnsStats.cpp88 const int lastUpdateSec = duration_cast<seconds>(now - lastUpdate).count(); in toString()
136 mStatsData.lastUpdate = std::chrono::steady_clock::now(); in updateStatsData()
/aosp12/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/
H A DUpdateManager.java368 UpdateData lastUpdate; in updateEngineReApplyPayload() local
375 lastUpdate = mLastUpdateData; in updateEngineReApplyPayload()
377 updateEngineApplyPayload(lastUpdate); in updateEngineReApplyPayload()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
H A DTileServiceManager.java158 public void setLastUpdate(long lastUpdate) { in setLastUpdate() argument
159 mLastUpdate = lastUpdate; in setLastUpdate()
/aosp12/system/netd/server/
H A DTcpSocketMonitor.h70 time_point lastUpdate; member
H A DTcpSocketMonitor.cpp225 if (it->second.lastUpdate < now) { in poll()
300 .lastUpdate = now, in updateSocketStats()
/aosp12/frameworks/base/core/tests/coretests/src/android/animation/
H A 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()
/aosp12/frameworks/base/packages/Shell/src/com/android/shell/
H A DBugreportProgressService.java1873 final AtomicLong lastUpdate = new AtomicLong(System.currentTimeMillis()); field in BugreportProgressService.BugreportInfo
2105 Long.toString(lastUpdate.longValue()) : formattedLastUpdate; in getFormattedLastUpdate()
2107 return DateUtils.formatDateTime(context, lastUpdate.longValue(), in getFormattedLastUpdate()
2155 lastUpdate.set(in.readLong()); in BugreportInfo()
2183 dest.writeLong(lastUpdate.longValue()); in writeToParcel()
2241 info.lastUpdate.set(System.currentTimeMillis()); in checkProgressUpdatedLocked()
/aosp12/packages/services/Car/service/src/com/android/car/
H A DCarMediaService.java514 long lastUpdate = mSharedPrefs.getLong(LAST_UPDATE_KEY, -1); in dumpSharedPrefs() local
516 allPrefs.size(), mContext.getDataDir(), lastUpdate); in dumpSharedPrefs()
517 TimeUtils.dumpTime(writer, lastUpdate); in dumpSharedPrefs()
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/tests/planner/
H A DCachedSetTest.cpp144 std::chrono::steady_clock::time_point lastUpdate) { in expectEqual() argument
145 CachedSet::Layer layer(&layerState, lastUpdate); in expectEqual()
/aosp12/packages/apps/Car/DebuggingRestrictionController/libs/
H A Dhttpclient-4.5.12.jarMETA-INF/MANIFEST.MF META-INF/ org/ org/apache/ org/ ...