Searched defs:lock (Results 1 - 25 of 101) sorted by relevance

12345

/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/rs/
H A DrsMutex.cpp38 bool Mutex::lock() { function in class:android::renderscript::Mutex
/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/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/av/include/media/stagefright/foundation/
H A DMutexed.h62 * data.lock();
91 * Upon creation, the mutex is locked. You can use lock()/unlock() methods to
92 * temporarily lock/unlock the mutex. Using any references to the underlying
97 * unlock() or lock() from different threads; they must be called from the thread
122 // Wait on the condition variable using lock. Must be locked.
134 inline void lock();
156 inline Locked lock() { function in class:android::Mutexed
175 mLock.lock();
194 inline void Mutexed<T>::Locked::lock() { function in class:android::Mutexed::Locked
196 mLock.lock();
[all...]
/frameworks/av/media/libeffects/factory/
H A DEffectsFactory.h52 pthread_mutex_t lock; member in struct:lib_entry_s
/frameworks/av/media/libstagefright/foundation/include/foundation/
H A DMutexed.h62 * data.lock();
91 * Upon creation, the mutex is locked. You can use lock()/unlock() methods to
92 * temporarily lock/unlock the mutex. Using any references to the underlying
97 * unlock() or lock() from different threads; they must be called from the thread
122 // Wait on the condition variable using lock. Must be locked.
134 inline void lock();
156 inline Locked lock() { function in class:android::Mutexed
175 mLock.lock();
194 inline void Mutexed<T>::Locked::lock() { function in class:android::Mutexed::Locked
196 mLock.lock();
[all...]
/frameworks/av/media/libstagefright/include/foundation/
H A DMutexed.h62 * data.lock();
91 * Upon creation, the mutex is locked. You can use lock()/unlock() methods to
92 * temporarily lock/unlock the mutex. Using any references to the underlying
97 * unlock() or lock() from different threads; they must be called from the thread
122 // Wait on the condition variable using lock. Must be locked.
134 inline void lock();
156 inline Locked lock() { function in class:android::Mutexed
175 mLock.lock();
194 inline void Mutexed<T>::Locked::lock() { function in class:android::Mutexed::Locked
196 mLock.lock();
[all...]
/frameworks/base/libs/hwui/
H A DResourceCache.cpp52 void ResourceCache::lock() { function in class:android::uirenderer::ResourceCache
53 mLock.lock();
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DGenerationRegistry.java47 public GenerationRegistry(Object lock) { argument
48 mLock = lock;
/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
H A DConnectivityController.java73 Object lock) {
74 super(stateChangedListener, context, lock);
72 ConnectivityController(StateChangedListener stateChangedListener, Context context, Object lock) argument
H A DDeviceIdleJobsController.java96 Object lock) {
97 super(jobSchedulerService, context, lock);
95 DeviceIdleJobsController(JobSchedulerService jobSchedulerService, Context context, Object lock) argument
H A DIdleController.java60 Object lock) {
61 super(stateChangedListener, context, lock);
59 IdleController(StateChangedListener stateChangedListener, Context context, Object lock) argument
H A DStorageController.java69 Object lock) {
70 super(stateChangedListener, context, lock);
68 StorageController(StateChangedListener stateChangedListener, Context context, Object lock) argument
/frameworks/base/services/core/java/com/android/server/pm/
H A DAbstractStatsBase.java34 * <li>Can lock on the provided data object before writing
50 protected AbstractStatsBase(String fileName, String threadName, boolean lock) { argument
53 mLock = lock;
/frameworks/compile/libbcc/lib/
H A DFileBase.cpp131 bool FileBase::lock(enum LockModeEnum pMode, function in class:FileBase
148 // Determine the lock operation (2nd argument) to the flock().
165 // Here we got a lock but we need to check whether the mFD still
168 // mapped when we were trying to obtain the lock on the file.
/frameworks/base/libs/hwui/renderthread/
H A DRenderTask.h61 // Takes ownership of task, caller owns lock and signal
62 SignalingRenderTask(RenderTask* task, Mutex* lock, Condition* signal) argument
63 : mTask(task), mLock(lock), mSignal(signal), mHasRun(false) {}
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DFingerprintGestureDispatcher.java51 * @param lock A lock to use when managing internal state
53 public FingerprintGestureDispatcher(IFingerprintService fingerprintService, Object lock) { argument
55 mLock = lock;
61 * @param lock A lock to use when managing internal state
64 public FingerprintGestureDispatcher(IFingerprintService fingerprintService, Object lock, argument
67 mLock = lock;
/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/base/services/tests/servicestests/src/com/android/server/am/
H A DActivityManagerInternalTest.java151 public CustomThread(Object lock) { argument
152 mLock = lock;
155 public CustomThread(Object lock, Runnable runnable) { argument
157 mLock = lock;
/frameworks/native/libs/ui/
H A DGralloc2.cpp89 Error Mapper::lock(buffer_handle_t bufferHandle, uint64_t usage, function in class:android::Gralloc2::Mapper
105 auto ret = mMapper->lock(buffer, usage, accessRegion, acquireFenceHandle,
124 Error Mapper::lock(buffer_handle_t bufferHandle, uint64_t usage, function in class:android::Gralloc2::Mapper
H A DGraphicBufferMapper.cpp82 status_t GraphicBufferMapper::lock(buffer_handle_t handle, uint32_t usage, function in class:android::GraphicBufferMapper
119 Gralloc2::Error error = mMapper->lock(handle, usage,
122 ALOGW_IF(error != Gralloc2::Error::NONE, "lock(%p, ...) failed: %d",
157 Gralloc2::Error error = mMapper->lock(handle, usage,
/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/base/cmds/incidentd/src/
H A DSection.cpp55 mutex lock; member in struct:WorkerThreadData
96 unique_lock<mutex> lock(data->lock);
162 unique_lock<mutex> lock(data->lock);
284 // another thread so lock that carefully...

Completed in 3976 milliseconds

12345