Merge changes I471c27b8,I602cf29b into main

* changes:
  Fix small gap between widget resize frame and widget background.
  Update TaplAddWidgetTest#testResizeWidget() and WidgetResizeFrame#resize() API to pass launcher's cellBoarderSpace and use its height to expand widget
This commit is contained in:
Fengjiang Li authored and Android (Google) Code Review committed 2024-02-02 03:31:13 +00:00
commit 2aaccefecb
5 files changed
+15 -2

No files matched your search

@@ -150,6 +150,12 @@ public class TestInformationHandler implements ResourceBasedOverride {
}, this::getCurrentActivity);
}
case TestProtocol.REQUEST_CELL_LAYOUT_BOARDER_HEIGHT: {
response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD,
mDeviceProfile.cellLayoutBorderSpacePx.y);
return response;
}
case TestProtocol.REQUEST_SYSTEM_GESTURE_REGION: {
return getUIProperty(Bundle::putParcelable, activity -> {
WindowInsetsCompat insets = WindowInsetsCompat.toWindowInsetsCompat(