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

12

/frameworks/compile/libbcc/include/bcc/Support/
H A DFileMutex.h30 : FileBase(pFileToLock + ".lock", O_RDONLY | O_CREAT, 0) { }
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/support/renderscript/v8/rs_support/
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) {}
H A DAudioTrackShared.h64 Mutex lock; // sizeof(int) member in struct:android::audio_track_cblk_t
/frameworks/base/core/java/android/util/
H A DPools.java38 public static <T extends Poolable<T>> Pool<T> synchronizedPool(Pool<T> pool, Object lock) { argument
39 return new SynchronizedPool<T>(pool, lock);
H A DSynchronizedPool.java32 public SynchronizedPool(Pool<T> pool, Object lock) { argument
34 mLock = lock;
/frameworks/native/libs/ui/
H A DGraphicBufferMapper.cpp73 status_t GraphicBufferMapper::lock(buffer_handle_t handle, function in class:android::GraphicBufferMapper
79 err = mAllocMod->lock(mAllocMod, handle, usage,
83 ALOGW_IF(err, "lock(...) failed %d (%s)", err, strerror(-err));
H A DGraphicBuffer.cpp157 status_t GraphicBuffer::lock(uint32_t usage, void** vaddr) function in class:android::GraphicBuffer
160 status_t res = lock(usage, lockBounds, vaddr);
164 status_t GraphicBuffer::lock(uint32_t usage, const Rect& rect, void** vaddr) function in class:android::GraphicBuffer
173 status_t res = getBufferMapper().lock(handle, usage, rect, vaddr);
/frameworks/native/services/powermanager/
H A DIPowerManager.cpp44 virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag) argument
49 data.writeStrongBinder(lock);
56 virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags) argument
60 data.writeStrongBinder(lock);
/frameworks/native/services/surfaceflinger/
H A DBarrier.h32 Mutex::Autolock _l(lock);
37 Mutex::Autolock _l(lock);
41 Mutex::Autolock _l(lock);
43 cv.wait(lock);
48 mutable Mutex lock; member in class:android::Barrier
/frameworks/av/media/libeffects/factory/
H A DEffectsFactory.h41 pthread_mutex_t lock; member in struct:lib_entry_s
/frameworks/native/include/utils/
H A DMutex.h40 * recursive, i.e. the same thread can't lock it multiple times.
54 // lock or unlock the mutex
55 status_t lock();
58 // lock if possible; returns 0 on success, error otherwise
65 inline Autolock(Mutex& mutex) : mLock(mutex) { mLock.lock(); }
66 inline Autolock(Mutex* mutex) : mLock(*mutex) { mLock.lock(); }
111 inline status_t Mutex::lock() { function in class:android::Mutex
/frameworks/base/libs/hwui/
H A DResourceCache.cpp49 void ResourceCache::lock() { function in class:android::uirenderer::ResourceCache
50 mLock.lock();
/frameworks/compile/libbcc/lib/Support/
H A DFileBase.cpp114 bool FileBase::lock(enum LockModeEnum pMode, function in class:FileBase
131 // Determine the lock operation (2nd argument) to the flock().
148 // Here we got a lock but we need to check whether the mFD still
151 // mapped when we were trying to obtain the lock on the file.
/frameworks/base/keystore/java/android/security/
H A DKeyStore.java141 public boolean lock() { method in class:KeyStore
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
H A DVariableSpeed.java53 private final Object lock = new Object(); field in class:VariableSpeed
54 @GuardedBy("lock") private MediaPlayerDataSource mDataSource;
55 @GuardedBy("lock") private boolean mIsPrepared;
56 @GuardedBy("lock") private boolean mHasDuration;
57 @GuardedBy("lock") private boolean mHasStartedPlayback;
58 @GuardedBy("lock") private CountDownLatch mEngineInitializedLatch;
59 @GuardedBy("lock") private CountDownLatch mPlaybackFinishedLatch;
60 @GuardedBy("lock") private boolean mHasBeenReleased = true;
61 @GuardedBy("lock") private boolean mIsReadyToReUse = true;
62 @GuardedBy("lock") privat
[all...]
/frameworks/native/opengl/libs/EGL/
H A Degl_display.h76 // holding a lock, but must be called via egl_display_ptr to ensure
134 mutable Mutex lock; member in class:android::egl_display_t
142 // The owning egl_display_t's lock may be but is not required to be held
/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
262 synchronized (lock) {
265 lock.wait(WAIT_FOR_COMMAND_TO_COMPLETE);
298 synchronized (lock) {
301 lock.wait(WAIT_FOR_COMMAND_TO_COMPLETE);
679 synchronized (lock) {
681 lock.notify();
718 synchronized (lock) {
721 lock.wait(WAIT_FOR_COMMAND_TO_COMPLETE);
803 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/av/camera/
H A DCamera.cpp159 status_t Camera::lock() function in class:android::Camera
163 return c->lock();
H A DICamera.cpp255 virtual status_t lock() function in class:android::BpCamera
405 reply->writeInt32(lock());
/frameworks/base/core/java/android/app/
H A DLauncherActivity.java97 private final Object lock = new Object(); field in class:LauncherActivity.ActivityAdapter
190 synchronized (lock) {
196 synchronized (lock) {

Completed in 317 milliseconds

12