Searched refs:acquire (Results 1 - 25 of 65) sorted by relevance

123

/frameworks/base/core/java/android/util/
H A DPool.java23 public abstract T acquire(); method in interface:Pool
H A DSynchronizedPool.java37 public T acquire() { method in class:SynchronizedPool
39 return mPool.acquire();
H A DFinitePool.java37 * Next object to acquire
59 public T acquire() { method in class:FinitePool
/frameworks/base/voip/java/com/android/server/sip/
H A DSipWakeLock.java42 synchronized void acquire(long timeout) { method in class:SipWakeLock
48 mTimerWakeLock.acquire(timeout);
51 synchronized void acquire(Object holder) { method in class:SipWakeLock
57 if (!mWakeLock.isHeld()) mWakeLock.acquire();
58 if (DEBUGV) Log.v(TAG, "acquire wakelock: holder count="
/frameworks/base/core/tests/coretests/src/android/os/
H A DPowerManagerTest.java96 // First try simple acquire/release
97 wl.acquire();
102 // Try ref-counted acquire/release
104 wl.acquire();
106 wl.acquire();
115 wl.acquire();
117 wl.acquire();
/frameworks/base/include/utils/
H A DFileMap.h83 FileMap* acquire(void) { mRefCount++; return this; } function in class:android::FileMap
H A DSharedBuffer.h36 /*! allocate a buffer of size 'size' and acquire() it.
81 //! acquire/release a reference on this buffer
82 void acquire() const;
/frameworks/base/opengl/libagl/
H A DTokenManager.cpp39 *tokens++ = mTokenizer.acquire();
H A DTokenizer.h36 uint32_t acquire();
H A DTokenizer.cpp41 uint32_t Tokenizer::acquire() function in class:android::Tokenizer
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
H A DBridgeRenderSession.java87 mLastResult = mSession.acquire(timeout);
115 mLastResult = mSession.acquire(RenderParams.DEFAULT_TIMEOUT);
141 mLastResult = mSession.acquire(RenderParams.DEFAULT_TIMEOUT);
162 mLastResult = mSession.acquire(RenderParams.DEFAULT_TIMEOUT);
/frameworks/base/core/java/android/os/
H A DPowerManager.java27 * acquire WakeLocks unless you really need them, use the minimum levels possible, and be sure
40 * wl.acquire();
248 public void acquire() method in class:PowerManager.WakeLock
267 public void acquire(long timeout) { method in class:PowerManager.WakeLock
268 acquire();
370 * {@link WakeLock#acquire() acquire()} on the object to acquire the
380 *wl.acquire();
388 * @see WakeLock#acquire()
[all...]
H A DTokenWatcher.java57 * Record that this token has been acquired. When acquire is called, and
66 public void acquire(IBinder token, String tag) method in class:TokenWatcher
/frameworks/base/core/java/android/bluetooth/
H A DScoSocket.java179 mWakeLock.acquire();
180 if (VDBG) log("mWakeLock.acquire() " + this);
192 mWakeLock.acquire(2000);
H A DHeadsetBase.java282 mWakeLock.acquire();
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteCompiledSql.java117 * returns true if acquire() succeeds. false otherwise.
119 /* package */ synchronized boolean acquire() { method in class:SQLiteCompiledSql
H A DSQLiteProgram.java75 // since it is not in the cache, no need to acquire() it.
88 mCompiledSql.acquire();
96 // try to acquire the object.
97 if (!mCompiledSql.acquire()) {
110 // since it is not in the cache, no need to acquire() it.
/frameworks/base/libs/utils/
H A DSharedBuffer.cpp96 void SharedBuffer::acquire() const { function in class:android::SharedBuffer
/frameworks/base/media/java/android/media/
H A DAsyncPlayer.java232 mWakeLock.acquire();
/frameworks/base/services/java/com/android/server/
H A DHeadsetObserver.java134 mWakeLock.acquire();
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/
H A DBatteryWaster.java151 mPartialWakeLock.acquire();
/frameworks/base/tests/CoreTests/android/core/
H A DSocketTest.java146 semThreadEnd.acquire();
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
H A DPowerTest.java71 mProx.acquire();
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderAction.java43 * {@link #init(long)} and {@link #acquire(long)} to start a rendering and {@link #release()}
53 * The current context being rendered. This is set through {@link #acquire(long)} and
66 * call to {@link RenderAction#acquire(long)}
83 * @see #acquire(long)
87 // acquire the lock. if the result is null, lock was just acquired, otherwise, return
137 public Result acquire(long timeout) { method in class:RenderAction
142 // acquire the lock. if the result is null, lock was just acquired, otherwise, return
162 * @return null if the lock was just acquire or another result depending on the state.
272 * the scene, or if {@link #acquire(long)} was not called.
277 throw new IllegalStateException("scene must be acquired first. see #acquire(lon
[all...]
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiManager.java892 * If this WifiLock is reference-counted, each call to {@code acquire} will increment the
896 * If this WifiLock is not reference-counted, the first call to {@code acquire} will lock
898 * will be required, regardless of the number of times that {@code acquire} is called.
900 public void acquire() { method in class:WifiManager.WifiLock
926 * a greater number of times than {@link #acquire}), an exception is thrown.
929 * the radio was locked using {@link #acquire}) will unlock the radio, and subsequent
953 * Reference-counted WifiLocks keep track of the number of calls to {@link #acquire} and
954 * {@link #release}, and only allow the radio to sleep when every call to {@link #acquire}
956 * lock the radio whenever {@link #acquire} is called and it is unlocked, and unlock the
1113 * {@code acquire} wil
1129 public void acquire() { method in class:WifiManager.MulticastLock
[all...]

Completed in 5386 milliseconds

123