Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host rtc sync #1325

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6e09703
cfc: auto mount share folders
YadongQi Sep 26, 2021
d877bf9
Adjust CFC resolution
renchenglei Sep 8, 2021
32e343f
create WeiXin folder with 0777 for sharing
YadongQi Oct 9, 2021
52402f3
Include VHAL for camera
gkdeepa Aug 24, 2021
c41eced
Switch from ia-hwc to drm-hwc
HaihongxLi Aug 30, 2021
c368d54
Add Mainline patch level
SaliniVenate Oct 25, 2021
d09cb22
Remove the configuration for the status bar
ceiba1985 Oct 26, 2021
7126d12
change H265 encoder min res to 176x144
k-mochi Sep 27, 2021
37b29e8
Set capture volume to maximum
padmashree9110 Nov 12, 2021
c719e42
sensorhal-2.0: mixin changes..
rajucm2007 Nov 24, 2021
ace9f67
Enable block-level deduplication for product partition
SaliniVenate Nov 24, 2021
62def6e
solve Video recording of 720p is blur
Nov 19, 2021
6b1d734
Removing hcitools from product.mk
aiswaryacyriac Dec 1, 2021
d8677ad
sensorhal-2.0: adding sensor_list enable/disable feature
rajucm2007 Dec 17, 2021
a5f37cc
Disabel sensor service
JaikrishnaNemallapudi Nov 9, 2021
92c7d23
Mixin support STMMAC and Marvell drivers for EHL CiV
zhuopeng-sg Jun 25, 2021
5d1ca55
Mixins: kernel config builtin i915 firmware
sfonn Jun 23, 2021
ea00841
Add DnDAgent apk to caas_cfg
tingai1 Dec 29, 2021
4afb829
Set TARGET_BOARD_KERNEL_HEADERS based on kernel used for build
JeevakaPrabu Dec 16, 2021
c42be6b
Enable zram swap for device having <= 4G ram
k-mochi Nov 30, 2021
d345d7f
Enable keymaster 3.0
cyxlily Jan 12, 2022
c741f1e
Add media codec files for EHL
k-mochi Jul 11, 2021
aeceb2c
Add QMP client which syncs guest RTC settings to host
sfonn Dec 20, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion groups/aaf/cfc/init.rc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on fs
mount 9p aaf /mnt/share
exec - system system -- /vendor/bin/logwrapper /vendor/bin/sh /vendor/bin/auto_detection.sh
setprop ro.hardware.hwcomposer remote
setprop sys.display.size 540x960
setprop sys.display.size 600x960
setprop ro.hardware.gralloc ${vendor.gralloc.set}
setprop ro.power.fixed_performance_scale_factor ${vendor.power.fixed_performance_scale_factor}
setprop ro.media.xml_variant.codecs ${ro.vendor.media.target_variant}
Expand Down
2 changes: 1 addition & 1 deletion groups/audio/project-celadon/default/mixer_paths_0.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<path name="main-mic">
<ctl name="Capture Switch" value="1 1" />
<ctl name="Capture Volume" value="63 63" />
<ctl name="Capture Volume" value="74 74" />
<ctl name="Capture Source" value="Internal Mic" />
</path>

Expand Down
9 changes: 0 additions & 9 deletions groups/bluetooth/btusb/product.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
PRODUCT_PACKAGES += \
hciconfig

# Bluetooth tools eng / userdebug
ifneq ($(TARGET_BUILD_VARIANT),user)
PRODUCT_PACKAGES += \
btmon \
hcitool
endif

PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.bluetooth.xml:vendor/etc/permissions/android.hardware.bluetooth.xml \
Expand Down
2 changes: 1 addition & 1 deletion groups/boot-arch/project-celadon/BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888"
#

# NOTE: These values must be kept in sync with BOARD_GPT_INI
BOARD_BOOTIMAGE_PARTITION_SIZE ?= 31457280
BOARD_BOOTIMAGE_PARTITION_SIZE ?= 36700160
SYSTEM_PARTITION_SIZE = $(shell echo {{system_partition_size}}*1024*1024 | bc)
{{^dynamic-partitions}}
BOARD_SYSTEMIMAGE_PARTITION_SIZE ?= $(SYSTEM_PARTITION_SIZE)
Expand Down
2 changes: 1 addition & 1 deletion groups/boot-arch/project-celadon/gpt.ini
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type = fat

