Home
last modified time | relevance | path

Searched refs:mHistory (Results 1 – 5 of 5) 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()
251 mHistory.clear(); in parseHistoryFromCursor()
[all …]
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsTetheringUtils.java93 private final ArrayTrackRecord<CallbackValue>.ReadHead mHistory =
98 mHistory.add(new CallbackValue.OnTetheringStarted()); in onTetheringStarted()
103 mHistory.add(new CallbackValue.OnTetheringFailed(error)); in onTetheringFailed()
107 final CallbackValue cv = mHistory.poll(TIMEOUT_MS, c -> true); in verifyTetheringStarted()
114 final CallbackValue cv = mHistory.poll(TIMEOUT_MS, c -> true); in expectTetheringFailed()
182 private final ArrayTrackRecord<CallbackValue> mHistory = field in CtsTetheringUtils.TestTetheringEventCallback
186 mHistory.newReadHead();
196 mHistory.add(new CallbackValue(CallbackType.ON_SUPPORTED, null, (supported ? 1 : 0))); in onTetheringSupported()
201 mHistory.add(new CallbackValue(CallbackType.ON_UPSTREAM, network, 0)); in onUpstreamChanged()
207 mHistory.add(new CallbackValue(CallbackType.ON_TETHERABLE_REGEX, reg, 0)); in onTetherableInterfaceRegexpsChanged()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityDiagnosticsManagerTest.java470 private final ArrayTrackRecord<Object>.ReadHead mHistory =
475 mHistory.add(report); in onConnectivityReportAvailable()
480 mHistory.add(report); in onDataStallSuspected()
485 mHistory.add(new Pair<Network, Boolean>(network, hasConnectivity)); in onNetworkConnectivityReported()
503 (ConnectivityReport) mHistory.poll(CALLBACK_TIMEOUT_MILLIS, x -> true); in maybeVerifyOnConnectivityReportAvailable()
546 (DataStallReport) mHistory.poll(CALLBACK_TIMEOUT_MILLIS, x -> true); in expectOnDataStallSuspected()
563 (Pair<Network, Boolean>) mHistory.poll(CALLBACK_TIMEOUT_MILLIS, x -> true); in expectOnNetworkConnectivityReported()
571 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/
DConnectivityServiceTest.java12982 final ArrayTrackRecord<OnComplete>.ReadHead mHistory =
12987 mHistory.add(new OnComplete()); in run()
12991 assertNotNull(mHistory.poll(TIMEOUT_MS, it -> true)); in expectOnComplete()