This CL adds a <densityMap> element to the existing
display device configuration XML files. This can be used
to configure the logical display density per resolution.
Additionally densityMap can be placed in a default.xml file.
This config will be used if there is no per display configuration,
for example for external displays.
If there is no densityMap, the will fallback to the previous
logic and will get the density value provided by SurfaceFlinger
(which is the value of ro.sf.lcd_density).
Bug: 160147805
Fixes: 207330669
Test: atest DensityMapTest DisplayContentTests
Test: manually change the display mode on a device and make sure
that the density changes (= icons on the launcher stay
at the same size)
Test: manually on device with config_maxUiWidth make
sure that when changing to a resolution bigger than
config_maxUiWidth the density is scaled propertly
Change-Id: I7e31ffb7ab5d1ba4fbeff902d2ddb6fa9b2995fd
Forgot to propagate updated flag documentation to all versions of
register receiver, and
needed to include a link to system broadcasts (which has replaced all
instances of the term protected broadcasts).
Test: comments only, not needed
Bug: 202146686
Change-Id: I61804cd3f3738093bc8a08d2bff6c7a5a863e7f1
Also add ContentObserver#onChange(boolean, Collection, int, UserHandle) so
clients can know the corresponding UserHandle for the notification.
Bug: 203606981
Test: atest CtsContentTestCases and manual testing to verify the observer can get notifications for
all the users.
Change-Id: Icec7e70b71d7de1c15faf1736539f169856304a8
Updating the documentation for registerReceiver so it's more useful,
specifies that the app needs to be targeting Tiramisu (not just
operating on Tiramisu), and adds information about system/protected
broadcasts.
Test: documentation only
Bug: 202146686
Change-Id: I6a0030e203cbbb5430a4d37e336b9711b20ddb85
Earlier we had added a todo, since the api has been merged now we can
add the actual link.
Bug: 205687846
Test: N/A
Change-Id: I2c1ae5adf548ec766408e4ae5872637473b3c8ac
Allow an activity to opt in or out from being streamed to a remote
device by the application manifest.
Also add meta-data support of apps that targeting on previous SDK.
Bug: 201712607
Test: Manual
Change-Id: If39442d19316653cacae4c060f9f374958eb92a5
This change ID will determine whether the OVERRIDE_MIN_ASPECT_RATIO override will be applied for portrait only activities (if enabled), and for all orientations (if disable).
Note that this change is enabled by default because it will need to be
enabled for most use cases.
Fix: 203647190
Test: atest WmTests:SizeCompatTests
Change-Id: I0fccbdc22ff387d33695fbf432cf96cd517de095
This moves the main interface, which allows all internal
and eventually mainline APIs to live in the same place and
reference each other in code and docs.
A compatiblity interface called FrameworkPackageUserState was
maintained in the old location because a lot of _Info generation
code relies on it to wrap simple booleans and other getters.
Refactoring those methods to use direct parameters rather than
the interfaces was deemed not worth the effort, as there would be
a large number of new parameters and method calls to fix up.
This can be improved over time and maybe once parsing/_Info object
generation is removed from framework.jar, this compatibility
interface can be fully removed.
Bug: 201811826
Test: atest PackageUserStateTest
Change-Id: I23ab9be440f2bcf5bcf58fea42a355caf2c13933
Fills some holes in missing documentation, mostly for internal
APIs.
Bug: 198306069
Test: none, docs change with no logical changes
Change-Id: I6fca53054f83f634c320197656876818c1716f5c
Change documentation to reflect that EXTRA_PERMISSION_GROUP_NAME is
expected in the Intent
Bug: 202736250
Test: build
Change-Id: Ife0531c8d96a113b8e9bbd8eb943c79386df877a