Commit Graph

644118 Commits

Author SHA1 Message Date
PETER LIANG
d89dae0094 Merge "Update the default position of the Accessibility floating menu." into sc-dev 2021-06-16 11:52:45 +00:00
Nikita Ioffe
a2d7f96154 Merge "Explicitly set generate_hashtree: false" into sc-dev 2021-06-16 10:30:35 +00:00
PETER LIANG
29ab842516 Merge "Add a new string for a migration tooltip of Accessibility floating menu." into sc-dev 2021-06-16 10:29:45 +00:00
Stanley Wang
4a762bc62b Merge "Update the IllustrationPreference of SettingsLib." into sc-dev 2021-06-16 09:24:55 +00:00
Stanley Wang
09d0cbaff9 Merge "Refine the IllustrationPreference." into sc-dev 2021-06-16 09:22:00 +00:00
TreeHugger Robot
8f74aa34ee Merge "ContentCaptureEvent: Log composing and selection indices" into sc-dev 2021-06-16 08:46:41 +00:00
Kevin Chyn
5c7cdbb8f5 Merge "Refactor/Move isTestModeEnabled to frameworks/base" into sc-dev 2021-06-16 07:55:01 +00:00
Rhed Jao
b55a5da715 Merge "Add support to update the throttle time of silent updates" into sc-dev 2021-06-16 07:28:58 +00:00
Rhed Jao
0d6cc194dc Merge "Fix wrong targetSdkVersion returned by the ApkLiteParseUtils" into sc-dev 2021-06-16 07:27:33 +00:00
Alexander Dorokhine
aafffec2e3 Merge "Switch to a non-hidden way to compute data path and switch to subdir." into sc-dev 2021-06-16 07:00:17 +00:00
TreeHugger Robot
72ca552528 Merge "Fixed wipeData() so it doesn't depend on device_admin." into sc-dev 2021-06-16 06:45:36 +00:00
TreeHugger Robot
04e32fa3d2 Merge "Tweak vertical divider hight of RadioButtonPreference" into sc-dev 2021-06-16 06:35:52 +00:00
TreeHugger Robot
949b4d2940 Merge "ContentCapture: DEBUG flag to log raw text" into sc-dev 2021-06-16 06:32:35 +00:00
Stanley Wang
4f59c38d83 Update the IllustrationPreference of SettingsLib.
- Adjust the frame size of the LottieView. We set the frame height
  to 300dp and set the length of the short side of the screen to
  the width of the frame. In this way, LottieView has a fixed size
  to solve the problem of incorrect illustration spec.
- Set the importantForAccessibility value to noHideDescendants to
  avoid the a11y issue.

Bug: 190807662
Test: robotest and see the UI.
Change-Id: Ib48f9c65e0dfbf36b7ebb70718fa5423c918a7a9
2021-06-16 14:14:42 +08:00
Kevin Chyn
ffc5989fd3 Merge "Move non-settings-specific logic to frameworks/base" into sc-dev 2021-06-16 06:13:17 +00:00
Stanley Wang
4defdfaeb4 Refine the IllustrationPreference.
- Remove the system color part of the adaptive colors.
- Add a flag to disable the adaptive colors feature.
- Update the minSdkVersion to 28.

Fix: 191136169
Test: robotest and see the UI
Change-Id: Ia385055d24092d81960cfe4093c427b23f3f2b87
2021-06-16 13:45:52 +08:00
Ahaan Ugale
d224da0ed4 ContentCaptureEvent: Log composing and selection indices
Bug: 184311217
Test: manual
Change-Id: I808021473fe55bf2f0676c005bc0c077146a6785
2021-06-15 22:21:26 -07:00
Minche Li
70aaf815b6 Merge "Calculates the window height fraction on screen by the draggable bounds for magnification switch button" into sc-dev 2021-06-16 04:58:37 +00:00
TreeHugger Robot
014c064431 Merge "Limit marquee in QS tiles to 1" into sc-dev 2021-06-16 04:01:09 +00:00
TreeHugger Robot
8a39e97d7e Merge "Set quick_qs_offset_height to 48dp in waterfall" into sc-dev 2021-06-16 04:00:25 +00:00
mincheli
5c8b13c47f Calculates the window height fraction on screen by the draggable bounds for magnification switch button
In the previous change ag/14776093, the window height fraction used
"windowHeightFraction = (float) mParams.y / mWindowHeight;". And it
causes the  Y-position deviated after the rotation is changed.
To correct this, we used the draggable bounds to calculate the window
height fraction.
See b/189715285#comment3

