Commit Graph

625960 Commits

Author SHA1 Message Date
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
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
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
Minche Li
aa88510bc4 Merge "Corrects the icons of magnification switch" into sc-dev 2021-02-25 03:23:35 +00:00
Chris Ye
e43039e0dd Merge "Add onDeviceSetReport to HID command tool" into sc-dev 2021-02-25 03:04:38 +00:00
Jason Chang
b33721641e Merge "Fix the wallpaper app cannot display into full screen when in one-handed mode" into sc-dev 2021-02-25 02:55:13 +00:00
Alex Buynytskyy
02492968c6 Merge "API feedback: getVersion instead of isV2." into sc-dev 2021-02-25 02:42:52 +00:00
Chris Li
7ff46d7137 Merge "DisplayContent rotateBounds not keeping same physical position for 180" into sc-dev 2021-02-25 02:40:34 +00:00
Alexander Dorokhine
b97100acaa Merge "Update framework from jetpack." into sc-dev 2021-02-25 02:35:57 +00:00
Alex Buynytskyy
414d9ecc26 API feedback: getVersion instead of isV2.
Bug: 181015045
Fixes: 181015045
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I623f73b834759d9a1c599d7c7f3ff585fa75c4aa
2021-02-25 02:06:08 +00:00
Eugene Susla
41d85c3ea1 Address CDM API feedback
Fixes: 181175212
Test: atest CompanionDeviceManagerTest
Change-Id: I33c5b2ddaedd09a9f4fae29b247f42e2351b1a0f
2021-02-24 17:56:34 -08:00
Amy Zhang
ea05b4b86f Allow filter configurations to have NULL filterSettings
In Tuner java, we mark Settings in all the FilterConfiguration
as nullable. It could even be set null for the filter subtypes
that could have filter settings, for example, the clients could
config TS AV filter with a null settings or a non-null AvSettings.

In tuner JNI, we read settings by default, which could cause crash

Changing the implementation to allow the filter configurations to
have null settings

Test: atest android.media.tv.tuner.cts
Bug: 181152149
Change-Id: I7c1d8721aae6da8e557138537e65966628584a9a
2021-02-24 17:53:14 -08:00
Sudheer Shanka
6831749cb4 Allow EJs to obtain new network capability.
- Introduce new oom_adj score to be used for EJs so that they won't
  be killed before normal jobs but before any FGS. Also, add a new
  bind flag to instruct the OomAdjuster about when to use this
  new oom_adj score.
- Unlike other capabilities, any app (regardless of it's proc_state)
  with network capability will be able to transfer it's capability
  to other app by binding to it.

Bug: 177641226
Test: atest ./tests/app/src/android/app/cts/ActivityManagerProcessStateTest.java
Test: atest ./tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Test: atest ./services/tests/mockingservicestests/src/com/android/server/am/MockingOomAdjusterTests.java
Test: atest CtsJobSchedulerTestCases

Change-Id: I888764ff22fba92fe2cccf3d8442ed318a19ad2a
2021-02-24 17:17:55 -08:00
Jerry Chang
3ea9673b74 Merge "Make stage split divider non-interactive while showing IME" into sc-dev 2021-02-25 00:51:14 +00:00
Adam Bookatz
0b905b1ef4 Merge "BatteryStats custom buckets: don't revive dead Uids" into sc-dev 2021-02-25 00:26:14 +00:00
Daichi Hirono
4423456dd9 Merge "Change deleteRootTasks so that it returns false instead of exception" into sc-dev 2021-02-25 00:23:30 +00:00
Rajeev Kumar
b21d30888b Merge "Add API to set device owner type for a managed device" into sc-dev 2021-02-25 00:21:51 +00:00
Evan Severson
0f9d5aea50 Expose SensorPrivacy as SystemApi
Rename the apis to be more consistent.
Also expose to test api.
Have the aosp mark that it supports the toggle features by default.

Test: atest CtsSensorPrivacyTestCases
Bug: 162549680

Change-Id: Ib38c16adfc5cec931347e1a1891618983d78248b
2021-02-24 15:39:19 -08:00
Ruslan Tkhakokhov
04501d566e Merge "Get OperationType from transport" into sc-dev 2021-02-24 23:23:36 +00:00