Commit Graph

6244 Commits

Author SHA1 Message Date
Jeff Sharkey
0ab7007631 resolve merge conflicts of 358f0d4fc8 to master
Bug: 174932174
Test: I solemnly swear I tested this conflict resolution.
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: I9262a08ffc1ccede8e519d0eed90ed2bfcf0232c
2020-12-08 11:01:05 -07:00
Jeff Sharkey
358f0d4fc8 Merge changes from topic "dec5" am: c2793cf12b am: 9af6ac78b0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519384

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2776a545a24f007ccb4b9ee14705978571265ef3
2020-12-08 16:43:19 +00:00
Jeff Sharkey
9af6ac78b0 Merge changes from topic "dec5" am: c2793cf12b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519384

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifdc390f5ae046c515a30158f3f55b831be147547
2020-12-08 16:05:11 +00:00
Jeff Sharkey
52b9862f87 Improve OWNERS coverage across frameworks/base/.
As general background, OWNERS files expedite code reviews by helping
code authors quickly find relevant reviewers, and they also ensure
that stakeholders are involved in code changes in their areas.

Some teams under frameworks/base/ have been using OWNERS files
successfully for many years, and we're ready to expand them to cover
more areas.  Here's the historical coverage statistics for the last
two years of changes before these new OWNERS changes land:

-- 56% of changes are fully covered by OWNERS
-- 17% of changes are partially covered by OWNERS
-- 25% of changes have no OWNERS coverage

Working closely with team leads, we've now identified clear OWNERS on
a per-package basis, and we're using "include" directives whenever
possible to to simplify future maintenance.  With this extensive
effort, we've now improved our coverage as follows:

-- 98% of changes are fully covered by OWNERS
-- 1% of changes are partially covered by OWNERS
-- 1% of changes have no OWNERS coverage

This specific change is automatically generated by a script that
identifies relevant "include" directives.

Bug: 174932174
Test: manual
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Merged-In: I3480ddf2fe7ba3dfb922b459d4da01fa17a2c813
Change-Id: I3480ddf2fe7ba3dfb922b459d4da01fa17a2c813
2020-12-08 08:36:28 -07:00
Anna Zappone
7d7f8e01e1 Merge "Support single conversation in People Space widget" 2020-12-08 10:58:52 +00:00
Anna Zappone
2ec38a18f7 Support single conversation in People Space widget
Via flag value, allow user to select one conversation or see all
conversations. Updates UX to make single conversation fit a 2x1 tile.

Test: PeopleSpaceWidgetManagerTest
Change-Id: I2fac077f4fab32a9a597437a3834dab27539ba75
Bug: 174850448
2020-12-08 10:58:23 +00:00
Xin Li
8836e88707 DO NOT MERGE - Merge RQ1A.201205.011
Bug: 172690556
Merged-In: I26bed08456197721d07f2fab563be0c54e43efd2
Change-Id: Ic1ac100efa50687ccfcbb87ee91a57703105afad
2020-12-07 00:39:42 -08:00
Kweku Adams
e11aa0c7d1 Merge "Migrate remote configuration to DeviceConfig." 2020-12-04 23:19:34 +00:00
TreeHugger Robot
0d3d16b4d1 Merge "Rename send_standby_on_sleep in constants and methods" 2020-12-03 16:58:40 +00:00
Nathalie Le Clair
4dc6b1793a Rename send_standby_on_sleep in constants and methods
Updated the name to better represent the usage of this setting.
The values of the constants remain the same to ensure compatibility.

Bug: 169145038
Test: atest HdmiCecLocalDevicePlaybackTest
Change-Id: Ieba3d94d5db52d39f717b525a8b8ed6e6587b132
2020-12-03 15:47:38 +01:00
TreeHugger Robot
c96fa645f1 Merge "Add Sim categorization Java API to ContactsContract" 2020-12-03 04:44:10 +00:00
Gary Mai
7a0a45efb5 Add Sim categorization Java API to ContactsContract
Adding just the client facing APIs and docs

