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: Ibfc0698f410c90049f77f0a071b8b4999fb1cfdd Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
This commit is contained in:
parent
ec05035806
commit
e3669c9af9
10 changed files with 52 additions and 0 deletions
|
@ -193,6 +193,10 @@ PRODUCT_PACKAGES += \
|
||||||
NoCutoutOverlay \
|
NoCutoutOverlay \
|
||||||
AvoidAppsInCutoutOverlay
|
AvoidAppsInCutoutOverlay
|
||||||
|
|
||||||
|
# Android DeviceAsWebcam specific overlay
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
DeviceAsWebcamOriole
|
||||||
|
|
||||||
# SKU specific RROs
|
# SKU specific RROs
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
SettingsOverlayGR1YH \
|
SettingsOverlayGR1YH \
|
||||||
|
|
|
@ -205,6 +205,10 @@ PRODUCT_PACKAGES += \
|
||||||
NoCutoutOverlay \
|
NoCutoutOverlay \
|
||||||
AvoidAppsInCutoutOverlay
|
AvoidAppsInCutoutOverlay
|
||||||
|
|
||||||
|
# Android DeviceAsWebcam specific overlay
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
DeviceAsWebcamRaven
|
||||||
|
|
||||||
# Fingerprint antispoof property
|
# Fingerprint antispoof property
|
||||||
PRODUCT_PRODUCT_PROPERTIES +=\
|
PRODUCT_PRODUCT_PROPERTIES +=\
|
||||||
persist.vendor.fingerprint.disable.fake.override=none
|
persist.vendor.fingerprint.disable.fake.override=none
|
||||||
|
|
10
oriole/overlay_packages/DeviceAsWebcamOriole/Android.bp
Normal file
10
oriole/overlay_packages/DeviceAsWebcamOriole/Android.bp
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
package {
|
||||||
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||||
|
}
|
||||||
|
|
||||||
|
runtime_resource_overlay {
|
||||||
|
name: "DeviceAsWebcamOriole",
|
||||||
|
certificate: "platform",
|
||||||
|
product_specific: true,
|
||||||
|
sdk_version: "current",
|
||||||
|
}
|
|
@ -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>
|
1
oriole/overlay_packages/DeviceAsWebcamOriole/OWNERS
Normal file
1
oriole/overlay_packages/DeviceAsWebcamOriole/OWNERS
Normal file
|
@ -0,0 +1 @@
|
||||||
|
include platform/frameworks/av:/camera/OWNERS
|
|
@ -0,0 +1 @@
|
||||||
|
{"0": {"3" : "UW"}}
|
10
raven/overlay_packages/DeviceAsWebcamRaven/Android.bp
Normal file
10
raven/overlay_packages/DeviceAsWebcamRaven/Android.bp
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
package {
|
||||||
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||||
|
}
|
||||||
|
|
||||||
|
runtime_resource_overlay {
|
||||||
|
name: "DeviceAsWebcamRaven",
|
||||||
|
certificate: "platform",
|
||||||
|
product_specific: true,
|
||||||
|
sdk_version: "current",
|
||||||
|
}
|
|
@ -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>
|
1
raven/overlay_packages/DeviceAsWebcamRaven/OWNERS
Normal file
1
raven/overlay_packages/DeviceAsWebcamRaven/OWNERS
Normal file
|
@ -0,0 +1 @@
|
||||||
|
include platform/frameworks/av:/camera/OWNERS
|
|
@ -0,0 +1 @@
|
||||||
|
{"0": {"3" : "UW"}}
|
Loading…
Add table
Add a link
Reference in a new issue