Skip to content

Commit

Permalink
Merge tag 'android-13.0.0_r35' into staging/lineage-20.0_merge-androi…
Browse files Browse the repository at this point in the history
…d-13.0.0_r35

Android 13.0.0 release 35

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZA9jxwAKCRDorT+BmrEO
# eE15AJ49qZp5sMbiGWrBEv3eKXKUMCR9QQCdGNDP7sjiLo0TzA9SzofzuKJ3DgM=
# =8fpa
# -----END PGP SIGNATURE-----
# gpg: Signature made Mon Mar 13 19:56:23 2023 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 1588 signatures in the past
#      16 months.  Encrypted 4 messages in the past 14 months.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By George Lin (15) and others
# Via Android (Google) Code Review (39) and others
* tag 'android-13.0.0_r35': (59 commits)
  Offset preview to start if on wallpaper display
  Import translations. DO NOT MERGE ANYWHERE
  Import translations. DO NOT MERGE ANYWHERE
  [WPP2] Make injectors kt
  Fix wallpaper preview misaligned on small screen.
  Renames customization content provider (4/7).
  Unified screen preview section (1/3).
  Moves common screen preview logic to WPP2 (1/2).
  Wallpaper picker reset support (1/3).
  Add logEffectProbe in UserEventLogger
  Add target for ThemePicker instrumented tests
  Tabbed navigation in Wallpaper Picker (1/3).
  [WPP2] Use system flag for fullscreen wallpaper preview
  Defines flag for ravemped WPP UI (3/5).
  [WPP2] Fix live wallpaper preview stretched
  Import translations. DO NOT MERGE ANYWHERE
  [WPP2] Fix fullscreen preview toolbar text color
  [WPP2] Avoid to create view in constructor of floating sheet content
  [WPP2] Fix colors
  Lock screen preview in quick affordance picker.
  ...

Change-Id: I9d5aba2a262fb327a1661eb8905bb8333da2a890
  • Loading branch information
