diff --git a/packages/overlays/AvoidAppsInCutoutOverlay/Android.bp b/packages/overlays/AvoidAppsInCutoutOverlay/Android.bp new file mode 100644 index 0000000000000..4352c04f2022d --- /dev/null +++ b/packages/overlays/AvoidAppsInCutoutOverlay/Android.bp @@ -0,0 +1,29 @@ +// +// 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. +// +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "frameworks_base_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["frameworks_base_license"], +} + +runtime_resource_overlay { + name: "AvoidAppsInCutoutOverlay", + theme: "DisplayCutoutAvoidAppsInCutout", + product_specific: true, +} diff --git a/packages/overlays/AvoidAppsInCutoutOverlay/AndroidManifest.xml b/packages/overlays/AvoidAppsInCutoutOverlay/AndroidManifest.xml new file mode 100644 index 0000000000000..e63c5c3fb554b --- /dev/null +++ b/packages/overlays/AvoidAppsInCutoutOverlay/AndroidManifest.xml @@ -0,0 +1,26 @@ + + + + + + + diff --git a/packages/overlays/AvoidAppsInCutoutOverlay/res/values/config.xml b/packages/overlays/AvoidAppsInCutoutOverlay/res/values/config.xml new file mode 100644 index 0000000000000..22eabf2f59271 --- /dev/null +++ b/packages/overlays/AvoidAppsInCutoutOverlay/res/values/config.xml @@ -0,0 +1,27 @@ + + + + + + false + + + true + + diff --git a/packages/overlays/AvoidAppsInCutoutOverlay/res/values/strings.xml b/packages/overlays/AvoidAppsInCutoutOverlay/res/values/strings.xml new file mode 100644 index 0000000000000..a65fd43b74157 --- /dev/null +++ b/packages/overlays/AvoidAppsInCutoutOverlay/res/values/strings.xml @@ -0,0 +1,23 @@ + + + + + + Hide (avoid apps in cutout region) + + + diff --git a/packages/overlays/NoCutoutOverlay/Android.bp b/packages/overlays/NoCutoutOverlay/Android.bp new file mode 100644 index 0000000000000..78f56273e223d --- /dev/null +++ b/packages/overlays/NoCutoutOverlay/Android.bp @@ -0,0 +1,30 @@ +// +// 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. +// + +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "frameworks_base_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["frameworks_base_license"], +} + +runtime_resource_overlay { + name: "NoCutoutOverlay", + theme: "DisplayCutoutNoCutout", + product_specific: true, +} diff --git a/packages/overlays/NoCutoutOverlay/AndroidManifest.xml b/packages/overlays/NoCutoutOverlay/AndroidManifest.xml new file mode 100644 index 0000000000000..c6224967b9220 --- /dev/null +++ b/packages/overlays/NoCutoutOverlay/AndroidManifest.xml @@ -0,0 +1,26 @@ + + + + + + + diff --git a/packages/overlays/NoCutoutOverlay/res/values/config.xml b/packages/overlays/NoCutoutOverlay/res/values/config.xml new file mode 100644 index 0000000000000..91576998cc543 --- /dev/null +++ b/packages/overlays/NoCutoutOverlay/res/values/config.xml @@ -0,0 +1,36 @@ + + + + + + false + + + true + + + 28dp + 28dp + + + 48dp + + 176dp + diff --git a/packages/overlays/NoCutoutOverlay/res/values/strings.xml b/packages/overlays/NoCutoutOverlay/res/values/strings.xml new file mode 100644 index 0000000000000..dd01adabf81d4 --- /dev/null +++ b/packages/overlays/NoCutoutOverlay/res/values/strings.xml @@ -0,0 +1,24 @@ + + + + + + Hide + + +