/frameworks/av/include/private/media/ |
H A D | AudioEffectShared.h | 37 Mutex lock; member in struct:android::effect_param_cblk_t 43 : lock(Mutex::SHARED), clientIndex(0), serverIndex(0) {}
|
/frameworks/rs/ |
H A D | rsMutex.cpp | 38 bool Mutex::lock() { function in class:android::renderscript::Mutex
|
/frameworks/base/core/java/android/util/ |
H A D | Pools.java | 144 * @param lock an optional custom object to synchronize on 148 public SynchronizedPool(int maxPoolSize, Object lock) { argument 150 mLock = lock;
|
/frameworks/base/telecomm/java/android/telecom/Logging/ |
H A D | Runnable.java | 52 * @param lock The synchronization lock that will be used to lock loggedRun(). 54 public Runnable(String subsessionName, Object lock) { argument 55 if (lock == null) { 58 mLock = lock;
|
/frameworks/native/services/surfaceflinger/ |
H A D | Barrier.h | 36 Mutex::Autolock _l(lock); 43 Mutex::Autolock _l(lock); 51 Mutex::Autolock _l(lock); 53 cv.wait(lock); 58 mutable Mutex lock; member in class:android::Barrier
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ConcurrentUtils.java | 117 * Calls {@link Slog#wtf} if a given lock is held. 119 public static void wtfIfLockHeld(String tag, Object lock) { argument 120 if (Thread.holdsLock(lock)) { 126 * Calls {@link Slog#wtf} if a given lock is not held. 128 public static void wtfIfLockNotHeld(String tag, Object lock) { argument 129 if (!Thread.holdsLock(lock)) {
|
/frameworks/av/include/media/stagefright/foundation/ |
H A D | Mutexed.h | 62 * data.lock(); 91 * Upon creation, the mutex is locked. You can use lock()/unlock() methods to 92 * temporarily lock/unlock the mutex. Using any references to the underlying 97 * unlock() or lock() from different threads; they must be called from the thread 122 // Wait on the condition variable using lock. Must be locked. 134 inline void lock(); 156 inline Locked lock() { function in class:android::Mutexed 175 mLock.lock(); 194 inline void Mutexed<T>::Locked::lock() { function in class:android::Mutexed::Locked 196 mLock.lock(); [all...] |
/frameworks/av/media/libeffects/factory/ |
H A D | EffectsFactory.h | 52 pthread_mutex_t lock; member in struct:lib_entry_s
|
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
H A D | Mutexed.h | 62 * data.lock(); 91 * Upon creation, the mutex is locked. You can use lock()/unlock() methods to 92 * temporarily lock/unlock the mutex. Using any references to the underlying 97 * unlock() or lock() from different threads; they must be called from the thread 122 // Wait on the condition variable using lock. Must be locked. 134 inline void lock(); 156 inline Locked lock() { function in class:android::Mutexed 175 mLock.lock(); 194 inline void Mutexed<T>::Locked::lock() { function in class:android::Mutexed::Locked 196 mLock.lock(); [all...] |
/frameworks/av/media/libstagefright/include/media/stagefright/foundation/ |
H A D | Mutexed.h | 62 * data.lock(); 91 * Upon creation, the mutex is locked. You can use lock()/unlock() methods to 92 * temporarily lock/unlock the mutex. Using any references to the underlying 97 * unlock() or lock() from different threads; they must be called from the thread 122 // Wait on the condition variable using lock. Must be locked. 134 inline void lock(); 156 inline Locked lock() { function in class:android::Mutexed 175 mLock.lock(); 194 inline void Mutexed<T>::Locked::lock() { function in class:android::Mutexed::Locked 196 mLock.lock(); [all...] |
/frameworks/base/libs/hwui/ |
H A D | ResourceCache.cpp | 52 void ResourceCache::lock() { function in class:android::uirenderer::ResourceCache 53 mLock.lock();
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | GenerationRegistry.java | 47 public GenerationRegistry(Object lock) { argument 48 mLock = lock;
|
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | AbstractStatsBase.java | 34 * <li>Can lock on the provided data object before writing 50 protected AbstractStatsBase(String fileName, String threadName, boolean lock) { argument 53 mLock = lock;
|
/frameworks/compile/libbcc/lib/ |
H A D | FileBase.cpp | 131 bool FileBase::lock(enum LockModeEnum pMode, function in class:FileBase 148 // Determine the lock operation (2nd argument) to the flock(). 165 // Here we got a lock but we need to check whether the mFD still 168 // mapped when we were trying to obtain the lock on the file.
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | RenderTask.h | 61 // Takes ownership of task, caller owns lock and signal 62 SignalingRenderTask(RenderTask* task, Mutex* lock, Condition* signal) argument 63 : mTask(task), mLock(lock), mSignal(signal), mHasRun(false) {}
|
/frameworks/base/libs/hwui/thread/ |
H A D | WorkQueue.h | 60 WorkQueue(std::function<void()>&& wakeFunc, std::mutex& lock) argument 61 : mWakeFunc(move(wakeFunc)), mLock(lock) {} 113 nsecs_t nextWakeup(std::unique_lock<std::mutex>& lock) { argument
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | FingerprintGestureDispatcher.java | 53 * @param lock A lock to use when managing internal state 56 Resources resources, Object lock) { 60 mLock = lock; 66 * @param lock A lock to use when managing internal state 70 Resources resources, Object lock, Handler handler) { 74 mLock = lock; 55 FingerprintGestureDispatcher(IFingerprintService fingerprintService, Resources resources, Object lock) argument 69 FingerprintGestureDispatcher(IFingerprintService fingerprintService, Resources resources, Object lock, Handler handler) argument
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | LockGuard.java | 31 * LockGuard is a mechanism to help detect lock inversions inside the system 32 * server. It works by requiring each lock acquisition site to follow this 36 * synchronized (LockGuard.guard(lock)) { 48 * {@code ActivityManager} lock while holding the {@code PackageManager} lock, 58 * <li>A guarded synchronized block takes 460ns per lock checked when enabled. 69 * should never be acquired while holding a lock of a lower index. 85 /** Friendly label to describe this lock */ 88 /** Child locks that can be acquired while this lock is already held */ 95 private static LockInfo findOrCreateLockInfo(Object lock) { argument 111 guard(Object lock) argument 165 doLog(@ullable Object lock, String message) argument 181 installLock(Object lock, String label) argument 190 installLock(Object lock, int index) argument 197 installLock(Object lock, int index, boolean doWtf) argument 215 lockToString(Object lock) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
H A D | ActivityManagerInternalTest.java | 151 public CustomThread(Object lock) { argument 152 mLock = lock; 155 public CustomThread(Object lock, Runnable runnable) { argument 157 mLock = lock;
|
/frameworks/native/libs/ui/ |
H A D | GraphicBufferMapper.cpp | 112 status_t GraphicBufferMapper::lock(buffer_handle_t handle, uint32_t usage, function in class:android::GraphicBufferMapper 149 Gralloc2::Error error = mMapper->lock(handle, usage, 152 ALOGW_IF(error != Gralloc2::Error::NONE, "lock(%p, ...) failed: %d", 164 Gralloc2::Error error = mMapper->lock(handle, usage,
|
/frameworks/native/services/powermanager/ |
H A D | IPowerManager.cpp | 38 virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag, argument 44 data.writeStrongBinder(lock); 54 virtual status_t acquireWakeLockWithUid(int flags, const sp<IBinder>& lock, const String16& tag, argument 60 data.writeStrongBinder(lock); 69 virtual status_t releaseWakeLock(const sp<IBinder>& lock, int flags, bool isOneWay) argument 73 data.writeStrongBinder(lock); 79 virtual status_t updateWakeLockUids(const sp<IBinder>& lock, int len, const int *uids, argument 83 data.writeStrongBinder(lock);
|
/frameworks/av/media/libmediaplayer2/include/mediaplayer2/ |
H A D | MediaPlayer2AudioOutput.h | 154 // lock/unlock are used by the callback before accessing the payload of this object 155 void lock() const { function in class:android::MediaPlayer2AudioOutput::CallbackData 156 mLock.lock(); 165 // tryBeginTrackSwitch() returns true only if it obtains the lock.
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
H A D | CodecTest.java | 62 private static final Object lock = new Object(); field in class:CodecTest 270 synchronized (lock) { 273 lock.wait(WAIT_FOR_COMMAND_TO_COMPLETE); 306 synchronized (lock) { 309 lock.wait(WAIT_FOR_COMMAND_TO_COMPLETE); 687 synchronized (lock) { 689 lock.notify(); 726 synchronized (lock) { 729 lock.wait(WAIT_FOR_COMMAND_TO_COMPLETE); 852 synchronized (lock) { [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
H A D | MediaVisualizerTest.java | 59 private final Object lock = new Object(); field in class:MediaVisualizerTest 336 synchronized(lock) { 338 lock.wait(1000); 348 synchronized(lock) { 351 lock.wait(1000); 362 synchronized(lock) { 365 lock.wait(1000); 381 synchronized(lock) { 384 lock.wait(1000); 395 synchronized(lock) { [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | MediaPlayerStateUnitTestTemplate.java | 52 private final Object lock = new Object(); field in class:MediaPlayerStateUnitTestTemplate 83 synchronized(lock) { 85 lock.wait(WAIT_FOR_COMMAND_TO_COMPLETE); 118 synchronized(lock) { 119 Log.v(TAG, "notify lock."); 124 lock.notify(); 132 synchronized(lock) { 136 lock.notify(); 140 synchronized(lock) { 142 lock [all...] |