Test: Manual build and flash
Bug: 170653527
Change-Id: I51da8a61fa5b43b3127f8cf4fc52fbd77e219404
2020-12-02 18:05:26 -08:00
Kweku Adams
799fd15c48 Migrate remote configuration to DeviceConfig.
Move battery saver to retrieve remote configuration values via
DeviceConfig. Some products allow users to customize which battery saver
toggles are active, so leave the Global settings flag around to track
the user's choices. The user's choices will override anything sent from
the server.

Also renaming some of the flag names since we don't need to support
backwards compatibility for server-side pushes.

Bug: 79580230
Bug: 124466289
Test: atest com.android.server.power.batterysaver.BatterySaverPolicyTest
Test: atest com.android.server.power.batterysaver.BatterySaverStateMachineTest
Test: atest com.android.server.power.batterysaver.BatterySavingStatsTest
Test: atest com.android.server.power.PowerManagerServiceTest
Test: atest CtsBatterySavingTestCases
Test: atest CtsLocationFineTestCases
Change-Id: I47684efa5c4426e1c524fb9c1d4d407ee66fa3b7
2020-12-02 15:36:01 -08:00
Xin Li
d31ee38811 Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855
Bug: 172690556
Merged-In: I78222391b83a4add8e964340ec08bb8a1306e1c6
Change-Id: I28bbf40820674675ccf765c912aa8140d3f74ab2
2020-12-02 00:38:58 -08:00
Darryl L Johnson
377f357c53 Allow toggling the location that display settings are read from.
DisplayWindowSettingsProvider currently only supports reading display
window settings from a single file location. However, this doesn't
support the use case where a device may want to ship with multiple
vendor display setting experiences and allow switching between them at
runtime.

This updates DisplayWindowSettingsProvider to allow overriding the file
path that's used to read display settings. The default is still to read
from the main settings file stored at /vendor/etc/display_settings.xml
but can be changed by setting the global setting:
DEVELOPMENT_WM_DISPLAY_SETTINGS_PATH.

This also removes the flag DEVELOPMENT_IGNORE_VENDOR_DISPLAY_SETTINGS to
since ignoring vendor display settings entirely is no longer needed.

Test: atest WindowManagerSettingsTests
Test: atest DisplayWindowSettingsProviderTests

Bug: 172342357
Bug: 173540615
Change-Id: I11fd2945a4dacef80e1ab921d585c712f20ae55b
2020-12-01 14:53:12 -08:00
Tej Singh
3f93bd179c Merge "Add statsd flag namespaces" 2020-12-01 01:21:54 +00:00
Soonil Nagarkar
825d47614e Merge "Remove LOCATION_GLOBAL_KILL_SWITCH completely" 2020-12-01 00:46:35 +00:00
Zim
7ac598f2ad Remove dead isolated storage code from StorageManagerService
Isolated storage was added in Q (and enabled by default) and has been
replaced by FUSE in R

Additionally, we can remove the ExternalStorageMountPolicy concept
which is only required if isolated storage is false

Cleanup in preparation to introduce DeviceConfig changes for
transcoding

Bug: 169327180
Test: Builds
Change-Id: Ie2686d8efa6654ea6c4b4ca8c121c0c1841a6356
2020-11-27 09:45:50 +00:00
Soonil Nagarkar
00a2b6d443 Remove LOCATION_GLOBAL_KILL_SWITCH completely
This functionality is no longer needed as all battery saver related
logic is handled within location code.

Bug: 69373668
Test: presubmits
Change-Id: Ie79d6334e0aff5a6562ae0014b9274c81434b977
2020-11-23 14:36:49 -08:00
Songchun Fan
fcf4a0c5e0 Merge "[DeviceConfig] add schfan to OWNERS" am: 12fc9f58a4 am: 0aec249264 am: 92babaa746 am: 59e16410cc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1503393

Change-Id: Iab8e41148b4e7479e003bb67126bb071d9753fc3
2020-11-18 23:49:01 +00:00
Songchun Fan
59e16410cc Merge "[DeviceConfig] add schfan to OWNERS" am: 12fc9f58a4 am: 0aec249264 am: 92babaa746
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1503393

Change-Id: Iddf5d4c50c2da392e63eb84627525936346b273b
2020-11-18 23:42:20 +00:00
Songchun Fan
92babaa746 Merge "[DeviceConfig] add schfan to OWNERS" am: 12fc9f58a4 am: 0aec249264
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1503393

