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

12

/frameworks/base/core/java/android/text/method/
H A DMetaKeyKeyListener.java191 int on, int lock) {
200 return lock;
190 getActive(CharSequence text, Object meta, int on, int lock) argument
/frameworks/native/libs/gui/
H A DSurface.cpp352 status_t Surface::lock(SurfaceInfo* other, Region* inOutDirtyRegion) { function in class:android::Surface
362 status_t err = SurfaceTextureClient::lock(&outBuffer, inOutDirtyBounds);
H A DSurfaceTextureClient.cpp200 Mutex::Autolock lock(mMutex);
247 Mutex::Autolock lock(mMutex);
272 Mutex::Autolock lock(mMutex);
279 Mutex::Autolock lock(mMutex);
318 { // scope for the lock
319 Mutex::Autolock lock(mMutex);
496 return lock(outBuffer, inOutDirtyBounds);
507 Mutex::Autolock lock(mMutex);
525 Mutex::Autolock lock(mMutex);
546 Mutex::Autolock lock(mMute
732 status_t SurfaceTextureClient::lock( function in class:android::SurfaceTextureClient
[all...]
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_context.cpp80 void GLTraceState::safeSetValue(bool *ptr, bool value, pthread_rwlock_t *lock) { argument
81 pthread_rwlock_wrlock(lock);
83 pthread_rwlock_unlock(lock);
86 bool GLTraceState::safeGetValue(bool *ptr, pthread_rwlock_t *lock) { argument
87 pthread_rwlock_rdlock(lock);
89 pthread_rwlock_unlock(lock);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
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/av/services/camera/libcameraservice/
H A DCameraClient.cpp96 // this lock should never be NULL
97 Mutex* lock = mCameraService->getClientLockById(mCameraId); local
98 lock->lock();
100 // client will not be accessed from callback. should unlock to prevent dead-lock in disconnect
101 lock->unlock();
143 status_t CameraClient::lock() { function in class:android::CameraClient
145 LOG1("lock (pid %d)", callingPid);
146 Mutex::Autolock lock(mLock);
148 // lock camer
690 Mutex* lock = getClientLockFromCookie(user); local
715 Mutex* lock = getClientLockFromCookie(user); local
753 Mutex* lock = getClientLockFromCookie(user); local
[all...]
H A DCamera2Client.cpp294 result.appendFormat(" AE lock %s, AWB lock %s\n",
440 status_t Camera2Client::lock() { function in class:android::Camera2Client
1512 mSharedClient.mCameraClientLock.lock();
/frameworks/base/core/java/android/widget/
H A DSlidingDrawer.java914 * @see #lock()
925 public void lock() { method in class:SlidingDrawer
H A DRemoteViewsAdapter.java426 ViewGroup parent, Object lock, LayoutInflater layoutInflater, OnClickHandler
433 synchronized (lock) {
514 // of the FixedSizeRemoteViewsCache. If we ever lock on both meta data objects, it is in
425 createLoadingView(int position, View convertView, ViewGroup parent, Object lock, LayoutInflater layoutInflater, OnClickHandler handler) argument
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.h154 // lock/unlock are used by the callback before accessing the payload of this object
155 void lock() { mLock.lock(); } function in class:android::MediaPlayerService::AudioOutput::CallbackData
159 void beginTrackSwitch() { mLock.lock(); mSwitching = true; }
371 sp<MediaPlayerBase> getPlayer() const { Mutex::Autolock lock(mLock); return mPlayer; }
/frameworks/base/media/java/android/media/videoeditor/
H A DVideoEditorImpl.java449 lock();
487 lock();
733 lock();
935 semAcquireDone = lock(ENGINE_ACCESS_MAX_TIMEOUT_MS);
1668 semAcquireDone = lock(ENGINE_ACCESS_MAX_TIMEOUT_MS);
1685 * Release The lock on complete by calling stopPreview
1908 private void lock() throws InterruptedException { method in class:VideoEditorImpl
1910 Log.d(TAG, "lock: grabbing semaphore", new Throwable());
1914 Log.d(TAG, "lock: grabbed semaphore");
1926 private boolean lock(lon method in class:VideoEditorImpl
[all...]
H A DMediaArtistNativeHelper.java1721 * @param lock The semaphore
1724 public MediaArtistNativeHelper(String projectPath, Semaphore lock, VideoEditor veObj) { argument
1736 mLock = lock;
3164 lock();
3928 private void lock() throws InterruptedException { method in class:MediaArtistNativeHelper
3930 Log.d(TAG, "lock: grabbing semaphore", new Throwable());
3934 Log.d(TAG, "lock: grabbed semaphore");
/frameworks/base/services/java/com/android/server/
H A DWifiService.java109 // some wifi lock statistics
364 * Protected by mWifiStateTracker lock.
1314 private void addLock(WifiLock lock) { argument
1315 if (findLockByBinder(lock.mBinder) < 0) {
1316 mList.add(lock);
1433 public void updateWifiLockWorkSource(IBinder lock, WorkSource ws) { argument
1445 int index = mLocks.findLockByBinder(lock);
1447 throw new IllegalArgumentException("Wifi lock not active");
1460 public boolean releaseWifiLock(IBinder lock) { argument
1463 return releaseWifiLockLocked(lock);
1467 releaseWifiLockLocked(IBinder lock) argument
[all...]
/frameworks/base/services/java/com/android/server/power/
H A DPowerManagerService.java241 // True if holding a wake-lock to block suspend of the CPU.
247 // The screen on blocker used to keep the screen from turning on while the lock
561 public void acquireWakeLock(IBinder lock, int flags, String tag, WorkSource ws) { argument
562 if (lock == null) {
563 throw new IllegalArgumentException("lock must not be null");
579 acquireWakeLockInternal(lock, flags, tag, ws, uid, pid);
585 private void acquireWakeLockInternal(IBinder lock, int flags, String tag, WorkSource ws, argument
589 Slog.d(TAG, "acquireWakeLockInternal: lock=" + Objects.hashCode(lock)
595 int index = findWakeLockIndexLocked(lock);
628 releaseWakeLock(IBinder lock, int flags) argument
643 releaseWakeLockInternal(IBinder lock, int flags) argument
700 updateWakeLockWorkSource(IBinder lock, WorkSource ws) argument
721 updateWakeLockWorkSourceInternal(IBinder lock, WorkSource ws) argument
737 findWakeLockIndexLocked(IBinder lock) argument
2384 WakeLock(IBinder lock, int flags, String tag, WorkSource workSource, int ownerUid, int ownerPid) argument
[all...]
/frameworks/native/opengl/libagl/
H A Degl.cpp239 status_t lock(ANativeWindowBuffer* buf, int usage, void** vaddr);
406 if (lock(buffer, GRALLOC_USAGE_SW_READ_OFTEN |
408 ALOGE("connect() failed to lock buffer %p (%ux%u)",
434 status_t egl_window_surface_v2_t::lock( function in class:android::egl_window_surface_v2_t
439 err = module->lock(module, buf->handle,
510 if (lock(previousBuffer,
563 if (lock(buffer, GRALLOC_USAGE_SW_READ_OFTEN |
565 ALOGE("eglSwapBuffers() failed to lock buffer %p (%ux%u)",
1767 // FIXME: lock/connect the read surface too
/frameworks/av/media/libstagefright/
H A DMPEG4Writer.cpp924 void MPEG4Writer::lock() { function in class:android::MPEG4Writer
925 mLock.lock();
1548 // Actual write without holding the lock in order to
1553 mLock.lock();
2402 Mutex::Autolock lock(mLock);
/frameworks/av/services/audioflinger/
H A DAudioFlinger.h465 // we don't really need a lock for these
613 // lock all effect chains Mutexes. Must be called before releasing the
728 // These fields are written and read by thread itself without lock or barrier,
729 // and read by other threads without lock or barrier via standby() , outDevice()
731 // Because of the absence of a lock or barrier, any other thread that reads
895 // 'volatile' means accessed without lock or
1064 // same, but lock must already be held
1134 // 'volatile' means accessed via atomic operations and no lock.
1141 // copy rather than the one in AudioFlinger. This optimization saves a lock.
1244 // accessed by both binder threads and within threadLoop(), lock o
1817 void lock() { function in class:android::AudioFlinger::EffectChain
[all...]
/frameworks/base/core/java/android/hardware/
H A DCamera.java106 * and re-lock the camera.
400 public native final void lock(); method in class:Camera
406 * which will re-acquire the lock and allow you to continue using the
873 * The auto-focus routine does not lock auto-exposure and auto-white
905 * <p>Auto-exposure lock {@link android.hardware.Camera.Parameters#getAutoExposureLock()}
1697 private static final String KEY_AUTO_EXPOSURE_LOCK = "auto-exposure-lock";
1698 private static final String KEY_AUTO_EXPOSURE_LOCK_SUPPORTED = "auto-exposure-lock-supported";
1699 private static final String KEY_AUTO_WHITEBALANCE_LOCK = "auto-whitebalance-lock";
1700 private static final String KEY_AUTO_WHITEBALANCE_LOCK_SUPPORTED = "auto-whitebalance-lock-supported";
2751 * auto-white balance lock
[all...]
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp595 AutoMutex lock(mDecodeLock);
2489 mTable.lock();
3210 mLock.lock();
3225 void ResTable::lock() const function in class:android::ResTable
3227 mLock.lock();
3524 mLock.lock();
3536 mLock.lock();

Completed in 778 milliseconds

12