Commit Graph

625980 Commits

Author SHA1 Message Date
Adam Bookatz
84fc40ad81 Merge "MeasuredEnergyStats - remove unused accumulate parameter" into sc-dev 2021-02-25 21:55:02 +00:00
Thierry Strudel
d27ed1bd48 Merge "PowerStats: adjust time since boot to epoch before writing to disk" into sc-dev 2021-02-25 21:29:45 +00:00
Fabian Kozynski
6f5cc2b98b Merge "Change QQS to use tiles with side labels" into sc-dev 2021-02-25 20:48:48 +00:00
Kweku Adams
339f0b2696 Merge "Wait for unlock to start jobs." into sc-dev 2021-02-25 20:45:21 +00:00
TreeHugger Robot
2863f6a40d Merge "Convert WifiPowerCalculator to work with BatteryUsageStats" into sc-dev 2021-02-25 20:15:38 +00:00
Lucas Dupin
0f16a22d3d Merge "Only enable overlay where package is installed" into sc-dev 2021-02-25 20:13:04 +00:00
Matt Pietal
6aa114f86e Merge "PIN view - Fix multiple ripples" into sc-dev 2021-02-25 20:05:12 +00:00
Evan Rosky
272c776dbb Merge "Create surfacecontrol before layout in relayoutWindow" into sc-dev 2021-02-25 20:00:30 +00:00
Hongwei Wang
9bdee79a47 Merge "Fixes autoEnterPip transition from landscape" into sc-dev 2021-02-25 19:50:01 +00:00
Adam Bookatz
26b0a0864c MeasuredEnergyStats - remove unused accumulate parameter
The parameter was always true (it was a remnant of a previous
approach).

Test: atest FrameworksCoreTests:com.android.internal.power.MeasuredEnergyStatsTest
Bug: 174818228
Change-Id: I3be5392966c3455b2df145044809a581abbf245c
2021-02-25 11:02:17 -08:00
Fabian Kozynski
e15017ed14 Change QQS to use tiles with side labels
* 2x2 in portrait, 1x4 in landscape
* 4 columns in landscape QS

Other fixes while changing this:
* Animations between QQS and QS look better
* Fix alignment of tiles labels
* Improve line logic for labels

Test: manual
Test: atest SystemUITests
Bug: 171319433
Bug: 180632445
Fixes: 180472943
Fixes: 180191343
Change-Id: I67fbe27796461bee7d2364f81b47f2efd31e4b41
2021-02-25 14:00:21 -05:00
Jing Ji
9b64f7eac6 Merge "Validate the ProcessRecord while iterating LRU list with ProcLock" into sc-dev 2021-02-25 18:48:01 +00:00
Thierry Strudel
721bb44733 PowerStats: adjust time since boot to epoch before writing to disk
Data stored to disk are extracted into an incident report for timeseries
visualization which shows walltime and may span multiple reboot sessions
so storing walltime is better suited than relative time since device boot.

Bug: 179712445
Tests: atest FrameworksServicesTests:PowerStatsServiceTest
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Change-Id: I5ae8e2fe22f1ab9ea960e5be8fef4e9fb1cc10f0
2021-02-25 10:38:01 -08:00
Evan Severson
445abca30e Merge "Expose SensorPrivacy as SystemApi" into sc-dev 2021-02-25 18:29:43 +00:00
Eugene Susla
098bd02d64 Merge "Address CDM API feedback" into sc-dev 2021-02-25 18:28:27 +00:00
Neil Fuller
fcfe1f1c56 Merge "Improve server flags / add more server control" into sc-dev 2021-02-25 18:24:54 +00:00
Svetoslav Ganov
3f9a7c0f52 Merge "Location provider app ops remapping" into sc-dev 2021-02-25 18:18:42 +00:00
Amy Zhang
02abb5b924 Merge "Allow filter configurations to have NULL filterSettings" into sc-dev 2021-02-25 18:05:39 +00:00
Beverly Tai
381a711650 Merge "Don't show now playing in new rotating text area" into sc-dev 2021-02-25 17:43:15 +00:00
Marco Ballesio
25400d83db Merge "CachedAppOptimizer: remove native freezer enabling code" into sc-dev 2021-02-25 16:27:59 +00:00
Matt Pietal
d5f2cd6ed7 PIN view - Fix multiple ripples
Only apply animation on DOWN motion

