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

12

/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/native/libs/ui/
H A DGraphicBufferMapper.cpp75 status_t GraphicBufferMapper::lock(buffer_handle_t handle, function in class:android::GraphicBufferMapper
81 err = mAllocMod->lock(mAllocMod, handle, usage,
85 ALOGW_IF(err, "lock(...) failed %d (%s)", err, strerror(-err));
103 ALOGW_IF(err, "lock(...) failed %d (%s)", err, strerror(-err));
131 err = mAllocMod->lock(mAllocMod, handle, usage,
161 ALOGW_IF(err, "lock(...) failed %d (%s)", err, strerror(-err));
H A DGraphicBuffer.cpp165 status_t GraphicBuffer::lock(uint32_t usage, void** vaddr) function in class:android::GraphicBuffer
168 status_t res = lock(usage, lockBounds, vaddr);
172 status_t GraphicBuffer::lock(uint32_t usage, const Rect& rect, void** vaddr) function in class:android::GraphicBuffer
181 status_t res = getBufferMapper().lock(handle, usage, rect, vaddr);
/frameworks/av/media/libeffects/factory/
H A DEffectsFactory.h50 pthread_mutex_t lock; member in struct:lib_entry_s
/frameworks/base/libs/hwui/
H A DResourceCache.cpp57 void ResourceCache::lock() { function in class:android::uirenderer::ResourceCache
58 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/native/services/powermanager/
H A DIPowerManager.cpp47 virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag, argument
53 data.writeStrongBinder(lock);
63 virtual status_t acquireWakeLockWithUid(int flags, const sp<IBinder>& lock, const String16& tag, argument
69 data.writeStrongBinder(lock);
78 virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags, bool isOneWay) argument
82 data.writeStrongBinder(lock);
88 virtual status_t updateWakeLockUids(const sp<IBinder>& lock, int len, const int *uids, argument
92 data.writeStrongBinder(lock);
/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/av/camera/
H A DCamera.cpp114 status_t Camera::lock() function in class:android::Camera
118 return c->lock();
H A DICamera.cpp257 virtual status_t lock() function in class:android::BpCamera
410 reply->writeInt32(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
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);
807 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...]
H A DMediaAudioEffectTest.java58 private final Object lock = new Object(); field in class:MediaAudioEffectTest
353 synchronized(lock) {
355 lock.wait(1000);
368 synchronized(lock) {
371 lock.wait(1000);
1158 synchronized(lock) {
1160 lock.wait(1000);
1166 synchronized(lock) {
1173 lock.wait(1000);
1206 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/voiceinteraction/java/com/android/server/voiceinteraction/
H A DVoiceInteractionManagerServiceImpl.java188 VoiceInteractionManagerServiceImpl(Context context, Handler handler, Object lock, argument
192 mLock = 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) {
/frameworks/base/core/java/android/text/method/
H A DMetaKeyKeyListener.java250 int on, int lock) {
259 return lock;
249 getActive(CharSequence text, Object meta, int on, int lock) argument
/frameworks/base/core/jni/
H A Dandroid_view_Surface.cpp96 jobject lock = env->GetObjectField(surfaceObj, local
98 if (env->MonitorEnter(lock) == JNI_OK) {
101 env->MonitorExit(lock);
103 env->DeleteLocalRef(lock);
216 status_t err = surface->lock(&outBuffer, dirtyRectPtr);
/frameworks/base/keystore/java/android/security/
H A DKeyStore.java179 public boolean lock() { method in class:KeyStore
181 return mBinder.lock() == NO_ERROR;
/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.h74 // holding a lock, but must be called via egl_display_ptr to ensure
135 mutable Mutex lock, refLock; member in class:android::egl_display_t
144 // The owning egl_display_t's lock may be but is not required to be held

Completed in 640 milliseconds

12