Commit Graph

417580 Commits

Author SHA1 Message Date
Philip P. Moltmann
26a896ecc8 Merge "Set app-op for restricted pre-22 apps" into qt-dev 2019-06-12 20:18:23 +00:00
TreeHugger Robot
0972aa6a60 Merge "Reduces Assist Handle fade out duration" into qt-dev 2019-06-12 20:18:17 +00:00
TreeHugger Robot
0963cc2418 Merge "Disabled items shouldn't also be marked as unactionable." into qt-dev 2019-06-12 20:10:31 +00:00
Christian Wailes
7983bfb3e6 Merge "Removes unused code from the SystemServer/Zygote classes." into qt-dev 2019-06-12 19:45:41 +00:00
Govinda Wasserman
4f706c2260 Reduces Assist Handle fade out duration
This matches home handle behavior and ensures that the handles are gone
when the screen fades.

Test: Tested locally
BUG:133767295
Change-Id: Ib8a5ee8c2a408cdf6f0f0741047b3f9f2d3bddff
FIX:133767295
2019-06-12 14:41:36 -04:00
Lucas Dupin
b755a7c16b Merge "Fix SysUI / AoD leaking content observers" into qt-dev 2019-06-12 18:41:12 +00:00
Philip P. Moltmann
404b51c289 Set app-op for restricted pre-22 apps
For these apps the permission is always granted and the grant state is
encoded into the app-op.

Also, unify syncOps* for restricted and foreground permissions into one.

Test: atest RestrictedPermissionsTest
            SplitPermissionTest
Bug: 134500512
Change-Id: I2250a52d2250752c74907b3a9789ed45a4c75390
2019-06-12 11:19:27 -07:00
TreeHugger Robot
324cdd4ae0 Merge "Draw legacy nav bar background directly" into qt-dev 2019-06-12 18:08:05 +00:00
Jovana Knezevic
ffd598557d Merge "Preventing keyguard dismissal when screen is off." into qt-dev 2019-06-12 18:01:23 +00:00
TreeHugger Robot
11110b74ac Merge "Wrap legacyExtra generation in targetsdk check" into qt-dev 2019-06-12 17:39:37 +00:00
TreeHugger Robot
b15ce5ac96 Merge "Catch SecurityException thrown from job binding" into qt-dev 2019-06-12 17:31:20 +00:00
Winson Chung
a2046c0576 Merge "Fix missing overlay values" into qt-dev 2019-06-12 17:28:58 +00:00
TreeHugger Robot
95a633d653 Merge "Fixes an issue where the wrong icons where ambient" into qt-dev 2019-06-12 17:25:27 +00:00
Jorim Jaggi
86d30ff8e3 Draw legacy nav bar background directly
If we only use a view for it, it may not be visible depending on
what the app will do with the DecorView, i.e. set a weird clip
region. To fix that, we also draw the legacy navigation bar
background separately in a post-draw callback.

Test: TikTok
Test: Material app is still able to set bar color
Fixes: 131211797
Change-Id: Id744b98780f8f7f6dcd3482803a680a8f93be4c5
2019-06-12 18:19:41 +02:00
Svetoslav Ganov
04cb6d1ccc Merge "Whitelist all restricted permissions on sideload" into qt-dev 2019-06-12 16:13:03 +00:00
TreeHugger Robot
9291a5af50 Merge "Fix empty stacks leaked after blocking background activity launches." into qt-dev 2019-06-12 16:12:39 +00:00
Julia Reynolds
b9dceee067 Wrap legacyExtra generation in targetsdk check
Newer listeners don't need that information!

Test: atest
Fixes: 134964922
Change-Id: I1eb2fe4d339a7ae4950d905d62bd34eebbdb5657
2019-06-12 14:05:40 +00:00
TreeHugger Robot
c5e858a2c2 Merge "Fix NPE in NSSL test" into qt-dev 2019-06-12 09:27:12 +00:00
Luke Huang
7187dbc4e0 Merge "Fix race condition caused by fd reused for DnsResolver" into qt-dev 2019-06-12 08:07:26 +00:00
Svet Ganov
38493bd689 Whitelist all restricted permissions on sideload
Test: atest android.permission2.cts.RestrictedPermissionsTest#onSideLoadAllRestrictedPermissionsWhitelisted

Bug:134500512

Change-Id: Ia5693f6f39b30e04ad6f96f2c1f5ff7665125e52
2019-06-11 23:41:09 -07:00
Lucas Dupin
c442c8e5f5 Merge "Fix unreadable clock" into qt-dev 2019-06-12 06:24:52 +00:00
lpeter
aca97636d2 Fix SysUI / AoD leaking content observers
It will add one more setting observer when AOD state is changed from
DOZE_PULSING to DOZE/DOZE_AOD.

Avoid to register setting observer again when it has been registered
before.

For example: This issue will occur when receving notification in AOD.

