Searched refs:lock (Results 1 - 25 of 434) sorted by relevance

1234567891011>>

/frameworks/native/services/surfaceflinger/
H A DBarrier.h36 Mutex::Autolock _l(lock);
43 Mutex::Autolock _l(lock);
51 Mutex::Autolock _l(lock);
53 cv.wait(lock);
58 mutable Mutex lock; member in class:android::Barrier
H A DEventControlThread.cpp44 std::lock_guard<std::mutex> lock(mMutex);
52 std::lock_guard<std::mutex> lock(mMutex);
65 std::unique_lock<std::mutex> lock(mMutex);
66 mCondition.wait(lock, [this, currentVsyncEnabled, keepRunning]() NO_THREAD_SAFETY_ANALYSIS {
/frameworks/base/services/core/java/com/android/server/
H A DLockGuard.java31 * LockGuard is a mechanism to help detect lock inversions inside the system
32 * server. It works by requiring each lock acquisition site to follow this
36 * synchronized (LockGuard.guard(lock)) {
48 * {@code ActivityManager} lock while holding the {@code PackageManager} lock,
58 * <li>A guarded synchronized block takes 460ns per lock checked when enabled.
69 * should never be acquired while holding a lock of a lower index.
85 /** Friendly label to describe this lock */
88 /** Child locks that can be acquired while this lock is already held */
95 private static LockInfo findOrCreateLockInfo(Object lock) { argument
111 guard(Object lock) argument
165 doLog(@ullable Object lock, String message) argument
181 installLock(Object lock, String label) argument
190 installLock(Object lock, int index) argument
197 installLock(Object lock, int index, boolean doWtf) argument
215 lockToString(Object lock) argument
[all...]
/frameworks/base/tests/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
H A DWakeUpCall.java35 Object lock = WakeUpController.getController().getWakeSync();
36 synchronized (lock) {
37 // poke the lock so the service side can be woken from waiting on the lock
38 lock.notifyAll();
/frameworks/av/include/private/media/
H A DAudioEffectShared.h37 Mutex lock; member in struct:android::effect_param_cblk_t
43 : lock(Mutex::SHARED), clientIndex(0), serverIndex(0) {}
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DCaptureCollector.java322 final ReentrantLock lock = this.mLock;
323 lock.lock();
361 lock.unlock();
375 final ReentrantLock lock = this.mLock;
376 lock.lock();
386 lock.unlock();
400 final ReentrantLock lock = this.mLock;
401 lock
[all...]
/frameworks/base/libs/hwui/renderthread/
H A DRenderTask.cpp28 mLock->lock();
/frameworks/native/cmds/surfacereplayer/replayer/
H A DEvent.cpp36 std::unique_lock<std::mutex> lock(mLock);
37 mCond.wait(lock, [this, state] { return (mState == state); });
41 std::unique_lock<std::mutex> lock(mLock);
43 lock.unlock();
H A DBufferQueueScheduler.cpp31 std::unique_lock<std::mutex> lock(mMutex);
33 mCondition.wait(lock, [&] { return (mSurfaceControl != nullptr); });
43 lock.unlock();
48 lock.lock();
51 mCondition.wait(lock);
56 std::lock_guard<std::mutex> lock(mMutex);
62 std::lock_guard<std::mutex> lock(mMutex);
69 std::lock_guard<std::mutex> lock(mMutex);
84 status_t status = s->lock(
[all...]
/frameworks/native/libs/gui/tests/
H A DDisconnectWaiter.h40 Mutex::Autolock lock(mMutex);
48 Mutex::Autolock lock(mMutex);
54 Mutex::Autolock lock(mMutex);
63 Mutex::Autolock lock(mMutex);
H A DFrameWaiter.h31 Mutex::Autolock lock(mMutex);
39 Mutex::Autolock lock(mMutex);
/frameworks/opt/net/ims/tests/src/com/android/ims/
H A DImsTestBase.java53 final CountDownLatch lock = new CountDownLatch(1);
54 h.postDelayed(lock::countDown, delayMs);
55 while (lock.getCount() > 0) {
57 lock.await(timeoutMillis, TimeUnit.MILLISECONDS);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
H A DImsTestBase.java53 final CountDownLatch lock = new CountDownLatch(1);
54 h.postDelayed(lock::countDown, delayMs);
55 while (lock.getCount() > 0) {
57 lock.await(timeoutMillis, TimeUnit.MILLISECONDS);
/frameworks/rs/
H A DrsMutex.h32 bool lock();
/frameworks/av/drm/libdrmframework/plugins/common/util/include/
H A DSessionMap.h37 Mutex::Autolock lock(mLock);
51 Mutex::Autolock lock(mLock);
67 Mutex::Autolock lock(mLock);
77 Mutex::Autolock lock(mLock);
90 Mutex::Autolock lock(mLock);
105 Mutex::Autolock lock(mLock);
118 Mutex::Autolock lock(mLock);
123 Mutex::Autolock lock(mLock);
/frameworks/av/media/utils/
H A DSchedulingPolicyService.cpp36 sMutex.lock();
46 sMutex.lock();
55 sMutex.lock();
65 sMutex.lock();
74 sMutex.lock();
83 sMutex.lock();
/frameworks/base/core/java/android/os/
H A DIPowerManager.aidl32 void acquireWakeLock(IBinder lock, int flags, String tag, String packageName, in WorkSource ws,
34 void acquireWakeLockWithUid(IBinder lock, int flags, String tag, String packageName,
36 void releaseWakeLock(IBinder lock, int flags);
37 void updateWakeLockUids(IBinder lock, in int[] uids);
40 void updateWakeLockWorkSource(IBinder lock, in WorkSource ws, String historyTag);
/frameworks/base/media/java/android/media/
H A DMiniThumbFile.java157 FileLock lock = null;
162 lock = mChannel.lock(pos, 1 + 8, true);
179 if (lock != null) lock.release();
193 FileLock lock = null;
198 lock = mChannel.lock(pos, BYTES_PER_MINTHUMB, false);
226 if (lock != null) lock
[all...]
/frameworks/base/telecomm/java/android/telecom/Logging/
H A DRunnable.java52 * @param lock The synchronization lock that will be used to lock loggedRun().
54 public Runnable(String subsessionName, Object lock) { argument
55 if (lock == null) {
58 mLock = lock;
/frameworks/support/lifecycle/integration-tests/testapp/src/main/java/androidx/lifecycle/testapp/
H A DNonSupportActivity.java48 mLock.lock();
60 mLock.lock();
74 mLock.lock();
/frameworks/ml/nn/runtime/
H A DCallbacks.cpp41 std::unique_lock<std::mutex> lock(mMutex);
42 mCondition.wait(lock, [this]{return mNotified;});
47 std::lock_guard<std::mutex> lock(mMutex);
62 std::lock_guard<std::mutex> lock(mMutex);
77 std::lock_guard<std::mutex> lock(mMutex);
83 std::lock_guard<std::mutex> lock(mMutex);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiLockManager.java44 // some wifi lock statistics
60 * This method verifies that the caller has permission to make the call and that the lock mode
67 * @return true if the lock was successfully acquired, false if the lockMode was invalid.
84 * Method used by applications to release a WiFi Wake lock. This method checks permissions for
88 * @return true if the lock was released, false if the caller did not hold any locks
96 * Method used to get the strongest lock type currently held by the WifiLockManager.
100 * @return int representing the currently held (highest power consumption) lock.
123 for (WifiLock lock : mWifiLocks) {
124 mergedWS.add(lock.getWorkSource());
140 // Now check if there is an active lock
183 addLock(WifiLock lock) argument
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DMediaRecorderClient.cpp58 Mutex::Autolock lock(mLock);
69 Mutex::Autolock lock(mLock);
83 Mutex::Autolock lock(mLock);
94 Mutex::Autolock lock(mLock);
109 Mutex::Autolock lock(mLock);
123 Mutex::Autolock lock(mLock);
134 Mutex::Autolock lock(mLock);
145 Mutex::Autolock lock(mLock);
156 Mutex::Autolock lock(mLock);
167 Mutex::Autolock lock(mLoc
[all...]
/frameworks/av/drm/mediadrm/plugins/clearkey/default/
H A DSessionLibrary.cpp36 Mutex::Autolock lock(sSingletonLock);
47 Mutex::Autolock lock(mSessionsLock);
62 Mutex::Autolock lock(mSessionsLock);
70 Mutex::Autolock lock(mSessionsLock);\
/frameworks/compile/libbcc/lib/
H A DFileMutex.h31 : FileBase(pFileToLock + ".lock", O_RDONLY | O_CREAT, kDeleteOnClose) { }
33 // Provide a lock() interface filled with default configuration.
35 return FileBase::lock(FileBase::kWriteLock, true, FileBase::kDefaultMaxRetryLock,

Completed in 184 milliseconds

1234567891011>>