Searched refs:lock (Results 251 - 275 of 364) sorted by relevance

<<1112131415

/frameworks/base/media/jni/audioeffect/
H A Dandroid_media_Visualizer.cpp87 AutoMutex lock(&callback_data_lock);
181 AutoMutex lock(&callbackInfo->callback_data_lock);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
H A DMediaRecorderTest.java215 mCamera.lock();
488 mCamera.lock();
/frameworks/base/services/autofill/java/com/android/server/autofill/
H A DAutofillManagerServiceImpl.java137 AutofillManagerServiceImpl(Context context, Object lock, LocalLog requestsHistory, argument
140 mLock = lock;
/frameworks/base/services/core/java/com/android/server/
H A DLockSettingsStorage.java43 * Storage for the lock settings service.
265 Slog.e(TAG, "Remove child profile lock for user: " + userId);
273 public void writeChildProfileLock(int userId, byte[] lock) { argument
274 writeFile(getChildProfileLockFile(userId), lock);
345 // Truncate the file if pattern is null, to clear the lock
477 // This user owns its lock settings files - safe to delete them
564 // Previously migrated lock screen widget settings. Now defunct.
/frameworks/base/services/core/java/com/android/server/job/
H A DJobServiceContext.java173 JobServiceContext(Context context, Object lock, IBatteryStats batteryStats, argument
176 mLock = lock;
379 // the currently-live lock instead of cleanly replacing it. Watch for this and
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DUserControllerTest.java320 final Object lock = new Object(); field in class:UserControllerTest.TestInjector
344 return lock;
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DVoiceInteractionSessionConnection.java175 public VoiceInteractionSessionConnection(Object lock, ComponentName component, int user, argument
177 mLock = lock;
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DVirtualDisplaySurface.cpp252 Mutex::Autolock lock(mMutex);
491 Mutex::Autolock lock(mMutex);
/frameworks/av/camera/ndk/impl/
H A DACameraDevice.h130 // only For session to hold device lock
131 // Always grab device lock before grabbing session lock
132 void lockDeviceForSessionOps() const { mDeviceLock.lock(); };
/frameworks/av/media/libaudioclient/
H A DToneGenerator.cpp952 mLock.lock();
980 mLock.lock();
1032 mLock.lock();
1167 lpToneGen->mLock.lock();
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.h441 mSharedParameters.mLock.lock();
458 // Access static info, read-only and immutable, so no lock needed
/frameworks/av/services/camera/libcameraservice/common/
H A DCamera2ClientBase.cpp354 mSharedClient.mRemoteCallbackLock.lock();
/frameworks/base/core/jni/android/graphics/
H A DGraphicBuffer.cpp175 status_t status = buffer->lock(LOCK_CANVAS_USAGE, rect, &bits);
/frameworks/base/keystore/tests/src/android/security/
H A DKeyStoreTest.java332 assertFalse(mKeyStore.lock());
337 assertTrue(mKeyStore.lock());
344 mKeyStore.lock();
368 mKeyStore.lock();
/frameworks/base/media/jni/
H A Dandroid_media_MediaProfiles.cpp40 Mutex::Autolock lock(sLock);
/frameworks/base/services/core/java/com/android/server/am/
H A DProcessStatsService.java270 mWriteLock.lock();
454 mWriteLock.lock();
489 mWriteLock.lock();
922 // Don't really need to lock because we uniquely own this object.
944 mWriteLock.lock();
969 // Don't really need to lock because we uniquely own this object.
981 // Don't really need to lock because we uniquely own this object.
/frameworks/native/include/gui/
H A DSurface.h258 virtual int lock(ANativeWindow_Buffer* outBuffer, ARect* inOutDirtyBounds);
393 // must be used from the lock/unlock thread
/frameworks/native/libs/binder/
H A DProcessState.cpp111 mLock.lock();
261 // call expungeHandle(), which acquires the same lock we are holding now.
/frameworks/native/opengl/tests/gl_yuvtex/
H A Dgl_yuvtex.cpp99 status_t err = yuvTexBuffer->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&buf));
101 fprintf(stderr, "yuvTexBuffer->lock(...) failed: %d\n", err);
/frameworks/rs/
H A DrsApiStubs.cpp85 std::unique_lock<std::mutex> lock(contextMapMutex);
188 std::unique_lock<std::mutex> lock(contextMapMutex);
203 std::unique_lock<std::mutex> lock(contextMapMutex);
739 std::unique_lock<std::mutex> lock(contextMapMutex);
/frameworks/av/media/libmedia/
H A Dmediaplayer.cpp102 // always call with lock held
126 { // scope for the lock
224 Mutex::Autolock lock(mLock);
234 Mutex::Autolock lock(mLock);
288 // must call with lock held
763 // always call with lock held
867 mLock.lock();
874 if (locked) mLock.unlock(); // release the lock when done.
/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp181 // TODO: Switch to using Surface::lock and Surface::unlockAndPost
234 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img));
262 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img));
297 ALOGE("%s: Failed to lock ycbcr buffer, error %s (%d).", __FUNCTION__,
320 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img));
322 ALOGE("%s: Failed to lock buffer, error %s (%d).", __FUNCTION__, strerror(-err),
/frameworks/base/libs/common_time/
H A Dcommon_time_server.cpp155 // No need to grab the lock here. We are in the destructor; if the the user
186 // Hold the lock while we are in the main thread loop. It will release the
187 // lock when it blocks, and hold the lock at all other times.
188 mLock.lock();
239 mLock.lock();
396 mLock.lock();
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
H A DWifiTrackerTest.java716 CountDownLatch lock = new CountDownLatch(1);
719 lock.await();
722 fail("Interrupted Exception while awaiting lock release: " + e);
740 lock.countDown();
/frameworks/native/services/surfaceflinger/
H A DSurfaceFlinger_hwc1.cpp383 Mutex::Autolock lock(mVsyncMutex);
405 Mutex::Autolock lock(mCallbackMutex);
410 Mutex::Autolock lock(mVsyncMutex);
448 Mutex::Autolock lock(mCallbackMutex);
487 std::lock_guard<std::mutex> lock(mCallbackMutex);
492 std::lock_guard<std::mutex> lock(mCallbackMutex);
1041 { // Scope for the lock
1056 std::lock_guard<std::mutex> lock(mCompositorTimingLock);
1248 std::lock_guard<std::mutex> lock(mCompositorTimingLock);
1284 std::lock_guard<std::mutex> lock(mCompositorTimingLoc
[all...]

Completed in 555 milliseconds

<<1112131415