/packages/services/Car/cpp/watchdog/server/tests/ |
D | IoOveruseMonitorTest.cpp | 97 const int64_t startTime, const int64_t durationInSeconds) { in constructIoOveruseStats() argument 101 stats.startTime = startTime; in constructIoOveruseStats() 118 const int64_t startTime, const int64_t durationInSeconds) { in constructPackageIoOveruseStats() argument 123 startTime, durationInSeconds); in constructPackageIoOveruseStats() 282 const auto [startTime, durationInSeconds] = calculateStartAndDuration(currentTime); in TEST_F() 292 /*totalOveruses=*/0, startTime, durationInSeconds), in TEST_F() 297 /*totalOveruses=*/0, startTime, durationInSeconds), in TEST_F() 304 /*totalOveruses=*/1, startTime, durationInSeconds)}; in TEST_F() 328 /*totalOveruses=*/1, startTime, durationInSeconds)); in TEST_F() 338 /*totalOveruses=*/1, startTime, durationInSeconds), in TEST_F() [all …]
|
/packages/services/Iwlan/test/com/google/android/iwlan/ |
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() 150 while (System.currentTimeMillis() - startTime < 1000) { in testNetworkRegistrationInfoForCellularAndCstDisabled() 199 long startTime; in testNetworkRegistrationInfoForCellularAndCstEnabled() local 202 startTime = System.currentTimeMillis(); in testNetworkRegistrationInfoForCellularAndCstEnabled() 203 while (System.currentTimeMillis() - startTime < 1000) { in testNetworkRegistrationInfoForCellularAndCstEnabled() 250 long startTime; in testNetworkRegistrationInfoForWiFiAndCstEnabled() local [all …]
|
/packages/modules/StatsD/lib/libstatssocket/tests/ |
D | stats_event_test.cpp | 97 void checkMetadata(uint8_t** buffer, uint8_t numElements, int64_t startTime, int64_t endTime, in checkMetadata() argument 109 EXPECT_GE(timestamp, startTime); in checkMetadata() 124 int64_t startTime = android::elapsedRealtimeNano(); in TEST() local 138 checkMetadata(&buffer, /*numElements=*/4, startTime, endTime, atomId); in TEST() 165 int64_t startTime = android::elapsedRealtimeNano(); in TEST() local 176 checkMetadata(&buffer, /*numElements=*/1, startTime, endTime, atomId); in TEST() 190 int64_t startTime = android::elapsedRealtimeNano(); in TEST() local 201 checkMetadata(&buffer, /*numElements=*/1, startTime, endTime, atomId); in TEST() 215 int64_t startTime = android::elapsedRealtimeNano(); in TEST() local 226 checkMetadata(&buffer, /*numElements=*/1, startTime, endTime, atomId); in TEST() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
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() 194 .thenReturn(startTime + ANQPRequestManager.BASE_HOLDOFF_TIME_MILLISECONDS); 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() [all …]
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/ |
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()
|
/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
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()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryInfo.java | 70 long startTime; in bindHistory() 75 public void onParsingStarted(long startTime, long endTime) { in bindHistory() 76 this.startTime = startTime; in bindHistory() 77 timePeriod = endTime - startTime; in bindHistory() 107 points = provider.getEnhancedBatteryPredictionCurve(context, startTime); in bindHistory() 166 final long startTime = System.currentTimeMillis(); in getBatteryInfo() local 168 BatteryUtils.logRuntime(LOG_TAG, "time for callback", startTime); in getBatteryInfo() 182 final long startTime = System.currentTimeMillis(); in getBatteryInfo() local 200 .logRuntime(LOG_TAG, "time for enhanced BatteryInfo", startTime); in getBatteryInfo() 210 BatteryUtils.logRuntime(LOG_TAG, "time for regular BatteryInfo", startTime); in getBatteryInfo() [all …]
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/ |
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()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ |
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()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarController.java | 146 public Time startTime; field in CalendarController.EventInfo 349 info.startTime = new Time(Utils.getTimeZone(mContext, mUpdateTimezone)); in sendEventRelatedEventWithExtraWithTitleWithCalendarId() 350 info.startTime.set(startMillis); in sendEventRelatedEventWithExtraWithTitleWithCalendarId() 355 info.selectedTime = info.startTime; in sendEventRelatedEventWithExtraWithTitleWithCalendarId() 395 info.startTime = start; in sendEvent() 441 Log.d(TAG, "Start " + (event.startTime == null ? "null" : event.startTime.toString())); in sendEvent() 448 if (event.startTime != null) { in sendEvent() 449 startMillis = event.startTime.toMillis(false); in sendEvent() 462 mTime.set(event.startTime); in sendEvent() 474 event.startTime = mTime; in sendEvent() [all …]
|
D | Event.java | 130 public int startTime; // Start and end time are in minutes since midnight field in Event 167 e.startTime = startTime; in clone() 188 dest.startTime = startTime; in copyTo() 209 e.startTime = 0; in newInstance() 398 e.startTime = cEvents.getInt(PROJECTION_START_MINUTE_INDEX); in generateEventFromCursor() 548 Log.e("Cal", "+ startTime = " + startTime); in dump() 572 && (startTime != endTime || startDay != endDay)) { in intersects() 577 if (startDay == julianDay && startTime > endMinute) { in intersects()
|
D | EventGeometry.java | 61 int startTime = event.startTime; in computeEventRect() local 67 startTime = 0; in computeEventRect() 78 int startHour = startTime / 60; in computeEventRect() 88 event.top += (int) (startTime * cellMinuteHeight); in computeEventRect()
|
/packages/apps/Dialer/java/com/android/dialer/metrics/ |
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()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | UsageGraph.java | 117 final long startTime = System.currentTimeMillis(); in setMax() local 122 BatteryUtils.logRuntime(LOG_TAG, "setMax", startTime); in setMax() 144 final long startTime = System.currentTimeMillis(); in addPathAndUpdate() local 152 BatteryUtils.logRuntime(LOG_TAG, "addPathAndUpdate", startTime); in addPathAndUpdate() 164 final long startTime = System.currentTimeMillis(); in onSizeChanged() local 168 BatteryUtils.logRuntime(LOG_TAG, "onSizeChanged", startTime); in onSizeChanged() 178 final long startTime = System.currentTimeMillis(); in calculateLocalPaths() local 217 BatteryUtils.logRuntime(LOG_TAG, "calculateLocalPaths", startTime); in calculateLocalPaths() 244 final long startTime = System.currentTimeMillis(); in onDraw() local 268 BatteryUtils.logRuntime(LOG_TAG, "onDraw", startTime); in onDraw()
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | ProcPidStat.cpp | 94 !ParseUint(fields[21 + commEndOffset], &pidStat->startTime)) { in parsePidStatLine() 210 cachedIt->second.process.startTime != curStats.process.startTime) { in collect() 222 cachedThread->second.startTime != deltaThread.second.startTime) { in collect() 278 it->second.process.startTime == curStats.process.startTime) { in getProcessStatsLocked() 338 .startTime = curStats.process.startTime, in getProcessStatsLocked()
|
/packages/modules/Connectivity/tests/unit/java/android/app/usage/ |
D | NetworkStatsManagerTest.java | 77 final long startTime = 1; in testQueryDetails() local 116 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime))) in testQueryDetails() 127 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime))) in testQueryDetails() 137 ConnectivityManager.TYPE_MOBILE, TEST_SUBSCRIBER_ID, startTime, endTime); in testQueryDetails() 175 final long startTime = 1; in runQueryDetailsAndCheckTemplate() local 187 networkType, subscriberId, startTime, endTime); in runQueryDetailsAndCheckTemplate() 193 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime)); in runQueryDetailsAndCheckTemplate() 199 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime)); in runQueryDetailsAndCheckTemplate()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | ChartDataUsagePreference.java | 110 final long startTime = data.getStartTime(); in calcPoints() local 111 if (startTime > now) { in calcPoints() 120 points.put(toInt(startTime - mStart) - 1, -1); in calcPoints() 122 points.put(toInt(startTime - mStart + 1), (int) (totalData / RESOLUTION)); in calcPoints() 200 final long startTime = nodes.stream().mapToLong(DataUsageSummaryNode::getStartTime) in getDensedStatsData() local 206 startTime, endTime, percentage); in getDensedStatsData() 226 public DataUsageSummaryNode(long startTime, long endTime, int dataUsagePercentage) { in DataUsageSummaryNode() argument 227 mStartTime = startTime; in DataUsageSummaryNode()
|
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
D | BleScanReceiver.java | 131 public void firstAlarm(int scanMode, int startTime, int scanTime, in firstAlarm() argument 137 mFirstScanTime = startTime; in firstAlarm() 145 long triggerTime = SystemClock.elapsedRealtime() + startTime * 1000; in firstAlarm() 255 int scanMode = -1, startTime = 0, scanTime = 0, noScanTime = 0; in onReceive() local 281 startTime = Integer.valueOf(str); in onReceive() 305 if (scanTime == 0 || startTime == 0 || scanMode == -1) { in onReceive() 309 mAlarmScanListener.firstAlarm(scanMode, startTime, in onReceive()
|
/packages/apps/TV/tests/input/src/com/android/tv/testinput/ |
D | TestTvInputService.java | 440 final long startTime = mStartTime; in onStopRecording() local 459 storeRecordedProgram(c, startTime, endTime); in onStopRecording() 472 startTime, in onStopRecording() argument 473 endTime - startTime < MAX_COMMAND_DELAY in onStopRecording() 474 ? startTime in onStopRecording() 481 storeRecordedProgram(c, startTime, endTime); in onStopRecording() 487 storeRecordedProgram(null, startTime, endTime); in onStopRecording() 491 private void storeRecordedProgram(Cursor c, long startTime, long endTime) { in onStopRecording() argument 496 RecordedPrograms.COLUMN_RECORDING_DURATION_MILLIS, endTime - startTime); in onStopRecording() 516 values.put(RecordedPrograms.COLUMN_START_TIME_UTC_MILLIS, startTime); in onStopRecording()
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | TimeListAdapter.java | 81 long startTime = mStartUtcMs + position * TIME_UNIT_MS; in onBindViewHolder() local 82 long endTime = startTime + TIME_UNIT_MS; in onBindViewHolder() 85 Date timeDate = new Date(startTime); in onBindViewHolder() 87 if (Utils.isInGivenDay(System.currentTimeMillis(), startTime)) { in onBindViewHolder() 95 lp.width = GuideUtils.convertMillisToPixel(startTime, endTime); in onBindViewHolder()
|
/packages/services/Car/car-lib/src/android/car/watchdog/ |
D | IoOveruseStats.java | 92 long startTime, in IoOveruseStats() argument 99 this.mStartTime = startTime; in IoOveruseStats() 223 long startTime = in.readLong(); in IoOveruseStats() local 230 this.mStartTime = startTime; in IoOveruseStats() 284 long startTime, in Builder() argument 286 mStartTime = startTime; in Builder()
|
/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
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()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | DnsTest.java | 199 long startTime = SystemClock.elapsedRealtimeNanos(); in skiptestDnsPerf() local 217 float nsPer = ((float)(endTime-startTime) / iterationLimit) / numberOfUrls/ 1000; in skiptestDnsPerf() 219 (endTime - startTime)/1000 + "(" + nsPer + ") with " + in skiptestDnsPerf() 237 long startTime = SystemClock.elapsedRealtimeNanos(); in skiptestDnsPerf() local 260 float nsPer = ((endTime-startTime) / iterationLimit) / numberOfAddrs / 1000; in skiptestDnsPerf() 262 (endTime - startTime)/1000 + "(" + nsPer + ") with " + in skiptestDnsPerf()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | Analytics.java | 166 public void setCallStartTime(long startTime) { in setCallStartTime() argument 222 public long startTime; // start time in milliseconds since the epoch. 0 if not yet set. field in Analytics.CallInfoImpl 254 startTime = 0; in CallInfoImpl() 266 this.startTime = other.startTime; in CallInfoImpl() 295 public void setCallStartTime(long startTime) { in setCallStartTime() argument 296 Log.d(TAG, "setting startTime for call " + callId + " to " + startTime); in setCallStartTime() 297 this.startTime = startTime; in setCallStartTime() 407 + " startTime: " + startTime + '\n' in toString() 472 startTime - startTime % ParcelableCallAnalytics.MILLIS_IN_5_MINUTES); in toProto() 475 long callDuration = (endTime == 0 || startTime == 0) ? 0 : endTime - startTime; in toProto()
|
/packages/apps/TV/common/src/com/android/tv/common/support/tvprovider/ |
D | TvContractCompatX.java | 83 long startTime, in buildProgramsUriForChannel() argument 87 .appendQueryParameter(TvContractCompat.PARAM_START_TIME, String.valueOf(startTime)) in buildProgramsUriForChannel() 101 public static Uri buildProgramsUri(long startTime, long endTime) { in buildProgramsUri() argument 104 .appendQueryParameter(TvContractCompat.PARAM_START_TIME, String.valueOf(startTime)) in buildProgramsUri()
|