Home
last modified time | relevance | path

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

123

/packages/apps/TV/usbtuner/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/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()
DFiniteTicketPool.java96 mLock.lock(); in releaseTicket()
120 mLock.lock(); in acquire()
171 mLock.lock(); in tryAcquire()
187 mLock.lock(); in close()
/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/apps/Nfc/nci/jni/
DPowerSwitch.cpp102 mMutex.lock (); in initialize()
141 mMutex.lock (); in getLevel()
163 mMutex.lock (); in setLevel()
188 mMutex.lock (); in setLevel()
227 mMutex.lock (); in setScreenOffPowerState()
248 mMutex.lock (); in setModeOff()
270 mMutex.lock (); in setModeOn()
DPn544Interop.cpp63 gMutex.lock (); in pn544InteropStopPolling()
87 gMutex.lock (); in pn544InteropStartPolling()
127 gMutex.lock (); in pn544InteropIsBusy()
147 gMutex.lock (); in pn544InteropAbortNow()
DDataQueue.cpp54 mMutex.lock (); in ~DataQueue()
67 mMutex.lock (); in isEmpty()
90 mMutex.lock (); in enqueue()
128 mMutex.lock (); in dequeue()
DMutex.h61 void lock ();
101 inline Autolock(Mutex& mutex) : mLock(mutex) { mLock.lock(); } in Autolock()
102 inline Autolock(Mutex* mutex) : mLock(*mutex) { mLock.lock(); } in Autolock()
DPeerToPeer.cpp218 mMutex.lock(); in registerServer()
452 mMutex.lock(); in accept()
482 mMutex.lock(); in deregisterServer()
538 mMutex.lock(); in createClient()
1036 mDisconnectMutex.lock (); in disconnectConnOriented()
1280 sP2p.mMutex.lock(); in nfaServerCallback()
1307 sP2p.mMutex.lock(); in nfaServerCallback()
1347 sP2p.mDisconnectMutex.lock (); in nfaServerCallback()
1501 sP2p.mDisconnectMutex.lock (); in nfaClientCallback()
1601 mNewJniHandleMutex.lock (); in getNewJniHandle()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DStateMachineTestBase.java28 final CountDownLatch lock = new CountDownLatch(1); in waitForStateMachineActionCompletion() local
32 lock.countDown(); in waitForStateMachineActionCompletion()
36 while (lock.getCount() > 0) { in waitForStateMachineActionCompletion()
38 lock.await(); in waitForStateMachineActionCompletion()
DTelecomTestCase.java53 final CountDownLatch lock = new CountDownLatch(1); in waitForHandlerAction() local
54 h.post(lock::countDown); in waitForHandlerAction()
55 while (lock.getCount() > 0) { in waitForHandlerAction()
57 lock.await(timeoutMillis, TimeUnit.MILLISECONDS); in waitForHandlerAction()
DCallerInfoLookupHelperTest.java214 final CountDownLatch lock = new CountDownLatch(1); in waitForActionCompletion() local
215 mCallerInfoLookupHelper.getHandler().post(lock::countDown); in waitForActionCompletion()
216 while (lock.getCount() > 0) { in waitForActionCompletion()
218 lock.await(); in waitForActionCompletion()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java173 PowerManager.WakeLock lock = getLock(this.getApplicationContext()); in onStartCommand() local
174 if (!lock.isHeld()) { in onStartCommand()
175 lock.acquire(); in onStartCommand()
217 PowerManager.WakeLock lock = getLock(this.getApplicationContext()); in installPackage() local
322 new PackageInstallObserver(this, lock, startId, packageName), in installPackage()
336 finishService(lock, startId); in installPackage()
346 PowerManager.WakeLock lock = getLock(this.getApplicationContext()); in uninstallPackage() local
347 pm.deletePackage(packageName, new PackageDeleteObserver(lock, startId), in uninstallPackage()
463 private void finishService(PowerManager.WakeLock lock, int startId) { in finishService() argument
464 if (lock.isHeld()) { in finishService()
[all …]
/packages/apps/Camera2/src/com/android/camera/captureintent/stateful/
DStateMachineImpl.java52 mStateLock.lock(); in jumpToState()
79 mStateLock.lock(); in getCurrentState()
89 mStateLock.lock(); in setInitialState()
103 mStateLock.lock(); in processEvent()
/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()
/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/services/Telecomm/src/com/android/server/telecom/components/
DTelecomService.java104 TelecomSystem.SyncRoot lock) { in initializeTelecomSystem()
105 return new HeadsetMediaButton(context, callsManager, lock); in initializeTelecomSystem()
142 Context context, TelecomSystem.SyncRoot lock, in initializeTelecomSystem()
145 return new BluetoothPhoneServiceImpl(context, lock, in initializeTelecomSystem()
/packages/services/Telecomm/src/com/android/server/telecom/
DInCallTonePlayer.java42 TelecomSystem.SyncRoot lock) { in Factory() argument
44 mLock = lock; in Factory()
120 TelecomSystem.SyncRoot lock) { in InCallTonePlayer() argument
125 mLock = lock; in InCallTonePlayer()
/packages/services/Car/service/src/com/android/car/
DCarSensorService.java132 mSensorLock.lock(); in init()
220 mSensorLock.lock(); in onSensorHalReady()
236 mSensorLock.lock(); in processSensorData()
288 mSensorLock.lock(); in registerOrUpdateSensorListener()
359 mSensorLock.lock(); in registerOrUpdateSensorListener()
459 mSensorLock.lock(); in unregisterSensorListener()
543 mSensorLock.lock(); in getSensorHal()
565 mSensorLock.lock(); in getLatestSensorEvent()
648 mSensorLock.lock(); in removeClient()
/packages/apps/Settings/src/com/android/settings/
DEventLogTags.logtags5 # log the type of screen lock when user sets lock screen
/packages/services/Car/libvehiclenetwork/native/
DHandlerThread.cpp47 mLock.lock(); in quit()
55 mLock.lock(); in threadLoop()
/packages/services/Telephony/tests/src/com/android/services/telephony/activation/
DResponseReceiver.java34 ResponseReceiver(Object lock) { in ResponseReceiver() argument
35 mLock = lock; in ResponseReceiver()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DBarrierConsumer.java55 mLock.lock(); in getValues()
73 mLock.lock(); in consume()
/packages/apps/Camera2/src/com/android/camera/processing/
DProcessingService.java158 mSuspendStatusLock.lock(); in pause()
171 mSuspendStatusLock.lock(); in resume()
199 mSuspendStatusLock.lock(); in asyncProcessAllTasksAndShutdown()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DChannelsBlockedFragment.java174 boolean lock = !areAllChannelsBlocked(); in onSelected()
176 getChannelDataManager().updateLocked(channel.getId(), lock); in onSelected() local
178 mBlockedChannelCount = lock ? mChannels.size() : 0; in onSelected()

123