Loading device-redfin.mk +6 −2 Original line number Diff line number Diff line Loading @@ -232,11 +232,15 @@ PRODUCT_PRODUCT_PROPERTIES += \ ro.support_hide_display_cutout=true PRODUCT_PACKAGES += \ NoCutoutOverlay NoCutoutOverlay \ AvoidAppsInCutoutOverlay # (b/183612348): Enable skia reduceOpsTaskSplitting PRODUCT_PROPERTY_OVERRIDES += \ renderthread.skia.reduceopstasksplitting=true # Include the redfin product FCM # Include the redfin product FCM. # Vendor Freeze system-only builds use a different FCM. ifneq ($(PRODUCT_VENDOR_FREEZE_SYSTEM_BUILD),true) PRODUCT_PACKAGES += redfin_product_compatibility_matrix.xml endif device_framework_matrix_product.xml +1 −1 Original line number Diff line number Diff line <compatibility-matrix version="1.0" type="framework" level="6"> <compatibility-matrix version="1.0" type="framework" level="5"> <hal format="hidl" optional="false"> <name>vendor.google.wireless_charger</name> <version>1.3</version> Loading redfin/overlay/packages/apps/AvoidAppsInCutoutOverlay/Android.bp 0 → 100644 +21 −0 Original line number Diff line number Diff line // // Copyright 2021, 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. // runtime_resource_overlay { name: "AvoidAppsInCutoutOverlay", theme: "DisplayCutoutAvoidAppsInCutout", product_specific: true, } redfin/overlay/packages/apps/AvoidAppsInCutoutOverlay/AndroidManifest.xml 0 → 100644 +26 −0 Original line number Diff line number Diff line <!-- ~ Copyright (C) 2021 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. --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.internal.display.cutout.emulation.avoidAppsInCutout" android:versionCode="1" android:versionName="1.0"> <overlay android:targetPackage="android" android:category="com.android.internal.display_cutout_emulation" android:priority="0"/> <application android:label="@string/display_cutout_emulation_overlay" android:hasCode="false"/> </manifest> redfin/overlay/packages/apps/AvoidAppsInCutoutOverlay/res/values/config.xml 0 → 100644 +27 −0 Original line number Diff line number Diff line <!-- ~ Copyright (C) 2021 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. --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <!-- Whether the display cutout region of the main built-in display should be forced to black in software (to avoid aliasing or emulate a cutout that is not physically existent). --> <bool name="config_fillMainBuiltInDisplayCutout">false</bool> <!-- If true, hide the display cutout with display area --> <bool name="config_hideDisplayCutoutWithDisplayArea">true</bool> </resources> Loading
device-redfin.mk +6 −2 Original line number Diff line number Diff line Loading @@ -232,11 +232,15 @@ PRODUCT_PRODUCT_PROPERTIES += \ ro.support_hide_display_cutout=true PRODUCT_PACKAGES += \ NoCutoutOverlay NoCutoutOverlay \ AvoidAppsInCutoutOverlay # (b/183612348): Enable skia reduceOpsTaskSplitting PRODUCT_PROPERTY_OVERRIDES += \ renderthread.skia.reduceopstasksplitting=true # Include the redfin product FCM # Include the redfin product FCM. # Vendor Freeze system-only builds use a different FCM. ifneq ($(PRODUCT_VENDOR_FREEZE_SYSTEM_BUILD),true) PRODUCT_PACKAGES += redfin_product_compatibility_matrix.xml endif
device_framework_matrix_product.xml +1 −1 Original line number Diff line number Diff line <compatibility-matrix version="1.0" type="framework" level="6"> <compatibility-matrix version="1.0" type="framework" level="5"> <hal format="hidl" optional="false"> <name>vendor.google.wireless_charger</name> <version>1.3</version> Loading
redfin/overlay/packages/apps/AvoidAppsInCutoutOverlay/Android.bp 0 → 100644 +21 −0 Original line number Diff line number Diff line // // Copyright 2021, 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. // runtime_resource_overlay { name: "AvoidAppsInCutoutOverlay", theme: "DisplayCutoutAvoidAppsInCutout", product_specific: true, }
redfin/overlay/packages/apps/AvoidAppsInCutoutOverlay/AndroidManifest.xml 0 → 100644 +26 −0 Original line number Diff line number Diff line <!-- ~ Copyright (C) 2021 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. --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.internal.display.cutout.emulation.avoidAppsInCutout" android:versionCode="1" android:versionName="1.0"> <overlay android:targetPackage="android" android:category="com.android.internal.display_cutout_emulation" android:priority="0"/> <application android:label="@string/display_cutout_emulation_overlay" android:hasCode="false"/> </manifest>
redfin/overlay/packages/apps/AvoidAppsInCutoutOverlay/res/values/config.xml 0 → 100644 +27 −0 Original line number Diff line number Diff line <!-- ~ Copyright (C) 2021 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. --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <!-- Whether the display cutout region of the main built-in display should be forced to black in software (to avoid aliasing or emulate a cutout that is not physically existent). --> <bool name="config_fillMainBuiltInDisplayCutout">false</bool> <!-- If true, hide the display cutout with display area --> <bool name="config_hideDisplayCutoutWithDisplayArea">true</bool> </resources>