Home
last modified time | relevance | path

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

12345678

/frameworks/base/core/java/com/android/internal/util/function/pooled/
DPooledLambda.java19 import static com.android.internal.util.function.pooled.PooledLambdaImpl.acquire;
182 return acquire(PooledLambdaImpl.sPool, in obtainRunnable()
199 return acquire(PooledLambdaImpl.sPool, in obtainSupplier()
216 return acquire(PooledLambdaImpl.sPool, in obtainSupplier()
247 PooledRunnable callback = acquire(PooledLambdaImpl.sMessageCallbacksPool, in obtainMessage()
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()
[all …]
/frameworks/layoutlib/bridge/tests/src/android/util/imagepool/
DImagePoolImplTest.java55 Image img1 = pool.acquire(width, height, type, in testImageDispose()
98 Image img1 = pool.acquire(width, height, type, in testImageDisposedAndRecycled()
116 Image img2 = pool.acquire(width - variant, height - variant, type, in testImageDisposedAndRecycled()
143 Image image1 = pool.acquire(width, height, BufferedImage.TYPE_INT_ARGB, in testBufferedImageReleased()
159 getImg(pool.acquire(width, height, BufferedImage.TYPE_INT_ARGB))); in testBufferedImageReleased()
171 ImageImpl image = (ImageImpl) pool.acquire(width, height, BufferedImage.TYPE_INT_ARGB); in testPoolWidthHeightNotBigEnough()
185 ImageImpl image = (ImageImpl) pool.acquire(width, height, BufferedImage.TYPE_INT_ARGB); in testSizeNotBigEnough()
206 Image img1 = pool.acquire(width, height, type, bufferedImage -> cd1.countDown()); in testImageMultipleCopies()
209 Image img2 = pool.acquire(width, height, type); in testImageMultipleCopies()
220 Image img3 = pool.acquire(width, height, type); in testImageMultipleCopies()
[all …]
/frameworks/native/libs/ui/tests/
DBufferHubBuffer_test.cpp269 ASSERT_EQ(b2->acquire(), 0); in TEST_F()
326 ASSERT_EQ(b2->acquire(), 0); in TEST_F()
348 EXPECT_EQ(b2->acquire(), 0); in TEST_F()
358 EXPECT_EQ(b1->acquire(), -EBUSY); in TEST_F()
364 ASSERT_EQ(b2->acquire(), 0); in TEST_F()
369 EXPECT_EQ(b2->acquire(), 0); in TEST_F()
376 EXPECT_EQ(b1->acquire(), -EBUSY); in TEST_F()
377 EXPECT_EQ(b2->acquire(), -EBUSY); in TEST_F()
385 EXPECT_EQ(b1->acquire(), -EBUSY); in TEST_F()
386 EXPECT_EQ(b2->acquire(), -EBUSY); in TEST_F()
[all …]
/frameworks/base/core/java/android/util/
DPools.java58 public T acquire(); in acquire() method
105 public T acquire() { in acquire() method in Pools.SimplePool
169 public T acquire() { in acquire() method in Pools.SynchronizedPool
171 return super.acquire(); in acquire()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipWakeLock.java42 synchronized void acquire(long timeout) { in acquire() method in SipWakeLock
48 mTimerWakeLock.acquire(timeout); in acquire()
51 synchronized void acquire(Object holder) { in acquire() method in SipWakeLock
57 if (!mWakeLock.isHeld()) mWakeLock.acquire(); in acquire()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
DWakeLock.java42 void acquire(String why); in acquire() method
71 w.acquire(REASON_WRAP); in wrapImpl()
93 public void acquire(String why) {
96 inner.acquire(maxTimeout);
DDelayedWakeLock.java38 public void acquire(String why) { in acquire() method in DelayedWakeLock
39 mInner.acquire(why); in acquire()
DSettableWakeLock.java42 mInner.acquire(mWhy); in setAcquired()
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java146 wl.acquire(); in doTestWakeLock()
153 wl.acquire(); in doTestWakeLock()
155 wl.acquire(); in doTestWakeLock()
164 wl.acquire(); in doTestWakeLock()
166 wl.acquire(); in doTestWakeLock()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DPowerTest.java72 mProx.acquire();
87 mProx.acquire();
99 mProx.acquire();
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/
DWakeLockFake.java26 public void acquire(String why) { in acquire() method in WakeLockFake
38 acquire(WakeLockFake.class.getSimpleName()); in wrap()
DWakeLockTest.java61 mWakeLock.acquire(WHY); in wakeLock_acquire()
67 mWakeLock.acquire(WHY); in wakeLock_release()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDevicePlayback.java191 getWakeLock().acquire(); in setIsActiveSource()
208 public void acquire() { } in getWakeLock()
372 void acquire(); in acquire() method
385 public void acquire() { in acquire() method in HdmiCecLocalDevicePlayback.SystemWakeLock
386 mWakeLock.acquire(); in acquire()
/frameworks/layoutlib/bridge/src/android/util/imagepool/
DImagePoolImpl.java54 public Image acquire(int w, int h, int type) { in acquire() method in ImagePoolImpl
55 return acquire(w, h, type, null); in acquire()
58 /* package private */ Image acquire(int w, int h, int type, in acquire() method in ImagePoolImpl
/frameworks/minikin/libs/minikin/
DWordBreaker.h59 virtual Slot acquire(const Locale& locale) = 0;
67 Slot acquire(const Locale& locale) override;
/frameworks/base/services/core/java/com/android/server/utils/
DUserTokenWatcher.java65 public void acquire(IBinder token, String tag, @UserIdInt int userId) { in acquire() method in UserTokenWatcher
72 watcher.acquire(token, tag); in acquire()
/frameworks/av/camera/include/camera/
DCameraMetadata.h92 void acquire(camera_metadata_t* buffer);
98 void acquire(CameraMetadata &other);
/frameworks/base/services/core/java/com/android/server/power/
DScreenOnBlocker.java31 void acquire(); in acquire() method
DSuspendBlocker.java35 void acquire(); in acquire() method
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridgeRenderSession.java96 mLastResult = mSession.acquire(timeout); in measure()
115 mLastResult = mSession.acquire(timeout); in render()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DWakeLockStateMachine.java82 mWakeLock.acquire(); in WakeLockStateMachine()
157 mWakeLock.acquire(); in exit()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DProgressTransformState.java38 ProgressTransformState instance = sInstancePool.acquire(); in obtain()
/frameworks/minikin/tests/unittest/
DWordBreakerTests.cpp570 ICULineBreakerPool::Slot enUSBreaker = pool.acquire(enUS); in TEST()
571 ICULineBreakerPool::Slot enUSBreaker2 = pool.acquire(enUS); in TEST()
572 ICULineBreakerPool::Slot frFRBreaker = pool.acquire(frFR); in TEST()
594 ICULineBreakerPool::Slot enUSBreaker = pool.acquire(enUS); in TEST()
603 ICULineBreakerPool::Slot frFRBreaker = pool.acquire(frFR); in TEST()
608 ICULineBreakerPool::Slot enUSBreaker2 = pool.acquire(enUS); in TEST()
623 slots[i] = pool.acquire(enUS); in TEST()
/frameworks/base/core/java/android/os/
DSharedMemory.java229 Runnable unmapper = new Unmapper(address, length, mMemoryRegistration.acquire()); in map()
349 public synchronized MemoryRegistration acquire() { in acquire() method in SharedMemory.MemoryRegistration
/frameworks/native/opengl/libagl/
DTokenManager.cpp39 *tokens++ = mTokenizer.acquire(); in getToken()

12345678