Home
last modified time | relevance | path

Searched refs:mHistory (Results 1 – 9 of 9) sorted by relevance

/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DSearchHistoryManager.java56 private final List<String> mHistory = Collections.synchronizedList(new ArrayList<>()); field in SearchHistoryManager
127 for (String history : mHistory) { in getHistoryList()
134 return Collections.synchronizedList(new ArrayList<>(mHistory)); in getHistoryList()
145 if (mHistory.remove(keyword)) { in addHistory()
146 mHistory.add(0, keyword); in addHistory()
150 if (mHistory.size() >= mLimitedHistoryCount) { in addHistory()
151 new DatabaseTask(mHistory.remove(mHistory.size() - 1), in addHistory()
158 mHistory.add(0, keyword); in addHistory()
171 if (mHistory.remove(keyword)) { in deleteHistory()
258 mHistory.clear(); in parseHistoryFromCursor()
[all …]
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsTetheringUtils.java100 private final ArrayTrackRecord<CallbackValue>.ReadHead mHistory =
105 mHistory.add(new CallbackValue.OnTetheringStarted()); in onTetheringStarted()
110 mHistory.add(new CallbackValue.OnTetheringFailed(error)); in onTetheringFailed()
114 final CallbackValue cv = mHistory.poll(TIMEOUT_MS, c -> true); in verifyTetheringStarted()
121 final CallbackValue cv = mHistory.poll(TIMEOUT_MS, c -> true); in expectTetheringFailed()
189 private final ArrayTrackRecord<CallbackValue> mHistory = field in CtsTetheringUtils.TestTetheringEventCallback
193 mHistory.newReadHead();
203 mHistory.add(new CallbackValue(CallbackType.ON_SUPPORTED, null, (supported ? 1 : 0))); in onTetheringSupported()
208 mHistory.add(new CallbackValue(CallbackType.ON_UPSTREAM, network, 0)); in onUpstreamChanged()
214 mHistory.add(new CallbackValue(CallbackType.ON_TETHERABLE_REGEX, reg, 0)); in onTetherableInterfaceRegexpsChanged()
[all …]
/packages/modules/Connectivity/framework-t/src/android/app/usage/
DNetworkStats.java93 private NetworkStatsHistory mHistory = null; field in NetworkStats
497 } else if (mHistory != null) { in hasNextBucket()
498 return mEnumerationIndex < mHistory.size() in hasNextBucket()
562 mHistory = null; in startHistoryUidEnumeration()
564 mHistory = mSession.getHistoryIntervalForUid(mTemplate, uid, in startHistoryUidEnumeration()
580 mHistory = mSession.getHistoryIntervalForNetwork( in startHistoryDeviceEnumeration()
584 mHistory = null; in startHistoryDeviceEnumeration()
622 mHistory = null; in stepHistory()
624 mHistory = mSession.getHistoryIntervalForUid(mTemplate, getUid(), in stepHistory()
684 if (bucketOut != null && mHistory != null) { in getNextHistoryBucket()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityDiagnosticsManagerTest.java513 private final ArrayTrackRecord<Object>.ReadHead mHistory =
518 mHistory.add(report); in onConnectivityReportAvailable()
523 mHistory.add(report); in onDataStallSuspected()
528 mHistory.add(new Pair<Network, Boolean>(network, hasConnectivity)); in onNetworkConnectivityReported()
551 (ConnectivityReport) mHistory.poll(CALLBACK_TIMEOUT_MILLIS, x -> true); in maybeVerifyConnectivityReportAvailable()
585 (DataStallReport) mHistory.poll(CALLBACK_TIMEOUT_MILLIS, x -> true); in expectOnDataStallSuspected()
602 (Pair<Network, Boolean>) mHistory.poll(CALLBACK_TIMEOUT_MILLIS, x -> true); in expectOnNetworkConnectivityReported()
610 mHistory.poll(NO_CALLBACK_INVOKED_TIMEOUT, x -> true)); in assertNoCallback()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DPrimaryImage.java100 private HistoryManager mHistory = null; field in PrimaryImage
264 mHistory.addHistoryItem(historyItem); in setPreset()
272 HistoryItem historyItem = mHistory.getItem(position); in onHistoryItemClick()
277 mHistory.setCurrentPreset(position); in onHistoryItemClick()
281 return mHistory; in getHistory()
289 mHistory = adapter; in setHistoryManager()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsSocketProviderTest.java267 private final ArrayTrackRecord<SocketEvent>.ReadHead mHistory =
273 mHistory.add(new SocketCreatedEvent(socketKey, addresses));
278 mHistory.add(new InterfaceDestroyedEvent(socketKey, List.of()));
284 mHistory.add(new AddressesChangedEvent(socketKey, addresses));
288 final SocketEvent event = mHistory.poll(0L /* timeoutMs */, c -> true);
296 final SocketEvent event = mHistory.poll(0L /* timeoutMs */, c -> true);
304 final SocketEvent event = mHistory.poll(0L /* timeoutMs */, c -> true);
312 final SocketEvent event = mHistory.poll(NO_CALLBACK_TIMEOUT, c -> true);
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java1093 private ArrayTrackRecord<CallbackType> mHistory = new ArrayTrackRecord<>(); field in VpnTest.TestSocketKeepaliveCallback
1094 private ArrayTrackRecord<CallbackType>.ReadHead mEvents = mHistory.newReadHead();
1098 mHistory.add(ON_STARTED); in onStarted()
1103 mHistory.add(ON_RESUMED); in onResumed()
1108 mHistory.add(ON_STOPPED); in onStopped()
1113 mHistory.add(ON_PAUSED); in onPaused()
1118 mHistory.add(ON_ERROR); in onError()
1123 mHistory.add(ON_DATA_RECEIVED); in onDataReceived()
/packages/modules/Connectivity/framework-t/hiddenapi/
Dhiddenapi-max-target-o-low-priority-tiramisu.txt32 Landroid/app/usage/NetworkStats;->mHistory:Landroid/net/NetworkStatsHistory;
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java15962 final ArrayTrackRecord<OnComplete>.ReadHead mHistory =
15967 mHistory.add(new OnComplete());
15971 assertNotNull(mHistory.poll(TIMEOUT_MS, it -> true));