Searched refs:lock (Results 1 - 25 of 281) 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.
63 /** Friendly label to describe this lock */
66 /** Child locks that can be acquired while this lock is already held */
70 private static LockInfo findOrCreateLockInfo(Object lock) { argument
71 LockInfo info = sKnown.get(lock);
86 guard(Object lock) argument
124 installLock(Object lock, String label) argument
129 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
H A DEventControlThread.cpp28 Mutex::Autolock lock(mMutex);
34 Mutex::Autolock lock(mMutex);
/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/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/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/compile/libbcc/include/bcc/Support/
H A DFileMutex.h30 : FileBase(pFileToLock + ".lock", O_RDONLY | O_CREAT, kDeleteOnClose) { }
32 // Provide a lock() interface filled with default configuration.
33 inline bool lock(bool pNonblocking = true, function in class:bcc::FileMutex
37 return FileBase::lock(LockMode, pNonblocking, pMaxRetry, pRetryInterval);
/frameworks/base/core/java/android/os/
H A DIPowerManager.aidl31 void acquireWakeLock(IBinder lock, int flags, String tag, String packageName, in WorkSource ws,
33 void acquireWakeLockWithUid(IBinder lock, int flags, String tag, String packageName,
35 void releaseWakeLock(IBinder lock, int flags);
36 void updateWakeLockUids(IBinder lock, in int[] uids);
39 void updateWakeLockWorkSource(IBinder lock, in WorkSource ws, String historyTag);
/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/media/utils/
H A DSchedulingPolicyService.cpp36 sMutex.lock();
46 sMutex.lock();
55 sMutex.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);
67 Mutex::Autolock lock(mSessionsLock);\
/frameworks/base/media/java/android/media/
H A DMiniThumbFile.java155 FileLock lock = null;
160 lock = mChannel.lock(pos, 1 + 8, true);
177 if (lock != null) lock.release();
193 FileLock lock = null;
207 lock = mChannel.lock(pos, BYTES_PER_MINTHUMB, false);
220 if (lock != null) lock
[all...]
/frameworks/base/libs/common_time/
H A Dcommon_clock.cpp44 Mutex::Autolock lock(&lock_);
69 Mutex::Autolock lock(&lock_);
81 Mutex::Autolock lock(&lock_);
99 Mutex::Autolock lock(&lock_);
107 Mutex::Autolock lock(&lock_);
115 Mutex::Autolock lock(&lock_);
H A Dcommon_clock_service.cpp37 Mutex::Autolock lock(mRegistrationLock);
96 Mutex::Autolock lock(mRegistrationLock);
99 Mutex::Autolock lock(mCallbackLock);
114 Mutex::Autolock lock(mRegistrationLock);
118 Mutex::Autolock lock(mCallbackLock);
134 Mutex::Autolock lock(mRegistrationLock);
137 Mutex::Autolock lock(mCallbackLock);
150 Mutex::Autolock lock(mCallbackLock);
/frameworks/base/services/core/java/com/android/server/job/controllers/
H A DStateController.java38 Object lock) {
41 mLock = lock;
37 StateController(StateChangedListener stateChangedListener, Context context, Object lock) argument
/frameworks/native/services/powermanager/
H A DIPowerManager.cpp38 virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag, argument
44 data.writeStrongBinder(lock);
54 virtual status_t acquireWakeLockWithUid(int flags, const sp<IBinder>& lock, const String16& tag, argument
60 data.writeStrongBinder(lock);
69 virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags, bool isOneWay) argument
73 data.writeStrongBinder(lock);
79 virtual status_t updateWakeLockUids(const sp<IBinder>& lock, int len, const int *uids, argument
83 data.writeStrongBinder(lock);
/frameworks/native/include/powermanager/
H A DIPowerManager.h58 virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag,
60 virtual status_t acquireWakeLockWithUid(int flags, const sp<IBinder>& lock, const String16& tag,
62 virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags, bool isOneWay = false) = 0;
63 virtual status_t updateWakeLockUids(const sp<IBinder>& lock, int len, const int *uids,

Completed in 7111 milliseconds

1234567891011>>