/aosp12/frameworks/base/core/java/android/content/ |
H A D | SyncInfo.java | 55 public final long startTime; field in SyncInfo 64 int authorityId, String authority, long startTime) { in createAccountRedacted() argument 65 return new SyncInfo(authorityId, REDACTED_ACCOUNT, authority, startTime); in createAccountRedacted() 70 public SyncInfo(int authorityId, Account account, String authority, long startTime) { in SyncInfo() argument 74 this.startTime = startTime; in SyncInfo() 82 this.startTime = other.startTime; in SyncInfo() 95 parcel.writeLong(startTime); in writeToParcel() 104 startTime = parcel.readLong(); in SyncInfo()
|
/aosp12/packages/services/Car/cpp/watchdog/server/tests/ |
H A D | IoOveruseMonitorTest.cpp | 98 stats.startTime = startTime; in constructIoOveruseStats() 121 startTime, durationInSeconds); in constructPackageIoOveruseStats() 329 const auto [startTime, durationInSeconds] = calculateStartAndDuration(currentTime); in TEST_F() 379 /*totalOveruses=*/1, startTime, durationInSeconds)); in TEST_F() 482 const auto [startTime, durationInSeconds] = calculateStartAndDuration(currentTime); in TEST_F() 547 const auto [startTime, durationInSeconds] = calculateStartAndDuration(currentTime); in TEST_F() 760 /*totalOveruses=*/0, startTime, durationInSeconds), in TEST_F() 766 /*totalOveruses=*/4, startTime, durationInSeconds)}; in TEST_F() 838 /*totalOveruses=*/5, startTime, durationInSeconds)}; in TEST_F() 1103 /*totalOveruses=*/0, startTime, durationInSeconds), in TEST_F() [all …]
|
/aosp12/frameworks/base/core/java/android/app/usage/ |
H A D | NetworkStatsManager.java | 186 long startTime, long endTime) throws SecurityException, RemoteException { in querySummaryForDevice() argument 231 long startTime, long endTime) throws SecurityException, RemoteException { in querySummaryForDevice() argument 240 return querySummaryForDevice(template, startTime, endTime); in querySummaryForDevice() 324 public NetworkStats querySummary(int networkType, String subscriberId, long startTime, in querySummary() argument 334 return querySummary(template, startTime, endTime); in querySummary() 338 public NetworkStats querySummary(NetworkTemplate template, long startTime, in querySummary() argument 355 long startTime, long endTime, int uid) throws SecurityException { in queryDetailsForUid() argument 362 long startTime, long endTime, int uid) throws SecurityException { in queryDetailsForUid() argument 363 return queryDetailsForUidTagState(template, startTime, endTime, uid, in queryDetailsForUid() 375 long startTime, long endTime, int uid, int tag) throws SecurityException { in queryDetailsForUidTag() argument [all …]
|
/aosp12/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/ |
H A D | RecordingTestUtils.java | 28 long id, String inputId, long channelId, long startTime, long endTime) { in createTestRecordingWithIdAndPeriod() argument 29 return ScheduledRecording.builder(inputId, channelId, startTime, endTime) in createTestRecordingWithIdAndPeriod() 36 String inputId, long channelId, long startTime, long endTime) { in createTestRecordingWithPeriod() argument 38 ScheduledRecording.ID_NOT_SET, inputId, channelId, startTime, endTime); in createTestRecordingWithPeriod() 42 long channelId, long priority, long startTime, long endTime) { in createTestRecordingWithPriorityAndPeriod() argument 43 return ScheduledRecording.builder(INPUT_ID, CHANNEL_ID, startTime, endTime) in createTestRecordingWithPriorityAndPeriod() 50 long id, long channelId, long priority, long startTime, long endTime) { in createTestRecordingWithIdAndPriorityAndPeriod() argument 51 return ScheduledRecording.builder(INPUT_ID, CHANNEL_ID, startTime, endTime) in createTestRecordingWithIdAndPriorityAndPeriod()
|
/aosp12/frameworks/base/services/core/java/com/android/server/vibrator/ |
H A D | VibrationThread.java | 597 public final long startTime; field in VibrationThread.Step 599 Step(long startTime) { in Step() argument 600 this.startTime = startTime; in Step() 649 if (startTime == Long.MAX_VALUE) { in calculateWaitTime() 659 return Long.compare(startTime, o.startTime); in compareTo() 684 super(startTime); in StartVibrateStep() 924 super(startTime); in SingleVibratorStep() 1341 OffStep(long startTime, VibratorController controller) { in OffStep() argument 1342 super(startTime, controller, /* effect= */ null, /* index= */ -1, startTime); in OffStep() 1404 long latency = now - startTime; in play() [all …]
|
/aosp12/frameworks/av/media/codec2/hidl/1.0/vts/functional/component/ |
H A D | VtsHalMediaC2V1_0TargetComponentTest.cpp | 241 int64_t startTime = getNowUs(); in TEST_P() local 248 startTime = getNowUs(); in TEST_P() 250 timeConsumed = getNowUs() - startTime; in TEST_P() 260 startTime = getNowUs(); in TEST_P() 262 timeConsumed = getNowUs() - startTime; in TEST_P() 271 startTime = getNowUs(); in TEST_P() 280 startTime = getNowUs(); in TEST_P() 291 startTime = getNowUs(); in TEST_P() 297 startTime = getNowUs(); in TEST_P() 303 startTime = getNowUs(); in TEST_P() [all …]
|
/aosp12/packages/services/Iwlan/test/com/google/android/iwlan/ |
H A D | IwlanNetworkServiceTest.java | 104 long startTime; in testRequestNetworkRegistrationInfo() local 107 startTime = System.currentTimeMillis(); in testRequestNetworkRegistrationInfo() 108 while (System.currentTimeMillis() - startTime < 1000) { in testRequestNetworkRegistrationInfo() 146 long startTime; in testNetworkRegistrationInfoForCellularAndCstDisabled() local 149 startTime = System.currentTimeMillis(); in testNetworkRegistrationInfoForCellularAndCstDisabled() 199 long startTime; in testNetworkRegistrationInfoForCellularAndCstEnabled() local 202 startTime = System.currentTimeMillis(); in testNetworkRegistrationInfoForCellularAndCstEnabled() 250 long startTime; in testNetworkRegistrationInfoForWiFiAndCstEnabled() local 253 startTime = System.currentTimeMillis(); in testNetworkRegistrationInfoForWiFiAndCstEnabled() 301 long startTime; in testNetworkRegistrationInfoForWiFiAndCstDisabled() local [all …]
|
/aosp12/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/ |
H A D | BroadcastPerfTest.java | 40 final long startTime = System.nanoTime(); in manifestBroadcastRunning() 46 return endTime - startTime; in manifestBroadcastRunning() 56 final long startTime = System.nanoTime(); in manifestBroadcastNotRunning() 62 return endTime - startTime; in manifestBroadcastNotRunning() 74 final long startTime = System.nanoTime(); in registeredBroadcast() 80 return endTime - startTime; in registeredBroadcast()
|
/aosp12/frameworks/native/services/surfaceflinger/FrameTracer/ |
H A D | FrameTracer.cpp | 81 FrameEvent::BufferEventType type, nsecs_t startTime) { in traceFence() argument 83 startTime](FrameTracerDataSource::TraceContext ctx) { in traceFence() 95 traceSpanLocked(ctx, layerId, bufferID, frameNumber, type, startTime, signalTime); in traceFence() 101 .startTime = startTime}); in traceFence() 125 pendingFence.startTime, signalTime); in tracePendingFencesLocked() 160 FrameEvent::BufferEventType type, nsecs_t startTime, in traceSpanLocked() argument 164 if (startTime > 0 && startTime < endTime) { in traceSpanLocked() 165 timestamp = startTime; in traceSpanLocked() 166 duration = endTime - startTime; in traceSpanLocked()
|
/aosp12/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
H A D | ConnectivityManagerTestBase.java | 157 long startTime = SystemClock.uptimeMillis(); in waitForNetworkState() local 164 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForNetworkState() 176 long startTime = SystemClock.uptimeMillis(); in waitForWifiState() local 183 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiState() 195 long startTime = SystemClock.uptimeMillis(); in waitForWifiApState() local 202 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForWifiApState() 220 long startTime = SystemClock.uptimeMillis(); in waitForTetherStateChange() local 223 if ((SystemClock.uptimeMillis() - startTime) > timeout) { in waitForTetherStateChange() 285 long startTime = System.currentTimeMillis(); in pingTest() local 418 long startTime = SystemClock.uptimeMillis(); in waitForActiveNetworkConnection() local [all …]
|
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
H A D | IccRecordsTest.java | 147 long startTime; in testGetIccSimChallengeResponseNull() local 156 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseNull() 160 timeSpent = SystemClock.elapsedRealtime() - startTime; in testGetIccSimChallengeResponseNull() 168 long startTime; in testGetIccSimChallengeResponseTimeout() local 176 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseTimeout() 180 timeSpent = SystemClock.elapsedRealtime() - startTime; in testGetIccSimChallengeResponseTimeout() 205 long startTime; in testGetIccSimChallengeResponseDefault() local 217 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseDefault() 227 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseDefault() 235 startTime = SystemClock.elapsedRealtime(); in testGetIccSimChallengeResponseDefault() [all …]
|
/aosp12/frameworks/av/media/libaaudio/tests/ |
H A D | test_clock_model.cpp | 117 const int64_t startTime = 100000; in TEST_F() local 118 model.start(startTime); in TEST_F() 120 int64_t position = model.convertTimeToPosition(startTime); in TEST_F() 124 EXPECT_EQ(startTime, time); in TEST_F() 126 time = startTime + (500 * NANOS_PER_MICROSECOND); in TEST_F() 133 const int64_t startTime = 100000000; in TEST_F() local 134 model.start(startTime); in TEST_F() 137 int64_t markerTime = startTime + NANOS_PER_MILLISECOND + (200 * NANOS_PER_MICROSECOND); in TEST_F()
|
/aosp12/packages/modules/StatsD/lib/libstatssocket/tests/ |
H A D | stats_event_test.cpp | 109 EXPECT_GE(timestamp, startTime); in checkMetadata() 124 int64_t startTime = android::elapsedRealtimeNano(); in TEST() local 165 int64_t startTime = android::elapsedRealtimeNano(); in TEST() local 190 int64_t startTime = android::elapsedRealtimeNano(); in TEST() local 215 int64_t startTime = android::elapsedRealtimeNano(); in TEST() local 241 int64_t startTime = android::elapsedRealtimeNano(); in TEST() local 280 int64_t startTime = android::elapsedRealtimeNano(); in TEST() local 322 int64_t startTime = android::elapsedRealtimeNano(); in TEST() local 367 int64_t startTime = android::elapsedRealtimeNano(); in TEST() local 456 const int64_t startTime = android::elapsedRealtimeNano(); in TEST() local [all …]
|
/aosp12/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ |
H A D | SuggestionService.java | 33 final long startTime = System.currentTimeMillis(); in onGetSuggestions() local 45 .logGetSuggestion(ids, endTime - startTime); in onGetSuggestions() 51 final long startTime = System.currentTimeMillis(); in onSuggestionDismissed() local 60 .logDismissSuggestion(id, endTime - startTime); in onSuggestionDismissed() 65 final long startTime = System.currentTimeMillis(); in onSuggestionLaunched() local 74 .logLaunchSuggestion(id, endTime - startTime); in onSuggestionLaunched()
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
H A D | ANQPRequestManagerTest.java | 176 long startTime = 0; in requestANQPElementsWithPendingRequest() local 178 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsWithPendingRequest() 185 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime + 1); in requestANQPElementsWithPendingRequest() 208 long startTime = 0; in requestANQPElementsAfterRequestSendFailure() local 210 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestSendFailure() 217 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestSendFailure() 231 long startTime = 0; in requestANQPElementsAfterRequestSucceeded() local 233 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime); in requestANQPElementsAfterRequestSucceeded() 243 when(mClock.getElapsedSinceBootMillis()).thenReturn(startTime + 1); in requestANQPElementsAfterRequestSucceeded() 258 long startTime = 0; in requestANQPElementsAfterRequestFailed() local [all …]
|
/aosp12/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
H A D | EpgDataCleanupServiceTests.java | 91 final long startTime; field in EpgDataCleanupServiceTests.Program 94 Program(long startTime, long endTime) { in Program() argument 95 this(-1, startTime, endTime); in Program() 98 Program(long id, long startTime, long endTime) { in Program() argument 100 this.startTime = startTime; in Program() 111 && Objects.equals(startTime, that.startTime) in equals() 117 return Objects.hash(id, startTime, endTime); in hashCode() 122 return "Program(id=" + id + ",start=" + startTime + ",end=" + endTime + ")"; in toString() 144 values.put(Programs.COLUMN_START_TIME_UTC_MILLIS, program.startTime); in insertPrograms() 183 values.put(WatchedPrograms.COLUMN_WATCH_START_TIME_UTC_MILLIS, program.startTime); in insertWatchedPrograms()
|
/aosp12/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/ |
H A D | SchedulerTest.java | 104 long startTime = now + TimeUnit.HOURS.toMillis(12); in testUpdate_nextIn12Hours() local 107 INPUT_ID, CHANNEL_ID, startTime, startTime + TimeUnit.HOURS.toMillis(1)); in testUpdate_nextIn12Hours() 112 eq(startTime - RecordingScheduler.MS_TO_WAKE_BEFORE_START), in testUpdate_nextIn12Hours() 119 eq(startTime - RecordingScheduler.MS_TO_WAKE_BEFORE_START), in testUpdate_nextIn12Hours() 126 long startTime = now + 3; in testStartsWithin() local 129 INPUT_ID, CHANNEL_ID, startTime, startTime + 100); in testStartsWithin()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/metrics/ |
H A D | StubMetrics.java | 64 SystemClock.elapsedRealtime() - stubTimerEvent.startTime); in stopTimer() 69 long startTime = in stopUnnamedTimer() local 75 .startTime; in stopUnnamedTimer() 81 SystemClock.elapsedRealtime() - startTime); in stopUnnamedTimer() 105 final long startTime; field in StubMetrics.StubTimerEvent 108 this.startTime = SystemClock.elapsedRealtime(); in StubTimerEvent()
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
H A D | WatchdogStorageUnitTest.java | 123 long startTime = mTimeSource.getCurrentDate().toEpochSecond(); in testSaveAndGetIoOveruseStats() local 131 startTime, expectedDuration); in testSaveAndGetIoOveruseStats() 143 startTime, /* duration= */ 60); in testSaveAndGetIoOveruseStatsWithOffsettedStartTime() 161 long startTime = mTimeSource.getCurrentDate().toEpochSecond(); in testOverwriteIoOveruseStats() local 259 long duration = currentDate.toEpochSecond() - startTime; in testGetHistoricalIoOveruseStats() 298 long duration = currentDate.toEpochSecond() - startTime; in testGetHistoricalIoOveruseStatsWithNoRecentStats() 606 long duration = currentDate.toEpochSecond() - startTime; in testTruncateStatsOutsideRetentionPeriodOnDateChange() 625 duration = currentDate.toEpochSecond() - startTime; in testTruncateStatsOutsideRetentionPeriodOnDateChange() 626 expected = new IoOveruseStats.Builder(startTime, duration) in testTruncateStatsOutsideRetentionPeriodOnDateChange() 794 int userId, String packageName, long startTime, long duration, in constructIoUsageStatsEntry() argument [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/ |
H A D | FakeExecutor.java | 102 long startTime = mClock.uptimeMillis(); in advanceClockToNext() local 104 if (nextTime <= startTime) { in advanceClockToNext() 109 return nextTime - startTime; in advanceClockToNext() 126 long startTime = mClock.uptimeMillis(); in advanceClockToLast() local 128 if (nextTime <= startTime) { in advanceClockToLast() 134 return nextTime - startTime; in advanceClockToLast()
|
/aosp12/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
H A D | BatteryInfo.java | 72 long startTime; in bindHistory() 77 public void onParsingStarted(long startTime, long endTime) { in bindHistory() 78 this.startTime = startTime; in bindHistory() 79 timePeriod = endTime - startTime; in bindHistory() 175 final long startTime = System.currentTimeMillis(); in getBatteryInfo() local 177 BatteryUtils.logRuntime(LOG_TAG, "time for callback", startTime); in getBatteryInfo() 191 final long startTime = System.currentTimeMillis(); in getBatteryInfo() local 219 BatteryUtils.logRuntime(LOG_TAG, "time for regular BatteryInfo", startTime); in getBatteryInfo() 239 final long startTime = System.currentTimeMillis(); in getBatteryInfo() local 259 BatteryUtils.logRuntime(LOG_TAG, "time for getBatteryInfo", startTime); in getBatteryInfo() [all …]
|
/aosp12/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/ |
H A D | Interaction.java | 109 long startTime = SystemClock.uptimeMillis() + 100; in createInterpolatedEventList() local 116 startTime, startTime, MotionEvent.ACTION_DOWN, startX, startY, 0); in createInterpolatedEventList() 130 MotionEvent moveEvent = MotionEvent.obtain(startTime, startTime + deltaT, in createInterpolatedEventList() 141 MotionEvent lastEvent = MotionEvent.obtain(startTime, startTime + duration, in createInterpolatedEventList()
|
/aosp12/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
H A D | WakelockLoadTestRunnable.java | 41 long startTime = System.nanoTime(); in run() local 42 while (System.nanoTime() - startTime < sleepTimeNs) {} in run() 44 startTime = System.nanoTime(); in run() 45 while (System.nanoTime() - startTime < sleepTimeNs) {} in run()
|
/aosp12/hardware/st/secure_element/ese-spi-driver/ |
H A D | SpiLayerComm.cc | 66 struct timeval startTime; in SpiLayerComm_waitForAtpLength() local 71 gettimeofday(&startTime, 0); in SpiLayerComm_waitForAtpLength() 75 elapsedTimeInMs = Utils_getElapsedTimeInMs(startTime, currentTime); in SpiLayerComm_waitForAtpLength() 235 struct timeval startTime; in SpiLayerComm_waitForResponse() local 248 gettimeofday(&startTime, 0); in SpiLayerComm_waitForResponse() 272 Utils_getElapsedTimeInMs(startTime, currentTime); in SpiLayerComm_waitForResponse()
|
/aosp12/frameworks/base/libs/hwui/ |
H A D | SkiaInterpolator.cpp | 124 bool SkiaInterpolatorBase::getDuration(SkMSec* startTime, SkMSec* endTime) const { in getDuration() argument 129 if (startTime) { in getDuration() 130 *startTime = fTimes[0].fTime; in getDuration() 151 SkMSec startTime = 0, endTime = 0; // initialize to avoid warning in timeToT() local 152 this->getDuration(&startTime, &endTime); in timeToT() 153 SkMSec totalTime = endTime - startTime; in timeToT() 154 SkMSec offsetTime = time - startTime; in timeToT() 169 time = offsetTime + startTime; in timeToT()
|