DeviceAsWebcam: Add overlays for physical camera id

Using physical streams reduces power since camera consumes
a bulk of the power.

Bug: 242346116
Test: Manual webcam use; See power reduction
Change-Id: I2157c2ee23301987d80e4cda9da7bdaea3725025
This commit is contained in:
Avichal Rakesh 2023-07-12 15:37:01 -07:00
parent 03169c5655
commit 89f99fd401
5 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,10 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
runtime_resource_overlay {
name: "DeviceAsWebcamBluejay",
certificate: "platform",
product_specific: true,
sdk_version: "current",
}

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.overlay.DeviceAsWebcam"
android:versionCode="1"
android:versionName="1.0" >
<application android:hasCode="false" />
<overlay
android:targetPackage="com.android.DeviceAsWebcam"
android:isStatic="true"
android:priority="1"/>
</manifest>

View file

@ -0,0 +1 @@
include platform/frameworks/av:/camera/OWNERS

View file

@ -0,0 +1 @@
{"0": {"3" : "UW"}}

View file

@ -194,6 +194,11 @@ PRODUCT_PACKAGES += \
NoCutoutOverlay \ NoCutoutOverlay \
AvoidAppsInCutoutOverlay AvoidAppsInCutoutOverlay
# Android DeviceAsWebcam specific overlay
PRODUCT_PACKAGES += \
DeviceAsWebcamBluejay
# SKU specific RROs # SKU specific RROs
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
SettingsOverlayGB17L \ SettingsOverlayGB17L \