/frameworks/base/media/libmediaplayerservice/ |
MidiFile.cpp | 118 Mutex::Autolock lock(mMutex); 149 Mutex::Autolock lock(mMutex); 177 Mutex::Autolock lock(mMutex); 195 // don't hold lock during callback 207 Mutex::Autolock lock(mMutex); 232 Mutex::Autolock lock(mMutex); 250 // hold lock during EAS calls 252 Mutex::Autolock lock(mMutex); 272 Mutex::Autolock lock(mMutex); 311 Mutex::Autolock lock(mMutex) [all...] |
/frameworks/base/libs/gui/ |
SurfaceTextureClient.cpp | 140 Mutex::Autolock lock(mMutex); 169 Mutex::Autolock lock(mMutex); 209 Mutex::Autolock lock(mMutex); 215 Mutex::Autolock lock(mMutex); 238 { // scope for the lock 239 Mutex::Autolock lock(mMutex); 396 return lock(outBuffer, inOutDirtyBounds); 406 Mutex::Autolock lock(mMutex); 417 Mutex::Autolock lock(mMutex); 435 Mutex::Autolock lock(mMutex) 597 status_t SurfaceTextureClient::lock( function in class:android::SurfaceTextureClient [all...] |
SurfaceTexture.cpp | 193 Mutex::Autolock lock(mMutex); 199 Mutex::Autolock lock(mMutex); 253 Mutex::Autolock lock(mMutex); 261 Mutex::Autolock lock(mMutex); 289 { // Scope for the lock 290 Mutex::Autolock lock(mMutex); 509 Mutex::Autolock lock(mMutex); 544 { // scope for the lock 545 Mutex::Autolock lock(mMutex); 605 } // scope for the lock [all...] |
/device/samsung/tuna/audio/ |
audio_hw.c | 481 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:tuna_audio_device 507 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:tuna_stream_out 524 pthread_mutex_t lock; /* see note below on mutex acquisition order */ member in struct:tuna_stream_in 676 pthread_mutex_lock(&adev->lock); 687 pthread_mutex_unlock(&adev->lock); 854 pthread_mutex_lock(&out->lock); 856 pthread_mutex_unlock(&out->lock); 861 pthread_mutex_lock(&in->lock); 863 pthread_mutex_unlock(&in->lock); [all...] |
/external/llvm/lib/VMCore/ |
PassRegistry.cpp | 38 static ManagedStatic<sys::SmartMutex<true> > Lock; 75 sys::SmartScopedLock<true> Guard(*Lock); 87 sys::SmartScopedLock<true> Guard(*Lock); 94 sys::SmartScopedLock<true> Guard(*Lock); 106 sys::SmartScopedLock<true> Guard(*Lock); 123 sys::SmartScopedLock<true> Guard(*Lock); 135 sys::SmartScopedLock<true> Guard(*Lock); 163 sys::SmartScopedLock<true> Guard(*Lock); 189 sys::SmartScopedLock<true> Guard(*Lock); 195 sys::SmartScopedLock<true> Guard(*Lock); [all...] |
/external/webkit/Source/WebKit2/Platform/win/ |
WorkQueueWin.cpp | 74 MutexLocker lock(queue->m_workItemQueueLock); 79 // Some other thread is performing work. Since we hold the queue lock, we can be sure 81 // item we just added to it. If we weren't holding the lock we'd have to signal 95 MutexLocker lock(m_handlesLock); 139 m_workItemQueueLock.lock(); 154 m_workItemQueueLock.lock(); 158 // be handled by that work thread. Unregister as the work thread while the queue lock is still 188 MutexLocker lock(m_handlesLock); 235 MutexLocker lock(timerContext->timerMutex); 254 MutexLocker lock(context->timerMutex) [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
LockPatternUtils.java | 54 * Utilities for the lock pattern and its settings. 74 * method of verifying the user, and resetting their lock pattern. 142 Log.d(TAG, "lock pattern file changed"); 145 Log.d(TAG, "lock password file changed"); 169 // Initialize the location of gesture & PIN lock files 316 * Check to see if the user has stored a lock pattern. 324 * Check to see if the user has stored a lock pattern. 398 * Clear any lock pattern or password. 410 * Disable showing lock screen at all when the DevicePolicyManager allows it. 413 * @param disable Disables lock screen when tru [all...] |
/external/webkit/Source/WebCore/bindings/objc/ |
WebScriptObject.mm | 289 JSLock lock(SilenceAssertionsOnly); 334 JSLock lock(SilenceAssertionsOnly); 369 JSLock lock(SilenceAssertionsOnly); 392 // Need to scope this lock to ensure that we release the lock before calling 394 // leaving the lock permanently held 395 JSLock lock(SilenceAssertionsOnly); 411 JSLock lock(SilenceAssertionsOnly); 425 JSLock lock(SilenceAssertionsOnly); 444 JSLock lock(SilenceAssertionsOnly) [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_StringReader.java | 54 synchronized (lock) { 82 synchronized (lock) { 119 synchronized (lock) { 152 synchronized (lock) { 187 synchronized (lock) { 206 synchronized (lock) { 229 synchronized (lock) {
|
/external/webkit/Source/JavaScriptCore/wtf/ |
TCSpinLock.h | 63 inline void Lock() { 122 // Report if we think the lock can be held by this thread. 123 // When the lock is truly held by the invoking thread 125 // Indended to be used as CHECK(lock.IsHeld()); 210 inline void Lock() { 250 inline void Lock() { 276 : lock_(l) { l->Lock(); }
|
/libcore/luni/src/main/java/java/io/ |
CharArrayReader.java | 102 synchronized (lock) { 140 synchronized (lock) { 177 synchronized (lock) { 211 synchronized (lock) { 237 synchronized (lock) { 254 synchronized (lock) { 271 synchronized (lock) {
|
/libcore/support/src/test/java/tests/support/ |
Support_StringReader.java | 54 synchronized (lock) { 82 synchronized (lock) { 119 synchronized (lock) { 152 synchronized (lock) { 187 synchronized (lock) { 206 synchronized (lock) { 229 synchronized (lock) {
|
/external/chromium/base/synchronization/ |
waitable_event_posix.cc | 8 #include "base/synchronization/lock.h" 17 // The WaitableEvent maintains a list of waiters, protected by a lock. Each 22 // Waiting involves grabbing the lock and adding oneself to the wait list. Async 23 // waits can be canceled, which means grabbing the lock and removing oneself 122 // Called with lock held. 131 // unlocking it and removing it from the wait-list. Called with lock held. 137 base::Lock* lock() { function in class:base::SyncWaiter 148 base::Lock lock_; 173 sw.lock()->Acquire() [all...] |
/frameworks/base/libs/utils/ |
Looper.cpp | 246 mLock.lock(); 257 // Acquire lock. 258 mLock.lock(); 376 // we reacquire our lock. 391 mLock.lock(); 401 // Release lock. 538 { // acquire lock 568 } // release lock 574 wakeAndLock(); // acquire lock 594 mLock.unlock(); // release lock [all...] |
/development/pdk/docs/porting/ |
power_management.jd | 12 <a href="#androidPowerWakeLockExample">Exploring a Wake Lock Example</a><br/></div> 40 <p>If the suspend operation has already started when locking a wakelock, the system will abort the suspend operation as long it has not already reached the <code>suspend_late</code> stage. This means that locking a wakelock from an interrupt handler or a freezeable thread always works, but if you lock a wakelock from a <code>suspend_late</code> handler, you must also return an error from that handler to abort suspend. You can use wakelocks to allow the user-space to decide which keys should wake the full system and turn on the screen. Use <code>set_irq_wake</code> or a platform-specific API to ensure that the keypad interrupt wakes up the CPU. Once the keypad driver has resumed, the sequence of events can look like this:</p> 95 <p>Write <code>lockname</code> or <code>lockname timeout</code> to <code>/sys/power/wake_lock</code> lock and, if needed, create a wakelock. The timeout here is specified in nanoseconds. Write <code>lockname</code> to <code>/sys/power/wake_unlock</code> to unlock a user wakelock.</p> 102 <th scope="col">Wake Lock </th> 111 <td>Wake lock that ensures that the screen and keyboard are on at full brightness. </td> 115 <td>When this wake lock is released, poke the user activity timer so the screen stays on for a little longer.</td> 119 <td>Wake lock that ensures that the CPU is running. The screen might not be on.</td> 123 <td>Wake lock that ensures that the screen is on at full brightness; the keyboard backlight will be allowed to go off.</td> 127 <td>Wake lock that ensures that the screen is on, but the keyboard backlight will be allowed to go off, and the screen backlight will be allowed to go dim.</td> 132 <a name="androidPowerWakeLockExample"></a><h3>Exploring a Wake Lock Example</h3 [all...] |
/external/chromium/chrome/browser/chromeos/ |
audio_mixer_alsa.cc | 69 base::AutoLock lock(mixer_state_lock_); 98 base::AutoLock lock(mixer_state_lock_); 117 base::AutoLock lock(mixer_state_lock_); 125 base::AutoLock lock(mixer_state_lock_); 136 base::AutoLock lock(mixer_state_lock_); 151 base::AutoLock lock(mixer_state_lock_); 164 base::AutoLock lock(mixer_state_lock_); 191 base::AutoLock lock(mixer_state_lock_); 218 base::AutoLock lock(mixer_state_lock_); 239 base::AutoLock lock(mixer_state_lock_) [all...] |
/external/qemu/ |
posix-aio-compat.c | 62 static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; variable 320 mutex_lock(&lock); 324 ret = cond_timedwait(&cond, &lock, &ts); 334 mutex_unlock(&lock); 353 mutex_lock(&lock); 356 mutex_unlock(&lock); 363 mutex_unlock(&lock); 388 mutex_lock(&lock); 392 mutex_unlock(&lock); 400 mutex_lock(&lock); [all...] |
/external/valgrind/main/coregrind/m_syswrap/ |
syswrap-amd64-darwin.c | 298 // The parent thread holds V's lock on our behalf. 355 // LOCK IS GONE BELOW THIS POINT 393 /* When we enter here we hold no lock (!), so we better acquire it 394 pronto. Why do we hold no lock? Because (presumably) the only 397 lock. At least that's clear for the 'reuse' case. The 400 lock. */ 448 /* Drop the lock before going into 452 would be to not drop the lock but instead "upgrade" it from a 453 LL lock to a full lock, but that's too much like hard wor [all...] |
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/ |
mutex | 86 lock() 138 lock() 196 lock() 301 lock() 390 * @brief Thrown to indicate errors with lock operations. 401 /// @brief Scoped lock idiom. 411 { _M_device.lock(); } 414 { _M_device.lock(); } 440 lock(); 500 lock() [all...] |
/prebuilt/ndk/android-ndk-r5/sources/cxx-stl/gnu-libstdc++/include/ |
mutex | 86 lock() 138 lock() 196 lock() 301 lock() 390 * @brief Thrown to indicate errors with lock operations. 401 /// @brief Scoped lock idiom. 411 { _M_device.lock(); } 414 { _M_device.lock(); } 440 lock(); 500 lock() [all...] |
/prebuilt/ndk/android-ndk-r6/sources/cxx-stl/gnu-libstdc++/include/ |
mutex | 86 lock() 138 lock() 196 lock() 301 lock() 390 * @brief Thrown to indicate errors with lock operations. 401 /// @brief Scoped lock idiom. 411 { _M_device.lock(); } 414 { _M_device.lock(); } 440 lock(); 500 lock() [all...] |
/external/bluetooth/glib/glib/ |
gthread.h | 296 void g_static_rw_lock_init (GStaticRWLock* lock); 297 void g_static_rw_lock_reader_lock (GStaticRWLock* lock); 298 gboolean g_static_rw_lock_reader_trylock (GStaticRWLock* lock); 299 void g_static_rw_lock_reader_unlock (GStaticRWLock* lock); 300 void g_static_rw_lock_writer_lock (GStaticRWLock* lock); 301 gboolean g_static_rw_lock_writer_trylock (GStaticRWLock* lock); 302 void g_static_rw_lock_writer_unlock (GStaticRWLock* lock); 303 void g_static_rw_lock_free (GStaticRWLock* lock); 355 * declare such an globally defined lock. name is a unique identifier
|
/external/stlport/src/ |
lock_free_slist.h | 30 * It is used for the lock-free node allocation engine. 74 "lock; cmpxchg8b (%%esi)\n\t" 97 "lock; cmpxchg8b (%%esi)\n\t" 122 "lock; cmpxchg8b (%%esi)\n\t" 153 // lock free singly linked list implementation: 176 * It is used for the lock-free node allocation engine. 219 lock cmpxchg8b qword ptr [esi] 244 lock cmpxchg8b qword ptr [esi] 271 lock cmpxchg8b qword ptr [esi]
|
/external/webkit/Source/WebKit2/WebProcess/Plugins/Netscape/ |
NPJSObject.cpp | 101 JSLock lock(SilenceAssertionsOnly); 121 JSLock lock(SilenceAssertionsOnly); 133 JSLock lock(SilenceAssertionsOnly); 147 JSLock lock(SilenceAssertionsOnly); 167 JSLock lock(SilenceAssertionsOnly); 187 JSLock lock(SilenceAssertionsOnly); 208 JSLock lock(SilenceAssertionsOnly); 237 JSLock lock(SilenceAssertionsOnly); 259 JSLock lock(SilenceAssertionsOnly);
|
/libcore/luni/src/test/java/libcore/java/lang/ |
OldThreadTest.java | 90 assertTrue("Thread should hold lock for object", b); 95 assertFalse("Thread should not hold lock for object", b); 310 final Object lock = new Object(); local 328 synchronized (lock) { 329 lock.equals(new Object()); 331 synchronized (lock) { 336 lock.wait(Long.MAX_VALUE); 354 synchronized (lock) { 363 synchronized (lock) {
|