/aosp12/system/chre/platform/linux/ |
H A D | system_time.cc | 29 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 D | WakeLockEntryList.cpp | 162 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 D | WakeLockEntryList.h | 49 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 D | SystemSuspend.cpp | 209 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 D | SystemSuspend.h | 112 void updateWakeLockStatOnRelease(const std::string& name, int pid, TimestampType timeNow);
|
/aosp12/frameworks/native/opengl/tests/angeles/ |
H A D | app-linux.cpp | 208 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 D | TaskbarNavButtonController.java | 133 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 D | hwc_dump_layers.cpp | 98 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 D | hwc_dump_layers.cpp | 98 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 D | hwc_dump_layers.cpp | 102 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 D | CacheQuotaStrategy.java | 166 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 D | AssociationState.java | 1098 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 D | audio_request_manager.cc | 245 Nanoseconds timeNow = SystemTime::getMonotonicTime(); in createAudioRequest() local 246 Nanoseconds nextEventTimestamp = timeNow + deliveryInterval; in createAudioRequest()
|
/aosp12/frameworks/av/media/libaudioclient/ |
H A D | AudioTrack.cpp | 2582 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 D | DeviceIdleController.java | 2885 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 D | UserUsageStatsService.java | 210 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 D | Parcel.java | 2213 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 D | PackageManagerService.java | 7177 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()
|