Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DExpandableListPosition.java31 private static ArrayList<ExpandableListPosition> sPool = field in ExpandableListPosition
117 synchronized (sPool) { in getRecycledOrCreate()
118 if (sPool.size() > 0) { in getRecycledOrCreate()
119 elp = sPool.remove(0); in getRecycledOrCreate()
133 synchronized (sPool) { in recycle()
134 if (sPool.size() < MAX_POOL_SIZE) { in recycle()
135 sPool.add(this); in recycle()
DExpandableListConnector.java957 private static ArrayList<PositionMetadata> sPool = field in ExpandableListConnector.PositionMetadata
1005 synchronized (sPool) { in getRecycledOrCreate()
1006 if (sPool.size() > 0) { in getRecycledOrCreate()
1007 pm = sPool.remove(0); in getRecycledOrCreate()
1018 synchronized (sPool) { in recycle()
1019 if (sPool.size() < MAX_POOL_SIZE) { in recycle()
1020 sPool.add(this); in recycle()
DProgressBar.java1286 private static final SynchronizedPool<RefreshData> sPool = field in ProgressBar.RefreshData
1295 RefreshData rd = sPool.acquire(); in obtain()
1307 sPool.release(this); in recycle()
DRelativeLayout.java1868 private static final SynchronizedPool<Node> sPool = field in DependencyGraph.Node
1872 Node node = sPool.acquire(); in acquire()
1885 sPool.release(this); in release()
/frameworks/base/core/java/com/android/internal/os/
DSomeArgs.java30 private static SomeArgs sPool; field in SomeArgs
65 SomeArgs args = sPool; in obtain()
66 sPool = sPool.mNext; in obtain()
97 mNext = sPool; in recycle()
99 sPool = this; in recycle()
/frameworks/base/core/java/com/android/internal/statusbar/
DNotificationVisibility.java30 private static ArrayDeque<NotificationVisibility> sPool = new ArrayDeque<>(MAX_POOL_SIZE); field in NotificationVisibility
116 synchronized (sPool) { in obtain()
117 if (!sPool.isEmpty()) { in obtain()
118 return sPool.poll(); in obtain()
137 if (sPool.size() < MAX_POOL_SIZE) { in recycle()
138 synchronized (sPool) { in recycle()
139 sPool.offer(this); in recycle()
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
DMessageThreadUtil.java175 private static SyncQueueItem sPool;
191 if (sPool != null) {
192 next = sPool;
194 sPool = this;
202 if (sPool == null) {
205 item = sPool;
206 sPool = sPool.next;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPlatformVelocityTracker.java29 private static final Pools.SynchronizedPool<PlatformVelocityTracker> sPool = field in PlatformVelocityTracker
35 PlatformVelocityTracker tracker = sPool.acquire(); in obtain()
70 sPool.release(this); in recycle()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityRecord.java75 private static AccessibilityRecord sPool; field in AccessibilityRecord
739 if (sPool != null) { in obtain()
740 AccessibilityRecord record = sPool; in obtain()
741 sPool = sPool.mNext; in obtain()
765 mNext = sPool; in recycle()
766 sPool = this; in recycle()
DAccessibilityNodeInfo.java606 private static final SynchronizedPool<AccessibilityNodeInfo> sPool = field in AccessibilityNodeInfo
2690 AccessibilityNodeInfo info = sPool.acquire(); in obtain()
2717 sPool.release(this); in recycle()
3816 private static final SynchronizedPool<RangeInfo> sPool = field in AccessibilityNodeInfo.RangeInfo
3844 RangeInfo info = sPool.acquire(); in obtain()
3916 sPool.release(this); in recycle()
3951 private static final SynchronizedPool<CollectionInfo> sPool = field in AccessibilityNodeInfo.CollectionInfo
3997 final CollectionInfo info = sPool.acquire(); in obtain()
4071 sPool.release(this); in recycle()
4097 private static final SynchronizedPool<CollectionItemInfo> sPool = field in AccessibilityNodeInfo.CollectionItemInfo
[all …]
DAccessibilityWindowInfo.java82 private static final SynchronizedPool<AccessibilityWindowInfo> sPool = field in AccessibilityWindowInfo
399 AccessibilityWindowInfo info = sPool.acquire(); in obtain()
449 sPool.release(this); in recycle()
DAccessibilityEvent.java750 private static final SynchronizedPool<AccessibilityEvent> sPool = field in AccessibilityEvent
1030 AccessibilityEvent event = sPool.acquire(); in obtain()
1045 sPool.release(this); in recycle()
/frameworks/base/core/java/android/os/
DMessage.java111 private static Message sPool; field in Message
124 if (sPool != null) { in obtain()
125 Message m = sPool; in obtain()
126 sPool = m.next; in obtain()
308 next = sPool; in recycleUnchecked()
309 sPool = this; in recycleUnchecked()
/frameworks/base/core/java/android/view/
DVelocityTracker.java32 private static final SynchronizedPool<VelocityTracker> sPool = field in VelocityTracker
58 VelocityTracker instance = sPool.acquire(); in obtain()
85 sPool.release(this); in recycle()
DMagnificationSpec.java30 private static final SynchronizedPool<MagnificationSpec> sPool = field in MagnificationSpec
74 MagnificationSpec spec = sPool.acquire(); in obtain()
80 sPool.release(this); in recycle()
DDisplayListCanvas.java42 private static final SynchronizedPool<DisplayListCanvas> sPool = field in DisplayListCanvas
51 DisplayListCanvas canvas = sPool.acquire(); in obtain()
65 sPool.release(this); in recycle()
DWindowInfo.java37 private static final Pools.SynchronizedPool<WindowInfo> sPool = field in WindowInfo
55 WindowInfo window = sPool.acquire(); in obtain()
86 sPool.release(this); in recycle()
DViewGroup.java7735 private static final SynchronizedPool<ChildListForAccessibility> sPool = field in ViewGroup.ChildListForAccessibility
7743 ChildListForAccessibility list = sPool.acquire(); in obtain()
7753 sPool.release(this); in recycle()
7824 private static final SynchronizedPool<ViewLocationHolder> sPool = field in ViewGroup.ViewLocationHolder
7840 ViewLocationHolder holder = sPool.acquire(); in obtain()
7854 sPool.release(this); in recycle()
DView.java22636 private static final SynchronizedPool<InvalidateInfo> sPool = field in AttachInfo.InvalidateInfo
22647 InvalidateInfo instance = sPool.acquire(); in obtain()
22653 sPool.release(this); in recycle()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DViewInfoStore.java309 static Pools.Pool<InfoRecord> sPool = new Pools.SimplePool<>(20); field in ViewInfoStore.InfoRecord
315 InfoRecord record = sPool.acquire(); in obtain()
323 sPool.release(record); in recycle()
328 while (sPool.acquire() != null); in drainCache()
/frameworks/base/graphics/java/android/graphics/
DRegion.java27 private static final SynchronizedPool<Region> sPool = field in Region
308 Region region = sPool.acquire(); in obtain()
332 sPool.release(this); in recycle()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMagnificationGestureHandler.java761 private static MotionEventInfo sPool; field in MagnificationGestureHandler.MotionEventInfo
781 info = sPool; in obtain()
782 sPool = info.mNext; in obtain()
808 mNext = sPool; in recycle()
809 sPool = this; in recycle()
DAccessibilityInputFilter.java472 private static final SimplePool<MotionEventHolder> sPool = field in AccessibilityInputFilter.MotionEventHolder
481 MotionEventHolder holder = sPool.acquire(); in obtain()
496 sPool.release(this); in recycle()
/frameworks/base/core/java/android/text/
DStaticLayout.java76 Builder b = sPool.acquire(); in obtain()
110 sPool.release(b); in recycle()
415 private static final SynchronizedPool<Builder> sPool = new SynchronizedPool<Builder>(3);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRIL.java105 private static RILRequest sPool = null; field in RILRequest
129 if (sPool != null) { in obtain()
130 rr = sPool; in obtain()
131 sPool = rr.mNext; in obtain()
167 mNext = sPool; in release()
168 sPool = this; in release()