Commit Graph

316616 Commits

Author SHA1 Message Date
Dan Sandler
008cea772a Hide redundant foreground service notifications.
If an app with a foreground service has (at least one)
FLAG_FOREGROUND notification shown to the user, we allow
that to satisfy the requirement that the user be informed
about such things. But if the fg notification or its channel
is blocked by the user, we show the NOTE_FOREGROUND_SERVICES
notification (a/k/a Dianne's Dungeon) provided to us by the
activity manager.

Note that if even one of the foreground processes for the
current user is missing its disclosure notification, the
user will see the whole dungeon.

Bug: 36891897
Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ForegroundServiceControllerTest.java
Change-Id: I4f5d96f80b7c1901faadb56661a42d26f746aa88
2017-06-05 11:18:59 -04:00
Dan Sandler
2f36ab88d7 Updates to Dianne's Dungeon.
- new EKG icon
 - set the notification timestamp to the oldest service
   start time, so you have some idea how long things have been
   this way
 - minor text fixes

Bug: 36891897
Test: runtest -x cts/tests/app/src/android/app/cts/ServiceTest.java
Change-Id: I99db280cde8ca3ecd7205cd44fac159d8f652ca2
2017-06-05 11:18:59 -04:00
Julia Reynolds
2f77da6e10 Merge "Don't allow blocked apps to post notifications" into oc-dev 2017-06-05 13:12:57 +00:00
Hugo Benichi
c991275325 Fix captive portal login ssl error overflow
This patch fixes the built-in html page shown in the captive portal
login activity when there is an ssl error. The page is now scaled
correctly with respect to the device screen, and text wraps as
expected.

This patch also cleanups the hardcoded page by:
 - formatting it for better reading,
 - inlining the "px" css rules,
 - using string concatenation instead of format for including the
   localized text.

Bug: 62269512
Bug: 36532213
Test: manually triggered the activity to load the error page
Merged-In: I9d037222798bd9d4c1736923afb71e3e14c68bcc

(cherry pick from commit 60d5f46d89)

Change-Id: I5cb6e53f5af9dc4b93be8da1d9b6e0e8958e561f
2017-06-05 12:55:25 +09:00
TreeHugger Robot
5228e5d0cb Merge "Import translations. DO NOT MERGE" into oc-dev 2017-06-03 21:49:44 +00:00
TreeHugger Robot
247911d184 Merge "Import translations. DO NOT MERGE" into oc-dev 2017-06-03 21:43:44 +00:00
TreeHugger Robot
5cb5bbdae0 Merge "Move strings to SettingsLib so TV can use them" into oc-dev 2017-06-03 21:41:05 +00:00
TreeHugger Robot
f31a663316 Merge "Import translations. DO NOT MERGE" into oc-dev 2017-06-03 21:31:45 +00:00
TreeHugger Robot
c3504d4f33 Merge "Workaround to ensure that PIP activities have a visible shadow." into oc-dev 2017-06-03 20:41:18 +00:00
Bill Yi
a82d1d72b2 Import translations. DO NOT MERGE
Change-Id: I8a02b8e0c5b650bb2194c2e510db310060f2cab9
Auto-generated-cl: translation import
2017-06-03 10:05:08 -07:00
Bill Yi
295dbe5872 Import translations. DO NOT MERGE
Change-Id: Id173840acdf93c20e287471bb51ea2127df0469e
Auto-generated-cl: translation import
2017-06-03 05:10:59 -07:00
Bill Yi
d14c5b1d84 Import translations. DO NOT MERGE
Change-Id: I6f16f808f5ab850fb3bb459ea63548471d44eeca
Auto-generated-cl: translation import
2017-06-03 03:14:54 -07:00
TreeHugger Robot
0082de03e5 Merge "Add media.codec to native stack dump list" into oc-dev 2017-06-03 02:20:22 +00:00
TreeHugger Robot
1eddb0cb2e Merge "Handling cases with a null bitmap." into oc-dev 2017-06-03 01:37:54 +00:00
TreeHugger Robot
a2f747c57c Merge "Workaround glitches from SOFT_INPUT_ADJUST_PAN" into oc-dev 2017-06-03 01:01:26 +00:00
TreeHugger Robot
52a4125ffd Merge "Fix issue with jumping PIP when IME shows." into oc-dev 2017-06-03 00:35:43 +00:00
Chong Zhang
e55e6e0eb3 Add media.codec to native stack dump list
This is still needed for non-treble devices.

Test: do 'adb shell bugreport' on angler, and check that
'Cmd line: media.codec' and the stacks should be there.

bug: 62297059

Change-Id: Ic46b044e471a2ec3c432bb2fdc6afd6fb1f8090e
2017-06-02 16:10:33 -07:00
Winson Chung
4d8681ff6a Workaround to ensure that PIP activities have a visible shadow.
- When the window for the activity enters PIP, update the outline provider
  to override the alpha of the shadow (to be opaque) to ensure that is is
  visible.  Only applies to the task root activity.

Bug: 36741700
Test: Launch YT, ensure that there is a shadow when after it enters PIP
Test: go/wm-smoke
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: If089dae84e4916d3d0e7bbeb316215b46e522e05
2017-06-02 16:02:50 -07:00
John Reck
3e04f09136 Workaround glitches from SOFT_INPUT_ADJUST_PAN
Change-Id: I1ee0c7d434eb03667bd5e838ea891db73651a994
Fixes: 62073166
Test: Repro app in bug
2017-06-02 16:01:14 -07:00
TreeHugger Robot
76e76a5c26 Merge "add channel and group tags to the notificaiton logs" into oc-dev 2017-06-02 22:34:10 +00:00
Tony Mantler
3fe3488cbd Move strings to SettingsLib so TV can use them
Bug: 38496265
Test: Compiles
Change-Id: I68b535ba490e979a1869b7ea7e2be7737aaaff95
Merged-In: I68b535ba490e979a1869b7ea7e2be7737aaaff95
2017-06-02 15:07:18 -07:00
TreeHugger Robot
dd273de09e Merge "Notify keyguard of when power button is pressed." into oc-dev 2017-06-02 21:54:15 +00:00
Winson Chung
f229ae5523 Handling cases with a null bitmap.
- This can happen either if an app creates an ActivityOptions without a
  thumbnail, or if the call to create a hardware bitmap fails for any
  reason. Just ignore the thumbnail for the transition in this case.

Bug: 62296016
Test: Have not been able to reproduce, but this is just a logical change
Change-Id: I30776b651df1f42118fe1d317fa4817261a6e977
2017-06-02 14:34:52 -07:00
Sudheer Shanka
ab17493ef3 Merge "Avoid excessive logging when the necessary proc file is unavailable." into oc-dev 2017-06-02 21:10:39 +00:00
TreeHugger Robot
ca2f8a2b13 Merge "wifi: add utility function to return saved configurations" into oc-dev 2017-06-02 20:25:19 +00:00
Chris Wren
b39217972e add channel and group tags to the notificaiton logs
Change-Id: Icf029e42fca46262c9d9f8ff63f26de098f888bf
Fixes: 37714086
Test: runtest systemui-notification
2017-06-02 16:19:13 -04:00
Manu Cornet
8493543ce3 Merge "Use a PopupWindow to show tooltips" into oc-dev 2017-06-02 20:02:49 +00:00
Andrew Zeng
b4045d3791 Notify keyguard of when power button is pressed.
This is done on wear power button doesn't turn off the screen,
when the device wakes from keyguard UI isn't visible yet, so
it needs to react to power press in some way.

Bug: 35147955
Change-Id: I22619ea446770d09b53370e9244215646b60a9db
2017-06-02 12:51:13 -07:00
TreeHugger Robot
2b2221e94b Merge "QS vis tweaks" into oc-dev 2017-06-02 19:28:37 +00:00
Sudheer Shanka
acd7f2c783 Avoid excessive logging when the necessary proc file is unavailable.
Bug: 34133340
Test: manual
Change-Id: Ic00e58a5b7bb7f92a0467df1cab8df5cab7dffda
2017-06-02 11:41:50 -07:00
TreeHugger Robot
e8f39b53d4 Merge "Track added/removed window when focus is null" into oc-dev 2017-06-02 17:58:09 +00:00
Evan Rosky
12ee4bd7a8 Merge "Improve consistency in focusAfterDescendants behavior" into oc-dev 2017-06-02 17:56:33 +00:00
TreeHugger Robot
0b83588177 Merge "Annotate test method visibility in WindowManager" into oc-dev 2017-06-02 17:26:54 +00:00
Jason Monk
3ebde83ba2 QS vis tweaks
- QS Header status centering 24dp -> 32dp
 - Several fonts condensed -> medium

Test: visual
Change-Id: Ic8bc08d6a4d78ee708c4a890140b87716a883373
Fixes: 38199857
2017-06-02 13:25:26 -04:00
Peter Qiu
abea726286 wifi: add utility function to return saved configurations
The saved configurations included saved Wi-Fi networks and
Passpoint profiles.

Bug: 62048284
Test: manual test
Change-Id: I55be798d5f36fa678bf69d9f910ca10ed952518a
2017-06-02 10:14:06 -07:00
Winson Chung
c672cb5ed9 Merge "Prevent showing voice session when it is already queued to be hidden." into oc-dev 2017-06-02 16:04:52 +00:00
Winson Chung
d73e94b589 Fix issue with jumping PIP when IME shows.
- Removing extraneous content frame adjustment for the visible IME in
  WindowState, which conflicts with new IME adjustment logic in the
  PinnedStackController.

Bug: 36820637
Test: Launch YT PIP, bring up IME
Test: go/wm-smoke
Change-Id: I6d5e647aa0cd75ff48c1efff50cc42093dcb1129
2017-06-02 09:02:32 -07:00
TreeHugger Robot
8cb56d9082 Merge "Allow force resize message activity to be resumed" into oc-dev 2017-06-02 15:55:38 +00:00
TreeHugger Robot
6d46bc2ed3 Merge "Handle Wi-Fi passing explicit interface name and AP/IP mode" into oc-dev 2017-06-02 15:44:47 +00:00
Wale Ogunwale
2c9f203aad Track added/removed window when focus is null
Improves the blaming of ANRs by determining if an app added windows
after it was launched.

Bug: 38121026
Test: Log inspection
Change-Id: Id86c1981150cf546c92d786ad45d5c2dda5573e0
2017-06-02 08:37:39 -07:00
Julia Reynolds
4da7970dab Don't allow blocked apps to post notifications
Change-Id: I82ed7d954746e65c086ba43c3f4733f9edeae081
Fixes: 62217679
Test: runtest sysmui-notification
2017-06-02 11:29:35 -04:00
Christine Franks
bd75ee0015 Merge "Fix night display activation behavior after reboot" into oc-dev 2017-06-02 15:07:25 +00:00
TreeHugger Robot
fd0b15c196 Merge "Mock out usageStats in NotificationManagerServiceTests" into oc-dev 2017-06-02 14:44:26 +00:00
Erik Kline
1454ee750e Handle Wi-Fi passing explicit interface name and AP/IP mode
Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 31466854
Bug: 32163131
Bug: 62018531
Bug: 62076211
Merged-In: I599813c4b4d866623344df56f62ed6a40b4025d6
Merged-In: I8f1d172a3514e4fb9230af9e09aeaf638f03091c
Change-Id: I3557a9c14f4e9f1de1869084566a179003d98ffe
(cherry picked from commit 2efb827f61)
2017-06-02 22:43:34 +09:00
TreeHugger Robot
1ac325e4d5 Merge "AAPT2: Allow any value type for <item> without format attr" into oc-dev 2017-06-02 02:31:03 +00:00
Andrii Kulian
d5020c15b9 Allow force resize message activity to be resumed
"Activity may not work with split-screen" message is not showing
because the overlay activity is not allowed to resume without
user action.

Bug: 36205249
Test: Launch an activity with target SDK < 25, enable split-screen
Test: go/wm-smoke
Change-Id: Ic796f4449df1307c75ca5445cbffab218f0f8ae3
2017-06-01 18:26:13 -07:00
TreeHugger Robot
9f7e653d56 Merge "Import translations. DO NOT MERGE" into oc-dev 2017-06-02 00:57:50 +00:00
Evan Rosky
3653aed87b Merge "Enabled (asymmetric) tab selection in GridView" into oc-dev 2017-06-02 00:45:17 +00:00
Siyamed Sinir
b34c9d3a33 Merge "AutoSize TextView - major fixes" into oc-dev 2017-06-02 00:18:12 +00:00
Adam Lesinski
e597d68d33 AAPT2: Allow any value type for <item> without format attr
TO bring AAPT2 behavior in-line with AAPT, <item> has a default
format of "any", and only becomes restricted with an explicit format
attribute.

Bug: 62260121
Test: make aapt2_tests
Change-Id: Ife416f520e6c2710bb30e3ba3f2d4463794bfa06
2017-06-01 17:16:44 -07:00