/frameworks/base/services/core/java/com/android/server/ |
H A D | LockGuard.java | 27 * 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 D | Barrier.h | 36 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 D | WakeUpCall.java | 35 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 D | AudioEffectShared.h | 37 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 D | CaptureCollector.java | 322 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 D | RenderTask.cpp | 28 mLock->lock();
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
H A D | Event.cpp | 36 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 D | BufferQueueScheduler.cpp | 31 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 D | DisconnectWaiter.h | 40 Mutex::Autolock lock(mMutex); 48 Mutex::Autolock lock(mMutex); 54 Mutex::Autolock lock(mMutex); 63 Mutex::Autolock lock(mMutex);
|
H A D | FrameWaiter.h | 31 Mutex::Autolock lock(mMutex); 39 Mutex::Autolock lock(mMutex);
|
/frameworks/opt/net/ims/tests/src/com/android/ims/ |
H A D | ImsTestBase.java | 53 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 D | ImsTestBase.java | 53 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 D | rsMutex.h | 32 bool lock();
|
/frameworks/av/drm/libdrmframework/plugins/common/util/include/ |
H A D | SessionMap.h | 37 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 D | IPowerManager.aidl | 32 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 D | SchedulingPolicyService.cpp | 36 sMutex.lock(); 46 sMutex.lock(); 55 sMutex.lock();
|
/frameworks/base/telecomm/java/android/telecom/Logging/ |
H A D | Runnable.java | 52 * @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 D | WifiLockManager.java | 44 // 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 D | Android.mk | 24 frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/ |
H A D | Android.mk | 24 frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common
|
/frameworks/av/drm/mediadrm/plugins/clearkey/ |
H A D | SessionLibrary.cpp | 36 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 D | FileMutex.h | 31 : 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 D | ClearKeySessionLibrary.cpp | 41 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 D | MockSessionLibrary.cpp | 30 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 D | MediaRecorderClient.cpp | 58 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...] |