Home
last modified time | relevance | path

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

123456789

/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()
155 synchronized (mLock) { in closePreferences()
196 synchronized (mLock) {
224 synchronized (mLock) {
254 synchronized (mLock) {
280 synchronized (mLock) {
299 synchronized (mLock) {
[all …]
/packages/modules/DnsResolver/
DDnsTlsSocket.h57 bool initialize() EXCLUDES(mLock);
65 bool query(uint16_t id, const netdutils::Slice query) override EXCLUDES(mLock);
69 std::mutex mLock;
72 void loop() EXCLUDES(mLock);
73 std::unique_ptr<std::thread> mLoopThread GUARDED_BY(mLock);
78 netdutils::Status tcpConnect() REQUIRES(mLock);
82 bssl::UniquePtr<SSL> sslConnect(int fd) REQUIRES(mLock);
85 void sslDisconnect() REQUIRES(mLock);
88 bool sslWrite(const netdutils::Slice buffer) REQUIRES(mLock);
94 int sslRead(const netdutils::Slice buffer, bool wait) REQUIRES(mLock);
[all …]
DDnsTlsTransport.h53 std::future<Result> query(const netdutils::Slice query) EXCLUDES(mLock);
60 int getConnectCounter() const EXCLUDES(mLock);
64 void onClosed() override EXCLUDES(mLock);
67 mutable std::mutex mLock;
76 void doConnect() REQUIRES(mLock);
79 void doReconnect() EXCLUDES(mLock);
80 std::unique_ptr<std::thread> mReconnectThread GUARDED_BY(mLock);
83 bool mClosing GUARDED_BY(mLock) = false;
86 std::unique_ptr<IDnsTlsSocket> mSocket GUARDED_BY(mLock);
89 bool sendQuery(const DnsTlsQueryMap::Query& q) REQUIRES(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/
DInCallAdapter.java37 private final TelecomSystem.SyncRoot mLock; field in InCallAdapter
45 mLock = lock; in InCallAdapter()
55 synchronized (mLock) { in answerCall()
78 synchronized (mLock) { in deflectCall()
103 synchronized (mLock) { in rejectCall()
137 synchronized (mLock) { in rejectCallWithReason()
159 synchronized (mLock) { in transferCall()
183 synchronized (mLock) { in consultativeTransfer()
208 synchronized (mLock) { in playDtmfTone()
231 synchronized (mLock) { in stopDtmfTone()
[all …]
DTelecomServiceImpl.java115 synchronized (mLock) {
139 synchronized (mLock) {
162 synchronized (mLock) {
194 synchronized (mLock) {
219 synchronized (mLock) {
251 synchronized (mLock) {
271 synchronized (mLock) {
290 synchronized (mLock) {
325 synchronized (mLock) {
342 synchronized (mLock) {
[all …]
DVideoProviderProxy.java71 private final TelecomSystem.SyncRoot mLock; field in VideoProviderProxy
119 mLock = lock; in VideoProviderProxy()
157 synchronized (mLock) { in receiveSessionModifyRequest()
214 synchronized (mLock) { in receiveSessionModifyResponse()
235 synchronized (mLock) { in handleCallSessionEvent()
251 synchronized (mLock) { in changePeerDimensions()
266 synchronized (mLock) { in changeVideoQuality()
283 synchronized (mLock) { in changeCallDataUsage()
298 synchronized (mLock) { in changeCameraCapabilities()
325 synchronized (mLock) { in onSetCamera()
[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/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/services/Car/service/src/com/android/car/vms/
DVmsBrokerService.java52 private final Object mLock = new Object(); field in VmsBrokerService
128 synchronized (mLock) { in addSubscription()
139 synchronized (mLock) { in removeSubscription()
153 synchronized (mLock) { in addSubscription()
173 synchronized (mLock) { in removeSubscription()
199 synchronized (mLock) { in addSubscription()
222 synchronized (mLock) { in removeSubscription()
250 synchronized (mLock) { in removeDeadSubscriber()
266 synchronized (mLock) { in getSubscribersForLayerFromPublisher()
275 synchronized (mLock) { in getSubscriptionState()
[all …]
DVmsClientManager.java79 private final Object mLock = new Object(); field in VmsClientManager
103 synchronized (mLock) {
113 synchronized (mLock) {
127 synchronized (mLock) {
176 synchronized (mLock) { in setPublisherService()
190 synchronized (mLock) { in release()
203 synchronized (mLock) { in dump()
232 synchronized (mLock) { in addSubscriber()
263 synchronized (mLock) { in removeSubscriber()
275 synchronized (mLock) { in getAllSubscribers()
[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/service/src/com/android/car/stats/
DVmsClientStats.java29 private final Object mLock = new Object(); field in VmsClientStats
70 synchronized (other.mLock) { in VmsClientStats()
92 synchronized (mLock) { in packetSent()
104 synchronized (mLock) { in packetReceived()
116 synchronized (mLock) { in packetDropped()
139 synchronized (mLock) { in getTxBytes()
145 synchronized (mLock) { in getTxPackets()
151 synchronized (mLock) { in getRxBytes()
157 synchronized (mLock) { in getRxPackets()
163 synchronized (mLock) { in getDroppedBytes()
[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/service/src/com/android/car/
DCarProjectionService.java98 private final Object mLock = new Object(); field in CarProjectionService
145 synchronized (mLock) {
154 synchronized (mLock) {
195 synchronized (mLock) { in registerProjectionRunner()
211 synchronized (mLock) { in unregisterProjectionRunner()
223 synchronized (mLock) { in bindToService()
232 synchronized (mLock) { in unbindServiceIfBound()
250 synchronized (mLock) { in registerKeyEventHandler()
266 synchronized (mLock) { in unregisterKeyEventHandler()
287 synchronized (mLock) { in stopProjectionAccessPoint()
[all …]
DVmsRouting.java46 private final Object mLock = new Object(); field in VmsRouting
74 synchronized (mLock) { in addSubscription()
90 synchronized (mLock) { in removeSubscription()
107 synchronized (mLock) { in addSubscription()
126 synchronized (mLock) { in removeSubscription()
151 synchronized (mLock) { in addSubscription()
174 synchronized (mLock) { in removeSubscription()
206 synchronized (mLock) { in removeDeadSubscriber()
248 synchronized (mLock) { in getSubscribersForLayerFromPublisher()
270 synchronized (mLock) { in hasLayerSubscriptions()
[all …]
DCarPowerManagementService.java70 private final Object mLock = new Object(); field in CarPowerManagementService
188 synchronized (mLock) { in getHandlerThread()
195 synchronized (mLock) { in init()
215 synchronized (mLock) { in release()
251 synchronized (mLock) { in onApPowerStateChange()
260 synchronized (mLock) { in setStateForTesting()
275 synchronized (mLock) { in onApPowerStateChange()
285 synchronized (mLock) { in doHandlePowerStateChange()
380 synchronized (mLock) { in handleOn()
507 synchronized (mLock) { in handleShutdownPrepare()
[all …]
/packages/apps/Car/Radio/src/com/android/car/radio/
DBrowseAdapter.java47 private final Object mLock = new Object(); field in BrowseAdapter
106 synchronized (mLock) { in setOnItemClickListener()
115 synchronized (mLock) { in setOnItemFavoriteListener()
126 synchronized (mLock) { in setProgramList()
154 synchronized (mLock) { in removeFormerFavorites()
170 synchronized (mLock) { in onFavoritesChanged()
191 synchronized (mLock) { in onCurrentProgramChanged()
208 synchronized (mLock) { in onBindViewHolder()
231 synchronized (mLock) { in getItemCount()
239 synchronized (mLock) { in handlePresetClicked()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DLoader.java50 private final Object mLock = new Object(); field in Loader
68 synchronized (mLock) { in get()
74 synchronized (mLock) { in get()
99 synchronized (mLock) { in get()
109 synchronized (mLock) { in get()
114 synchronized (mLock) { in get()
130 synchronized (mLock) { in getStatus()
136 synchronized (mLock) { in acquire()
142 synchronized (mLock) { in release()
/packages/services/Car/service/src/com/android/car/user/
DCarUserNoticeService.java83 private final Object mLock = new Object(); field in CarUserNoticeService
119 synchronized (mLock) {
171 synchronized (mLock) {
185 synchronized (mLock) {
201 synchronized (mLock) {
222 synchronized (mLock) { in ignoreUserNotice()
282 synchronized (mLock) { in startNoticeUiIfNecessary()
323 synchronized (mLock) { in startNoticeUiIfNecessary()
335 synchronized (mLock) { in stopUi()
357 synchronized (mLock) { in init()
[all …]
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DHostEmulationManager.java75 final Object mLock; field in HostEmulationManager
106 mLock = new Object(); in HostEmulationManager()
114 synchronized (mLock) { in onPreferredPaymentServiceChanged()
125 synchronized (mLock) { in onPreferredForegroundServiceChanged()
136 synchronized (mLock) { in onHostEmulationActivated()
154 synchronized (mLock) { in onHostEmulationData()
269 synchronized (mLock) { in onHostEmulationDeactivated()
283 synchronized (mLock) { in onOffHostAidSelected()
438 synchronized (mLock) {
450 synchronized (mLock) {
[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()
146 synchronized (mLock) { in unregisterForegroundService()
178 synchronized (mLock) { in onHostEmulationActivated()
186 synchronized (mLock) { in onHostEmulationDeactivated()
199 synchronized (mLock) { in onNfcDisabled()
209 synchronized (mLock) { in onUserSwitched()
/packages/apps/Car/Radio/src/com/android/car/radio/service/
DRadioAppService.java71 private final Object mLock = new Object(); field in RadioAppService
189 synchronized (mLock) { in onPlaybackStateChanged()
198 synchronized (mLock) { in onProgramListChanged()
208 synchronized (mLock) { in pushProgramListUpdate()
217 synchronized (mLock) { in tuneToDefault()
241 synchronized (mLock) { in close()
273 synchronized (mLock) { in onHardwareError()
292 synchronized (mLock) {
302 synchronized (mLock) {
310 synchronized (mLock) {
[all …]
/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 …]

123456789