Bug: 189715285
Test: atest MagnificationModeSwitchTest
Change-Id: I1adcea12f0a96c64c9c6e386dc2feb8e3a9ffcf3
2021-06-16 01:59:16 +00:00
Colin Cross
5c80e3491d Merge "Revert "Revert "HULK SMASH! We've gotta declare REL.""" into sc-dev 2021-06-16 01:55:36 +00:00
Colin Cross
67f28e7448 Revert "Revert "HULK SMASH! We've gotta declare REL.""
This reverts commit 30bb1d09eb.

Reason for revert: b/191191441

Bug: 171506470
Bug: 191191441
Change-Id: I698709a27f3b09e5e02143efd7a71157b5ecf75a
2021-06-16 01:54:59 +00:00
Kevin Chyn
c0c3e583c1 Refactor/Move isTestModeEnabled to frameworks/base
ActionDisabledByAdminControllerFactory is also in frameworks/base,
and should take test mode into consideration.

Bug: 188847063
Test: atest ParentalControlsUtilsTest
Change-Id: I0195478606361aa8b6406376d96b2fc219d9cc4d
2021-06-15 17:14:49 -07:00
Alexander Dorokhine
66e09afd54 Switch to a non-hidden way to compute data path and switch to subdir.
We need to store other things in the appsearch data dir other than what
Icing stores, such as the storage info cache.

Bug: 177685938
Bug: 181787682
Test: Presubmit
Change-Id: I903c34a2c891d617217d44f5126d0d31c8c6bf39
2021-06-15 16:43:28 -07:00
Alexander Dorokhine
ad37babc9f Merge "Update framework from jetpack." into sc-dev 2021-06-15 23:20:43 +00:00
Jing Ji
a388d2533d [automerger skipped] Validate the ServiceRecord state while handling misbehaving FGS am: ae5a219b95 -s ours
am skip reason: Merged-In If18e1d7ba88aef693349b82dc6e70f7d98c68665 with SHA-1 e9b096473f is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14984596

Change-Id: I64138221dba7defd84c31b64fa84b6aea7c1d09b
2021-06-15 22:19:10 +00:00
Siarhei Vishniakou
5d552869af Merge "Remove FLAG_INPUTFILTER_TRUSTED in MotionEventInjector" into sc-dev 2021-06-15 21:50:35 +00:00
TreeHugger Robot
50bbe88967 Merge "Improved implementation of VoiceInteractionManagerService.setDisabled()" into sc-dev 2021-06-15 21:45:38 +00:00
TreeHugger Robot
cac7ab9c5c Merge "Make inline suggestions tooltip is not magnified" into sc-dev 2021-06-15 21:22:09 +00:00
Ilya Matyukhin
825555290f Merge "Add traces for touch events and fix trace naming" into sc-dev 2021-06-15 21:07:54 +00:00
Jeff Sharkey
a56beb126d Merge "Revert "HULK SMASH! We've gotta declare REL."" into sc-dev 2021-06-15 21:03:41 +00:00
Nikita Ioffe
4173c5a51a Merge "Allow holders of INSTALL_PACKAGE_UPDATES permission to update APEXes" into sc-dev 2021-06-15 21:03:05 +00:00
TreeHugger Robot
5bb0024e1f Merge "Use PWLE for waveforms and add ramp down to zero" into sc-dev 2021-06-15 20:50:45 +00:00
TreeHugger Robot
7f848ec12a Merge "Refresh the call indicators whenever carrier config is changed" into sc-dev 2021-06-15 20:47:45 +00:00
TreeHugger Robot
d26ab5ef57 Merge "Need to call resetFgsRestrictionLocked() before calling setFgsRestrictionLocked() again." into sc-dev 2021-06-15 20:28:15 +00:00
Miranda Kephart
f34c9ede73 Merge "Make Markup fade in from screenshots" into sc-dev 2021-06-15 20:04:45 +00:00
TreeHugger Robot
1d2aaf9026 Merge "Adjust inset to center icon in a muted volume row." into sc-dev 2021-06-15 19:41:35 +00:00
TreeHugger Robot
b3c8d6d2e0 Merge "Properly check for SDK before nullifying attribution tag" into sc-dev 2021-06-15 19:41:24 +00:00
Ilya Matyukhin
fce88b4e68 Merge "Fix DMD setting IUdfpsHbmListener before SysUI is ready" into sc-dev 2021-06-15 19:07:35 +00:00
Ben Lin
dd44345c6a Merge "PiP: Divide up the magnetic percent by 2." into sc-dev 2021-06-15 19:06:17 +00:00
Kevin Chyn
e35911fad6 Move non-settings-specific logic to frameworks/base
The dialog that's shown when admin disables functionality lives in
frameworks/base. This change extracts common logic required there
into frameworks/base.

