/frameworks/base/core/java/android/app/usage/ |
D | NetworkStatsManager.java | 176 long startTime, long endTime) throws SecurityException, RemoteException { in querySummaryForDevice() argument 178 NetworkStats stats = new NetworkStats(mContext, template, mFlags, startTime, endTime, in querySummaryForDevice() 209 long startTime, long endTime) throws SecurityException, RemoteException { in querySummaryForDevice() argument 218 return querySummaryForDevice(template, startTime, endTime); in querySummaryForDevice() 242 long endTime) throws SecurityException, RemoteException { in querySummaryForUser() argument 252 stats = new NetworkStats(mContext, template, mFlags, startTime, endTime, mService); in querySummaryForUser() 279 long endTime) throws SecurityException, RemoteException { in querySummary() argument 288 return querySummary(template, startTime, endTime); in querySummary() 293 long endTime) throws SecurityException, RemoteException { in querySummary() argument 295 result = new NetworkStats(mContext, template, mFlags, startTime, endTime, mService); in querySummary() [all …]
|
D | IUsageStatsManager.aidl | 32 ParceledListSlice queryUsageStats(int bucketType, long beginTime, long endTime, in queryUsageStats() argument 35 ParceledListSlice queryConfigurationStats(int bucketType, long beginTime, long endTime, in queryConfigurationStats() argument 37 ParceledListSlice queryEventStats(int bucketType, long beginTime, long endTime, in queryEventStats() argument 39 UsageEvents queryEvents(long beginTime, long endTime, String callingPackage); in queryEvents() argument 40 UsageEvents queryEventsForPackage(long beginTime, long endTime, String callingPackage); in queryEventsForPackage() argument 41 UsageEvents queryEventsForUser(long beginTime, long endTime, int userId, String callingPackage); in queryEventsForUser() argument 42 …UsageEvents queryEventsForPackageForUser(long beginTime, long endTime, int userId, String pkg, Str… in queryEventsForPackageForUser() argument
|
D | UsageStatsManager.java | 308 public List<UsageStats> queryUsageStats(int intervalType, long beginTime, long endTime) { in queryUsageStats() argument 312 endTime, mContext.getOpPackageName()); in queryUsageStats() 337 long endTime) { in queryConfigurations() argument 341 intervalType, beginTime, endTime, mContext.getOpPackageName()); in queryConfigurations() 380 public List<EventStats> queryEventStats(int intervalType, long beginTime, long endTime) { in queryEventStats() argument 384 endTime, mContext.getOpPackageName()); in queryEventStats() 406 public UsageEvents queryEvents(long beginTime, long endTime) { in queryEvents() argument 408 UsageEvents iter = mService.queryEvents(beginTime, endTime, in queryEvents() 431 public UsageEvents queryEventsForSelf(long beginTime, long endTime) { in queryEventsForSelf() argument 433 final UsageEvents events = mService.queryEventsForPackage(beginTime, endTime, in queryEventsForSelf() [all …]
|
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/ |
D | BroadcastPerfTest.java | 44 final long endTime = getReceivedTimeNs(Constants.TYPE_BROADCAST_RECEIVE); in manifestBroadcastRunning() local 46 return endTime - startTime; in manifestBroadcastRunning() 60 final long endTime = getReceivedTimeNs(Constants.TYPE_BROADCAST_RECEIVE); in manifestBroadcastNotRunning() local 62 return endTime - startTime; in manifestBroadcastNotRunning() 78 final long endTime = getReceivedTimeNs(Constants.TYPE_BROADCAST_RECEIVE); in registeredBroadcast() local 80 return endTime - startTime; in registeredBroadcast()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UserUsageStatsService.java | 145 Math.max(currentDailyStats.lastTimeSaved, currentDailyStats.endTime)); in init() 296 private <T> List<T> queryStats(int intervalType, final long beginTime, final long endTime, in queryStats() argument 299 intervalType = mDatabase.findBestFitBucket(beginTime, endTime); in queryStats() 318 + beginTime + " AND endTime < " + endTime); in queryStats() 321 if (beginTime >= currentStats.endTime) { in queryStats() 324 + currentStats.endTime); in queryStats() 333 final long truncatedEndTime = Math.min(currentStats.beginTime, endTime); in queryStats() 341 " endTime=" + currentStats.endTime); in queryStats() 345 if (beginTime < currentStats.endTime && endTime > currentStats.beginTime) { in queryStats() 362 List<UsageStats> queryUsageStats(int bucketType, long beginTime, long endTime) { in queryUsageStats() argument [all …]
|
D | IntervalStats.java | 60 public long endTime; field in IntervalStats 100 void addToEventStats(List<EventStats> out, int event, long beginTime, long endTime) { in addToEventStats() argument 108 ev.mEndTimeStamp = endTime; in addToEventStats() 127 usageStats.mEndTimeStamp = endTime; in getOrCreateUsageStats() 142 configStats.mEndTimeStamp = endTime; in getOrCreateConfigurationStats() 308 if (timeStamp > endTime) { in update() 309 endTime = timeStamp; in update() 333 if (event.mTimeStamp > endTime) { in addEvent() 334 endTime = event.mTimeStamp; in addEvent() 368 if (timeStamp > endTime) { in updateConfigurationStats() [all …]
|
D | UsageStatsService.java | 621 List<UsageStats> queryUsageStats(int userId, int bucketType, long beginTime, long endTime, in queryUsageStats() argument 625 if (!validRange(timeNow, beginTime, endTime)) { in queryUsageStats() 631 List<UsageStats> list = service.queryUsageStats(bucketType, beginTime, endTime); in queryUsageStats() 655 long endTime) { in queryConfigurationStats() argument 658 if (!validRange(timeNow, beginTime, endTime)) { in queryConfigurationStats() 664 return service.queryConfigurationStats(bucketType, beginTime, endTime); in queryConfigurationStats() 672 long endTime) { in queryEventStats() argument 675 if (!validRange(timeNow, beginTime, endTime)) { in queryEventStats() 681 return service.queryEventStats(bucketType, beginTime, endTime); in queryEventStats() 688 UsageEvents queryEvents(int userId, long beginTime, long endTime, in queryEvents() argument [all …]
|
/frameworks/base/tests/net/java/android/app/usage/ |
D | NetworkStatsManagerTest.java | 74 final long endTime = 100; in testQueryDetails() local 112 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime))) in testQueryDetails() 123 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime))) in testQueryDetails() 133 ConnectivityManager.TYPE_MOBILE, subscriberId, startTime, endTime); in testQueryDetails() 172 final long endTime = 100; in testQueryDetails_NoSubscriberId() local 180 ConnectivityManager.TYPE_MOBILE, null, startTime, endTime); in testQueryDetails_NoSubscriberId() 192 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime)); in testQueryDetails_NoSubscriberId() 200 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime)); in testQueryDetails_NoSubscriberId()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | TestHandlerThread.java | 35 long endTime = now + timeout; in doTest() local 36 while (!mDone && now < endTime) { in doTest() 38 wait(endTime-now); in doTest()
|
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
D | CustomSurfaceView.java | 66 long endTime; in run() local 70 endTime = System.currentTimeMillis(); in run() 72 mFPS = (double)frameCnt * 1000.0 / (endTime - startTime); in run() 73 if ((endTime - startTime) >= DURATION_TO_MEASURE_ROUGH_MS) { in run() 79 if ((endTime - startTime) >= DURATION_TO_MEASURE_PRECISE_MS) { in run()
|
/frameworks/base/libs/hwui/service/ |
D | GraphicsStatsService.cpp | 46 int64_t startTime, int64_t endTime, const ProfileData* data); 159 int64_t versionCode, int64_t startTime, int64_t endTime, in mergeProfileDataIntoProto() argument 164 if (proto->stats_end() == 0 || proto->stats_end() < endTime) { in mergeProfileDataIntoProto() 165 proto->set_stats_end(endTime); in mergeProfileDataIntoProto() 262 int64_t versionCode, int64_t startTime, int64_t endTime, in saveBuffer() argument 268 if (!mergeProfileDataIntoProto(&statsProto, package, versionCode, startTime, endTime, data)) { in saveBuffer() 329 int64_t startTime, int64_t endTime, const ProfileData* data) { in addToDump() argument 335 !mergeProfileDataIntoProto(&statsProto, package, versionCode, startTime, endTime, data)) { in addToDump()
|
D | GraphicsStatsService.h | 46 int64_t versionCode, int64_t startTime, int64_t endTime, 52 int64_t startTime, int64_t endTime, const ProfileData* data);
|
/frameworks/base/services/core/jni/ |
D | com_android_server_GraphicsStatsService.cpp | 42 jlong versionCode, jlong startTime, jlong endTime, jbyteArray jdata) { in addToDump() argument 64 GraphicsStatsService::addToDump(dump, path, package, versionCode, startTime, endTime, data); in addToDump() 81 jlong versionCode, jlong startTime, jlong endTime, jbyteArray jdata) { in saveBuffer() argument 93 GraphicsStatsService::saveBuffer(path, package, versionCode, startTime, endTime, data); in saveBuffer()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityManagerInternalTest.java | 174 final long endTime = SystemClock.elapsedRealtime() + WAIT_TIMEOUT_MS; in startAndWait() local 178 && SystemClock.elapsedRealtime() < endTime) { in startAndWait() 197 final long endTime = SystemClock.elapsedRealtime() + WAIT_TIMEOUT_MS; in assertTerminated() local 199 && SystemClock.elapsedRealtime() < endTime) { in assertTerminated()
|
/frameworks/base/tests/UsageStatsPerfTests/src/com/android/frameworks/perftests/usage/tests/ |
D | UsageStatsDatabasePerfTest.java | 123 final long endTime = SystemClock.elapsedRealtimeNanos(); in runQueryUsageStatsTest() local 124 elapsedTimeNs = endTime - startTime; in runQueryUsageStatsTest() 137 final long endTime = SystemClock.elapsedRealtimeNanos(); in runPutUsageStatsTest() local 138 elapsedTimeNs = endTime - startTime; in runPutUsageStatsTest()
|
/frameworks/base/core/tests/coretests/BstatsTestApp/src/com/android/coretests/apps/bstatstestapp/ |
D | Common.java | 31 final long endTime = SystemClock.currentThreadTimeMillis() + durationMs; in doSomeWork() local 35 while (SystemClock.currentThreadTimeMillis() <= endTime) { in doSomeWork()
|
/frameworks/base/core/java/android/hardware/display/ |
D | ColorDisplayManager.java | 330 public boolean setNightDisplayCustomEndTime(@NonNull LocalTime endTime) { in setNightDisplayCustomEndTime() argument 331 if (endTime == null) { in setNightDisplayCustomEndTime() 338 return mManager.setNightDisplayCustomEndTime(new Time(endTime)); in setNightDisplayCustomEndTime() 613 boolean setNightDisplayCustomEndTime(Time endTime) { in setNightDisplayCustomEndTime() argument 615 return mCdm.setNightDisplayCustomEndTime(endTime); in setNightDisplayCustomEndTime()
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | RenderScriptTask.java | 105 long endTime = System.currentTimeMillis(); in applyRefocusFilter() local 106 filter.logTiming(TAG, "TOTAL", endTime - startTime, "ms"); in applyRefocusFilter()
|
/frameworks/base/services/core/java/com/android/server/ |
D | GraphicsStatsService.java | 236 buffer.mInfo.startTime, buffer.mInfo.endTime, buffer.mData); in saveBuffer() 329 buffer.mInfo.versionCode, buffer.mInfo.startTime, buffer.mInfo.endTime, in dumpActiveLocked() 385 long versionCode, long startTime, long endTime, byte[] data); in nAddToDump() argument 389 long startTime, long endTime, byte[] data); in nSaveBuffer() argument 395 long endTime; field in GraphicsStatsService.BufferInfo 444 mInfo.endTime = System.currentTimeMillis(); in HistoricalBuffer()
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | RecurrenceProcessorTest.java | 2491 long endTime = System.currentTimeMillis(); in performanceTextExpand() local 2492 long elapsed = endTime - startTime; in performanceTextExpand() 2515 long endTime = System.currentTimeMillis(); in performanceTestNormalize() local 2516 long elapsed = endTime - startTime; in performanceTestNormalize() 2532 endTime = System.currentTimeMillis(); in performanceTestNormalize() 2533 elapsed = endTime - startTime; in performanceTestNormalize()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseLockTest.java | 129 long endTime = System.currentTimeMillis(); in testLockLatency() local 130 long elapsedTime = endTime - startTime; in testLockLatency()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySavingStats.java | 101 public long endTime; field in BatterySavingStats.Stat 317 stat.endTime = now; in endLastStateLocked() 319 final long deltaTime = stat.endTime - stat.startTime; in endLastStateLocked() 364 stat.endTime = 0; in startNewStateLocked()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ActivityTestsBase.java | 166 long endTime = System.currentTimeMillis() + timeoutMs; in waitForResult() local 171 long delay = endTime - System.currentTimeMillis(); in waitForResult()
|
/frameworks/base/test-runner/src/junit/textui/ |
D | TestRunner.java | 117 long endTime= System.currentTimeMillis(); in doRun() local 118 long runTime= endTime-startTime; in doRun()
|
/frameworks/base/core/jni/ |
D | android_hardware_UsbDeviceConnection.cpp | 236 steady_clock::time_point endTime = currentTime + std::chrono::milliseconds(timeoutMillis); in android_hardware_UsbDeviceConnection_request_wait() local 242 request = usb_request_wait(device, duration_cast<std::chrono::milliseconds>(endTime in android_hardware_UsbDeviceConnection_request_wait() 251 if (currentTime >= endTime) { in android_hardware_UsbDeviceConnection_request_wait()
|