Bug: 133388082
Test: atest SystemUITests
Change-Id: Ie3fccc4dd6ecc77692649ace401779b8398b63f8
2019-06-12 14:00:15 +08:00
TreeHugger Robot
0f10625790 Merge "Fix crash of test after finishing RecentsAnimationTest" into qt-dev 2019-06-12 04:53:47 +00:00
Lucas Dupin
fe21878c5f Fix NPE in NSSL test
By making sure that mIconAreaController will not be null.

Test: atest NotificationStackScrollLayoutTest
Fixes: 134976998
Change-Id: Ie85a806cdb0aaf91fa051074ab76d2c65c36235f
2019-06-12 04:26:30 +00:00
Louis Chang
e8902452ea Fix empty stacks leaked after blocking background activity launches.
Background activity starts were blocked while stacks were created
and leaked.

Remove the stack if the activity failed to launch and no activities
left in the stack. Also avoid creating new stack for the blocked
background activity which is unnecessary.

Bug: 134016361
Test: atest BackgroundActivityLaunchTest

Change-Id: Ifa04a9062cb771929a9614cc164fd64b3f60edf1
2019-06-12 04:04:18 +00:00
Andreas Gampe
e252d155b1 Merge changes I66eac0c5,I07602072 into qt-dev
* changes:
  Frameworks: Add fdatasync after dumping a trace
  Frameworks: Change Java stack trace dumping
2019-06-12 02:58:31 +00:00
Andreas Gampe
72768ed944 Frameworks: Add fdatasync after dumping a trace
Ensure that data hits storage when dumping.

Bug: 133525168
Test: m
Test: manual (induce ANRs with various platform changes)
Merged-In: I66eac0c5e77ea98ba1777d0803b35f38d9ca648f
Change-Id: I66eac0c5e77ea98ba1777d0803b35f38d9ca648f
2019-06-12 02:58:16 +00:00
Andreas Gampe
fa178e14b9 Frameworks: Change Java stack trace dumping
When dumping stacks, e.g., for ANRs, even if the "Java" version from ART
reports success, check that output was generated, and fall back to a
"native" dump if the output is too small, currently set at one hundred
bytes.

Add more logging of failure paths.

Fix some error logging in native to go to logcat instead of stderr.

Bug: 133525168
Test: m
Test: manual (induce ANRs with various platform changes)
Exempt-From-Owner-Approval: Cherry-pick
Merged-In: I0760207229989f6f34e10edcf45fb140bc81d0e5
Change-Id: I0760207229989f6f34e10edcf45fb140bc81d0e5
2019-06-12 02:56:49 +00:00
Xiangyu/Malcolm Chen
1f7ee0bc98 Merge "Make sure on non-dds phone, try MMS data connection when PS is not attached." into qt-dev 2019-06-12 02:23:13 +00:00
Lucas Dupin
a476c79c3a Fix unreadable clock
- Always use white text with shadows on media
- Use lock screen colors for shade theme
- Remove legacy wallpaper visibility listener
- Remove shadow from black title

Test: set white wallpaper
Test: set dark wallpaper
Test: set dark wallpaper on home, light on ls
Test: set dark wallpaper on ls, light on home
Test: atest SysuiColorExtractorTests
Fixes: 134119878
Change-Id: I64ee2dee14322b2c02891c3ffe5fc0b25d1f100b
Merged-In: I64ee2dee14322b2c02891c3ffe5fc0b25d1f100b
2019-06-12 02:10:43 +00:00
Qasid Ahmad Sadiq
08de63ea45 Disabled items shouldn't also be marked as unactionable.
Something can be clickable and disabled. Returning early here prevents that state to be reflected in ListView items.
The reported bug was happening because the items were disabled, but they weren't being reported as clickable.
Talkback doesn't read "disabled" for disabled items unless they are also actionable in certain ways.
Test: CTSAccessibility*, CTS AbsListViewTest, CTS ListViewTest, tried UI with sample app.
Fix: 131281972

Change-Id: Ic9b8c995398151f084d194e272ce082ec345e517
2019-06-11 18:58:21 -07:00
Selim Cinek
3c9b05489f Fixes an issue where the wrong icons where ambient
This is a regression from P from when we hid the
statusbar icons of non-high-priority notifications
by default

Fixes: 134444704
Test: atest SystemUITests
Merged-In: I2e571353735efb0d763ecc236f60aefe4c2b51d4
Change-Id: I2e571353735efb0d763ecc236f60aefe4c2b51d4
2019-06-12 01:47:20 +00:00
TreeHugger Robot
a66bfb90b6 Merge "audioservice: add RTT mode observer" into qt-dev 2019-06-12 01:02:33 +00:00
Anil Admal
1c60a7c773 Merge "Emergency location notification text must be in the correct language" into qt-dev 2019-06-12 00:59:15 +00:00
TreeHugger Robot
b349bcf5a5 Merge "Fixes bad merge in Assistant Handle logic" into qt-dev 2019-06-12 00:15:36 +00:00
Matt Pietal
0ebf0252e0 Merge "GlobalScreenshot - Fix race condition" into qt-dev 2019-06-12 00:04:23 +00:00
Christopher Tate
a23f12a1a9 Catch SecurityException thrown from job binding
In some circumstances, a SecurityException can be thrown by
bindService() even when called by the OS itself.  If this happens when
starting up a scheduled job, make sure to catch and handle the exception
rather than allowing the system server to crash.

