Home
last modified time | relevance | path

Searched refs:mLock (Results 1 – 25 of 128) sorted by relevance

123456

/packages/apps/Camera2/src/com/android/camera/settings/
DSettingsManager.java79 private final Object mLock; field in SettingsManager
104 mLock = new Object(); in SettingsManager()
118 synchronized (mLock) { in getDefaultPreferences()
129 synchronized (mLock) { in openPreferences()
152 synchronized (mLock) { in closePreferences()
193 synchronized (mLock) {
221 synchronized (mLock) {
251 synchronized (mLock) {
277 synchronized (mLock) {
296 synchronized (mLock) {
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ticketpool/
DReservableTicketPool.java90 mLock.lock(); in close()
103 mLock.unlock(); in close()
122 private final ReentrantLock mLock; field in ReservableTicketPool
149 mLock = new ReentrantLock(true); in ReservableTicketPool()
158 mLock.lock(); in updateCurrentTicketCount()
166 mLock.unlock(); in updateCurrentTicketCount()
192 mLock.lock(); in tryAcquire()
200 mLock.unlock(); in tryAcquire()
217 mLock.lock(); in reserveCapacity()
227 mLock.unlock(); in reserveCapacity()
[all …]
DFiniteTicketPool.java49 synchronized (mLock) { in close()
76 private final ReentrantLock mLock; field in FiniteTicketPool
87 mLock = new ReentrantLock(true); in FiniteTicketPool()
96 mLock.lock(); in releaseTicket()
112 mLock.unlock(); in releaseTicket()
120 mLock.lock(); in acquire()
125 Waiter thisWaiter = new Waiter(tickets, mLock.newCondition()); in acquire()
150 mLock.unlock(); in acquire()
171 mLock.lock(); in tryAcquire()
181 mLock.unlock(); in tryAcquire()
[all …]
/packages/apps/Camera2/src/com/android/camera/device/
DSingleDeviceStateMachine.java69 private final ReentrantLock mLock; field in SingleDeviceStateMachine
105 mLock = new ReentrantLock(); in SingleDeviceStateMachine()
118 mLock.lock(); in requestOpen()
127 mLock.unlock(); in requestOpen()
135 mLock.lock(); in requestClose()
144 mLock.unlock(); in requestClose()
153 mLock.lock(); in setRequest()
178 mLock.unlock(); in setRequest()
184 mLock.lock(); in onDeviceOpened()
195 mLock.unlock(); in onDeviceOpened()
[all …]
DActiveCameraDeviceTracker.java45 private final Object mLock; field in ActiveCameraDeviceTracker
55 mLock = new Object(); in ActiveCameraDeviceTracker()
59 synchronized (mLock) { in getActiveCamera()
65 synchronized (mLock) { in getActiveOrPreviousCamera()
76 synchronized (mLock) { in onCameraOpening()
87 synchronized (mLock) { in onCameraClosed()
/packages/services/Telecomm/src/com/android/server/telecom/
DVideoProviderProxy.java64 private final TelecomSystem.SyncRoot mLock; field in VideoProviderProxy
106 mLock = lock; in VideoProviderProxy()
131 synchronized (mLock) { in receiveSessionModifyRequest()
157 synchronized (mLock) { in receiveSessionModifyResponse()
174 synchronized (mLock) { in handleCallSessionEvent()
189 synchronized (mLock) { in changePeerDimensions()
204 synchronized (mLock) { in changeVideoQuality()
221 synchronized (mLock) { in changeCallDataUsage()
236 synchronized (mLock) { in changeCameraCapabilities()
251 synchronized (mLock) { in onSetCamera()
[all …]
DInCallAdapter.java35 private final TelecomSystem.SyncRoot mLock; field in InCallAdapter
43 mLock = lock; in InCallAdapter()
53 synchronized (mLock) { in answerCall()
76 synchronized (mLock) { in rejectCall()
99 synchronized (mLock) { in playDtmfTone()
122 synchronized (mLock) { in stopDtmfTone()
145 synchronized (mLock) { in postDialContinue()
168 synchronized (mLock) { in disconnectCall()
191 synchronized (mLock) { in holdCall()
213 synchronized (mLock) { in unholdCall()
[all …]
DTelecomServiceImpl.java118 synchronized (mLock) {
142 synchronized (mLock) {
161 synchronized (mLock) {
188 synchronized (mLock) {
211 synchronized (mLock) {
234 synchronized (mLock) {
253 synchronized (mLock) {
277 synchronized (mLock) {
293 synchronized (mLock) {
311 synchronized (mLock) {
[all …]
DConnectionServiceWrapper.java72 synchronized (mLock) { in handleCreateConnectionComplete()
88 synchronized (mLock) { in setActive()
108 synchronized (mLock) { in setRinging()
128 synchronized (mLock) { in setVideoProvider()
146 synchronized (mLock) { in setDialing()
166 synchronized (mLock) { in setDisconnected()
187 synchronized (mLock) { in setOnHold()
207 synchronized (mLock) { in setRingbackRequested()
227 synchronized (mLock) { in removeCall()
250 synchronized (mLock) { in setConnectionCapabilities()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DReadOnlyBinaryDictionary.java37 private final ReentrantReadWriteLock mLock = new ReentrantReadWriteLock(); field in ReadOnlyBinaryDictionary
58 if (mLock.readLock().tryLock()) { in getSuggestions()
64 mLock.readLock().unlock(); in getSuggestions()
72 if (mLock.readLock().tryLock()) { in isInDictionary()
76 mLock.readLock().unlock(); in isInDictionary()
84 if (mLock.readLock().tryLock()) { in shouldAutoCommit()
88 mLock.readLock().unlock(); in shouldAutoCommit()
96 if (mLock.readLock().tryLock()) { in getFrequency()
100 mLock.readLock().unlock(); in getFrequency()
108 if (mLock.readLock().tryLock()) { in getMaxFrequencyOfExactMatches()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationCheckedSet.java66 private final Object mLock = new Object(); field in ConversationCheckedSet
96 synchronized (mLock) { in addObserver()
105 synchronized (mLock) { in clear()
125 synchronized (mLock) { in containsKey()
136 synchronized (mLock) { in contains()
147 synchronized (mLock) { in dispatchOnBecomeUnempty()
155 synchronized (mLock) { in dispatchOnChange()
165 synchronized (mLock) { in dispatchOnEmpty()
177 synchronized (mLock) { in isEmpty()
183 synchronized (mLock) { in put()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
DAndroidImageReaderProxy.java34 private final Object mLock; field in AndroidImageReaderProxy
39 mLock = new Object(); in AndroidImageReaderProxy()
79 synchronized (mLock) { in getWidth()
86 synchronized (mLock) { in getHeight()
93 synchronized (mLock) { in getImageFormat()
100 synchronized (mLock) { in getMaxImages()
108 synchronized (mLock) { in getSurface()
116 synchronized (mLock) { in acquireLatestImage()
129 synchronized (mLock) { in acquireNextImage()
143 synchronized (mLock) { in setOnImageAvailableListener()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/content/
DThreadSafeCursorWrapper.java31 private final Object mLock = new Object(); field in ThreadSafeCursorWrapper
46 synchronized (mLock) { in getString()
54 synchronized (mLock) { in getShort()
62 synchronized (mLock) { in getInt()
70 synchronized (mLock) { in getLong()
78 synchronized (mLock) { in getFloat()
86 synchronized (mLock) { in getDouble()
94 synchronized (mLock) { in getBlob()
104 synchronized (mLock) { in respond()
115 synchronized (mLock) { in copyStringToBuffer()
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DConcurrentSharedRingBuffer.java165 private final Object mLock = new Object(); field in ConcurrentSharedRingBuffer
206 synchronized (mLock) { in setListener()
233 synchronized (mLock) { in swapLeast()
249 synchronized (mLock) { in swapLeast()
271 synchronized (mLock) { in swapLeast()
310 synchronized (mLock) { in swapLeast()
337 synchronized (mLock) { in tryPin()
381 synchronized (mLock) { in release()
423 synchronized (mLock) { in tryPinGreatest()
445 synchronized (mLock) { in tryPinGreatestSelected()
[all …]
/packages/services/Car/libvehiclenetwork/native/
DHandlerThread.cpp31 Mutex::Autolock autoLock(mLock); in getLooper()
33 mLooperWait.wait(mLock); in getLooper()
47 mLock.lock(); in quit()
49 mLock.unlock(); in quit()
55 mLock.lock(); in threadLoop()
58 mLock.unlock(); in threadLoop()
61 Mutex::Autolock autoLock(mLock); in threadLoop()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_node_vector.h36 AK_FORCE_INLINE DicNodeVector() : mDicNodes(), mLock(false) {} in DicNodeVector()
39 AK_FORCE_INLINE DicNodeVector(const int size) : mDicNodes(), mLock(false) { in DicNodeVector()
48 mLock = false; in clear()
52 mLock = true; in getSizeAndLock()
57 ASSERT(!mLock); in pushPassingChild()
64 ASSERT(!mLock); in pushLeavingChild()
82 bool mLock; variable
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DServiceDeclaration.java73 private final Object mLock = new Object(); field in ServiceDeclaration
79 synchronized (mLock) { in addService()
92 synchronized (mLock) { in addIncludedService()
99 synchronized (mLock) { in addCharacteristic()
106 synchronized (mLock) { in addDescriptor()
113 synchronized (mLock) { in getNext()
122 synchronized (mLock) { in isServiceAdvertisePreferred()
133 synchronized (mLock) { in getNumHandles()
/packages/apps/Nfc/nci/jni/
DMutex.h101 inline Autolock(Mutex& mutex) : mLock(mutex) { mLock.lock(); } in Autolock()
102 inline Autolock(Mutex* mutex) : mLock(*mutex) { mLock.lock(); } in Autolock()
103 inline ~Autolock() { mLock.unlock(); } in ~Autolock()
105 Mutex& mLock;
/packages/services/Car/tests/libvehiclenetwork-native-test/
DVehicleNetworkTestListener.h44 Mutex::Autolock autolock(mLock); in onEvents()
73 Mutex::Autolock autolock(mLock); in waitForEvents()
74 mCondition.waitRelative(mLock, reltime); in waitForEvents()
78 Mutex::Autolock autolock(mLock); in waitForEvent()
83 mCondition.waitRelative(mLock, endTime - now); in waitForEvent()
91 Mutex::Autolock autolock(mLock); in getEventCount()
97 Mutex::Autolock autolock(mLock); in getEvents()
117 Mutex mLock;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DCachedLater.java35 private final Object mLock = new Object(); field in CachedLater
57 synchronized (mLock) { in store()
83 synchronized (mLock) { in getLater()
98 synchronized (mLock) { in getLater()
118 synchronized (mLock) { in clear()
125 synchronized (mLock) { in haveNow()
131 synchronized (mLock) { in getNow()
DBarrierConsumer.java30 private final Lock mLock = new ReentrantLock(); field in BarrierConsumer
31 private final Condition mNotFull = mLock.newCondition();
55 mLock.lock(); in getValues()
68 mLock.unlock(); in getValues()
73 mLock.lock(); in consume()
87 mLock.unlock(); in consume()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DEnabledNfcFServices.java42 final Object mLock = new Object(); field in EnabledNfcFServices
69 synchronized (mLock) { in computeEnabledForegroundService()
97 synchronized (mLock) { in onServicesUpdated()
113 synchronized (mLock) { in registerEnabledForegroundService()
145 synchronized (mLock) { in unregisterForegroundService()
177 synchronized (mLock) { in onHostEmulationActivated()
185 synchronized (mLock) { in onHostEmulationDeactivated()
198 synchronized (mLock) { in onNfcDisabled()
208 synchronized (mLock) { in onUserSwitched()
/packages/apps/Camera2/src/com/android/camera/processing/memory/
DSimpleLruResourcePool.java34 private final Object mLock; field in SimpleLruResourcePool
39 mLock = new Object(); in SimpleLruResourcePool()
46 synchronized (mLock) { in acquire()
85 private final Object mLock; field in SimpleLruResourcePool.SynchronizedResource
100 mLock = new Object(); in SynchronizedResource()
106 synchronized (mLock) { in get()
116 synchronized (mLock) { in close()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DActionMonitor.java123 private final Object mLock = new Object(); field in ActionMonitor
179 synchronized (mLock) { in clearListeners()
201 synchronized (mLock) { in isComplete()
211 synchronized (mLock) { in setCompletedListener()
220 synchronized (mLock) { in setExecutedListener()
229 synchronized (mLock) { in setStateChangedListener()
244 synchronized (mLock) { in updateState()
298 synchronized (mLock) { in complete()
310 synchronized (mLock) { in complete()
367 synchronized (mLock) { in executed()
[all …]
/packages/services/Car/vehicle_network_service/
DVehicleNetworkService.h84 mutable Mutex mLock;
133 Mutex::Autolock autoLock(mLock); in getSubscriptionInfo()
142 Mutex::Autolock autoLock(mLock); in setSubscriptionInfo()
148 Mutex::Autolock autoLock(mLock); in removePropertyAndCheckIfActive()
154 Mutex::Autolock autoLock(mLock); in removeAllProperties()
159 Mutex::Autolock autoLock(mLock); in isActive()
164 Mutex::Autolock autoLock(mLock); in setHalRestartMonitoringState()
169 Mutex::Autolock autoLock(mLock); in isMonitoringHalRestart()
174 Mutex::Autolock autoLock(mLock); in setHalErrorMonitoringState()
179 Mutex::Autolock autoLock(mLock); in isMonitoringHalError()
[all …]

123456