Change-Id: I5c5525cc6efee1bb9c858375c0d30ee3b79ba5d5
2020-11-18 23:35:52 +00:00
Songchun Fan
84c340e6ab [DeviceConfig] add schfan to OWNERS
Test: N/A
Change-Id: I851d3925fa328d06f8165f9da9b367221b734fac
2020-11-18 23:12:02 +00:00
Marcin Oczeretko
d620436ba7 Merge "Add configuration options to InteractionJankMonitor" 2020-11-18 23:00:53 +00:00
TreeHugger Robot
580ab7f58f Merge "Switch LatencyTracker to the DeviceConfig API" 2020-11-18 21:28:19 +00:00
TreeHugger Robot
8dcb16ed95 Merge "Added cross sim calling settings support" 2020-11-18 19:23:42 +00:00
Fan Zhang
9ad68d2823 Merge "Create setting key for emergency gesture call number override" 2020-11-18 17:28:40 +00:00
Tej Singh
3c093ddbf2 Add statsd flag namespaces
Add statsd_native and statsd_native boot namespaces, and sync them to
DeviceConfig.

Test: manually checked that statsd could receive flags with selinux
changes in
Bug: 172842175

Change-Id: I9b61e78e9131cf9733d46e73d9ea92e72d1ce1b7
2020-11-17 22:14:57 -08:00
Jack Yu
ea9050793c Added cross sim calling settings support
Added a telephony provider entry for storing the
user's settings.

Fix: 173250681
Test: Manual
Change-Id: I081c7e5fcc98f51a97c41a0a9a2b9b628c8d0415
2020-11-17 19:48:31 -08:00
Fan Zhang
8e089728c7 Create setting key for emergency gesture call number override
This setting will store an emergency number locally if government
provided emergency number (such as 911, 110) are not desired by user,
used by emergency apps such as EmergencyInfo and Personal Safety on
Pixel.

Bug: 172609395
Test: manual/rebuild
Change-Id: I8732c20f0438e521eaec73758242015794c80c3b
2020-11-17 14:47:28 -08:00
Marcin Oczeretko
3b462716ce Add configuration options to InteractionJankMonitor
Test: UTs + manual
Bug: 162927074

Change-Id: I3edf8d2ce3d2b3b7410fa56d46db0833ac23366d
2020-11-17 18:37:58 +00:00
Marcin Oczeretko
2db59986eb Switch LatencyTracker to the DeviceConfig API
Test: manual
Bug: 162927074

Change-Id: I4eaae9db74ac1b23bdd0e90a6981a852375f788b
2020-11-17 18:37:51 +00:00
Gyanesh Mittal
9431debc23 Deprecate the pre-defined apps of IM in the ContactsContract.
Test: build
Bug: 172950907
Change-Id: I17a86ac2f16c238a28af6e0f04cbadb98a0cf3b6
2020-11-16 14:21:42 -08:00
Sally
3be3d32392 Change forceBoldText to fontWeightAdjustment in Settings
Bug: b/170966021, b/110991537
Test: builds; switched between users
Change-Id: I61958e7f7926aa773d2326eaed34352d69bf057b
2020-11-13 19:43:29 +00:00
Yu-Han Yang
5f084f88db Merge "GNSS Satellite Blocklist Renaming" 2020-11-10 23:06:24 +00:00
Mathew Inwood
5a448e27ed Merge "Add maxTargetSdk restriction to unused APIs." am: f8abe13db4 am: eb80316624
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1468245

Change-Id: I60222cb1879651cf283e385519b5c4d156ab68a1
2020-11-09 15:24:20 +00:00
Mathew Inwood
f8abe13db4 Merge "Add maxTargetSdk restriction to unused APIs." 2020-11-09 14:41:20 +00:00
Grace Jia
1628da1ed5 Merge "Add missed information relative parameter and fields." am: 3014218c9e am: 25c392d7a1 am: e776e16151
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1167604

Change-Id: I9bbc329c80183fb93c604e05d9ea975a2cc5a3d4
2020-11-04 22:41:15 +00:00
Grace Jia
e776e16151 Merge "Add missed information relative parameter and fields." am: 3014218c9e am: 25c392d7a1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1167604

