diff options
Diffstat (limited to 'bridge/tests/res/testApp')
37 files changed, 61 insertions, 0 deletions
diff --git a/bridge/tests/res/testApp/MyApplication/golden/activity.png b/bridge/tests/res/testApp/MyApplication/golden/activity.png Binary files differindex a05349d73c..4546682d06 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/activity.png +++ b/bridge/tests/res/testApp/MyApplication/golden/activity.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon.png b/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon.png Binary files differindex 2d6938aa28..b438464c6c 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon.png +++ b/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_circle.png b/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_circle.png Binary files differindex 5570291230..e939a572ec 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_circle.png +++ b/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_circle.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_dynamic_green.png b/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_dynamic_green.png Binary files differindex 61f1f18af1..b70c65d05e 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_dynamic_green.png +++ b/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_dynamic_green.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_dynamic_orange.png b/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_dynamic_orange.png Binary files differindex dd1dd57027..31647c615d 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_dynamic_orange.png +++ b/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_dynamic_orange.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_rounded_corners.png b/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_rounded_corners.png Binary files differindex e0b60374cd..67deb6e4d4 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_rounded_corners.png +++ b/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_rounded_corners.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_squircle.png b/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_squircle.png Binary files differindex 3e41ccc2c1..6e63ef2286 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_squircle.png +++ b/bridge/tests/res/testApp/MyApplication/golden/adaptive_icon_squircle.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/allwidgets.png b/bridge/tests/res/testApp/MyApplication/golden/allwidgets.png Binary files differindex 48a40cd191..7ac28b683a 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/allwidgets.png +++ b/bridge/tests/res/testApp/MyApplication/golden/allwidgets.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/allwidgets_tab.png b/bridge/tests/res/testApp/MyApplication/golden/allwidgets_tab.png Binary files differindex f8cec3261b..50b5f26443 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/allwidgets_tab.png +++ b/bridge/tests/res/testApp/MyApplication/golden/allwidgets_tab.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/animated_vector.png b/bridge/tests/res/testApp/MyApplication/golden/animated_vector.png Binary files differindex c00823d326..3887e292e3 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/animated_vector.png +++ b/bridge/tests/res/testApp/MyApplication/golden/animated_vector.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/animated_vector_1.png b/bridge/tests/res/testApp/MyApplication/golden/animated_vector_1.png Binary files differindex db0b343eb3..9588148737 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/animated_vector_1.png +++ b/bridge/tests/res/testApp/MyApplication/golden/animated_vector_1.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/asset.png b/bridge/tests/res/testApp/MyApplication/golden/asset.png Binary files differindex b6193f61e4..f4467d6c1d 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/asset.png +++ b/bridge/tests/res/testApp/MyApplication/golden/asset.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/auto-scale-image.png b/bridge/tests/res/testApp/MyApplication/golden/auto-scale-image.png Binary files differindex 6a23995415..7cabc39941 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/auto-scale-image.png +++ b/bridge/tests/res/testApp/MyApplication/golden/auto-scale-image.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/bitmap_decoder.png b/bridge/tests/res/testApp/MyApplication/golden/bitmap_decoder.png Binary files differindex 20f15a9ecd..5be2d1a800 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/bitmap_decoder.png +++ b/bridge/tests/res/testApp/MyApplication/golden/bitmap_decoder.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/context_theme_wrapper.png b/bridge/tests/res/testApp/MyApplication/golden/context_theme_wrapper.png Binary files differindex 323d51493e..9e08e22488 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/context_theme_wrapper.png +++ b/bridge/tests/res/testApp/MyApplication/golden/context_theme_wrapper.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/dark_status_bar.png b/bridge/tests/res/testApp/MyApplication/golden/dark_status_bar.png Binary files differnew file mode 100644 index 0000000000..34ff1adccf --- /dev/null +++ b/bridge/tests/res/testApp/MyApplication/golden/dark_status_bar.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/expand_horz_layout.png b/bridge/tests/res/testApp/MyApplication/golden/expand_horz_layout.png Binary files differindex 5ed270620f..7b1f1f1e02 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/expand_horz_layout.png +++ b/bridge/tests/res/testApp/MyApplication/golden/expand_horz_layout.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/expand_vert_layout.png b/bridge/tests/res/testApp/MyApplication/golden/expand_vert_layout.png Binary files differindex 80e72b0199..d6a4c5c586 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/expand_vert_layout.png +++ b/bridge/tests/res/testApp/MyApplication/golden/expand_vert_layout.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/four_corners.png b/bridge/tests/res/testApp/MyApplication/golden/four_corners.png Binary files differindex 82e40ac58e..4e7feb443f 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/four_corners.png +++ b/bridge/tests/res/testApp/MyApplication/golden/four_corners.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/light_status_bar.png b/bridge/tests/res/testApp/MyApplication/golden/light_status_bar.png Binary files differnew file mode 100644 index 0000000000..a37d8dee26 --- /dev/null +++ b/bridge/tests/res/testApp/MyApplication/golden/light_status_bar.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/ninepatch_background.png b/bridge/tests/res/testApp/MyApplication/golden/ninepatch_background.png Binary files differindex fefb3b7181..6403637078 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/ninepatch_background.png +++ b/bridge/tests/res/testApp/MyApplication/golden/ninepatch_background.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/ondraw_crash.png b/bridge/tests/res/testApp/MyApplication/golden/ondraw_crash.png Binary files differindex d69667c6b7..4051b05ca2 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/ondraw_crash.png +++ b/bridge/tests/res/testApp/MyApplication/golden/ondraw_crash.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/onmeasure_crash.png b/bridge/tests/res/testApp/MyApplication/golden/onmeasure_crash.png Binary files differindex 4d9f7769d9..e27ae9eb39 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/onmeasure_crash.png +++ b/bridge/tests/res/testApp/MyApplication/golden/onmeasure_crash.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/rtl_ltr.png b/bridge/tests/res/testApp/MyApplication/golden/rtl_ltr.png Binary files differindex 118e926796..fab98dc2d4 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/rtl_ltr.png +++ b/bridge/tests/res/testApp/MyApplication/golden/rtl_ltr.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/shadow_scrollview_test.png b/bridge/tests/res/testApp/MyApplication/golden/shadow_scrollview_test.png Binary files differindex 19e65aa167..55a9982b5d 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/shadow_scrollview_test.png +++ b/bridge/tests/res/testApp/MyApplication/golden/shadow_scrollview_test.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/shadow_sizes_test.png b/bridge/tests/res/testApp/MyApplication/golden/shadow_sizes_test.png Binary files differindex 84b7299a56..6093824921 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/shadow_sizes_test.png +++ b/bridge/tests/res/testApp/MyApplication/golden/shadow_sizes_test.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/shadows_test_rounded_edge.png b/bridge/tests/res/testApp/MyApplication/golden/shadows_test_rounded_edge.png Binary files differindex 7d9a51d793..f1437af29a 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/shadows_test_rounded_edge.png +++ b/bridge/tests/res/testApp/MyApplication/golden/shadows_test_rounded_edge.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/simple_activity.png b/bridge/tests/res/testApp/MyApplication/golden/simple_activity.png Binary files differindex 2b2aab8a0e..1300dd0cca 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/simple_activity.png +++ b/bridge/tests/res/testApp/MyApplication/golden/simple_activity.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/simple_activity_noactionbar.png b/bridge/tests/res/testApp/MyApplication/golden/simple_activity_noactionbar.png Binary files differindex 38924a322c..7852c9e323 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/simple_activity_noactionbar.png +++ b/bridge/tests/res/testApp/MyApplication/golden/simple_activity_noactionbar.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/software_layer.png b/bridge/tests/res/testApp/MyApplication/golden/software_layer.png Binary files differnew file mode 100644 index 0000000000..70465cf27b --- /dev/null +++ b/bridge/tests/res/testApp/MyApplication/golden/software_layer.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_91383.png b/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_91383.png Binary files differindex 5832c67a71..03da31efc0 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_91383.png +++ b/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_91383.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_gradient.png b/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_gradient.png Binary files differindex 769406e5fb..67e502fccd 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_gradient.png +++ b/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_gradient.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_radial_gradient.png b/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_radial_gradient.png Binary files differindex 6882d79b87..4b1425ac89 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_radial_gradient.png +++ b/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_radial_gradient.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_with_tint_in_image_view.png b/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_with_tint_in_image_view.png Binary files differindex 759d535f6e..055af89473 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_with_tint_in_image_view.png +++ b/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_with_tint_in_image_view.png diff --git a/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_with_tint_itself.png b/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_with_tint_itself.png Binary files differindex 4396a51816..99e37aed57 100644 --- a/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_with_tint_itself.png +++ b/bridge/tests/res/testApp/MyApplication/golden/vector_drawable_with_tint_itself.png diff --git a/bridge/tests/res/testApp/MyApplication/src/main/myapplication.widgets/SoftwareTextView.java b/bridge/tests/res/testApp/MyApplication/src/main/myapplication.widgets/SoftwareTextView.java new file mode 100644 index 0000000000..3d8cb0c75d --- /dev/null +++ b/bridge/tests/res/testApp/MyApplication/src/main/myapplication.widgets/SoftwareTextView.java @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2023 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. + */ + +package com.android.layoutlib.test.myapplication.widgets; + +import android.content.Context; +import android.graphics.Color; +import android.util.AttributeSet; +import android.widget.TextView; + +public class SoftwareTextView extends TextView { + + public SoftwareTextView(Context context) { + super(context); + init(); + } + + public SoftwareTextView(Context context, AttributeSet attrs) { + super(context, attrs); + init(); + } + + public SoftwareTextView(Context context, AttributeSet attrs, int defStyleAttr) { + super(context, attrs, defStyleAttr); + init(); + } + + public SoftwareTextView(Context context, AttributeSet attrs, int defStyleAttr, + int defStyleRes) { + super(context, attrs, defStyleAttr, defStyleRes); + init(); + } + + private void init() { + setLayerType(LAYER_TYPE_SOFTWARE, null); + setBackgroundColor(Color.RED); + setText("Software Layer"); + } +} diff --git a/bridge/tests/res/testApp/MyApplication/src/main/res/values/styles.xml b/bridge/tests/res/testApp/MyApplication/src/main/res/values/styles.xml index 7b338d1dc6..d75aab1c1c 100644 --- a/bridge/tests/res/testApp/MyApplication/src/main/res/values/styles.xml +++ b/bridge/tests/res/testApp/MyApplication/src/main/res/values/styles.xml @@ -16,4 +16,13 @@ <item name="android:windowBackground">@drawable/theme_attribute_drawable</item> </style> + <style name="LightStatusBarTheme" parent="android:Theme.Material.Light.DarkActionBar"> + <item name="android:statusBarColor">#ffff0000</item> + <item name="android:windowLightStatusBar">true</item> + </style> + + <style name="DarkStatusBarTheme" parent="android:Theme.Material.Light.DarkActionBar"> + <item name="android:statusBarColor">#ffff0000</item> + </style> + </resources> |