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

1234

/frameworks/base/services/core/java/com/android/server/job/controllers/
H A DContentObserverController.java82 Object lock) {
83 super(stateChangedListener, context, lock);
81 ContentObserverController(StateChangedListener stateChangedListener, Context context, Object lock) argument
H A DTimeController.java66 Object lock) {
67 super(stateChangedListener, context, lock);
65 TimeController(StateChangedListener stateChangedListener, Context context, Object lock) argument
/frameworks/base/services/core/java/com/android/server/vr/
H A DEnabledComponentsObserver.java80 @NonNull String servicePermission, @NonNull String serviceName, @NonNull Object lock,
82 mLock = lock;
99 * @param lock a lock object used to guard instance state in all callbacks and method calls.
105 @NonNull final Object lock,
111 servicePermission, serviceName, lock, listeners);
79 EnabledComponentsObserver(@onNull Context context, @NonNull String settingName, @NonNull String servicePermission, @NonNull String serviceName, @NonNull Object lock, @NonNull Collection<EnabledComponentChangeListener> listeners) argument
102 build(@onNull Context context, @NonNull Handler handler, @NonNull String settingName, @NonNull Looper looper, @NonNull String servicePermission, @NonNull String serviceName, @NonNull final Object lock, @NonNull Collection<EnabledComponentChangeListener> listeners) argument
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DVoiceInteractionManagerServiceImpl.java111 VoiceInteractionManagerServiceImpl(Context context, Handler handler, Object lock, argument
115 mLock = lock;
H A DVoiceInteractionSessionConnection.java170 public VoiceInteractionSessionConnection(Object lock, ComponentName component, int user, argument
172 mLock = lock;
/frameworks/native/libs/ui/
H A DGraphicBuffer.cpp184 status_t GraphicBuffer::lock(uint32_t inUsage, void** vaddr) function in class:android::GraphicBuffer
187 status_t res = lock(inUsage, lockBounds, vaddr);
191 status_t GraphicBuffer::lock(uint32_t inUsage, const Rect& rect, void** vaddr) function in class:android::GraphicBuffer
200 status_t res = getBufferMapper().lock(handle, inUsage, rect, vaddr);
/frameworks/av/camera/
H A DCamera.cpp145 status_t Camera::lock() function in class:android::Camera
149 return c->lock();
H A DICamera.cpp278 virtual status_t lock() function in class:android::hardware::BpCamera
449 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) {
/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.cpp91 jobject lock = env->GetObjectField(surfaceObj, local
93 if (env->MonitorEnter(lock) == JNI_OK) {
96 env->MonitorExit(lock);
98 env->DeleteLocalRef(lock);
312 status_t err = surface->lock(&outBuffer, dirtyRectPtr);
/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/base/services/core/java/com/android/server/job/
H A DJobServiceContext.java146 JobServiceContext(Context context, Object lock, IBatteryStats batteryStats, argument
149 mLock = lock;
H A DJobStore.java61 * All callers to this class must <strong>lock on the class object they are calling</strong>.
63 * and {@link com.android.server.job.JobStore.ReadJobMapFromDiskRunnable} lock on that
108 private JobStore(Context context, Object lock, File dataDir) { argument
109 mLock = lock;
261 // Clone the jobs so we can release the lock before writing.
/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
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.h177 // lock/unlock are used by the callback before accessing the payload of this object
178 void lock() const { mLock.lock(); } function in class:android::MediaPlayerService::AudioOutput::CallbackData
184 // tryBeginTrackSwitch() returns true only if it obtains the lock.
373 sp<MediaPlayerBase> getPlayer() const { Mutex::Autolock lock(mLock); return mPlayer; }
/frameworks/av/services/audioflinger/
H A DEffects.h28 // In addition, methods that lock the AudioPolicyService mutex (getOutputForEffect(),
116 void lock() { mLock.lock(); } function in class:EffectModule
261 void lock() { function in class:EffectChain
262 mLock.lock();
/frameworks/av/services/camera/libcameraservice/
H A DCameraService.h293 virtual status_t lock() = 0;
490 // Check if we can connect, before we acquire the service lock.
772 Mutex::Autolock lock(mStatusLock);
838 std::unique_ptr<AutoConditionLock> lock = local
841 if (lock == nullptr) {
855 // Check the shim parameters after acquiring lock, if they have already been updated and
966 mServiceLock.lock();
971 } // lock is destroyed, allow further connect calls
/frameworks/base/core/java/android/widget/
H A DSlidingDrawer.java924 * @see #lock()
935 public void lock() { method in class:SlidingDrawer
/frameworks/base/keystore/java/android/security/
H A DKeyStore.java84 * (or key pair) with the secure lock screen credential (e.g., password, PIN, or pattern).
86 * <p>Note that this requires that the secure lock screen (e.g., password, PIN, pattern) is set
88 * pair) will be deleted when the secure lock screen is disabled or reset (e.g., by the user or
90 * unlocks the secure lock screen after boot.
237 * Attempt to lock the keystore for {@code user}.
239 * @param user Android user to lock.
242 public boolean lock(int userId) { method in class:KeyStore
244 return mBinder.lock(userId) == NO_ERROR;
251 public boolean lock() { method in class:KeyStore
252 return lock(UserHandl
[all...]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsState.java51 * This class uses the same lock as the settings provider to ensure that
54 * the same lock to grab the current state to write to disk.
137 public SettingsState(Object lock, File file, int key, int maxBytesPerAppPackage, argument
139 // It is important that we use the same lock as the settings provider
142 mLock = lock;
158 // The settings provider must hold its lock when calling here.
167 // The settings provider must hold its lock when calling here.
177 // The settings provider must hold its lock when calling here.
201 // The settings provider must hold its lock when calling here.
212 // The settings provider must hold its lock whe
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DLockSettingsStorage.java41 * Storage for the lock settings service.
252 Slog.e(TAG, "Remove child profile lock for user: " + userId);
260 public void writeChildProfileLock(int userId, byte[] lock) { argument
261 writeFile(getChildProfileLockFile(userId), lock);
325 // Truncate the file if pattern is null, to clear the lock
428 // This user owns its lock settings files - safe to delete them
505 // Previously migrated lock screen widget settings. Now defunct.
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DBackingStore.java85 return lockBacking(mode, accessFormat).lock(accessFormat);
93 lock(backing, mode);
296 private void lock(Backing backingToLock, int mode) { method in class:BackingStore
301 "Attempting to write-lock the read-locked frame " + this + "!");
304 "Attempting to write-lock the write-locked frame " + this + "!");
318 throw new RuntimeException("Attempting to read-lock locked frame " + this + "!");
347 public abstract Object lock(int accessType); method in class:BackingStore.Backing
437 mObject = backing.lock(ACCESS_OBJECT);
441 mObject = backing.lock(ACCESS_BITMAP);
451 public Object lock(in method in class:BackingStore.ObjectBacking
538 public Object lock(int accessType) { method in class:BackingStore.BitmapBacking
633 public Object lock(int accessType) { method in class:BackingStore.TextureBacking
764 public Object lock(int accessType) { method in class:BackingStore.ByteBufferBacking
875 public Object lock(int accessType) { method in class:BackingStore.AllocationBacking
[all...]
/frameworks/av/services/camera/libcameraservice/api1/
H A DCamera2Client.cpp297 result.appendFormat(" AE lock %s, AWB lock %s\n",
407 // Don't wait with lock held, in case the other threads need to
417 mBinderSerializationLock.lock();
459 status_t Camera2Client::lock() { function in class:android::Camera2Client
H A DCameraClient.cpp160 status_t CameraClient::lock() { function in class:android::CameraClient
162 LOG1("lock (pid %d)", callingPid);
163 Mutex::Autolock lock(mLock);
165 // lock camera to this client if the the camera is unlocked
178 Mutex::Autolock lock(mLock);
180 // allow anyone to use camera (after they lock the camera)
200 Mutex::Autolock lock(mLock);
236 Mutex::Autolock lock(mLock);
281 Mutex::Autolock lock(mLock);
345 Mutex::Autolock lock(mLoc
[all...]

Completed in 1257 milliseconds

1234