Change-Id: I634bbe43e14aef85a487681112f954a84075ca06
2020-11-04 22:09:44 +00:00
Grace Jia
3014218c9e Merge "Add missed information relative parameter and fields." 2020-11-04 21:16:48 +00:00
Marin Shalamanov
99aa6e7fe0 Add flag for match content frame rate
Add new Settings.Secure.MATCH_CONTENT_FRAME_RATE to store user's preferred
refresh rate switching type.

Bug: 161776333
Test: 1. adb shell settings put secure match_content_frame_rate [0|1|2]
      2. Verify the setting is correctly propagated:
         adb shell dumpsys display | grep mModeSwitchingType
         adb shell dumpsys SurfaceFlinger | grep allowGroupSwitching
      3. reboot and verify the setting is persisted

Change-Id: I95b3f3f550f3e49f3bc6858185a7f7af1d55a4a7
2020-11-04 14:15:04 +01:00
Mathew Inwood
5d123b6775 Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't
have any evidence of them currently being used, so should be safe to
remove from the unsupported list.

Bug: 170729553
Test: Treehugger
Merged-In: I626caf7c1fe46c5ab1f39c2895b42a34319f771a
Change-Id: I54e5ecd11e76ca1de3c5893e3a98b0108e735413
2020-11-04 09:45:53 +00:00
Darryl Johnson
5104973509 Merge changes from topic "vendor-display-settings"
* changes:
  Add global development setting to enable/disable vendor display settings. (2/n)
  Seperate out DisplayWindowSettings persistence from retreival/policy logic. (1/n)
2020-11-03 19:49:02 +00:00
Darryl L Johnson
7bbe64f9d6 Add global development setting to enable/disable vendor display settings.
(2/n)

This change introduces the DEVELOPMENT_IGNORE_VENDOR_DISPLAY_SETTINGS
setting which controls whether or not WindowManagerService should return
display vendor settings provided in the vendor/ partition. This will be
added as an entry in Developer Options to allow ignoring vendor settings
and using the default settings.

Test: atest WmTests:WindowManagerSettingsTests
Bug: 168808369
Change-Id: Iece0b76e4861be56186333134d7d5b25cab5c7e0
2020-11-03 09:00:14 -08:00
Yi Kong
e0f130b36d Merge "Add NAMESPACE_PROFCOLLECT_NATIVE_BOOT for profcollect feature experiments" am: c4aedd1f87 am: 02709d5394 am: d2b9bd8405 am: 475fb2a707
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1471526

Change-Id: I006dbd6f8b0053aed42418f9c34d5b5b17d763e0
2020-11-03 02:14:49 +00:00
Yi Kong
475fb2a707 Merge "Add NAMESPACE_PROFCOLLECT_NATIVE_BOOT for profcollect feature experiments" am: c4aedd1f87 am: 02709d5394 am: d2b9bd8405
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1471526

Change-Id: I8fd2dd7166b12f80135a949c187f6298ca01e701
2020-11-03 01:58:06 +00:00
Yu-Han Yang
8318aba8ed GNSS Satellite Blocklist Renaming
Test: on device
Bug: 168111993
Change-Id: I2ee4414fbc1fcb7abe8a3d5b1099a3e6e58a6777
2020-11-02 17:47:59 -08:00
Yi Kong
d2b9bd8405 Merge "Add NAMESPACE_PROFCOLLECT_NATIVE_BOOT for profcollect feature experiments" am: c4aedd1f87 am: 02709d5394
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1471526

Change-Id: Ica83c944d645c9d1f23e5ba825e85491405bfc16
2020-11-03 01:41:59 +00:00
Grace Jia
3280596f6e Add missed information relative parameter and fields.
Test: android.provider.cts.CallLogTest
Bug: 144452099
Change-Id: Idb5fb877a5e947b00ae1d7d4046f0bef26af8550
2020-11-02 18:09:01 +00:00
Yi Kong
878268ceab Add NAMESPACE_PROFCOLLECT_NATIVE_BOOT for profcollect feature experiments
Bug: 79161490
Test: build
Change-Id: Icf8c24f6d5b63a28272e383e5ab0641032710cdd
2020-11-03 00:48:10 +08:00