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/services/Telecomm/src/com/android/server/telecom/
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 …]
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 …]
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 …]
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 …]
DBluetoothPhoneServiceImpl.java93 synchronized (mLock) {
115 synchronized (mLock) {
136 synchronized (mLock) {
160 synchronized (mLock) {
183 synchronized (mLock) {
211 synchronized (mLock) {
236 synchronized (mLock) {
253 synchronized (mLock) {
385 synchronized (mLock) {
392 synchronized (mLock) {
[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 …]
/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/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/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/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/services/Car/vehicle_network_service/
DVehicleNetworkService.cpp53 Mutex::Autolock autoLock(mLock); in ~VehicleHalMessageHandler()
69 Mutex::Autolock autoLock(mLock); in handleHalEvent()
82 Mutex::Autolock autoLock(mLock); in handleHalError()
88 Mutex::Autolock autoLock(mLock); in handleMockStart()
100 Mutex::Autolock autoLock(mLock); in doHandleHalEvent()
131 Mutex::Autolock autoLock(mLock); in doHandleHalError()
299 Mutex::Autolock autoLock(mLock); in binderDied()
357 Mutex::Autolock autoLock(mLock); in onFirstRef()
393 Mutex::Autolock autoLock(mLock); in release()
473 Mutex::Autolock autoLock(mLock); in listProperties()
[all …]
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 …]
/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/Nfc/src/com/android/nfc/cardemulation/
DHostEmulationManager.java72 final Object mLock; field in HostEmulationManager
102 mLock = new Object(); in HostEmulationManager()
109 synchronized (mLock) { in onPreferredPaymentServiceChanged()
119 synchronized (mLock) { in onPreferredForegroundServiceChanged()
130 synchronized (mLock) { in onHostEmulationActivated()
147 synchronized (mLock) { in onHostEmulationData()
253 synchronized (mLock) { in onHostEmulationDeactivated()
267 synchronized (mLock) { in onOffHostAidSelected()
416 synchronized (mLock) {
425 synchronized (mLock) {
[all …]
DHostNfcFEmulationManager.java56 final Object mLock; field in HostNfcFEmulationManager
78 mLock = new Object(); in HostNfcFEmulationManager()
85 synchronized (mLock) { in onEnabledForegroundNfcFServiceChanged()
102 synchronized (mLock) { in onHostEmulationData()
150 synchronized (mLock) { in onHostEmulationDeactivated()
160 synchronized (mLock) { in onNfcDisabled()
171 synchronized (mLock) { in onUserSwitched()
263 synchronized (mLock) {
279 synchronized (mLock) {
291 synchronized(mLock) { in handleMessage()
[all …]
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/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/libvehiclenetwork/native/
DVehicleNetwork.cpp36 Mutex::Autolock autoLock(mLock); in ~VehicleNetworkEventMessageHandler()
46 Mutex::Autolock autoLock(mLock); in handleHalEvents()
53 Mutex::Autolock autoLock(mLock); in handleHalError()
64 Mutex::Autolock autoLock(mLock); in handleHalRestart()
72 Mutex::Autolock autoLock(mLock); in doHandleHalEvents()
87 Mutex::Autolock autoLock(mLock); in doHandleHalError()
104 Mutex::Autolock autoLock(mLock); in doHandleHalRestart()
162 Mutex::Autolock autoLock(mLock); in onFirstRef()
294 Mutex::Autolock autoLock(mLock); in binderDied()
307 Mutex::Autolock autoLock(mLock); in getService()
[all …]
/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/Camera2/src/com/android/camera/processing/imagebackend/
DImageBackend.java851 private final ReentrantLock mLock = new ReentrantLock(); field in ImageBackend.BlockSignalProtocol
856 mLock.lock(); in setCount()
858 mLock.unlock(); in setCount()
863 mLock.lock(); in getCount()
865 mLock.unlock(); in getCount()
870 mLock.lock(); in addCount()
875 mLock.unlock(); in addCount()
881 mSignal = mLock.newCondition(); in BlockSignalProtocol()
885 mLock.lock(); in block()
895 mLock.unlock(); in block()
[all …]
/packages/services/Car/libvehiclenetwork/libvehiclenetwork-audio-helper/src/
DVehicleNetworkAudioHelper.cpp51 Mutex::Autolock autoLock(mLock); in init()
83 Mutex::Autolock autoLock(mLock); in release()
102 Mutex::Autolock autoLock(mLock); in notifyStreamStarted()
126 Mutex::Autolock autoLock(mLock); in notifyStreamStopped()
159 Mutex::Autolock autoLock(mLock); in getStreamFocusState()
184 Mutex::Autolock autoLock(mLock); in waitForStreamFocus()
197 mFocusWait.waitRelative(mLock, waitTime); in waitForStreamFocus()
208 Mutex::Autolock autoLock(mLock); in onEvents()
237 Mutex::Autolock autoLock(mLock); in onHalRestart()
/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;

123456