Home
last modified time | relevance | path

Searched refs:history (Results 1 – 25 of 46) sorted by relevance

12

/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsCollectionTest.java312 NetworkStatsHistory history; in testAugmentPlan() local
315 history = getHistory(emptyCollection, plan, TIME_A, TIME_C); in testAugmentPlan()
316 assertEquals(0L, history.getTotalBytes()); in testAugmentPlan()
319 history = getHistory(collection, plan, TIME_A, TIME_C); i = 0; in testAugmentPlan()
320 assertEntry(100647, 197, 23649, 185, history.getValues(i++, null)); in testAugmentPlan()
321 assertEntry(100647, 196, 23648, 185, history.getValues(i++, null)); in testAugmentPlan()
322 assertEntry(18323, 76, 15032, 76, history.getValues(i++, null)); in testAugmentPlan()
323 assertEntry(18322, 75, 15031, 75, history.getValues(i++, null)); in testAugmentPlan()
324 assertEntry(527798, 761, 78570, 652, history.getValues(i++, null)); in testAugmentPlan()
325 assertEntry(527797, 760, 78570, 651, history.getValues(i++, null)); in testAugmentPlan()
[all …]
DNetworkStatsServiceTest.java478 NetworkStatsHistory history = null;
501 history = mSession.getHistoryForNetwork(sTemplateWifi, FIELD_ALL);
502 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, 512L, 4L, 512L, 4L, 0);
503 assertEquals(HOUR_IN_MILLIS, history.getBucketDuration());
504 assertEquals(2, history.size());
515 history = mSession.getHistoryForNetwork(sTemplateWifi, FIELD_ALL);
516 assertValues(history, Long.MIN_VALUE, Long.MAX_VALUE, 512L, 4L, 512L, 4L, 0);
517 assertEquals(30 * MINUTE_IN_MILLIS, history.getBucketDuration());
518 assertEquals(4, history.size());
1616 final NetworkStatsHistory history = mSession.getHistoryForNetwork(template, FIELD_ALL);
[all …]
/packages/services/Car/cpp/evs/manager/1.1/stats/
DStatsCollector.cpp163 if (info->records[id].history.size() > info->maxCacheSize) { in collectLocked()
164 info->records[id].history.pop_front(); in collectLocked()
169 info->records[id].history.emplace_back(delta); in collectLocked()
345 kSingleIndent, records.history.size(), in stopCustomCollection()
347 auto it = records.history.rbegin(); in stopCustomCollection()
348 while (it != records.history.rend()) { in stopCustomCollection()
362 kSingleIndent, it->second.history.size(), in stopCustomCollection()
364 auto recordIter = it->second.history.rbegin(); in stopCustomCollection()
365 while (recordIter != it->second.history.rend()) { in stopCustomCollection()
449 indent, records.history.size(), in toString()
[all …]
DCameraUsageStats.cpp65 it->second.history.emplace(roundtrip); in updateFrameStatsOnReturn()
67 if (it->second.history.size() > kMaxHistoryLength) { in updateFrameStatsOnReturn()
68 it->second.sum -= it->second.history.front(); in updateFrameStatsOnReturn()
69 it->second.history.pop(); in updateFrameStatsOnReturn()
166 len += rec.history.size(); in snapshot()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkAgentTest.kt230 private val history = ArrayTrackRecord<CallbackEntry>().newReadHead() in disconnect() constant
260 history.add(OnBandwidthUpdateRequested) in disconnect()
264 history.add(OnNetworkUnwanted) in disconnect()
268 history.add(OnAddKeepalivePacketFilter(slot, packet)) in disconnect()
272 history.add(OnRemoveKeepalivePacketFilter(slot)) in disconnect()
280 history.add(OnStartSocketKeepalive(slot, interval.seconds.toInt(), packet)) in disconnect()
284 history.add(OnStopSocketKeepalive(slot)) in disconnect()
288 history.add(OnSaveAcceptUnvalidated(accept)) in disconnect()
292 history.add(OnAutomaticReconnectDisabled) in disconnect()
296 history.add(OnSignalStrengthThresholdsUpdated(thresholds)) in disconnect()
[all …]
/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/main/java/com/android/car/ui/
DRotaryCache.java161 FocusAreaHistory history = get(direction); in get() local
162 return isValidHistory(history, elapsedRealtime) ? history.mFocusArea : null; in get()
165 boolean isValidHistory(@Nullable FocusAreaHistory history, long elapsedRealtime) { in isValidHistory() argument
166 if (history == null) { in isValidHistory()
173 return elapsedRealtime - history.mTimestamp < mExpirationPeriodMs; in isValidHistory()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsHistoryTest.java86 final NetworkStatsHistory history = new NetworkStatsHistory(in); in testReadOriginalVersion() local
87 assertEquals(15 * SECOND_IN_MILLIS, history.getBucketDuration()); in testReadOriginalVersion()
89 entry = history.getValues(0, entry); in testReadOriginalVersion()
93 entry = history.getValues(history.size() - 1, entry); in testReadOriginalVersion()
97 entry = history.getValues(Long.MIN_VALUE, Long.MAX_VALUE, entry); in testReadOriginalVersion()
370 final NetworkStatsHistory history = new NetworkStatsHistory( in testIgnoreFields() local
373 history.recordData(0, MINUTE_IN_MILLIS, in testIgnoreFields()
375 history.recordData(0, 2 * MINUTE_IN_MILLIS, in testIgnoreFields()
378 assertFullValues(history, UNKNOWN, 1026L, UNKNOWN, 2050L, UNKNOWN, UNKNOWN); in testIgnoreFields()
/packages/apps/Settings/src/com/android/settings/notification/history/
DHistoryLoader.java17 package com.android.settings.notification.history;
52 NotificationHistory history = in load() local
55 while (history.hasNextNotification()) { in load()
56 HistoricalNotification hn = history.getNextNotification(); in load()
DNotificationHistoryViewHolder.java17 package com.android.settings.notification.history;
DNotificationHistoryPackage.java17 package com.android.settings.notification.history;
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DSearchFragment.java194 final String history = getItem(position); in getView() local
198 text.setText(history); in getView()
200 mSearchViewManager.removeHistory(history); in getView()
201 mHistoryList.remove(history); in getView()
205 getContext().getString(R.string.delete_search_history, history)); in getView()
DSearchHistoryManager.java127 for (String history : mHistory) { in getHistoryList()
128 if (history.contains(keyword)) { in getHistoryList()
129 filterKeyword.add(history); in getHistoryList()
DSearchViewManager.java607 public void removeHistory(String history) {
614 mSearchView.getContext().getApplicationContext()).deleteHistory(history);
/packages/apps/Dialer/java/com/android/dialer/historyitemactions/
Dhistory_item_bottom_sheet_header_info.proto12 // Contains information necessary to construct the header for a history item's
15 // A history item is one that is displayed in the call log or the voicemail
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsTetheringUtils.java319 final ArrayTrackRecord<CallbackValue>.ReadHead history = in expectCallbackStarted()
328 final CallbackValue cv = history.poll(TIMEOUT_MS, c -> true); in expectCallbackStarted()
377 final ArrayTrackRecord<CallbackValue>.ReadHead history = in assumeTetheringSupported()
379 assertNotNull("No onSupported callback", history.poll(TIMEOUT_MS, (cv) -> { in assumeTetheringSupported()
/packages/apps/Dialer/java/com/android/contacts/common/dialog/
DCallSubjectDialog.java389 private void saveSubjectHistory(List<String> history) { in saveSubjectHistory() argument
391 while (history.size() > CALL_SUBJECT_HISTORY_SIZE) { in saveSubjectHistory()
392 history.remove(0); in saveSubjectHistory()
397 for (String subject : history) { in saveSubjectHistory()
/packages/apps/Contacts/src/com/android/contacts/dialog/
DCallSubjectDialog.java448 private void saveSubjectHistory(List<String> history) { in saveSubjectHistory() argument
450 while (history.size() > CALL_SUBJECT_HISTORY_SIZE) { in saveSubjectHistory()
451 history.remove(0); in saveSubjectHistory()
456 for (String subject : history) { in saveSubjectHistory()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DSearchBot.java82 UiObject history = findSearchHistoryView(); in clickSearchHistory() local
84 mDevice.findObject(history.getSelector().childSelector(historyItemSelector)).click(); in clickSearchHistory()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiScoreReport.java803 LinkedList<String> history; in dump() local
805 history = new LinkedList<>(mLinkMetricsHistory); in dump()
810 for (String line : history) { in dump()
813 history.clear(); in dump()
/packages/apps/TV/src/com/android/tv/recommendation/
DRecommendationDataManager.java333 List<WatchedProgram> history = new ArrayList<>(); in onLoadWatchHistory() local
340 history.add(createWatchedProgramFromWatchedProgramCursor(cursor)); in onLoadWatchHistory()
347 for (WatchedProgram watchedProgram : history) { in onLoadWatchHistory()
/packages/apps/Dialer/java/com/android/dialer/logging/
Ddialer_impression.proto453 1197; // Including call history
455 IMS_VIDEO_REQUESTED_FROM_CALL_LOG = 1199; // Including call history
579 1282; // Including call history
603 // User reports a same prefix call as spam from call history
608 // User reports a same prefix call as not spam from call history
Dui_action.proto40 // In call history, starting from 400
/packages/modules/StatsD/statsd/src/guardrail/
DStatsdStats.cpp266 int64_t history = getElapsedRealtimeNs() - oldestEventTimestampNs; in noteEventQueueOverflow() local
268 if (history > mMaxQueueHistoryNs) { in noteEventQueueOverflow()
269 mMaxQueueHistoryNs = history; in noteEventQueueOverflow()
272 if (history < mMinQueueHistoryNs) { in noteEventQueueOverflow()
273 mMinQueueHistoryNs = history; in noteEventQueueOverflow()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/history/
DHistoryItem.java17 package com.android.gallery3d.filtershow.history;
/packages/apps/Dialer/java/com/android/dialer/rtt/
Drtt_transcript.proto9 // RTT transcript which contains chat history of a RTT call.

12