Home
last modified time | relevance | path

Searched refs:mElements (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/util/
DConcurrentSharedRingBuffer.java167 private TreeMap<Long, Pinnable<E>> mElements; field in ConcurrentSharedRingBuffer
189 mElements = new TreeMap<Long, Pinnable<E>>(); in ConcurrentSharedRingBuffer()
237 existingElement = mElements.get(newKey); in swapLeast()
256 mElements.put(newKey, p); in swapLeast()
304 mElements.remove(toSwapEntry.first); in swapLeast()
315 mElements.put(newKey, toSwap); in swapLeast()
342 if (mElements.isEmpty()) { in tryPin()
346 entry = mElements.get(key); in tryPin()
384 Pinnable<E> element = mElements.get(key); in release()
428 if (mElements.isEmpty()) { in tryPinGreatest()
[all …]
/packages/services/Car/service/src/com/android/car/
DSlidingWindow.java29 private final ArrayDeque<T> mElements; field in SlidingWindow
34 mElements = new ArrayDeque<>(mMaxSize); in SlidingWindow()
38 if (mElements.size() == mMaxSize) { in add()
39 mElements.removeFirst(); in add()
41 mElements.addLast(sample); in add()
50 return mElements.iterator(); in iterator()
54 return mElements.stream(); in stream()
58 return mElements.size(); in size()
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
DDiagnosticEventBuilder.java40 private final SparseArray<T> mElements = new SparseArray<>(); field in DiagnosticEventBuilder.DefaultedArray
58 mElements.put(index, element); in set()
64 return mElements.get(index, mDefaultValue); in get()
72 mElements.clear(); in clear()