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

1234567891011>>

/frameworks/base/services/core/java/com/android/server/
H A DLockGuard.java27 * LockGuard is a mechanism to help detect lock inversions inside the system
28 * server. It works by requiring each lock acquisition site to follow this
32 * synchronized (LockGuard.guard(lock)) {
44 * {@code ActivityManager} lock while holding the {@code PackageManager} lock,
54 * <li>A guarded synchronized block takes 460ns per lock checked when enabled.
67 * should never be acquired while holding a lock of a lower index.
82 /** Friendly label to describe this lock */
85 /** Child locks that can be acquired while this lock is already held */
89 private static LockInfo findOrCreateLockInfo(Object lock) { argument
105 guard(Object lock) argument
158 installLock(Object lock, String label) argument
167 installLock(Object lock, int index) argument
178 lockToString(Object lock) argument
[all...]
/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
/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/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/av/media/utils/
H A DSchedulingPolicyService.cpp36 sMutex.lock();
46 sMutex.lock();
55 sMutex.lock();
/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/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
174 addLock(WifiLock lock) argument
[all...]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
H A DAndroid.mk24 frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
H A DAndroid.mk24 frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common
/frameworks/av/drm/mediadrm/plugins/clearkey/
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,
/frameworks/av/drm/mediacas/plugins/clearkey/
H A DClearKeySessionLibrary.cpp41 Mutex::Autolock lock(sSingletonLock);
57 Mutex::Autolock lock(mSessionsLock);
74 Mutex::Autolock lock(mSessionsLock);
84 Mutex::Autolock lock(mSessionsLock);
96 Mutex::Autolock lock(mSessionsLock);
/frameworks/av/drm/mediacas/plugins/mock/
H A DMockSessionLibrary.cpp30 Mutex::Autolock lock(sSingletonLock);
44 Mutex::Autolock lock(mSessionsLock);
61 Mutex::Autolock lock(mSessionsLock);
71 Mutex::Autolock lock(mSessionsLock);
83 Mutex::Autolock lock(mSessionsLock);
/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...]

Completed in 643 milliseconds

1234567891011>>