Fixes: 180994829
Test: manual
Change-Id: Ifdb6e6319e063d577aecdf84dcb7197bd5c725d3
2021-02-25 10:41:54 -05:00
Arthur Hung
01dabee996 Merge "Add keycombination and double tap key commands" into sc-dev 2021-02-25 15:25:29 +00:00
Neil Fuller
2856d9e52f Improve server flags / add more server control
Add more server flags that can be pushed to devices to influence geo
detection service behavior.

This renames DeviceConfig as ServerFlags and introduces an intermediary,
the ServiceConfigAccessor, to hide details and handle changes to config
values that need the location_time_zone_manager to restart.

Simulating server flag changes example:
adb shell cmd device_config put \
    system_time primary_location_time_zone_provider_enabled_override false

Inspecting manager / provider states:
adb shell dump location_time_zone_manager

The following manual tests were conducted to check the plumbing:

Modifying settings behavior:
adb shell cmd device_config put \
    system_time location_time_zone_detection_setting_enabled_override true
<Confirm the settings value cannot be changed by user>

adb shell cmd device_config put \
    system_time location_time_zone_detection_setting_enabled_override false
<Confirm the settings value can be changed by user>

adb shell cmd device_config delete \
    system_time location_time_zone_detection_setting_enabled_override
<Confirm it returns to normal>

Disabling the feature / location_time_zone_manager:
adb shell cmd device_config put \
    system_time location_time_zone_detection_feature_supported false
<Confirm SettingsUI (after restart) doesn't show the geo detection option>
<Confirm manager is not started>

Enabling the feature / location_time_zone_manager:
adb shell cmd device_config put \
    system_time location_time_zone_detection_feature_supported true
<Confirm manager is restarted>

Note: "cmd device_config" doesn't allow multiple config keys to be
changed at once, and any change to service config keys cause the
location_time_zone_manager to restart. When changing multiple, set
"location_time_zone_detection_feature_supported false" to stop the
manager, and "location_time_zone_detection_feature_supported true" when
all changes are done.

Test: Manual testing (see above)
Test: treehugger
Bug: 178107773
Change-Id: I07b57add1ed47197587907b9f0a85f38acc0a76a
2021-02-25 15:24:24 +00:00
Arthur Hung
48efb5544f Merge "Make more system dialogs could receive CLOSE_SYSTEM_DIALOGS" into sc-dev 2021-02-25 14:46:31 +00:00
Zimuzo Ezeozue
b9f76e103c Merge "Extend AnrController to improve ANR dialog controls" into sc-dev 2021-02-25 14:17:15 +00:00
Philip Junker
daeb58b574 Merge "Add support for navigation repeat sound effects" into sc-dev 2021-02-25 14:03:14 +00:00
Zoey Chen
da74086ba4 Merge "[Telephony] Store correct value for multi-sim case - DataEnabled" into sc-dev 2021-02-25 13:31:04 +00:00
Fiona Campbell
26715c82b6 Merge "Change BrightnessMappingStrategy to use DDC values" into sc-dev 2021-02-25 13:25:10 +00:00
Nataniel Borges
a32ef5bd2a Merge "Updates flicker documentation and improve naming" into sc-dev 2021-02-25 12:33:34 +00:00
Jamie Garside
072bedcef8 Android config updates for one handed bouncer.
This is the changes in Settings (to store the current screen side) for
the one-handed keyguard. This also checks in symbols.xml to expose the
platform config to SysUI (the lines in symbols.xml are currently in
config.xml; I'm assuming that a previous revert didn't remove them).

