Lines Matching refs:lock
53 std::scoped_lock lock(mLock); in assertFilterInputEventWasNotCalled() local
58 std::scoped_lock lock(mLock); in assertNotifyConfigurationChangedWasCalled() local
65 std::scoped_lock lock(mLock); in assertNotifySwitchWasCalled() local
76 std::scoped_lock lock(mLock); in assertOnPointerDownEquals() local
82 std::scoped_lock lock(mLock); in assertOnPointerDownWasNotCalled() local
90 std::unique_lock lock(mLock); in assertNotifyNoFocusedWindowAnrWasCalled() local
94 application = getAnrTokenLockedInterruptible(timeout, mAnrApplications, lock)); in assertNotifyNoFocusedWindowAnrWasCalled()
108 std::unique_lock lock(mLock); in assertNotifyWindowUnresponsiveWasCalled() local
111 ASSERT_NO_FATAL_FAILURE(result = getAnrTokenLockedInterruptible(timeout, mAnrWindows, lock)); in assertNotifyWindowUnresponsiveWasCalled()
118 std::unique_lock lock(mLock); in getUnresponsiveWindowToken() local
120 AnrResult result = getAnrTokenLockedInterruptible(timeout, mAnrWindows, lock); in getUnresponsiveWindowToken()
127 std::unique_lock lock(mLock); in assertNotifyWindowResponsiveWasCalled() local
130 ASSERT_NO_FATAL_FAILURE(result = getAnrTokenLockedInterruptible(0s, mResponsiveWindows, lock)); in assertNotifyWindowResponsiveWasCalled()
136 std::unique_lock lock(mLock); in getResponsiveWindowToken() local
138 AnrResult result = getAnrTokenLockedInterruptible(0s, mResponsiveWindows, lock); in getResponsiveWindowToken()
144 std::scoped_lock lock(mLock); in assertNotifyAnrWasNotCalled() local
154 std::unique_lock lock(mLock); in assertSetPointerCaptureCalled() local
158 .wait_for(lock, 100ms, [this, enabled, window]() REQUIRES(mLock) { in assertSetPointerCaptureCalled()
176 std::unique_lock lock(mLock); in assertSetPointerCaptureNotCalled() local
179 if (mPointerCaptureChangedCondition.wait_for(lock, 100ms) != std::cv_status::timeout) { in assertSetPointerCaptureNotCalled()
190 std::scoped_lock lock(mLock); in assertDropTargetEquals() local
197 std::unique_lock lock(mLock); in assertNotifyInputChannelBrokenWasCalled() local
200 getItemFromStorageLockedInterruptible(100ms, mBrokenInputChannels, lock, in assertNotifyInputChannelBrokenWasCalled()
223 std::unique_lock lock(mLock); in assertFocusedDisplayNotified() local
226 if (!mFocusedDisplayNotifiedCondition.wait_for(lock, 100ms, in assertFocusedDisplayNotified()
241 std::unique_lock lock(mLock); in assertUserActivityNotPoked() local
245 getItemFromStorageLockedInterruptible(500ms, mUserActivityPokeEvents, lock, in assertUserActivityNotPoked()
253 std::unique_lock lock(mLock); in assertUserActivityPoked() local
257 getItemFromStorageLockedInterruptible(500ms, mUserActivityPokeEvents, lock, in assertUserActivityPoked()
277 std::scoped_lock lock(mLock); in setUnhandledKeyHandler() local
282 std::unique_lock lock(mLock); in assertUnhandledKeyReported() local
285 getItemFromStorageLockedInterruptible(100ms, mReportedUnhandledKeycodes, lock, in assertUnhandledKeyReported()
292 std::unique_lock lock(mLock); in assertUnhandledKeyNotReported() local
295 getItemFromStorageLockedInterruptible(10ms, mReportedUnhandledKeycodes, lock, in assertUnhandledKeyNotReported()
303 std::unique_lock<std::mutex>& lock) in getAnrTokenLockedInterruptible() argument
313 getItemFromStorageLockedInterruptible(timeToWait, storage, lock, mNotifyAnr); in getAnrTokenLockedInterruptible()
335 std::unique_lock<std::mutex>& lock, std::condition_variable& condition) REQUIRES(mLock) { in getItemFromStorageLockedInterruptible() argument
336 condition.wait_for(lock, timeout, [&storage]() REQUIRES(mLock) { return !storage.empty(); }); in getItemFromStorageLockedInterruptible()
346 std::scoped_lock lock(mLock); in notifyConfigurationChanged() local
353 std::scoped_lock lock(mLock); in notifyWindowUnresponsive() local
360 std::scoped_lock lock(mLock); in notifyWindowResponsive() local
367 std::scoped_lock lock(mLock); in notifyNoFocusedWindowAnr() local
373 std::scoped_lock lock(mLock); in notifyInputChannelBroken() local
393 std::scoped_lock lock(mLock); in filterInputEvent() local
438 std::scoped_lock lock(mLock); in dispatchUnhandledKey() local
446 std::scoped_lock lock(mLock); in notifySwitch() local
455 std::scoped_lock lock(mLock); in pokeUserActivity() local
465 std::scoped_lock lock(mLock); in onPointerDownOutsideFocus() local
470 std::scoped_lock lock(mLock); in setPointerCapture() local
476 std::scoped_lock lock(mLock); in notifyDropWindow() local
488 std::scoped_lock lock(mLock); in assertFilterInputEventWasCalledInternal() local
495 std::scoped_lock lock(mLock); in notifyFocusedDisplayChanged() local