Bug: 188847063
Test: atest ParentalControlsUtilsTest
Change-Id: I9aa9f5664e04a226d2c30a72585bebeb8645494b
2021-06-15 12:02:31 -07:00
TreeHugger Robot
7063bae045 Merge "Make some NoCopySpans can pass to ContentCaptureService" into sc-dev 2021-06-15 18:52:36 +00:00
Jing Ji
ae5a219b95 Validate the ServiceRecord state while handling misbehaving FGS
Fix a race condition where the previous misbehaving FGS's notifcation
is being posted, but that FGS's being stopped, and meanwhile a new FGS
is coming up, the system would get confused and results in
IllegalStateException.

Bug: 182160371
Test: atest CtsAppTestCases:ServiceTest
Change-Id: If18e1d7ba88aef693349b82dc6e70f7d98c68665
Merged-In: If18e1d7ba88aef693349b82dc6e70f7d98c68665
2021-06-15 11:44:23 -07:00
Lais Andrade
11e3bb7af7 Use PWLE for waveforms and add ramp down to zero
Add new configuration for ramp down duration (defaults to zero) to be
used by devices that require a soft ramp down to zero amplitude
between two segments when the change is abrupt to zero.

The waveform timings will be respected, so the ramp down duration might
be reduced if the waveform segment with zero amplitude is shorter than
the configured ramp duration.

This does not add a ramp at the end of vibrations. This will be done in
a follow up.

Bug: 188431691
Test: StepToRampAdapterTest
Change-Id: I9af8c653462defaa1fc26a4fe60077a63831f3fe
2021-06-15 19:37:56 +01:00
Jay Aliomer
adc3f0b6c1 Merge "Animate notification shade footer" into sc-dev 2021-06-15 18:36:44 +00:00
TreeHugger Robot
54fbff341e Merge "Add logic to clean up resources more frequently" into sc-dev 2021-06-15 18:33:38 +00:00
TreeHugger Robot
1e40e4068d Merge "Update docs for onBackPressed" into sc-dev 2021-06-15 18:33:01 +00:00
Felipe Leme
73471b7634 Fixed wipeData() so it doesn't depend on device_admin.
That method can be called by apps that have the MASTER_CLEAR
permission, even if the device doesn't support device_admin

Test: manual verification using automotive's KitchenSink app
Fixes: 190861794

Change-Id: I97ddb18580593e7b23f8fb55b3346049a2261144
2021-06-15 11:32:22 -07:00
Felipe Leme
07848e302b Improved implementation of VoiceInteractionManagerService.setDisabled()
This method is called by CarService when the system goes into suspend
state and the initial implementation completely disabled the service
(and unbound system server from it), which had 2 drawbacks:
- It adds extra work when the system resumes as it has to rebind.
- It can cause memory leaks if the service implementation doesn't
  handle it well.

This CL changes how the API is implemented: rather than disabling the
service, it just ignores new sessions.

To test it:

1. Disable

$ adb shell cmd voiceinteraction disable true

2. Start a session

$ adb shell cmd voiceinteraction show

3. Check logcat

I VoiceInteractionManager: showSessionForActiveService(): ignored while temporarily disabled

Bug: 190051449
Test: manual verification (see above)

Change-Id: Idbc4881b92d9254fb07ea5af1370ea600fc10b80
2021-06-15 11:31:36 -07:00