Home
last modified time | relevance | path

Searched refs:touchableRegion (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/native/libs/ui/tests/
DRegion_test.cpp156 Region touchableRegion; in TEST_F() local
157 touchableRegion.orSelf(Rect(0, 0, 100, 100)); in TEST_F()
159 ASSERT_TRUE(touchableRegion.contains(50, 50)); in TEST_F()
162 Region& referenceTouchableRegion = touchableRegion; in TEST_F()
163 touchableRegion = referenceTouchableRegion; in TEST_F()
165 ASSERT_FALSE(touchableRegion.isEmpty()); in TEST_F()
167 ASSERT_TRUE(touchableRegion.contains(50, 50)); in TEST_F()
/frameworks/native/services/surfaceflinger/tests/
DWindowInfosListener_test.cpp103 return foundWindowInfo->touchableRegion.isEmpty(); in TEST_F()
117 auto touchableRegion = in TEST_F() local
118 foundWindowInfo->transform.transform(foundWindowInfo->touchableRegion); in TEST_F()
119 return touchableRegion.hasSameRects(windowInfo.touchableRegion); in TEST_F()
/frameworks/native/services/surfaceflinger/FrontEnd/
DLayerSnapshot.cpp286 auto touchableRegion = inputInfo.touchableRegion.getBounds(); in getDebugString() local
287 debug << " touchableRegion={" << touchableRegion.left << "," << touchableRegion.top << "," in getDebugString()
288 << touchableRegion.bottom << "," << touchableRegion.right << "}" in getDebugString()
320 auto touchableRegion = obj.inputInfo.touchableRegion.getBounds(); in operator <<() local
321 out << " touchableRegion={" << touchableRegion.left << "," << touchableRegion.top << "," in operator <<()
322 << touchableRegion.bottom << "," << touchableRegion.right << "}" in operator <<()
DLayerSnapshotBuilder.cpp179 info.touchableRegion.clear(); in fillInputFrameInfo()
193 info.touchableRegion = in fillInputFrameInfo()
194 transformTouchableRegionSafely(inputToDisplay, info.touchableRegion, snapshot.name); in fillInputFrameInfo()
1126 snapshot.inputInfo.touchableRegion = Region(inputBoundsInDisplaySpace); in updateInput()
1242 snapshot->inputInfo.touchableRegion = Region(inputBoundsInDisplaySpace); in updateTouchableRegionCrop()
1249 snapshot->inputInfo.touchableRegion = in updateTouchableRegionCrop()
1250 snapshot->inputInfo.touchableRegion.intersect(inputBoundsInDisplaySpace); in updateTouchableRegionCrop()
1258 snapshot->inputInfo.touchableRegion = in updateTouchableRegionCrop()
1259 snapshot->inputInfo.touchableRegion.intersect(rect); in updateTouchableRegionCrop()
/frameworks/base/core/java/android/inputmethodservice/
DNavigationBarController.java318 Region touchableRegion = null; in updateTouchableInsets() local
327 touchableRegion = new Region(mTempRect); in updateTouchableInsets()
336 touchableRegion = new Region(mTempRect); in updateTouchableInsets()
345 touchableRegion = new Region(mTempRect); in updateTouchableInsets()
349 touchableRegion = new Region(); in updateTouchableInsets()
350 touchableRegion.set(originalInsets.touchableRegion); in updateTouchableInsets()
356 if (touchableRegion == null) { in updateTouchableInsets()
357 touchableRegion = new Region(mTempRect); in updateTouchableInsets()
359 touchableRegion.union(mTempRect); in updateTouchableInsets()
362 dest.touchableRegion.set(touchableRegion); in updateTouchableInsets()
/frameworks/base/core/java/android/view/
DInputWindowHandle.java117 public final Region touchableRegion = new Region(); field in InputWindowHandle
199 touchableRegion.set(other.touchableRegion); in InputWindowHandle()
222 .append(", touchableRegion=").append(touchableRegion) in toString()
DViewTreeObserver.java263 public final Region touchableRegion = new Region(); field in ViewTreeObserver.InternalInsetsInfo
306 touchableRegion.setEmpty(); in reset()
313 && touchableRegion.isEmpty() in isEmpty()
321 result = 31 * result + touchableRegion.hashCode(); in hashCode()
335 touchableRegion.equals(other.touchableRegion); in equals()
342 touchableRegion.set(other.touchableRegion); in set()
DViewParent.java686 default void subtractObscuredTouchableRegion(Region touchableRegion, View view) { in subtractObscuredTouchableRegion() argument
/frameworks/base/services/core/java/com/android/server/wm/
DInputWindowHandleWrapper.java141 if (mHandle.touchableRegion.equals(region)) { in setTouchableRegion()
144 mHandle.touchableRegion.set(region); in setTouchableRegion()
149 if (mHandle.touchableRegion.isEmpty()) { in clearTouchableRegion()
152 mHandle.touchableRegion.setEmpty(); in clearTouchableRegion()
DAccessibilityController.java984 Region touchableRegion = mTempRegion3; in recomputeBounds() local
985 windowState.getTouchableRegion(touchableRegion); in recomputeBounds()
1002 touchableRegion.translate(-windowState.getFrame().left, in recomputeBounds()
1004 applyMatrixToRegion(matrix, touchableRegion); in recomputeBounds()
1005 windowBounds.set(touchableRegion); in recomputeBounds()
1660 Region touchableRegion) { in isUntouchableNavigationBar() argument
1666 windowState.getTouchableRegion(touchableRegion); in isUntouchableNavigationBar()
1668 return touchableRegion.isEmpty(); in isUntouchableNavigationBar()
1948 final Region touchableRegion = mTempRegion2; in updateUnaccountedSpace() local
1949 a11yWindow.getTouchableRegionInScreen(touchableRegion); in updateUnaccountedSpace()
[all …]
DLetterbox.java341 mWindowHandle.touchableRegion.set(frame); in updateTouchableRegion()
342 mWindowHandle.touchableRegion.translate(-frame.left, -frame.top); in updateTouchableRegion()
/frameworks/native/libs/gui/
DWindowInfo.cpp73 touchableRegion.orSelf(region); in addTouchableRegion()
98 info.touchableRegion.hasSameRects(touchableRegion) && in operator ==()
151 parcel->write(touchableRegion) ?: in writeToParcel()
204 parcel->read(touchableRegion) ?: in readFromParcel()
265 << ", touchableRegion=" << info.touchableRegion << ", ownerPid=" << info.ownerPid.toString() in operator <<()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DRegionInterceptingFrameLayout.java63 internalInsetsInfo.touchableRegion.setEmpty();
78 internalInsetsInfo.touchableRegion.op(unionRegion, Op.UNION);
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/taskview/
DTaskView.java263 if (inoutInfo.touchableRegion.isEmpty()) { in onComputeInternalInsets()
269 inoutInfo.touchableRegion.set(mTmpRootRect); in onComputeInternalInsets()
283 inoutInfo.touchableRegion.op(mTmpRect, Region.Op.DIFFERENCE); in onComputeInternalInsets()
286 inoutInfo.touchableRegion.op(mObscuredTouchRegion, Region.Op.UNION); in onComputeInternalInsets()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/taskview/
DTaskViewTest.java465 assertThat(insetsInfo.touchableRegion.contains(0, 10)).isTrue(); in testSetObscuredTouchRect()
467 assertThat(insetsInfo.touchableRegion.contains(100 - 1, 120 - 1)).isTrue(); in testSetObscuredTouchRect()
470 insetsInfo.touchableRegion.setEmpty(); in testSetObscuredTouchRect()
473 assertThat(insetsInfo.touchableRegion.contains(0, 10)).isFalse(); in testSetObscuredTouchRect()
474 assertThat(insetsInfo.touchableRegion.contains(100 - 1, 120 - 1)).isFalse(); in testSetObscuredTouchRect()
486 assertThat(insetsInfo.touchableRegion.contains(10, 10)).isTrue(); in testSetObscuredTouchRegion()
487 assertThat(insetsInfo.touchableRegion.contains(20, 20)).isFalse(); in testSetObscuredTouchRegion()
488 assertThat(insetsInfo.touchableRegion.contains(30, 30)).isTrue(); in testSetObscuredTouchRegion()
491 insetsInfo.touchableRegion.setEmpty(); in testSetObscuredTouchRegion()
494 assertThat(insetsInfo.touchableRegion.contains(10, 10)).isFalse(); in testSetObscuredTouchRegion()
[all …]
/frameworks/base/packages/SystemUI/plugin/ExamplePlugin/src/com/android/systemui/plugin/testoverlayplugin/
DSampleOverlayPlugin.java99 inoutInfo.touchableRegion.set(new Rect(0, 0, 50000, (int) mStatusBarHeight));
101 inoutInfo.touchableRegion.set(new Rect(0, 0, 50000, 50000));
/frameworks/base/core/jni/
Dandroid_hardware_input_InputWindowHandle.cpp65 jfieldID touchableRegion; member
118 mInfo.touchableRegion.clear(); in updateInfo()
143 gInputWindowHandleClassInfo.touchableRegion); in updateInfo()
296 for (const auto& r : windowInfo.touchableRegion) { in android_view_InputWindowHandle_fromWindowInfo()
302 env->SetObjectField(inputWindowHandle, gInputWindowHandleClassInfo.touchableRegion, in android_view_InputWindowHandle_fromWindowInfo()
415 GET_FIELD_ID(gInputWindowHandleClassInfo.touchableRegion, clazz, in register_android_view_InputWindowHandle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarTouchableRegionManager.java256 public void updateRegionForNotch(Region touchableRegion) { in updateRegionForNotch() argument
272 touchableRegion.union(bounds); in updateRegionForNotch()
307 info.touchableRegion.set(calculateTouchableRegion()); in onComputeInternalInsets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/temporarydisplay/
DTouchableRegionViewController.kt47 inoutInfo.touchableRegion.set(tempRect) in <lambda>()
/frameworks/native/services/surfaceflinger/tests/tracing/
DTransactionTraceTestSuite.cpp141 Region touchableRegion; in getLayerInfoFromProto() local
143 touchableRegion); in getLayerInfoFromProto()
144 touchableRegionBounds = touchableRegion.bounds(); in getLayerInfoFromProto()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/
DTouchableRegionViewControllerTest.kt79 assertThat(inoutInfo.touchableRegion.bounds).isEqualTo(Rect(1, 2, 3, 4)) in <lambda>()
/frameworks/base/core/java/android/window/
DBackNavigationInfo.java137 @Nullable Rect touchableRegion, in BackNavigationInfo() argument
146 mTouchableRegion = new Rect(touchableRegion); in BackNavigationInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationController.java856 Region touchableRegion = new Region(0, 0, mMirrorView.getWidth(), mMirrorView.getHeight()); in calculateTouchableRegion() local
861 touchableRegion.op(regionInsideDragBorder, Region.Op.DIFFERENCE); in calculateTouchableRegion()
882 touchableRegion.op(dragArea, Region.Op.UNION); in calculateTouchableRegion()
883 touchableRegion.op(topLeftArea, Region.Op.UNION); in calculateTouchableRegion()
884 touchableRegion.op(topRightArea, Region.Op.UNION); in calculateTouchableRegion()
885 touchableRegion.op(bottomLeftArea, Region.Op.UNION); in calculateTouchableRegion()
886 touchableRegion.op(bottomRightArea, Region.Op.UNION); in calculateTouchableRegion()
887 touchableRegion.op(closeArea, Region.Op.UNION); in calculateTouchableRegion()
889 return touchableRegion; in calculateTouchableRegion()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuMessageView.java126 inoutInfo.touchableRegion.union(new Rect(x, y, x + getWidth(), y + getHeight())); in onComputeInternalInsets()
/frameworks/native/services/inputflinger/tests/
DFakeWindows.h206 mInfo.touchableRegion.clear();
215 inline void setTouchableRegion(const Region& region) { mInfo.touchableRegion = region; } in setTouchableRegion()

123