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

1234

/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);
H A DFile.h53 inline bool lock(enum LockModeEnum pMode = static_cast<enum LockModeEnum>( function in class:bcc::File
59 return FileBase::lock(pMode, pNonblocking, pMaxRetry, pRetryInterval);
/frameworks/rs/
H A DrsMutex.cpp39 bool Mutex::lock() { function in class:Mutex
/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/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/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/libs/ui/
H A DGraphicBufferMapper.cpp80 status_t GraphicBufferMapper::lock(buffer_handle_t handle, function in class:android::GraphicBufferMapper
86 err = mAllocMod->lock(mAllocMod, handle, static_cast<int>(usage),
90 ALOGW_IF(err, "lock(...) failed %d (%s)", err, strerror(-err));
108 ALOGW_IF(err, "lock(...) failed %d (%s)", err, strerror(-err));
138 err = mAllocMod->lock(mAllocMod, handle, static_cast<int>(usage),
173 ALOGW_IF(err, "lock(...) failed %d (%s)", err, strerror(-err));
/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.h51 pthread_mutex_t lock; member in struct:lib_entry_s
/frameworks/base/libs/hwui/
H A DResourceCache.cpp52 void ResourceCache::lock() { function in class:android::uirenderer::ResourceCache
53 mLock.lock();
/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) {}
/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 DBatteryController.java75 Object lock) {
76 super(stateChangedListener, context, lock);
74 BatteryController(StateChangedListener stateChangedListener, Context context, Object lock) argument
H A DConnectivityController.java69 Object lock) {
70 super(stateChangedListener, context, lock);
68 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 DAppIdleController.java101 private AppIdleController(JobSchedulerService service, Context context, Object lock) { argument
102 super(service, context, lock);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DKeyguardMonitor.java95 public void lock() { method in class:KeyguardMonitor
/frameworks/compile/libbcc/lib/Support/
H A DFileBase.cpp134 bool FileBase::lock(enum LockModeEnum pMode, function in class:FileBase
151 // Determine the lock operation (2nd argument) to the flock().
168 // Here we got a lock but we need to check whether the mFD still
171 // mapped when we were trying to obtain the lock on the file.
/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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DCodecTest.java56 private static final Object lock = new Object(); field in class:CodecTest
263 synchronized (lock) {
266 lock.wait(WAIT_FOR_COMMAND_TO_COMPLETE);
299 synchronized (lock) {
302 lock.wait(WAIT_FOR_COMMAND_TO_COMPLETE);
680 synchronized (lock) {
682 lock.notify();
719 synchronized (lock) {
722 lock.wait(WAIT_FOR_COMMAND_TO_COMPLETE);
809 synchronized (lock) {
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
H A DMediaVisualizerTest.java59 private final Object lock = new Object(); field in class:MediaVisualizerTest
336 synchronized(lock) {
338 lock.wait(1000);
348 synchronized(lock) {
351 lock.wait(1000);
362 synchronized(lock) {
365 lock.wait(1000);
381 synchronized(lock) {
384 lock.wait(1000);
395 synchronized(lock) {
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DMediaPlayerStateUnitTestTemplate.java52 private final Object lock = new Object(); field in class:MediaPlayerStateUnitTestTemplate
83 synchronized(lock) {
85 lock.wait(WAIT_FOR_COMMAND_TO_COMPLETE);
118 synchronized(lock) {
119 Log.v(TAG, "notify lock.");
124 lock.notify();
132 synchronized(lock) {
136 lock.notify();
140 synchronized(lock) {
142 lock
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DKeyEventDispatcher.java81 * @param lock The lock used for all synchronization in this package. This lock must be held
87 int messageTypeForSendKeyEvent, Object lock,
99 mLock = lock;
105 * lock used to construct this object held. The boundServices list must also be protected
106 * by a lock.
86 KeyEventDispatcher(Handler handlerToSendKeyEventsToInputFilter, int messageTypeForSendKeyEvent, Object lock, PowerManager powerManager) argument

Completed in 3094 milliseconds

1234