mikeNG committed Mar 14, 2023
2 parents 4124f00 + 82440e6 commit fa1a3ff
Show file tree
Hide file tree
Showing 253 changed files with 7,028 additions and 1,209 deletions.
9 changes: 3 additions & 6 deletions Android.bp
Expand Up @@ -43,6 +43,7 @@ android_library {
"SettingsLibCollapsingToolbarBaseActivity",
"subsampling-scale-image-view",
"SystemUISharedLib",
"SystemUICustomizationLib",
"volley",
"SettingsLibActivityEmbedding",
],
Expand All @@ -61,7 +62,7 @@ android_library {

visibility: [
":__subpackages__",
"//packages/apps/ThemePicker",
"//packages/apps/ThemePicker:__subpackages__",
"//vendor:__subpackages__",
],
}
Expand Down Expand Up @@ -107,12 +108,8 @@ java_defaults {
name: "WallpaperPicker2_defaults",

static_libs: [
"renderscript_toolkit",
"wallpaper-common-deps",
],

jni_libs: [
"librenderscript-toolkit",
"monet",
],

srcs: [
Expand Down
8 changes: 8 additions & 0 deletions AndroidManifest.xml
Expand Up @@ -14,7 +14,10 @@
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.READ_WALLPAPER_INTERNAL" />
<uses-permission android:name="android.permission.SET_WALLPAPER"/>
<uses-permission android:name="android.permission.SET_WALLPAPER_COMPONENT" />
<uses-permission android:name="android.permission.BIND_WALLPAPER" />
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="com.android.wallpaper.NOTIFY_ROTATING_WALLPAPER_CHANGED"/>

Expand All @@ -41,6 +44,11 @@
<intent>
<action android:name="com.android.launcher3.action.PARTNER_CUSTOMIZATION" />
</intent>
<!-- Intent filter used to query the launcher Activity for grid preview metadata -->
<intent>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
</intent>
</queries>

<application
Expand Down
6 changes: 0 additions & 6 deletions ktfmt_includes.txt
@@ -1,9 +1,3 @@
+src/
+src_override/
+tests/
-src/com/android/wallpaper/model/WallpaperColorsViewModel.kt
-src/com/android/wallpaper/model/WorkspaceViewModel.kt
-src/com/android/wallpaper/module/LargeScreenMultiPanesChecker.kt
-src/com/android/wallpaper/module/MultiPanesChecker.kt
-src/com/android/wallpaper/util/DisplayUtils.kt
-src/com/android/wallpaper/widget/GridRowSpacerDecoration.kt
5 changes: 2 additions & 3 deletions res/color-night/separated_tabs_indicator_color.xml
Expand Up @@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
<item android:color="?androidprv:attr/colorAccentSecondary" />
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/color_accent_secondary" />
</selector>
5 changes: 2 additions & 3 deletions res/color/bottom_action_button_color_tint.xml
Expand Up @@ -14,12 +14,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_selected="false"
android:color="?android:textColorTertiary" />
<item
android:state_selected="true"
android:color="?androidprv:attr/textColorOnAccent" />
android:color="@color/text_color_on_accent" />
</selector>
5 changes: 2 additions & 3 deletions res/color/separated_tabs_indicator_color.xml
Expand Up @@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
<item android:color="?androidprv:attr/colorAccentPrimary" />
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/color_accent_primary" />
</selector>
21 changes: 21 additions & 0 deletions res/color/tab_text_color.xml
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2022 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:color="@color/text_color_on_accent" />
<item android:color="@color/text_color_secondary" />
</selector>
22 changes: 22 additions & 0 deletions res/color/text_color_on_accent.xml
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2022 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!-- Please see primary_text_material_light.xml -->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false"
android:color="@android:color/system_neutral1_400"/>
<item android:color="@android:color/system_neutral1_900"/>
</selector>
20 changes: 20 additions & 0 deletions res/color/wallpaper_control_button_ic_color_tint.xml
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:color="@color/text_color_on_accent" />
<item android:state_checked="false" android:color="?android:textColorPrimary" />
</selector>
3 changes: 1 addition & 2 deletions res/drawable/bottom_action_button_background.xml
Expand Up @@ -15,7 +15,6 @@
limitations under the License.
-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:color="?android:colorControlHighlight">
<item>
<selector>
Expand All @@ -27,7 +26,7 @@
</item>
<item android:state_selected="true">
<shape>
<solid android:color="?androidprv:attr/colorAccentPrimary" />
<solid android:color="@color/color_accent_primary" />
<corners android:radius="@dimen/bottom_action_button_radius" />
</shape>
</item>
Expand Down
3 changes: 1 addition & 2 deletions res/drawable/bottom_apply_button_background.xml
Expand Up @@ -14,11 +14,10 @@
limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:shape="rectangle">
<corners android:radius="@dimen/apply_button_background_height" />
<size
android:width="@dimen/apply_button_background_width"
android:height="@dimen/apply_button_background_height" />
<solid android:color="?androidprv:attr/colorAccentPrimaryVariant" />
<solid android:color="@color/color_accent_primary_variant" />
</shape>
3 changes: 1 addition & 2 deletions res/drawable/bottom_sheet_background.xml
Expand Up @@ -16,8 +16,7 @@
limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:shape="rectangle">
<solid android:color="?androidprv:attr/colorSurface"/>
<solid android:color="@color/color_surface"/>
<corners android:radius="@dimen/preview_bottom_sheet_corner_radius"/>
</shape>
2 changes: 1 addition & 1 deletion res/drawable/check_circle_accent_24dp.xml
Expand Up @@ -17,7 +17,7 @@
<item>
<shape android:shape="oval">
<size android:width="24dp" android:height="24dp" />
<solid android:color="?android:colorAccent" />
<solid android:color="@color/color_accent_primary" />
</shape>
</item>
<item android:drawable="@drawable/ic_check_24dp" android:gravity="fill" />
Expand Down
3 changes: 1 addition & 2 deletions res/drawable/dialog_option_background.xml
Expand Up @@ -15,11 +15,10 @@
limitations under the License.
-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:color="?android:colorControlHighlight">
<item android:id="@android:id/background">
<shape>
<solid android:color="?androidprv:attr/colorAccentPrimary" />
<solid android:color="@color/color_accent_primary" />
<corners android:radius="@dimen/set_wallpaper_dialog_item_inner_corner_radius"/>
</shape>
</item>
Expand Down
28 changes: 28 additions & 0 deletions res/drawable/duo_tabs_button_background.xml
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?android:colorControlHighlight">

<item android:id="@android:id/mask">
<shape android:shape="rectangle">
<corners android:radius="@dimen/duo_tabs_button_corner_radius" />
<solid android:color="?android:colorControlHighlight" />
</shape>
</item>

<item android:drawable="@drawable/duo_tabs_button_background_base" />
</ripple>
21 changes: 21 additions & 0 deletions res/drawable/duo_tabs_button_background_base.xml
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="@dimen/duo_tabs_button_corner_radius" />
<solid android:color="@color/color_surface" />
</shape>
28 changes: 28 additions & 0 deletions res/drawable/duo_tabs_button_indicator_background.xml
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?android:colorControlHighlight">

<item android:id="@android:id/mask">
<shape android:shape="rectangle">
<corners android:radius="@dimen/duo_tabs_button_corner_radius" />
<solid android:color="?android:colorControlHighlight" />
</shape>
</item>

<item android:drawable="@drawable/duo_tabs_button_indicator_background_base" />
</ripple>
21 changes: 21 additions & 0 deletions res/drawable/duo_tabs_button_indicator_background_base.xml
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="@dimen/duo_tabs_button_corner_radius" />
<solid android:color="@color/color_accent_primary" />
</shape>
21 changes: 21 additions & 0 deletions res/drawable/duo_tabs_divider.xml
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<size
android:height="0dp"
android:width="@dimen/duo_tabs_divider_space" />
</shape>
22 changes: 22 additions & 0 deletions res/drawable/floating_sheet_background.xml
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/color_surface"/>
<corners android:radius="@dimen/floating_sheet_corner_radius"/>
</shape>
3 changes: 1 addition & 2 deletions res/drawable/fullscreen_button_background.xml
Expand Up @@ -15,11 +15,10 @@
limitations under the License.
-->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:color="?android:colorControlHighlight">
<item>
<shape android:shape="rectangle">
<solid android:color="?androidprv:attr/colorAccentPrimary" />
<solid android:color="@color/color_accent_primary" />
<corners android:radius="@dimen/separated_tabs_corner_radius" />
</shape>
</item>
Expand Down

0 comments on commit fa1a3ff

Please sign in to comment.