Home
last modified time | relevance | path

Searched refs:inTouchMode (Results 1 – 22 of 22) sorted by relevance

/frameworks/native/services/inputflinger/tests/
DFakeWindows.h88 void consumeFocusEvent(bool hasFocus, bool inTouchMode);
91 void consumeTouchModeEvent(bool inTouchMode);
335 inline void consumeFocusEvent(bool hasFocus, bool inTouchMode = true) {
338 mInputReceiver->consumeFocusEvent(hasFocus, inTouchMode);
354 inline void consumeTouchModeEvent(bool inTouchMode) { in consumeTouchModeEvent() argument
357 mInputReceiver->consumeTouchModeEvent(inTouchMode); in consumeTouchModeEvent()
DFakeWindows.cpp150 void FakeInputReceiver::consumeFocusEvent(bool hasFocus, bool inTouchMode) { in consumeFocusEvent() argument
189 void FakeInputReceiver::consumeTouchModeEvent(bool inTouchMode) { in consumeTouchModeEvent() argument
198 EXPECT_EQ(inTouchMode, touchModeEvent.isInTouchMode()); in consumeTouchModeEvent()
DInputDispatcher_test.cpp12318 void changeAndVerifyTouchModeInMainDisplayOnly(bool inTouchMode, gui::Pid pid, gui::Uid uid, in changeAndVerifyTouchModeInMainDisplayOnly() argument
12320 ASSERT_TRUE(mDispatcher->setInTouchMode(inTouchMode, pid, uid, hasPermission, in changeAndVerifyTouchModeInMainDisplayOnly()
12322 mWindow->consumeTouchModeEvent(inTouchMode); in changeAndVerifyTouchModeInMainDisplayOnly()
12323 mSecondWindow->consumeTouchModeEvent(inTouchMode); in changeAndVerifyTouchModeInMainDisplayOnly()
/frameworks/native/services/inputflinger/dispatcher/
DEntry.cpp176 TouchModeEntry::TouchModeEntry(int32_t id, nsecs_t eventTime, bool inTouchMode, in TouchModeEntry() argument
179 inTouchMode(inTouchMode), in TouchModeEntry()
183 return StringPrintf("TouchModeEvent(inTouchMode=%s)", inTouchMode ? "true" : "false"); in getDescription()
DEntry.h208 bool inTouchMode; member
211 TouchModeEntry(int32_t id, nsecs_t eventTime, bool inTouchMode, ui::LogicalDisplayId displayId);
DInputDispatcher.h123 bool setInTouchMode(bool inTouchMode, gui::Pid pid, gui::Uid uid, bool hasPermission,
DInputDispatcher.cpp3854 touchModeEntry.inTouchMode); in startDispatchCycleLocked()
5613 bool InputDispatcher::setInTouchMode(bool inTouchMode, gui::Pid pid, gui::Uid uid, in setInTouchMode() argument
5621 toString(inTouchMode), pid.toString().c_str(), uid.toString().c_str(), in setInTouchMode()
5628 if (touchModeIt != mTouchModePerDisplay.end() && touchModeIt->second == inTouchMode) { in setInTouchMode()
5640 mTouchModePerDisplay[displayId] = inTouchMode; in setInTouchMode()
5641 auto entry = std::make_unique<TouchModeEntry>(mIdGenerator.nextId(), now(), inTouchMode, in setInTouchMode()
/frameworks/native/services/inputflinger/dispatcher/include/
DInputDispatcherInterface.h132 virtual bool setInTouchMode(bool inTouchMode, gui::Pid pid, gui::Uid uid, bool hasPermission,
/frameworks/base/services/core/java/com/android/server/input/
DNativeInputManagerService.java78 boolean setInTouchMode(boolean inTouchMode, int pid, int uid, boolean hasPermission, in setInTouchMode() argument
334 public native boolean setInTouchMode(boolean inTouchMode, int pid, int uid, in setInTouchMode() argument
DInputManagerService.java873 public boolean setInTouchMode(boolean inTouchMode, int pid, int uid, boolean hasPermission, in setInTouchMode() argument
875 return mNative.setInTouchMode(inTouchMode, pid, uid, hasPermission, displayId); in setInTouchMode()
/frameworks/base/core/java/android/view/
DInputEventReceiver.java190 public void onTouchModeChanged(boolean inTouchMode) { in onTouchModeChanged() argument
DViewTreeObserver.java1248 final void dispatchOnTouchModeChanged(boolean inTouchMode) { in dispatchOnTouchModeChanged() argument
1253 listener.onTouchModeChanged(inTouchMode); in dispatchOnTouchModeChanged()
DViewRootImpl.java4706 final boolean inTouchMode; in handleWindowTouchModeChanged()
4708 inTouchMode = mUpcomingInTouchMode; in handleWindowTouchModeChanged()
4710 ensureTouchModeLocally(inTouchMode); in handleWindowTouchModeChanged()
6965 boolean ensureTouchMode(boolean inTouchMode) { in ensureTouchMode() argument
6966 if (DBG) Log.d("touchmode", "ensureTouchMode(" + inTouchMode + "), current " in ensureTouchMode()
6968 if (mAttachInfo.mInTouchMode == inTouchMode) return false; in ensureTouchMode()
6973 windowManager.setInTouchMode(inTouchMode, getDisplayId()); in ensureTouchMode()
6979 return ensureTouchModeLocally(inTouchMode); in ensureTouchMode()
6988 private boolean ensureTouchModeLocally(boolean inTouchMode) { in ensureTouchModeLocally() argument
6989 if (DBG) Log.d("touchmode", "ensureTouchModeLocally(" + inTouchMode + "), current " in ensureTouchModeLocally()
[all …]
DWindow.java2293 public void setLocalFocus(boolean hasFocus, boolean inTouchMode) { } in setLocalFocus() argument
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowManagerServiceTests.java774 for (boolean inTouchMode : new boolean[] { true, false }) { in testSetInTouchModeOnAllDisplays()
775 mWm.setInTouchModeOnAllDisplays(inTouchMode); in testSetInTouchModeOnAllDisplays()
780 if (dc.isInTouchMode() != inTouchMode) { in testSetInTouchModeOnAllDisplays()
/frameworks/base/core/tests/coretests/src/android/view/
DViewRootImplTest.java368 ViewTreeObserver.OnTouchModeChangeListener touchModeListener = (boolean inTouchMode) -> { in whenTouchModeChanges_viewRootIsNotified()
370 inTouchMode).isFalse(); in whenTouchModeChanges_viewRootIsNotified()
/frameworks/base/core/java/android/widget/
DGridView.java1354 final boolean inTouchMode = mTouchMode > TOUCH_MODE_DOWN in layoutChildren()
1356 if (inTouchMode) { in layoutChildren()
DListView.java1888 final boolean inTouchMode = mTouchMode == TOUCH_MODE_TAP in layoutChildren()
1890 if (inTouchMode) { in layoutChildren()
DAbsListView.java5526 final boolean inTouchMode = isInTouchMode();
5527 if (inTouchMode) {
5608 if (!inTouchMode && mSelectedPosition != INVALID_POSITION) {
/frameworks/base/core/java/com/android/internal/policy/
DPhoneWindow.java1932 public void setLocalFocus(boolean hasFocus, boolean inTouchMode) { in setLocalFocus() argument
1935 viewRoot.touchModeChanged(inTouchMode); in setLocalFocus()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp1938 static jboolean nativeSetInTouchMode(JNIEnv* env, jobject nativeImplObj, jboolean inTouchMode, in nativeSetInTouchMode() argument
1942 return im->getInputManager()->getDispatcher().setInTouchMode(inTouchMode, gui::Pid{pid}, in nativeSetInTouchMode()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayContent.java1395 boolean setInTouchMode(boolean inTouchMode) { in setInTouchMode() argument
1396 if (mInTouchMode == inTouchMode) { in setInTouchMode()
1399 mInTouchMode = inTouchMode; in setInTouchMode()