From 0fd3d98a5eb91c0571fae6c788ca5a5b3bb0c484 Mon Sep 17 00:00:00 2001 From: Mike Schneider Date: Mon, 7 Nov 2022 14:52:37 +0100 Subject: [PATCH 1/4] Create motion tools commit Test: just creating directory Bug: 245727371 Change-Id: I6c531b29b941dbe2114fe9c7c93c0f69f1df06e9 --- tools/motion/OWNERS | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tools/motion/OWNERS diff --git a/tools/motion/OWNERS b/tools/motion/OWNERS new file mode 100644 index 000000000..545b822d0 --- /dev/null +++ b/tools/motion/OWNERS @@ -0,0 +1,3 @@ +cinek@google.com +gallmann@google.com +michschn@google.com From e52040b4a0efdf89209e08ab9f96b1086f9e3e0e Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Fri, 25 Nov 2022 17:10:06 +0000 Subject: [PATCH 2/4] Always use prebuilt version of core-lambda-stubs in build-tools Bug: 237299698 Test: build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=sdk TARGET_BUILD_VARIANT=userdebug sdk-repo-build-tools # When ran before this change the resulting zip files contains # a core-lambda-stubs.jar that is built from sources. # When ran after this change the resulting zip files contains # a core-lambda-stubs.jar that is built from prebuilts. Change-Id: I9507eb785bca0fb929dbb587caf0b26455ec9480 --- build/Android.bp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/Android.bp b/build/Android.bp index a97bafb5d..535cd5a02 100644 --- a/build/Android.bp +++ b/build/Android.bp @@ -161,7 +161,10 @@ genrule { java_device_for_host { name: "build-tools_core-lambda-stubs-device", visibility: ["//visibility:private"], - libs: ["core-lambda-stubs"], + // Use the prebuilt of the stubs irrespective of whether prebuilts are enabled + // in this build configuration. This ensures that this non-host specific library + // is treated consistently on all hosts. + libs: ["prebuilt_core-lambda-stubs"], target: { windows: { enabled: true, From 0373c0b168bb07932c8f6e46bb9b53b86a650e0e Mon Sep 17 00:00:00 2001 From: Hongwei Wang Date: Tue, 6 Dec 2022 14:51:01 -0800 Subject: [PATCH 3/4] Support aspect ratio change in PiP demo For testing and demo purpose, currently support selecting from well defined list of aspect ratio, include 21:9, 16:9, 1:1, 9:16 and 9:21 Video: http://recall/-/aaaaaabFQoRHlzixHdtY/gqFQI7mpeQ6EZZ5JibsV6R Bug: 198643358 Test: Change aspect ratio within the app, see video Change-Id: I0580dc45bf32e795fefd7d80f5183f268f810790 --- .../res/layout/picture_in_picture.xml | 18 +++++++++++ .../res/layout/picture_in_picture_content.xml | 1 + samples/ApiDemos/res/values/strings.xml | 9 ++++++ .../android/apis/app/PictureInPicture.java | 32 ++++++++++++++++++- .../apis/view/FixedAspectRatioImageView.java | 9 +++++- 5 files changed, 67 insertions(+), 2 deletions(-) diff --git a/samples/ApiDemos/res/layout/picture_in_picture.xml b/samples/ApiDemos/res/layout/picture_in_picture.xml index e33d373e2..3d44bcfd9 100644 --- a/samples/ApiDemos/res/layout/picture_in_picture.xml +++ b/samples/ApiDemos/res/layout/picture_in_picture.xml @@ -102,6 +102,24 @@ + + + + + + +