Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 617275f6 authored by Roman Birg's avatar Roman Birg Committed by Steve Kondik
Browse files

unbreak density scaling



- Only apply density scaling to built in screens so we don't affect
overlays.

- Only apply density scaling for activities which fall under the
  'default' compatibility bucket. Some apps may  have different
  compatibility info setup (e.g. scaling) and we do not
  need to apply the user density to this activity.

Change-Id: I0b4849141cf081694aae5668ae60764e70be7db1
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>

Density scaling: scale compatibility apps, wm command support

Density scaling should work across all apps and different density
configurations. It should also pass CTS.

- force compatibility density if calculated compatibility density is
  different than what the user has requested

- hook in "wm density" support, should behave the same as setting the
  density from Settings

- clean up some logic

Change-Id: I52c7c2ca200b78f9a5ee9170871ca62e1cab3bcb
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>

Fix typo in density assignment.

Change-Id: I35b3860a4991ebaee70c91f3878d63b8f28d7fce

Density scaling: return device's default density

When an application requests the Display's display metrics, always
override the returned densityDpi to be the device's original density to
ensure compatibility.

Change-Id: I465d53bc189d4596aba0269f124ddc9d0d8097da
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>

return default density only for primary display

Change-Id: I70b35a7f4ba77d7c5744fdcb6c19ef78de3dcb15
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>

density: do not apply to virtual displays

Check the incoming configuration density to ensure that it is the same
as the device's default density before forcing preferred values.

Only apply display metrics if the display is not a presentation.

Ref: CYNGNOS-338
Change-Id: I437ac8cf45f1a6c568707e0733364b2495791d8a
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 173a4d8a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment