Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 131) sorted by relevance

123456

/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DChooseLockGenericControllerTest.java85 for (ScreenLockType lock : ScreenLockType.values()) { in isScreenLockVisible_shouldRespectResourceConfig()
87 assertThat(mController.isScreenLockVisible(lock)).named(lock + " visible") in isScreenLockVisible_shouldRespectResourceConfig()
88 .isEqualTo(lock != ScreenLockType.MANAGED); in isScreenLockVisible_shouldRespectResourceConfig()
118 for (ScreenLockType lock : ScreenLockType.values()) { in isScreenLockEnabled_lowerQuality_shouldReturnFalse()
119 assertThat(mController.isScreenLockEnabled(lock, lock.maxQuality + 1)) in isScreenLockEnabled_lowerQuality_shouldReturnFalse()
120 .named(lock + " enabled") in isScreenLockEnabled_lowerQuality_shouldReturnFalse()
127 for (ScreenLockType lock : ScreenLockType.values()) { in isScreenLockEnabled_equalQuality_shouldReturnTrue()
128 assertThat(mController.isScreenLockEnabled(lock, lock.defaultQuality)) in isScreenLockEnabled_equalQuality_shouldReturnTrue()
129 .named(lock + " enabled") in isScreenLockEnabled_equalQuality_shouldReturnTrue()
136 for (ScreenLockType lock : ScreenLockType.values()) { in isScreenLockEnabled_higherQuality_shouldReturnTrue()
[all …]
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_hfp.cpp85 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in ConnectionStateCallback() local
100 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in AudioStateCallback() local
113 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in VoiceRecognitionCallback() local
128 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in AnswerCallCallback() local
143 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in HangupCallCallback() local
159 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in VolumeControlCallback() local
174 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in DialCallCallback() local
198 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in DtmfCmdCallback() local
215 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in NoiseReductionCallback() local
231 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in WbsCallback() local
[all …]
Dcom_android_bluetooth_avrcp_controller.cpp64 std::shared_lock<std::shared_timed_mutex> lock(sCallbacks_mutex); in btavrcp_passthrough_response_callback() local
87 std::shared_lock<std::shared_timed_mutex> lock(sCallbacks_mutex); in btavrcp_groupnavigation_response_callback() local
102 std::shared_lock<std::shared_timed_mutex> lock(sCallbacks_mutex); in btavrcp_connection_state_callback() local
127 std::shared_lock<std::shared_timed_mutex> lock(sCallbacks_mutex); in btavrcp_get_rcfeatures_callback() local
151 std::shared_lock<std::shared_timed_mutex> lock(sCallbacks_mutex); in btavrcp_setplayerapplicationsetting_rsp_callback() local
177 std::shared_lock<std::shared_timed_mutex> lock(sCallbacks_mutex); in btavrcp_playerapplicationsetting_callback() local
229 std::shared_lock<std::shared_timed_mutex> lock(sCallbacks_mutex); in btavrcp_playerapplicationsetting_changed_callback() local
272 std::shared_lock<std::shared_timed_mutex> lock(sCallbacks_mutex); in btavrcp_set_abs_vol_cmd_callback() local
296 std::shared_lock<std::shared_timed_mutex> lock(sCallbacks_mutex); in btavrcp_register_notification_absvol_callback() local
326 std::shared_lock<std::shared_timed_mutex> lock(sCallbacks_mutex); in btavrcp_track_changed_callback() local
[all …]
Dcom_android_bluetooth_avrcp_target.cpp311 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in sendMediaKeyEvent() local
447 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in getSongInfo() local
458 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in getCurrentPlayStatus() local
488 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in getCurrentMediaId() local
507 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in getNowPlayingList() local
537 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in getCurrentPlayerId() local
549 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in getMediaPlayerList() local
610 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in setBrowsedPlayer() local
712 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in getFolderItems() local
728 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in playItem() local
[all …]
Dcom_android_bluetooth_a2dp.cpp58 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in bta2dp_connection_state_callback() local
80 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in bta2dp_audio_state_callback() local
104 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in bta2dp_audio_config_callback() local
170 std::shared_lock<std::shared_timed_mutex> lock(callbacks_mutex); in bta2dp_mandatory_codec_preferred_callback() local
378 std::shared_lock<std::shared_timed_mutex> lock(interface_mutex); in connectA2dpNative() local
403 std::shared_lock<std::shared_timed_mutex> lock(interface_mutex); in disconnectA2dpNative() local
428 std::shared_lock<std::shared_timed_mutex> lock(interface_mutex); in setSilenceDeviceNative() local
455 std::shared_lock<std::shared_timed_mutex> lock(interface_mutex); in setActiveDeviceNative() local
482 std::shared_lock<std::shared_timed_mutex> lock(interface_mutex); in setCodecConfigPreferenceNative() local
/packages/services/Car/service/src/com/android/car/
DCarDiagnosticService.java91 mDiagnosticLock.lock(); in init()
140 mDiagnosticLock.lock(); in release()
160 mDiagnosticLock.lock(); in processDiagnosticData()
209 mDiagnosticLock.lock(); in registerOrUpdateDiagnosticListener()
263 mDiagnosticLock.lock(); in registerOrUpdateDiagnosticListener()
321 mDiagnosticLock.lock(); in unregisterDiagnosticListener()
427 mLiveFrameDiagnosticRecord.lock(); in getLatestLiveFrame()
435 mFreezeFrameDiagnosticRecords.lock(); in getFreezeFrameTimestamps()
444 mFreezeFrameDiagnosticRecords.lock(); in getFreezeFrame()
460 mFreezeFrameDiagnosticRecords.lock(); in clearFreezeFrames()
[all …]
DCarBluetoothUserService.java119 mBluetoothProxyLock.lock(); in closeBluetoothConnectionProxies()
158 mBluetoothProxyLock.lock();
199 mBluetoothProxyLock.lock();
225 mBluetoothProxyLock.lock(); in isBluetoothConnectionProxyAvailable()
275 mBluetoothProxyLock.lock(); in bluetoothConnectToProfile()
317 mBluetoothProxyLock.lock(); in bluetoothDisconnectFromProfile()
359 mBluetoothProxyLock.lock(); in getProfilePriority()
409 mBluetoothProxyLock.lock(); in setProfilePriority()
/packages/services/Telephony/tests/src/com/android/
DTelephonyTestBase.java62 final CountDownLatch lock = new CountDownLatch(1); in waitForHandlerAction() local
63 h.post(lock::countDown); in waitForHandlerAction()
64 while (lock.getCount() > 0) { in waitForHandlerAction()
66 lock.await(timeoutMillis, TimeUnit.MILLISECONDS); in waitForHandlerAction()
74 final CountDownLatch lock = new CountDownLatch(1); in waitForHandlerActionDelayed() local
75 h.postDelayed(lock::countDown, delayMs); in waitForHandlerActionDelayed()
76 while (lock.getCount() > 0) { in waitForHandlerActionDelayed()
78 lock.await(timeoutMillis, TimeUnit.MILLISECONDS); in waitForHandlerActionDelayed()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomTestCase.java58 final CountDownLatch lock = new CountDownLatch(1); in waitForHandlerAction() local
59 h.post(lock::countDown); in waitForHandlerAction()
60 while (lock.getCount() > 0) { in waitForHandlerAction()
62 lock.await(timeoutMillis, TimeUnit.MILLISECONDS); in waitForHandlerAction()
70 final CountDownLatch lock = new CountDownLatch(1); in waitForHandlerActionDelayed() local
71 h.postDelayed(lock::countDown, delayMs); in waitForHandlerActionDelayed()
72 while (lock.getCount() > 0) { in waitForHandlerActionDelayed()
74 lock.await(timeoutMillis, TimeUnit.MILLISECONDS); in waitForHandlerActionDelayed()
/packages/services/Car/evs/app/
DStreamHandler.cpp47 std::unique_lock<std::mutex> lock(mLock); in startStream() local
76 std::unique_lock<std::mutex> lock(mLock); in blockingStopStream() local
78 mSignal.wait(lock, [this]() { return !mRunning; }); in blockingStopStream()
84 std::unique_lock<std::mutex> lock(mLock); in isRunning() local
90 std::unique_lock<std::mutex> lock(mLock); in newFrameAvailable() local
96 std::unique_lock<std::mutex> lock(mLock); in getNewFrame() local
116 std::unique_lock<std::mutex> lock(mLock); in doneWithFrame() local
136 std::unique_lock <std::mutex> lock(mLock); in deliverFrame() local
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ticketpool/
DReservableTicketPool.java90 mLock.lock(); in close()
158 mLock.lock(); in updateCurrentTicketCount()
192 mLock.lock(); in tryAcquire()
217 mLock.lock(); in reserveCapacity()
247 mLock.lock(); in releaseCapacity()
277 mLock.lock(); in releaseAllCapacity()
302 mLock.lock(); in acquireParentTickets()
337 mLock.lock(); in tryAcquireAtomically()
356 mLock.lock(); in releaseWaitersOnTicketAvailability()
377 mLock.lock(); in abortWaitersOnCapacityDecrease()
/packages/apps/Camera2/src/com/android/camera/device/
DSingleDeviceStateMachine.java118 mLock.lock(); in requestOpen()
135 mLock.lock(); in requestClose()
153 mLock.lock(); in setRequest()
184 mLock.lock(); in onDeviceOpened()
201 mLock.lock(); in onDeviceOpenException()
216 mLock.lock(); in onDeviceOpenException()
233 mLock.lock(); in onDeviceClosed()
250 mLock.lock(); in onDeviceClosingException()
362 mLock.lock(); in shutdown()
/packages/modules/DnsResolver/tests/dns_metrics_listener/
Ddns_metrics_listener.cpp49 std::lock_guard lock(mMutex); in onNat64PrefixEvent() local
59 std::lock_guard lock(mMutex); in onPrivateDnsValidationEvent() local
72 std::lock_guard lock(mMutex); in onDnsEvent() local
84 std::lock_guard lock(mMutex); in waitForNat64Prefix() local
100 std::unique_lock lock(mMutex); in waitForPrivateDnsValidation() local
106 } while (mCv.wait_until(lock, now + kEventTimeoutMs) != std::cv_status::timeout); in waitForPrivateDnsValidation()
126 std::lock_guard lock(mMutex); in popDnsEvent() local
132 std::lock_guard lock(mMutex); in popDnsEvent() local
/packages/apps/TV/jni/
Dmutex.h29 int lock() { in lock() function
43 Autolock(Mutex &mutex) : lock(&mutex) { in Autolock()
44 lock->lock(); in Autolock()
47 lock->unlock(); in ~Autolock()
50 Mutex *lock;
/packages/apps/Settings/src/com/android/settings/password/
DChooseLockGeneric.java568 private void setPreferenceTitle(ScreenLockType lock, @StringRes int title) { in setPreferenceTitle() argument
569 Preference preference = findPreference(lock.preferenceKey); in setPreferenceTitle()
575 private void setPreferenceTitle(ScreenLockType lock, CharSequence title) { in setPreferenceTitle() argument
576 Preference preference = findPreference(lock.preferenceKey); in setPreferenceTitle()
582 private void setPreferenceSummary(ScreenLockType lock, @StringRes int summary) { in setPreferenceSummary() argument
583 Preference preference = findPreference(lock.preferenceKey); in setPreferenceSummary()
603 ScreenLockType lock = in getKeyForCurrent() local
606 return lock != null ? lock.preferenceKey : null; in getKeyForCurrent()
635 for (ScreenLockType lock : ScreenLockType.values()) { in disableUnusablePreferencesImpl()
636 String key = lock.preferenceKey; in disableUnusablePreferencesImpl()
[all …]
DChooseLockTypeDialogFragment.java68 void onLockTypeSelected(ScreenLockType lock); in onLockTypeSelected() argument
164 ScreenLockType lock = getItem(position); in getView() local
166 textView.setText(mController.getTitle(lock)); in getView()
168 getIconForScreenLock(context, lock), null, null, null); in getView()
172 private static Drawable getIconForScreenLock(Context context, ScreenLockType lock) { in getIconForScreenLock() argument
173 switch (lock) { in getIconForScreenLock()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DChooseLockGeneric.java557 private void setPreferenceTitle(ScreenLockType lock, @StringRes int title) { in setPreferenceTitle() argument
558 Preference preference = findPreference(lock.preferenceKey); in setPreferenceTitle()
564 private void setPreferenceTitle(ScreenLockType lock, CharSequence title) { in setPreferenceTitle() argument
565 Preference preference = findPreference(lock.preferenceKey); in setPreferenceTitle()
571 private void setPreferenceSummary(ScreenLockType lock, @StringRes int summary) { in setPreferenceSummary() argument
572 Preference preference = findPreference(lock.preferenceKey); in setPreferenceSummary()
592 ScreenLockType lock = in getKeyForCurrent() local
595 return lock != null ? lock.preferenceKey : null; in getKeyForCurrent()
624 for (ScreenLockType lock : ScreenLockType.values()) { in disableUnusablePreferencesImpl()
625 String key = lock.preferenceKey; in disableUnusablePreferencesImpl()
[all …]
DChooseLockTypeDialogFragment.java68 void onLockTypeSelected(ScreenLockType lock); in onLockTypeSelected() argument
164 ScreenLockType lock = getItem(position); in getView() local
166 textView.setText(mController.getTitle(lock)); in getView()
168 getIconForScreenLock(context, lock), null, null, null); in getView()
172 private static Drawable getIconForScreenLock(Context context, ScreenLockType lock) { in getIconForScreenLock() argument
173 switch (lock) { in getIconForScreenLock()
/packages/services/Car/evs/sampleDriver/
DEvsV4lCamera.cpp110 std::lock_guard<std::mutex> lock(mAccessLock); in setMaxFramesInFlight() local
135 std::lock_guard<std::mutex> lock(mAccessLock); in startVideoStream() local
214 std::lock_guard <std::mutex> lock(mAccessLock); in doneWithFrame() local
259 std::unique_lock <std::mutex> lock(mAccessLock); in stopVideoStream() local
286 std::lock_guard<std::mutex> lock(mAccessLock); in setExtendedInfo() local
431 std::lock_guard<std::mutex> lock(mAccessLock); in forwardFrame() local
476 mapper.lock(buff.memHandle, in forwardFrame()
511 std::lock_guard<std::mutex> lock(mAccessLock); in forwardFrame() local
DEvsGlDisplay.cpp55 std::lock_guard<std::mutex> lock(mAccessLock); in forceShutdown() local
104 std::lock_guard<std::mutex> lock(mAccessLock); in setDisplayState() local
143 std::lock_guard<std::mutex> lock(mAccessLock); in getDisplayState() local
157 std::lock_guard<std::mutex> lock(mAccessLock); in getTargetBuffer() local
247 std::lock_guard<std::mutex> lock(mAccessLock); in returnTargetBufferForDisplay() local
/packages/apps/Nfc/nci/jni/
DPowerSwitch.cpp93 mMutex.lock(); in initialize()
132 mMutex.lock(); in getLevel()
152 mMutex.lock(); in setLevel()
175 mMutex.lock(); in setLevel()
214 mMutex.lock(); in setScreenOffPowerState()
233 mMutex.lock(); in setModeOff()
255 mMutex.lock(); in setModeOn()
DDataQueue.cpp51 mMutex.lock(); in ~DataQueue()
61 mMutex.lock(); in isEmpty()
81 mMutex.lock(); in enqueue()
115 mMutex.lock(); in dequeue()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DClipStorageReader.java60 FileLock lock = inStream.getChannel().lock(0L, Long.MAX_VALUE, true); in ClipStorageReader() local
61 sLocks.put(mCanonicalPath, new FileLockEntry(1, lock, mScanner)); in ClipStorageReader()
119 private FileLockEntry(int count, FileLock lock, Scanner scanner) { in FileLockEntry() argument
121 mLock = lock; in FileLockEntry()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLRootView.java212 mRenderLock.lock(); in requestLayoutContentPane()
290 mRenderLock.lock(); in onSurfaceCreated()
348 mRenderLock.lock(); in onDrawFrame()
475 mRenderLock.lock(); in dispatchTouchEvent()
501 mRenderLock.lock(); in run()
524 mRenderLock.lock(); in lockRenderThread()
566 mRenderLock.lock(); in freeze()
573 mRenderLock.lock(); in unfreeze()
/packages/apps/Camera2/src/com/android/camera/
DSurfaceTextureRenderer.java153 final Object lock = new Object(); in waitDone() local
154 synchronized (lock) { in waitDone()
158 synchronized (lock) { in waitDone()
159 lock.notifyAll(); in waitDone()
164 lock.wait(); in waitDone()

123456