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: Iceb40743dc53dbb50640969294c9f18f4dda60c0
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
This commit is contained in:
Jayant Chowdhary 2023-05-19 00:15:52 +00:00
parent 9fcfac795c
commit ad13acc5a6
10 changed files with 52 additions and 0 deletions

View file

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

View file

@ -0,0 +1,10 @@
<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

@ -321,6 +321,10 @@ PRODUCT_PACKAGES += \
NoCutoutOverlay \ NoCutoutOverlay \
AvoidAppsInCutoutOverlay AvoidAppsInCutoutOverlay
# Android DeviceAsWebcam specific overlay
PRODUCT_PACKAGES += \
DeviceAsWebcamCheetah
# SKU specific RROs # SKU specific RROs
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
SettingsOverlayGFE4J \ SettingsOverlayGFE4J \

View file

@ -307,6 +307,10 @@ PRODUCT_PACKAGES += \
NoCutoutOverlay \ NoCutoutOverlay \
AvoidAppsInCutoutOverlay AvoidAppsInCutoutOverlay
# Android DeviceAsWebcam specific overlay
PRODUCT_PACKAGES += \
DeviceAsWebcamPanther
# SKU specific RROs # SKU specific RROs
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
SettingsOverlayG03Z5 \ SettingsOverlayG03Z5 \

View file

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

View file

@ -0,0 +1,10 @@
<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"}}