Home
last modified time | relevance | path

Searched refs:timeNow (Results 1 – 18 of 18) sorted by relevance

/aosp12/system/chre/platform/linux/
H A Dsystem_time.cc29 struct timespec timeNow; in getMonotonicTime() local
30 if (clock_gettime(CLOCK_MONOTONIC, &timeNow)) { in getMonotonicTime()
39 return Seconds(static_cast<uint64_t>(timeNow.tv_sec)) + in getMonotonicTime()
40 Nanoseconds(static_cast<uint64_t>(timeNow.tv_nsec)); in getMonotonicTime()
/aosp12/system/hardware/interfaces/suspend/1.0/default/
H A DWakeLockEntryList.cpp162 TimestampType timeNow) const { in createNativeEntry()
168 info.lastChange = timeNow; in createNativeEntry()
304 void WakeLockEntryList::updateOnAcquire(const std::string& name, int pid, TimestampType timeNow) { in updateOnAcquire() argument
311 WakeLockInfo newEntry = createNativeEntry(name, pid, timeNow); in updateOnAcquire()
321 updatedEntry.lastChange = timeNow; in updateOnAcquire()
328 void WakeLockEntryList::updateOnRelease(const std::string& name, int pid, TimestampType timeNow) { in updateOnRelease() argument
341 TimestampType timeDelta = timeNow - updatedEntry.lastChange; in updateOnRelease()
347 updatedEntry.lastChange = timeNow; in updateOnRelease()
359 TimestampType timeNow = getTimeNow(); in updateNow() local
363 TimestampType timeDelta = timeNow - it->lastChange; in updateNow()
[all …]
H A DWakeLockEntryList.h49 void updateOnAcquire(const std::string& name, int pid, TimestampType timeNow);
50 void updateOnRelease(const std::string& name, int pid, TimestampType timeNow);
61 WakeLockInfo createNativeEntry(const std::string& name, int pid, TimestampType timeNow) const;
H A DSystemSuspend.cpp209 auto timeNow = getTimeNow(); in acquireWakeLock() local
212 mStatsList.updateOnAcquire(name, pid, timeNow); in acquireWakeLock()
368 TimestampType timeNow) { in updateWakeLockStatOnRelease() argument
370 mStatsList.updateOnRelease(name, pid, timeNow); in updateWakeLockStatOnRelease()
H A DSystemSuspend.h112 void updateWakeLockStatOnRelease(const std::string& name, int pid, TimestampType timeNow);
/aosp12/frameworks/native/opengl/tests/angeles/
H A Dapp-linux.cpp208 struct timeval timeNow; in main() local
210 gettimeofday(&timeNow, NULL); in main()
211 appRender(timeNow.tv_sec * 1000 + timeNow.tv_usec / 1000, in main()
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
H A DTaskbarNavButtonController.java133 long timeNow = System.currentTimeMillis(); in determineScreenUnpin() local
145 if ((timeNow - mLastScreenPinLongPress) > SCREEN_PIN_LONG_PRESS_THRESHOLD) { in determineScreenUnpin()
/aosp12/hardware/qcom/display/msm8084/libhwcomposer/
H A Dhwc_dump_layers.cpp98 time_t timeNow; in needToDumpLayers() local
113 time(&timeNow); in needToDumpLayers()
114 localtime_r(&timeNow, &dumpTime); in needToDumpLayers()
/aosp12/hardware/qcom/display/msm8226/libhwcomposer/
H A Dhwc_dump_layers.cpp98 time_t timeNow; in needToDumpLayers() local
113 time(&timeNow); in needToDumpLayers()
114 localtime_r(&timeNow, &dumpTime); in needToDumpLayers()
/aosp12/hardware/qcom/display/msm8994/libhwcomposer/
H A Dhwc_dump_layers.cpp102 time_t timeNow; in needToDumpLayers() local
117 time(&timeNow); in needToDumpLayers()
118 localtime_r(&timeNow, &dumpTime); in needToDumpLayers()
/aosp12/frameworks/base/services/core/java/com/android/server/storage/
H A DCacheQuotaStrategy.java166 long timeNow = System.currentTimeMillis(); in getUnfulfilledRequests() local
167 long oneYearAgo = timeNow - DateUtils.YEAR_IN_MILLIS; in getUnfulfilledRequests()
178 oneYearAgo, timeNow, /*obfuscateInstantApps=*/ false); in getUnfulfilledRequests()
/aosp12/frameworks/base/core/java/com/android/internal/app/procstats/
H A DAssociationState.java1098 final long timeNow = src.mActiveStartUptime != 0 ? (now-src.mActiveStartUptime) : 0; in dumpTimesCheckin() local
1105 duration += timeNow; in dumpTimesCheckin()
1114 duration = src.mActiveDuration + timeNow; in dumpTimesCheckin()
1157 final long timeNow = src.mActiveStartUptime != 0 ? (now-src.mActiveStartUptime) : 0; in dumpDebug() local
1164 duration += timeNow; in dumpDebug()
1177 duration = src.mActiveDuration + timeNow; in dumpDebug()
/aosp12/system/chre/core/
H A Daudio_request_manager.cc245 Nanoseconds timeNow = SystemTime::getMonotonicTime(); in createAudioRequest() local
246 Nanoseconds nextEventTimestamp = timeNow + deliveryInterval; in createAudioRequest()
/aosp12/frameworks/av/media/libaudioclient/
H A DAudioTrack.cpp2582 const nsecs_t timeNow = systemTime(); in processAudioBuffer() local
2583 ns = max((nsecs_t)0, ns - (timeNow - timeAfterCallbacks)); in processAudioBuffer()
2671 const nsecs_t timeNow = systemTime(); in processAudioBuffer() local
2672 ns = max((nsecs_t)0, ns - (timeNow - timeAfterCallbacks)); in processAudioBuffer()
3203 const int64_t timeNow = getNowUs(); in getTimestamp_l() local
3205 if (timeNow < mStartFromZeroUs + k1SecUs) { // within first second of starting in getTimestamp_l()
/aosp12/frameworks/base/apex/jobscheduler/service/java/com/android/server/
H A DDeviceIdleController.java2885 final long timeNow = SystemClock.elapsedRealtime(); in addPowerSaveTempWhitelistAppDirectInternal() local
2897 entry.first.value = timeNow + duration; in addPowerSaveTempWhitelistAppDirectInternal()
2971 final long timeNow = SystemClock.elapsedRealtime(); in checkTempAppWhitelistTimeout() local
2974 Slog.d(TAG, "checkTempAppWhitelistTimeout: uid=" + uid + ", timeNow=" + timeNow); in checkTempAppWhitelistTimeout()
2983 if (timeNow >= entry.first.value) { in checkTempAppWhitelistTimeout()
2991 postTempActiveTimeoutMessage(uid, entry.first.value - timeNow); in checkTempAppWhitelistTimeout()
5042 final long timeNow = SystemClock.elapsedRealtime(); in dumpTempWhitelistSchedule() local
5049 TimeUtils.formatDuration(entry.first.value, timeNow, pw); in dumpTempWhitelistSchedule()
/aosp12/frameworks/base/services/usage/java/com/android/server/usage/
H A DUserUsageStatsService.java210 final long timeNow = System.currentTimeMillis(); in updatePackageMappingsLocked() local
225 mDatabase.mPackagesTokenData.removePackage(removedPackages.get(i), timeNow); in updatePackageMappingsLocked() local
/aosp12/frameworks/base/core/java/android/os/
H A DParcel.java2213 final long timeNow = sParcelExceptionStackTrace ? SystemClock.elapsedRealtime() : 0; in writeException() local
2214 if (sParcelExceptionStackTrace && (timeNow - sLastWriteExceptionStackTrace in writeException()
2216 sLastWriteExceptionStackTrace = timeNow; in writeException()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageManagerService.java7177 long timeNow = timeStart; in requestCopyPreoptedFiles() local
7184 timeNow = SystemClock.uptimeMillis(); in requestCopyPreoptedFiles()
7185 if (timeNow > timeEnd) { in requestCopyPreoptedFiles()
7192 Slog.i(TAG, "cppreopts took " + (timeNow - timeStart) + " ms"); in requestCopyPreoptedFiles()