Home
last modified time | relevance | path

Searched refs:withLock (Results 1 – 11 of 11) sorted by relevance

/frameworks/libs/net/common/testutils/hostdevice/com/android/net/module/util/
DTrackRecord.kt23 import kotlin.concurrent.withLock
79 override val size get() = lock.withLock { elements.size } in hasNext()
80 override fun contains(element: E) = lock.withLock { elements.contains(element) } in <lambda>()
81 override fun containsAll(elements: Collection<E>) = lock.withLock { in <lambda>()
84 override operator fun get(index: Int) = lock.withLock { elements[index] } in <lambda>()
85 override fun indexOf(element: E): Int = lock.withLock { elements.indexOf(element) } in <lambda>()
86 override fun lastIndexOf(element: E): Int = lock.withLock { elements.lastIndexOf(element) } in <lambda>()
87 override fun isEmpty() = lock.withLock { elements.isEmpty() } in <lambda>()
91 override fun subList(fromIndex: Int, toIndex: Int): List<E> = lock.withLock { in listIterator()
97 lock.withLock { in add()
[all …]
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
DMainActivity.kt36 import kotlin.concurrent.withLock
103 mDrawLock.withLock { in createSurfaceView()
120 mDrawLock.withLock { in createSurfaceView()
129 mDrawLock.withLock { in drawFrame()
/frameworks/native/libs/binder/
DBinder.cpp185 void IBinder::withLock(const std::function<void()>& doWithLock) { in withLock() function in android::IBinder
188 local->withLock(doWithLock); in withLock()
193 proxy->withLock(doWithLock); in withLock()
360 void BBinder::withLock(const std::function<void()>& doWithLock) { in withLock() function in android::BBinder
DBpBinder.cpp462 void BpBinder::withLock(const std::function<void()>& doWithLock) { in withLock() function in android::BpBinder
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/
DUserInteractor.kt76 import kotlinx.coroutines.sync.withLock in <lambda>()
331 applicationScope.launch { callbackMutex.withLock { callbacks.add(callback) } } in <lambda>()
335 applicationScope.launch { callbackMutex.withLock { callbacks.remove(callback) } } in <lambda>()
522 callbackMutex.withLock { in <lambda>()
/frameworks/native/libs/binder/include/binder/
DIBinder.h283 void withLock(const std::function<void()>& doWithLock);
DBinder.h61 void withLock(const std::function<void()>& doWithLock);
DBpBinder.h74 void withLock(const std::function<void()>& doWithLock);
/frameworks/native/include/binder/
DIBinder.h283 void withLock(const std::function<void()>& doWithLock);
DBinder.h61 void withLock(const std::function<void()>& doWithLock);
/frameworks/native/libs/binder/ndk/
Dibinder.cpp255 remote()->withLock([&]() { value->binder = nullptr; }); in onLastStrongRef()
286 binder->withLock([&]() { in lookupOrCreateFromBinder()