[partition.boot]
label = boot
len = 30
len = 35
type = boot
{{#slot-ab}}
has_slot = true
Expand Down
17 changes: 15 additions & 2 deletions groups/camera-ext/ext-camera-only/product.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,22 @@ PRODUCT_COPY_FILES += \

# External camera service
PRODUCT_PACKAGES += android.hardware.camera.provider@2.4-external-service \
android.hardware.camera.provider@2.4-service_64 \
android.hardware.camera.provider@2.4-impl
#VHAL camera
PRODUCT_PACKAGES += camera.$(TARGET_BOARD_PLATFORM) \
camera.$(TARGET_BOARD_PLATFORM).jpeg

PRODUCT_PROPERTY_OVERRIDES += ro.vendor.remote.sf.fake_camera ="both" \
ro.vendor.camera.in_frame_format.h264=false \
ro.vendor.camera.in_frame_format.i420=true \
ro.vendor.camera.decode.vaapi=false \
ro.vendor.remote.sf.back_camera_hal= \
ro.vendor.remote.sf.front_camera_hal= \
ro.vendor.camera.transference="VSOCK" \
vendor.camera.external="VHAL"
#removing not required apps
# Only include test apps in eng or userdebug builds.
PRODUCT_PACKAGES_DEBUG += TestingCamera
#PRODUCT_PACKAGES_DEBUG += TestingCamera

PRODUCT_PACKAGES += MultiCameraApp
#PRODUCT_PACKAGES += MultiCameraApp
3 changes: 3 additions & 0 deletions groups/codecs/configurable/auto_hal.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ value_model=`grep -i model /proc/cpuinfo | cut -d ':' -f2 | head -n 1`
if [ $value_model == 166 ]; then
setprop ro.vendor.media.target_variant "_gen9"
setprop ro.vendor.media.target_variant_platform "_cml"
elif [ $value_model == 150 ]; then
setprop ro.vendor.media.target_variant "_gen11"
setprop ro.vendor.media.target_variant_platform "_ehl"
elif [ $value_model == 141 ]; then
setprop ro.vendor.media.target_variant "_gen12"
setprop ro.vendor.media.target_variant_platform "_tgl"
Expand Down
2 changes: 2 additions & 0 deletions groups/codecs/configurable/files.spec
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[extrafiles]
media_codecs_gen9.xml: "Specific configuration for audio and video codecs for gen9"
media_codecs_gen11.xml: "Specific configuration for audio and video codecs for gen11"
media_codecs_gen12.xml: "Specific configuration for audio and video codecs for gen12"
mfx_omxil_core.conf: "MSDK configuration for video codecs"
media_profiles.xml: "Media profile file"
media_profiles_1080p.xml: "Media profile file with 1080p support"
media_codecs_performance_cml.xml: "Media codecs performance file for cml"
media_codecs_performance_ehl.xml: "Media codecs performance file for ehl"
media_codecs_performance_tgl.xml: "Media codecs performance file for tgl"
media_codecs_performance_{{platform}}_xen.xml: "Media codecs performance file for xen"
media_codecs_vp9.xml: "vp9 support"
Expand Down
242 changes: 242 additions & 0 deletions groups/codecs/configurable/media_codecs_gen11.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
<!-- Copyright (C) 2012 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.
-->

<!--
<!DOCTYPE MediaCodecs [
<!ELEMENT MediaCodecs (Decoders,Encoders)>
<!ELEMENT Decoders (MediaCodec*)>
<!ELEMENT Encoders (MediaCodec*)>
<!ELEMENT MediaCodec (Type*,Quirk*)>
<!ATTLIST MediaCodec name CDATA #REQUIRED>
<!ATTLIST MediaCodec type CDATA>
<!ELEMENT Type EMPTY>
<!ATTLIST Type name CDATA #REQUIRED>
<!ELEMENT Quirk EMPTY>
<!ATTLIST Quirk name CDATA #REQUIRED>
]>

There's a simple and a complex syntax to declare the availability of a
media codec:

A codec that properly follows the OpenMax spec and therefore doesn't have any
quirks and that only supports a single content type can be declared like so:

<MediaCodec name="OMX.foo.bar" type="something/interesting" />

If a codec has quirks OR supports multiple content types, the following syntax
can be used:

<MediaCodec name="OMX.foo.bar" >
<Type name="something/interesting" />
<Type name="something/else" />
...
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Quirk name="output-buffers-are-unreadable" />
</MediaCodec>

Only the three quirks included above are recognized at this point:

"requires-allocate-on-input-ports"
must be advertised if the component does not properly support specification
of input buffers using the OMX_UseBuffer(...) API but instead requires
OMX_AllocateBuffer to be used.

"requires-allocate-on-output-ports"
must be advertised if the component does not properly support specification
of output buffers using the OMX_UseBuffer(...) API but instead requires
OMX_AllocateBuffer to be used.

"output-buffers-are-unreadable"
must be advertised if the emitted output buffers of a decoder component
are not readable, i.e. use a custom format even though abusing one of
the official OMX colorspace constants.
Clients of such decoders will not be able to access the decoded data,
naturally making the component much less useful. The only use for
a component with this quirk is to render the output to the screen.
Audio decoders MUST NOT advertise this quirk.
Video decoders that advertise this quirk must be accompanied by a
corresponding color space converter for thumbnail extraction,
matching surfaceflinger support that can render the custom format to
a texture and possibly other code, so just DON'T USE THIS QUIRK.

-->

<MediaCodecs>
<Decoders>
{{#hw_vd_vc1}}
<MediaCodec name="OMX.Intel.hw_vd.vc1" type="video/x-ms-wmv" >
<!-- profiles and levels: ProfileBaseline : Level51 -->
<Limit name="size" min="64x64" max="3840x2160" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="1-972000" />
<Limit name="bitrate" range="1-40000000" />
<Limit name="performance-point-3840x2160" value="30" />
<Feature name="adaptive-playback" />
</MediaCodec>
{{/hw_vd_vc1}}

{{#sw_vd_h264}}
<MediaCodec name="OMX.Intel.sw_vd.h264" type="video/avc" >
<!-- profiles and levels: ProfileBaseline : Level51 -->
<Limit name="size" min="64x64" max="1920x1080" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="1-972000" />
<Limit name="bitrate" range="1-40000000" />
<Limit name="performance-point-1920x1080" value="30" />
<Feature name="adaptive-playback" />
</MediaCodec>
{{/sw_vd_h264}}

{{#hw_vd_h264}}
<MediaCodec name="OMX.Intel.hw_vd.h264" type="video/avc" >
<!-- profiles and levels: ProfileBaseline : Level51 -->
<Limit name="size" min="64x64" max="3840x2160" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="1-972000" />
<Limit name="bitrate" range="1-40000000" />
<Limit name="performance-point-3840x2160" value="30" />
<Feature name="adaptive-playback" />
</MediaCodec>
{{/hw_vd_h264}}

{{#hw_vd_h264_secure}}
<MediaCodec name="OMX.Intel.hw_vd.h264.secure" type="video/avc">
<!-- profiles and levels: ProfileBaseline : Level51 -->
<Limit name="size" min="64x64" max="3840x2160" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="1-972000" />
<Limit name="bitrate" range="1-40000000" />
<Limit name="performance-point-3840x2160" value="30" />
<Feature name="adaptive-playback" />
<Feature name="secure-playback" required="true" />
</MediaCodec>
{{/hw_vd_h264_secure}}

{{#hw_vd_vp8}}
<MediaCodec name="OMX.Intel.hw_vd.vp8" type="video/x-vnd.on2.vp8" >
<Limit name="size" min="64x64" max="3840x2160" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="1-972000" />
<Limit name="bitrate" range="1-40000000" />
<Limit name="performance-point-3840x2160" value="30" />
<Feature name="adaptive-playback" />
</MediaCodec>
{{/hw_vd_vp8}}

{{#hw_vd_vp9}}
<MediaCodec name="OMX.Intel.hw_vd.vp9" type="video/x-vnd.on2.vp9" >
<Limit name="size" min="64x64" max="8192x8192" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="1-972000" />
<Limit name="bitrate" range="1-40000000" />
<Limit name="performance-point-3840x2160" value="30" />
<Feature name="adaptive-playback" />
</MediaCodec>
{{/hw_vd_vp9}}

{{#hw_vd_h265}}
<MediaCodec name="OMX.Intel.hw_vd.h265" type="video/hevc" >
<Limit name="size" min="64x64" max="8192x8192" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="1-972000" />
<Limit name="bitrate" range="1-40000000" />
<Limit name="performance-point-3840x2160" value="30" />
<Feature name="adaptive-playback" />
</MediaCodec>
{{/hw_vd_h265}}

{{#hw_vd_h265_secure}}
<MediaCodec name="OMX.Intel.hw_vd.h265.secure" type="video/hevc" >
<Limit name="size" min="64x64" max="8192x8192" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="1-972000" />
<Limit name="bitrate" range="1-40000000" />
<Limit name="performance-point-3840x2160" value="30" />
<Feature name="adaptive-playback" />
<Feature name="secure-playback" required="true" />
</MediaCodec>
{{/hw_vd_h265_secure}}

{{#hw_vd_mp2}}
<MediaCodec name="OMX.Intel.hw_vd.mp2" type="video/mpeg2" >
<Limit name="size" min="64x64" max="3840x2160" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="1-972000" />
<Limit name="bitrate" range="1-40000000" />
<Limit name="performance-point-3840x2160" value="30" />
<Feature name="adaptive-playback" />
</MediaCodec>
{{/hw_vd_mp2}}
</Decoders>

<Encoders>
{{#hw_ve_h264}}
<MediaCodec name="OMX.Intel.hw_ve.h264" type="video/avc" >
<Limit name="size" min="176x144" max="3840x2160" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="1-972000" />
<Limit name="bitrate" range="1-40000000" />
<Limit name="performance-point-3840x2160" value="30" />
</MediaCodec>
{{/hw_ve_h264}}
{{#hw_ve_vp8}}
<MediaCodec name="OMX.Intel.hw_ve.vp8" type="video/x-vnd.on2.vp8" >
<Limit name="size" min="176x144" max="3840x2160" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="1-972000" />
<Limit name="bitrate" range="1-40000000" />
<Limit name="performance-point-3840x2160" value="30" />
</MediaCodec>
{{/hw_ve_vp8}}
{{#hw_ve_vp9}}
<MediaCodec name="OMX.Intel.hw_ve.vp9" type="video/x-vnd.on2.vp9" >
<Limit name="size" min="176x144" max="8192x8192" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="1-972000" />
<Limit name="bitrate" range="1-40000000" />
</MediaCodec>
{{/hw_ve_vp9}}
{{#hw_ve_h265}}
<MediaCodec name="OMX.Intel.hw_ve.h265" type="video/hevc" >
<Limit name="size" min="176x144" max="8192x8192" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="1-972000" />
<Limit name="bitrate" range="1-40000000" />
<Limit name="performance-point-3840x2160" value="30" />
</MediaCodec>
{{/hw_ve_h265}}
</Encoders>
{{#sw_omx_video}}
<Include href="media_codecs_google_video.xml" />
{{/sw_omx_video}}
<Include href="media_codecs_google_audio.xml" />
<Settings>
<Setting name="max-video-encoder-input-buffers" value="9" />
</Settings>
</MediaCodecs>
2 changes: 1 addition & 1 deletion groups/codecs/configurable/media_codecs_gen12.xml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ Only the three quirks included above are recognized at this point:
{{/hw_ve_vp9}}
{{#hw_ve_h265}}
<MediaCodec name="OMX.Intel.hw_ve.h265" type="video/hevc" >
<Limit name="size" min="64x64" max="8192x8192" />
<Limit name="size" min="176x144" max="8192x8192" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="1-972000" />
Expand Down
Loading