Home
last modified time | relevance | path

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

12

/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.java1515 private static final SynchronizedPool<RefreshData> sPool = field in ProgressBar.RefreshData
1524 RefreshData rd = sPool.acquire(); in obtain()
1536 sPool.release(this); in recycle()
/frameworks/base/core/java/com/android/internal/os/
DSomeArgs.java32 private static SomeArgs sPool; field in SomeArgs
74 SomeArgs args = sPool; in obtain()
75 sPool = sPool.mNext; in obtain()
107 mNext = sPool; in recycle()
109 sPool = this; in recycle()
/frameworks/base/core/java/com/android/internal/util/function/pooled/
DPooledLambda.java182 return acquire(PooledLambdaImpl.sPool, in obtainRunnable()
199 return acquire(PooledLambdaImpl.sPool, in obtainSupplier()
216 return acquire(PooledLambdaImpl.sPool, in obtainSupplier()
267 return acquire(PooledLambdaImpl.sPool, in obtainRunnable()
285 return acquire(PooledLambdaImpl.sPool, in obtainSupplier()
303 return acquire(PooledLambdaImpl.sPool, in obtainSupplier()
321 return acquire(PooledLambdaImpl.sPool, in obtainConsumer()
339 return acquire(PooledLambdaImpl.sPool, in obtainPredicate()
357 return acquire(PooledLambdaImpl.sPool, in obtainFunction()
375 return acquire(PooledLambdaImpl.sPool, in obtainConsumer()
[all …]
DPooledLambdaImpl.java81 static final Pool sPool = new Pool(new Object()); field in PooledLambdaImpl
161 : PooledLambdaImpl.sPool; in doRecycle()
514 PooledLambdaImpl r = acquire(PooledLambdaImpl.sPool); in acquireConstSupplier()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRILRequest.java43 private static RILRequest sPool = null; field in RILRequest
87 if (sPool != null) { in obtain()
88 rr = sPool; in obtain()
89 sPool = rr.mNext; in obtain()
188 mNext = sPool; in release()
189 sPool = this; in release()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityRecord.java81 private static AccessibilityRecord sPool; field in AccessibilityRecord
809 if (sPool != null) { in obtain()
810 AccessibilityRecord record = sPool; in obtain()
811 sPool = sPool.mNext; in obtain()
835 mNext = sPool; in recycle()
836 sPool = this; in recycle()
DAccessibilityWindowInfo.java97 private static final SynchronizedPool<AccessibilityWindowInfo> sPool = field in AccessibilityWindowInfo
437 AccessibilityWindowInfo info = sPool.acquire(); in obtain()
483 sPool.release(this); in recycle()
DAccessibilityNodeInfo.java715 private static final SynchronizedPool<AccessibilityNodeInfo> sPool = field in AccessibilityNodeInfo
3237 AccessibilityNodeInfo info = sPool.acquire(); in obtain()
3267 sPool.release(this); in recycle()
4566 private static final SynchronizedPool<RangeInfo> sPool = field in AccessibilityNodeInfo.RangeInfo
4596 RangeInfo info = sPool.acquire(); in obtain()
4670 sPool.release(this); in recycle()
4706 private static final SynchronizedPool<CollectionInfo> sPool = field in AccessibilityNodeInfo.CollectionInfo
4752 final CollectionInfo info = sPool.acquire(); in obtain()
4826 sPool.release(this); in recycle()
4853 private static final SynchronizedPool<CollectionItemInfo> sPool = field in AccessibilityNodeInfo.CollectionItemInfo
[all …]
DAccessibilityEvent.java757 private static final SynchronizedPool<AccessibilityEvent> sPool = field in AccessibilityEvent
1134 AccessibilityEvent event = sPool.acquire(); in obtain()
1151 sPool.release(this); in recycle()
/frameworks/base/core/java/android/view/
DVelocityTracker.java33 private static final SynchronizedPool<VelocityTracker> sPool = field in VelocityTracker
59 VelocityTracker instance = sPool.acquire(); in obtain()
87 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()
DWindowInfo.java38 private static final Pools.SynchronizedPool<WindowInfo> sPool = field in WindowInfo
59 WindowInfo window = sPool.acquire(); in obtain()
93 sPool.release(this); in recycle()
/frameworks/base/core/java/android/os/
DMessage.java142 private static Message sPool; field in Message
155 if (sPool != null) { in obtain()
156 Message m = sPool; in obtain()
157 sPool = m.next; in obtain()
342 next = sPool; in recycleUnchecked()
343 sPool = this; in recycleUnchecked()
/frameworks/base/core/java/android/util/
DStatsEvent.java679 private static Buffer sPool; field in StatsEvent.Buffer
688 buffer = null == sPool ? new Buffer() : sPool; in obtain()
689 sPool = null; in obtain()
705 if (null == sPool) { in release()
706 sPool = this; in release()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DKeyboardInterceptor.java152 private static final Pools.SimplePool<KeyEventHolder> sPool = field in KeyboardInterceptor.KeyEventHolder
162 KeyEventHolder holder = sPool.acquire(); in obtain()
179 sPool.release(this); in recycle()
DMagnificationGestureHandler.java991 private static MotionEventInfo sPool; field in MagnificationGestureHandler.MotionEventInfo
1015 info = sPool; in obtainInternal()
1016 sPool = info.mNext; in obtainInternal()
1040 mNext = sPool; in recycle()
1041 sPool = this; in recycle()
/frameworks/base/graphics/java/android/graphics/
DRecordingCanvas.java46 private static final SynchronizedPool<RecordingCanvas> sPool = field in RecordingCanvas
59 RecordingCanvas canvas = sPool.acquire(); in obtain()
75 sPool.release(this); in recycle()
DRegion.java29 private static final SynchronizedPool<Region> sPool = field in Region
317 Region region = sPool.acquire(); in obtain()
343 sPool.release(this); in recycle()
/frameworks/base/core/java/com/android/internal/widget/
DViewInfoStore.java308 static Pools.Pool<InfoRecord> sPool = new Pools.SimplePool<>(20); field in ViewInfoStore.InfoRecord
314 InfoRecord record = sPool.acquire(); in obtain()
322 sPool.release(record); in recycle()
327 while (sPool.acquire() != null); in drainCache()
/frameworks/base/core/java/android/text/
DMeasuredParagraph.java64 private static final SynchronizedPool<MeasuredParagraph> sPool = new SynchronizedPool<>(1); field in MeasuredParagraph
67 final MeasuredParagraph mt = sPool.acquire(); in obtain()
78 sPool.release(this); in recycle()
DDynamicLayout.java69 Builder b = sPool.acquire(); in obtain()
101 sPool.release(b); in recycle()
303 private static final SynchronizedPool<Builder> sPool = new SynchronizedPool<>(3); field in DynamicLayout.Builder
DStaticLayout.java91 Builder b = sPool.acquire(); in obtain()
126 sPool.release(b); in recycle()
444 private static final SynchronizedPool<Builder> sPool = new SynchronizedPool<>(3); field in StaticLayout.Builder
/frameworks/base/core/java/com/android/internal/app/
DSimpleIconFactory.java65 private static final SynchronizedPool<SimpleIconFactory> sPool = field in SimpleIconFactory
90 SimpleIconFactory instance = sPool.acquire(); in obtain()
115 sPool.release(this); in recycle()

12