Generate the effects and composition primitives of
libqtivibratoreffect.oplus for this LRA. The response constants are
starting points to tune by feel.
Assisted-by: LLM
Change-Id: I3ddaaeb797be1f4240dea315868adc67e84a20d7
The display HAL matches the UDFPS layers by name for hbm_enable, and
SystemUI now stacks the overlay above the dim layer itself, so the
oplus z-order overrides are no longer needed.
Change-Id: I1f3a4572195528136e4d757f968d99042a6015e6
The face HAL ends an attempt that sees no face for 151 frames with
UNABLE_TO_PROCESS. SystemUI treats that as a hardware error and
retries up to four times, so a single lock screen wake keeps the front
camera cycling for about a minute, racing any other camera client.
E face_aidl.FaceSession: No face times have reached 151 counts, so cancel!
E face_aidl.FaceSession: onError(error=2, vendor=0)
E FaceAuthenticateOptions: unmapped FaceAuthUiEvent FACE_AUTH_TRIGGERED_RETRY_AFTER_HW_UNAVAILABLE
One such camera close stalled while Aperture opened the rear camera,
and the HAL's watchdog killed it:
F DEBUG : signal 11 (SIGSEGV), code 0 (SI_USER), fault addr --------
F DEBUG : #08 pc 000000000003dfcc /vendor/lib64/libcamera2ndk_vendor.so (ACameraDevice_close.cfi+36)
F DEBUG : #09 pc 0000000000025e60 /odm/bin/hw/vendor.oplus.hardware.biometrics.face@1.0-service (CameraHelper::closeCameraNoLock()+316)
Report it as TIMEOUT, which is what it is.
Assisted-by: LLM
Change-Id: Ibbb5189c7181427d975e3c26695927ffbca2b9e6
At 100% the adjustment gamma is 1^x, so the framework divides by log(1)
when inferring the adjustment and never reshapes the curve: setting
screen_auto_brightness_adj to +0.8 or -0.8 left the backlight at 21.
Use the default 300% so the adjustment slider works again.
Assisted-by: LLM
Change-Id: Ie029fb68ee82fccf658ca9b98bdd8e715d5d7767
The curve ended at 502 nits for 5000 lux, right at the HBM transition
point, so auto brightness never went brighter in sunlight. Add the
points stock uses from 8700 lux, hbm_lux_table 8 in
display_brightness_config_common.xml. That is the HBM minimum lux, so
brightness stays at the transition point below it, as on stock.
Assisted-by: LLM
Change-Id: If315c5e7bf6016ef9c7fb678d9ac21e1dd14024e
The display device config overrides these overlays, and the framework
reads the doze brightness only as a fallback for it. Values unchanged;
the config thresholds are in percent rather than permille.
Assisted-by: LLM
Change-Id: I86a5632ce1c5b3af0ab1d4c61c3a58d880a25409
Two points, 2 to 800 nits, are linear in the backlight level, but the
panel isn't: at backlight 1000 it gives 253 nits, not the 196 the map
assumes, and it tops out at 789 nits. Take the points from the S6E3HC3
table stock uses, display_brightness_config_samsung1024.xml, so auto
brightness reaches the nits it asks for. The points keep the error
within 2.5% above the darkest levels.
Assisted-by: LLM
Change-Id: I5d38144e0219ff11e4e8a8ad315111052f565eaa
Without OplusCamera, APS only runs for the Night and Bokeh extensions,
which use its night and portrait modes. Drop the data of algorithms
outside those modes (PerfectColor, 3D photo, AI color, CFR, video
retention, document detection, face distortion correction), the video
filters, the unreferenced fwk_config.json, and the filter LUTs, which
are loaded by name only when a filter is selected.
Assisted-by: LLM
Change-Id: Iaaee2418ce13df3f1e6529c67183a4a28c8105b7
Only the OplusCamera JNI libraries referenced the filter resources, the
sticker models and the double exposure and face beauty libraries. APS,
which the camera extensions keep, loads the filter LUTs by name, so those
stay.
Assisted-by: LLM
Change-Id: I2c6fac030370125a45a789ac686e1d45fc869673
Take the extensions, the camera unit SDK they drive and its sepolicy
from vendor/oplus/camera, and declare Night and Bokeh on the main
camera in camera_unit_config, which predates the SDK's
cameraExtensionConfig. Pin the Night preview sizes, as newer Oplus
devices do, since the SDK otherwise derives portrait oriented ones from
the screen and CameraX finds no output size.
The rear portrait preview is configured for two cameras, but an
extension session has a single stream, so APS rejects every frame
("dispatchInputData() undefined case!!") and the viewfinder stays black.
Configure it for one camera.
Front Night is left out: the HAL aborts on the capture request.
Assisted-by: LLM
Change-Id: Iecbc00963d94c3f13a01a91f218b2ea10d08e443
The camera HAL gives multi-frame noise reduction only to the package
named in the PackageName Group's SystemCamera key. Every other client
gets a JPEG encoded from a single preview frame:
IPE ... pipeline:JPEGEncodePreviewMctfOplus_IPE19_cam0
With Aperture listed, the same capture is blended from eight frames on
every lens:
IPE ... pipeline:MfsrPrefilter_IPE0_cam0
IPE ... pipeline:MfsrBlend_IPE1_cam0 (x7)
IPE ... pipeline:MfsrPostFilter_IPE3_cam0
The key holds a single package, so the Oplus camera app loses it.
Assisted-by: LLM
Change-Id: I4c644c7895340a12b2f738f48792352baa12eeea
The display panel that is used by ferrari/wly (Samsung S6E3HC3)
supports pixelworks soft-iris feature and its evident with the
presence of /odm/etcirissoft_samsung_S6E3HC3_dsc_cmd_mode_panel.xml.
This fixes color modes with stock render intents.
Change-Id: Iea2cf85eeb2aee9463d08759df04e5a6ec823df2
Speaker protection and calibration loading are
handled by the tfa98xx kernel driver.
Change-Id: Iccd187e6111f9a004cfa1cde4bb2f1ffd0ce4d54
Signed-off-by: Pavel Dubrova <pashadubrova@gmail.com>
* Updated minimum brightness calculation from 4/2047 to 4/4095
to align with display DTSI's max level (qcom,mdss-brightness-min-level = 1,
qcom,mdss-brightness-max-level = 4095).
* Synced screenBrightnessRamp with Oplus SM8650.
* screenBrightnessMap is preferred as it supports only floating-point values.
* Calculated High Brightness Mode (HBM) transition point as 2047/(4095-4).
The transition lux is also obtained from OplusSmartBrightnessController.
* Removed some overlays so as to prefer the defaults.
* Update auto brightness overlays from stock display dumpsys under
OplusSmartBrightnessController.
Change-Id: I0b2513be866728f3ddf93f7fbe296d78d862c813
* Stock oplus camera does not expose 480p videos on any cameras and they are not needed.
* Rear Main camera: 60fps video is supported on oplus camera but unexposed, so lets expose it.
* Front cam: Only HD and FHD qualities are exposed and only upto 30fps in oplus camera. The same modes are exposed properly.
* UW: Supports upto HD FHD 30|60 fps but with shitty quality even in oplus camera. Oplus camera switches to main lens if 4k quality is selected. 60fps remains unexposed, so lets expose it
* Microscope supports HD 30|60 FPS modes. But unsupported FHD quality is exposed too.
Change-Id: I32df3a96854d8ed1cad33a6d6b7d287610f3756f
sensorlocationX is calculated as width/2
sensorlocationY is calculated as (height - persist.vendor.fingerprint.optical.iconlocation) ie (3216 - 753 = 2463)
sensorRadius is calculated as persist.vendor.fingerprint.optical.iconsize/2 ie (228/2 = 114)
config_udfpsEnrollProgressBar is calculated as sensorRadius+5
Change-Id: If6556437abc7c760a45bd3f73f34e38f5d9bb3f2
Moving the corresponding core_64_bit_only make file after removing the
entry from the common64.mk file. This is to enable the GSI components for
64 bit option available.
Change-Id: Idefd924e096371ae53fd76781257667b4f5a2fb7
Support for android.frameworks.stats HIDL HAL has been removed in CP2A.
Camera still works, so move on.
Change-Id: I9753714c7447cbd05a85a3fe537c949f6fc5c0ec
The initial densityMapping configuration had references from AOSP
DisplayDeviceConfig.java template which actually has this inverted.
Let's correct it to account for the native portrait orientation in phones.
Change-Id: I07c9567c1d0c72b7ed77c1fe8fdf399bae30dd85