Fixes: 134893684
Test: atest CtsJobSchedulerTestCases
Change-Id: Ib0dd2df5d48e13e7b7c75d7117d0ffa361b000ce
2019-06-11 17:03:16 -07:00
Chris Wailes
bed1976f85 Removes unused code from the SystemServer/Zygote classes.
This patch partially reversts ag/6991475 and ag/7161709.  These changes
are no longer needed due to a change in the graphics driver strategy for
Q.

In addition, the preloading of the graphics driver in the USAPs need to
be removed to avoid causing a memory regression on devices with graphics
driver preloading in the Zygote disabled.

Bug: 134526352
Test: Treehugger
Change-Id: I570037866d1ae90794c711622e6045ebbffa5b9c
Merged-In: I570037866d1ae90794c711622e6045ebbffa5b9c
(cherry picked from commit fcd68fd74b)
2019-06-11 16:34:40 -07:00
Anil Admal
6acd4d7ee8 Emergency location notification text must be in the correct language
When the sytem language is changed, the emergency location user
notification text is not posted in the new language unless the
system server is restarted.

Bug: 116328114
Test: Visually verified that the notification reflects system
      language changes.

Change-Id: I63c265da985395879683484af94e10159557789a
2019-06-11 23:07:42 +00:00
TreeHugger Robot
bd32a804ef Merge "Fixed an issue where the background was visible while pulsing" into qt-dev 2019-06-11 22:55:02 +00:00
Malcolm Chen
6499e6d95b Make sure on non-dds phone, try MMS data connection when PS is not
attached.

Before setting up data connection, we check if it's on non-dds and
voice is registered on non-LTE network, if true we'll setup the data
connection even if it's not attached.

Bug: 134086103
Test: manual
Change-Id: I43e150c1d0cc4065da07f4a5ec738b967e7a9a6d
2019-06-11 22:22:53 +00:00
Govinda Wasserman
24ca1bb1bf Fixes bad merge in Assistant Handle logic
Test: atest AssistHandleBehaviorControllerTest
BUG:134572553
Change-Id: Ifdbaa45046f68f6af8708180abe97085ab70af0f
2019-06-11 18:21:38 -04:00
Eric Laurent
6acdc094d6 audioservice: add RTT mode observer
Add content observer for RTT mode: when RTT is ON during a call,
The assistant is allowed to capture audio similarly to when an
accessibility service is in the foreground.

Bug: 132976361
Test: use voice input during a call with RTT enabled.
Change-Id: Ief04d886370b50ae3dac0a72dbd1a4ea5f2c66a3
2019-06-11 15:01:45 -07:00
TreeHugger Robot
6210ac615e Merge "Moving some methods to PendingIntentController" into qt-dev 2019-06-11 21:53:06 +00:00
jovanak
622def2335 Preventing keyguard dismissal when screen is off.
For automotive, we dismiss keyguard to go straight to the home screen
or the bouncer. However, when the screen is off, we want keyguard to remain
to properly stop the applications.

We dismiss keyguard when the screen comes back on.

Fixes: 133324766
Bug: 133271311
Test: manual, turning screen on and off repeatedly, switching users while
screen is off or on, reboots

Change-Id: Iced146ad8753794bb766eb528dd198f886ccf3d7
2019-06-11 20:31:58 +00:00
TreeHugger Robot
2b2d6f58c1 Merge "Gesture exclusion for seekbar thumbs/edit handles" into qt-dev 2019-06-11 20:25:45 +00:00
Matt Pietal
777c82d9b7 GlobalScreenshot - Fix race condition
It is possible for the call to system windows to occur slightly after
the ChooserActivity gets launched, therefore preventing it from ever
showing. Wait on the future before attempting to launch the activity.

Bug: 134976976
Test: Screenshot, then share over and over
Change-Id: Iba98a079412f8e35643f3a1db04e749b3c654637
2019-06-11 15:50:54 -04:00
Selim Cinek
0acf430f12 Fixed an issue where the background was visible while pulsing
We were using our own right instead of the current right to render
the background.

Fixes: 135042415
Test: atest SystemUITests
Change-Id: I853d1ee4d2e9f8472c9786e3ce8f68ab605d1bcd
2019-06-11 12:43:03 -07:00
TreeHugger Robot
0c7bac8718 Merge "Adds note about _native namespaces" into qt-dev 2019-06-11 19:24:29 +00:00
TreeHugger Robot
192b61833d Merge "Link to death of external vibrations" into qt-dev 2019-06-11 18:05:38 +00:00