Bug: 170858298
Test: included.
Change-Id: I9d91a9360c821562634e83295f5e2e340f6de1d5
2021-02-25 11:54:39 +00:00
Oli Lan
09826b9f82 Merge "Save calling package when ClipData is set to improve toast attribution." into sc-dev 2021-02-25 11:26:02 +00:00
Sean Stout
b80cfeeddb Merge "Pass display ID to PowerManagerService on user interaction" into sc-dev 2021-02-25 10:28:37 +00:00
Marvin Ramin
1efa93d72c Merge "Only attempt terminating ARC for audio devices" into sc-dev 2021-02-25 10:28:06 +00:00
Kholoud Mohamed
3006355655 Merge "Exposed some testAPIs in DPM" into sc-dev 2021-02-25 10:23:37 +00:00
Kholoud Mohamed
9657d5d777 Merge "created FORCE_DEVICE_POLICY_MANAGER_LOG and CLEAR_FREEZE_PERIOD" into sc-dev 2021-02-25 10:22:38 +00:00
Alex Johnston
0f6d014813 Merge "Credential management app follow ups" into sc-dev 2021-02-25 09:56:00 +00:00
Suprabh Shukla
dabf447720 Merge "Enable alarm permission with a soft failure mode" into sc-dev 2021-02-25 09:47:19 +00:00
Sudheer Shanka
8632838c50 Merge "Allow EJs to obtain new network capability." into sc-dev 2021-02-25 09:19:15 +00:00
Alex Buynytskyy
628539a568 Merge "Additional callback on binder's death." into sc-dev 2021-02-25 08:42:16 +00:00
Lucas Dupin
3c67173eb2 Only enable overlay where package is installed
We cannot try to enable icon overlay on managed users because neither
launcher nor the wallpaper picker is installed on managed profiles.
Trying to do so will result in a SecurityException.

Fixes: 180461062
Test: manual
Test: atest ThemeOverlayApplierTest ThemeOverlayControllerTest
Change-Id: I25a07f7a6aa41b6c92c8928091219c4b0fb22770
2021-02-25 00:00:33 -08:00
Jing Ji
7abcdb592e Validate the ProcessRecord while iterating LRU list with ProcLock
Fix a race condition where the ProcessRecord has been invalidated
but it hasn't been removed from LRU list, meanwhile another thread
iterates the LRU list with the ProcLock, thus the ProcessRecord
should be validated.

Bug: 180849723
Test: atest CtsAppTestCases:ActivityManagerTest
Test: Manual - randomly kill other processes during above test
Change-Id: I76570a7717b98b499b865acf590af7a2133c36d9
2021-02-24 23:37:40 -08:00
Jerry Chang
aa48846ced Merge "Prevent NPE when pinning task from split screen" into sc-dev 2021-02-25 07:19:44 +00:00
Chris Li
30cb582d47 Merge "Add default selectRootForWindow function for target root id" into sc-dev 2021-02-25 06:37:34 +00:00
Louis Chang
09f52aa440 Merge "Rename Stack to Task related terms (7/n)" into sc-dev 2021-02-25 04:58:24 +00:00
Louis Chang
7efc57797c Rename Stack to Task related terms (7/n)
- Renaming PinnedStack to PinnedTask
- Renaming DockedStack to DockedTask

Bug: 157876447
Test: presubmit
Change-Id: I51c10564647ed0d46eddc0c51a1ee06eef897e43
2021-02-25 04:57:26 +00:00
Chris Li
6365120378 Add default selectRootForWindow function for target root id
When window has options to specify the target root id, by default it
should be attach to the target root.

Also cleanup some documentation.

Bug: 155441180
Test: atest WmTests:DisplayAreaPolicyBuilderTest
Change-Id: I9cbfc974cd502a6cadd919b169cb9b8f9ce634f7
2021-02-24 20:22:36 -08:00
Felipe Leme
5fec993b75 Merge "Fixed notifyUnsafeOperationStateChanged." into sc-dev 2021-02-25 04:22:30 +00:00
Charles Chen
f225921153 Merge "Unhide isUiContext()" into sc-dev 2021-02-25 04:05:49 +00:00
Greg Kaiser
0dae8f7014 Merge "Log debug info at Debug level" into sc-dev 2021-02-25 03:48:40 +00:00
Alex Buynytskyy
5e357b09c4 Additional callback on binder's death.
Bug: 180970738
Fixes: 180970738
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I1f0ce57a6dd0c3da847c0c858d9243fea7aa2a1f
2021-02-25 03:29:03 +00:00