Commit Graph

24275 Commits

Author SHA1 Message Date
TreeHugger Robot
ef36ff041e Merge "Prevent task in recents being empty when activity info in unavailable" 2017-10-20 01:09:08 +00:00
Matthew Ng
6acfb654ce Prevent task in recents being empty when activity info in unavailable
When an app is unavailable to get its activity info, it will not have a
color, title or icon and it would look weird in recents. Therefore skip
adding it to the recents list when this occurs.

Test: manual
Change-Id: I1cf2f7f8ea5ce132159f6aabfbfae31df0187660
Fixes: 64236158
2017-10-19 16:04:30 -07:00
jackqdyulei
0f56a1014a Reuse the BluetoothBatteryDrawable in QS detail am: 4b7f43bcae
am: 2cd25cfcee

Change-Id: I204b6cd1bfd4a54f17f09f9ca3549c4a98266618
2017-10-19 21:43:15 +00:00
jackqdyulei
2cd25cfcee Reuse the BluetoothBatteryDrawable in QS detail
am: 4b7f43bcae

Change-Id: Ie5fd81010fae4660bb0fdd5d6d061fa535d86150
2017-10-19 21:31:54 +00:00
jackqdyulei
4b7f43bcae Reuse the BluetoothBatteryDrawable in QS detail
BluetoothBatteryDrawable creates the drawable lazily using
the latest(and most correct) context. So it could get the
correct color from the theme.

Also add iconScale field in BluetoothBatteryDrawable so the size
of the battery icon could be scaled.

Bug: 67377756
Test: Manual - connected to bluetooth headphone and open the qs
page and detail page. Retest it after changing it to dark theme.
Change-Id: Ic6c871985a89a503221755eed4bc2605ab53f630
2017-10-19 11:43:54 -07:00
Bill Yi
408af019e1 Import translations. DO NOT MERGE
Change-Id: If3f4f4d5c3e397916bd4c4a7a41615ea966a8cb7
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-10-19 03:34:53 -07:00
Evan Laird
daad3da642 Merge "Fix incorrect colors for CustomTile in QS" into oc-mr1-dev am: 859f8c4a21
am: e5d55d52b6

Change-Id: I7ab8bd9a58a7582286e73f1888b81d4a745eac24
2017-10-18 15:13:54 +00:00
Evan Laird
e5d55d52b6 Merge "Fix incorrect colors for CustomTile in QS" into oc-mr1-dev
am: 859f8c4a21

Change-Id: Id96f0a18c77628d63069ed434f5904936cb41359
2017-10-18 14:15:04 +00:00
TreeHugger Robot
859f8c4a21 Merge "Fix incorrect colors for CustomTile in QS" into oc-mr1-dev 2017-10-18 13:20:43 +00:00
TreeHugger Robot
8712878165 Merge "Fixes retrieving fullscreen stack when recents is not available yet" 2017-10-18 01:09:37 +00:00
Matthew Ng
30aadfdc47 Fixes retrieving fullscreen stack when recents is not available yet
First time going to recents would not have the recents stack created yet
and so SystemUI would fallback to getting the window rect from the
fullscreen stack. The code getting the fullscreen stack passed an
undefined window mode which would return a null stack. Fix this by
asking for a fullscreen window mode.

Change-Id: I372bcf5ccffd87af467a8a1a8cee46def1640654
Fixes: 67864447
Test: manual - on boot, launch app, press recents button
2017-10-17 15:43:49 -07:00
Evan Laird
b3daf2b88c Fix incorrect colors for CustomTile in QS
Add support for Supplier<Icon> in QSTile.State, allowing a method for
CustomTile not to cache the drawable for its IconViews. This fixes the
problem that the ImageViews in QQS and QS were trying to use the same
drawable and putting it in a bad state.

Test: Add 3rd party tile to first position in QS and turn on/off; visual
Change-Id: I408d6391a718fcb3f847e72bd303551d2d004dbb
Fixes: 67356768
2017-10-17 16:00:29 -04:00
Winson Chung
6519c1b0fe Moving some recents logic into the shared lib.
- Creating com.android.system.shared library with recents model code and
  corresponding recents tests
- Removing notion of blacklisted apps since that is now obsolete.

Bug: 67510855
Test: It builds, Recents runs

Change-Id: Ib1f5eefa6e4d4964366061246002509e2e15b19e
2017-10-17 12:24:41 -07:00
TreeHugger Robot
b52a5d3331 Merge "Updated TaskDescription to pass drawable resource ID (1/2)" 2017-10-17 01:38:42 +00:00
TreeHugger Robot
97bfdaa8e1 Merge "Prevent dismiss divider going minimized to recents for other users" 2017-10-17 01:00:24 +00:00
TreeHugger Robot
57f0d44d34 Merge "Fix wallpaper placement + performance improvement" 2017-10-16 21:59:08 +00:00
Matthew Ng
534e85494e Prevent dismiss divider going minimized to recents for other users
The bus event DockedFirstAnimationFrameEvent was not fired to
DividerView from secondary to system user so the last snap target for
DividerView was not recorded instead the bottom of the screen was the
last target. Since the bottom of the screen is last recorded, when
unminimizing, the dividerview goes to the bottom of the screen and
dismisses. This is fixed by piping the event from the secondary to
system user so that DividerView can get the event.

Fixes: 67326180
Test: manual - go to secondary user, drag to dock and minimize, press
recents button
Change-Id: Icd7497c49826d04dc907ef2eff3a5248e78ef67b
2017-10-16 14:45:53 -07:00
Jason Monk
ca1b2ee217 Merge "Auto-dim refinements" into oc-mr1-dev am: 2806975bfb
am: a739d220fc

Change-Id: I4c0fb646b7f2593cf579b0958fa1222dd1c55864
2017-10-16 21:37:54 +00:00
Jason Monk
a739d220fc Merge "Auto-dim refinements" into oc-mr1-dev
am: 2806975bfb

Change-Id: Ica3ebd5b227fbe9e4bd4b3699f54176d166f6dda
2017-10-16 20:02:52 +00:00
Matthew Ng
54bc942fe4 Updated TaskDescription to pass drawable resource ID (1/2)
Depreciated the TaskDescription constructor when passing a bitmap and
added constructors to support passing drawable resource ID. Passing
drawable IDs allow users to use drawables such as AdaptiveIcons
instead of creating and passing a bitmap. Later SystemUI checks for
either bitmap, file name or resource ID to get a drawable to display.

Test: run-test CtsActivityManagerDeviceTestCases android.server.am
.TaskDescriptionTest
Change-Id: Ib944687249acf9fb6bbf9a9a109930cc04539e14
Fixes: 36298959
2017-10-16 10:56:24 -07:00
Lucas Dupin
049978e61d Fix wallpaper placement + performance improvement
Wallpaper would have the wrong placement during
first frame because it would be center aligned
in a surface that's not big enough.

Also removed old OpenGl implementation, in favor of new
hardware accelerated canvas.

Change-Id: Ic9c9eaa817e1f6494aa5431d8278f2c28b2c45a9
Fixes: 66926914
Test: set wallpapaer with different offsets, orientations and devices
2017-10-16 10:05:20 -07:00
Jason Monk
2044e6e377 Auto-dim refinements
- Don't auto-dim while wallpaper is showing
 - Up alpha to 60%

Change-Id: Ie5fc33279ca46f7de37befacbbd7b42b7d4e5d15
Fixes: 67735001
Test: manual
2017-10-16 11:21:38 -04:00
Wileen Chiu
ca3d1f0cf0 Merge "Add change to show Invalid card when erroneous card is inserted." am: 4bc825aecc am: 8279494137 am: 9778539847
am: 8463b91dca

Change-Id: I01a3b8fe7e3a679f560a2e2d03d39b1d0b58fa2f
2017-10-15 03:46:49 +00:00
Wileen Chiu
8463b91dca Merge "Add change to show Invalid card when erroneous card is inserted." am: 4bc825aecc am: 8279494137
am: 9778539847

Change-Id: Ie5915e645a4e7a35fd934f54d6d3bf25ad4fcca3
2017-10-15 03:11:37 +00:00
Wileen Chiu
9778539847 Merge "Add change to show Invalid card when erroneous card is inserted." am: 4bc825aecc
am: 8279494137

Change-Id: Ibd676d4d0f7b8d285c8c01769dc0686358f3a13d
2017-10-15 02:47:23 +00:00
Wileen Chiu
8279494137 Merge "Add change to show Invalid card when erroneous card is inserted."
am: 4bc825aecc

Change-Id: I89a5b529033c30defacc715ef3c8310500e5fae7
2017-10-15 02:32:25 +00:00
Winson Chung
29eea40277 Merge changes Id963434f,I103ccc69,I770cd430
* changes:
  Remove events bus code from task loading code.
  Pull out TaskStackListener into its own class.
  Remove unused recents fast-toggle/paging code.
2017-10-13 23:45:55 +00:00
Winson Chung
0f5120f3ba Remove events bus code from task loading code.
- Remove extra class RecentsPackageMonitor, just have RecentsActivity drive
  the event itself.

Bug: 67510855
Test: Remove package while Recents is open, ensure activity infos are
      trimmed

Change-Id: Id963434ff868e607fe90ef770e4ba2070905cfba
2017-10-13 14:25:30 -07:00
Winson Chung
2db3557064 Pull out TaskStackListener into its own class.
Bug: 67510855
Test: Code removal
Change-Id: I103ccc690f577dbeba9c3568614d9f4041fff7df
2017-10-13 14:25:26 -07:00
Todd Poynor
fb95e121d8 PowerUI: Update temperature warnings on thermal throttling events
Subscribe to thermal throttling start/stop events from thermalservice,
if the vendor thermal management subsystem supports push notifications
of throttling events.  Update temperature warnings immediately when
throttling start/stop events are received.

Fixup existing comment to reflect current code regarding default warning
temperature value.

Bug: 66698613
Test: PowerNotificationWarningsTest, PowerUITest,
      manual: taimen with artificially low temperature threshold and
      logcat debugging messages

Change-Id: I021bcd0d06af861fd3a18a1790815a836659cee6
2017-10-13 14:22:29 -07:00
Todd Poynor
150059093f SystemUI: Clarify default temperature warning notification value
Update comment to describe which value the default temperature
warning notification is used by default.

Test: compile
Change-Id: I421d8f665827c4b45efa169b6ce50ce6655eb74b
2017-10-13 11:29:53 -07:00
Winson Chung
545a6e1b22 Remove unused recents fast-toggle/paging code.
- Also remove some unused assets

Bug: 67510855
Test: Code removal
Change-Id: I770cd430af01deb64f14e3ce30c12497c194dfa2
2017-10-13 10:28:26 -07:00
Treehugger Robot
4bc825aecc Merge "Add change to show Invalid card when erroneous card is inserted." 2017-10-13 13:02:21 +00:00
Winson Chung
247f1d4187 Remove unused recents freeform task code.
Bug: 67510855
Test: Code removal
Change-Id: I608eda163318acbb53c67ed96e3f81383b7c17c0
2017-10-12 14:29:11 -07:00
Winson Chung
a0610760f9 Remove unused recents affiliated task code.
Bug: 67510855
Test: Code removal
Change-Id: Ib56cdb1153ba85dd09e815b054dc0e12d04cfd38
2017-10-12 14:29:06 -07:00
Winson Chung
fadda8f399 Merge changes I3f60ce50,I44d494a5,If17586cd,I26730461
* changes:
  4/Clean up use of hidden recent task flags
  3/Removing unnecessary filtering logic for recent tasks in SystemUI
  2/Trimming tasks based on active and visibility
  1/Clean up RecentTasks list
2017-10-12 20:29:33 +00:00
Pengquan Meng
30ab214a9d Merge "MSIM: Fix to show PUK view when two sims locked on PIN." am: 00644ec5cc am: 98eb4a23b5 am: edfcd5f6e3
am: 9132969774

Change-Id: I972057b10045850e5aad652d49819b0815dfb195
2017-10-12 18:59:34 +00:00
Pengquan Meng
9132969774 Merge "MSIM: Fix to show PUK view when two sims locked on PIN." am: 00644ec5cc am: 98eb4a23b5
am: edfcd5f6e3

Change-Id: Ie04fd62df6a8ec0552fe7fd8a04f0616abe1d62a
2017-10-12 18:44:39 +00:00
Winson Chung
5fa397533f 4/Clean up use of hidden recent task flags
- Remove flags to control which recent tasks are returned -- they are now
  trimmed with the expected behaviour when the task list is modified.
- Remove unused logic related to force-resetting a task based on inactive
  time.
- Remove SysUI logic related to excluded recent tasks since it is already
  handled
- Clean up task list subsetting now that returned list is guaranteed to
  only be visible tasks
- Only use AM interface to fetch recent tasks instead of through AM

Bug: 34270611
Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/am/RecentTasksTest.java
Change-Id: I3f60ce507563152b5704c63985af621b02d0e7c8
2017-10-12 11:37:17 -07:00
Pengquan Meng
edfcd5f6e3 Merge "MSIM: Fix to show PUK view when two sims locked on PIN." am: 00644ec5cc
am: 98eb4a23b5

Change-Id: I51e91e8cd3668d78d84c101848c02d6d99ea29c5
2017-10-12 18:35:54 +00:00
Pengquan Meng
98eb4a23b5 Merge "MSIM: Fix to show PUK view when two sims locked on PIN."
am: 00644ec5cc

Change-Id: Ic0b0927a52f2734cccff6f977aa0dfe9cd6e8d5c
2017-10-12 18:26:47 +00:00
Winson Chung
fb44d212f2 3/Removing unnecessary filtering logic for recent tasks in SystemUI
- Remove all code related to last-stack-active-time, quiet profile task
  handling, and visible task range filtering
- Remove the notion of firstActiveTime since that was only used to filter
  tasks in SystemUI, also convert lastActiveTime to elapsed real time since
  it is only used in the system to order active tasks, and in SystemUI as
  a part of the TaskKey for caching purposes (it is no longer used to
  determine the last visible task based on time)

Bug: 34270611
Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/am/RecentTasksTest.java
Change-Id: I44d494a521f60f302e0976fcf33490fe837f7cdb
2017-10-12 11:26:15 -07:00
Pengquan Meng
00644ec5cc Merge "MSIM: Fix to show PUK view when two sims locked on PIN." 2017-10-12 18:10:37 +00:00
Shawn
ae40f23c3f DO NOT MERGE Update demo mode time to 8:00 for Android 8.0
Change-Id: I6162889c3859d007629226be2a47a6276807aec0
2017-10-12 16:49:30 +00:00
Pengquan Meng
4b267dfe12 MSIM: Fix to show PUK view when two sims locked on PIN.
Currently when both sims are locked on PIN, upon exhausting
PIN attempts for SIM1 PIN, SIM1 PUK view is not displayed
and the user is not able to unlock the PUK.

This is due to while fetching the getSecurityMode in Key
-GuardSecurityModel, the ordering of checking the security
mode is PIN first and PUK later.So when one sim is locked
on PUK and the other is locked on PIN the ordering of checking
the PIN first is causing to return PIN as security mode in place
of PUK. This will lead to PUK lock screen not been shown to user.

Fix: In KeyGuardSecurityModel.java, while querying the security Mode
modify the order to check for security mode i.e PUK locked state first
and then PIN locked state.

In KeyGuardSimPinView and KeyGuardSimPukView, check for sim locked on
PIN and reset the flags to show the default message.

Test: manually test
Bug: 34796244

Change-Id: I157959d9eb313b9d3af84f86e1429448a0f7f065
2017-10-11 17:43:39 -07:00
TreeHugger Robot
f65d166959 Merge "Removed remaining use of static stack ids." 2017-10-11 21:27:05 +00:00
Wileen Chiu
6b8b22e1e4 Add change to show Invalid card when erroneous card is inserted.
Add change to show "Invalid card" on UI on CARD_IO_ERROR when
erroneous SIM card is inserted

Bug: 23147806
Change-Id: Ibaacf06f2aad8f206095783cc431a87485f1c2ad
2017-10-11 20:10:44 +00:00
TreeHugger Robot
bc8e230ceb Merge "Import translations. DO NOT MERGE" 2017-10-11 20:10:01 +00:00
TreeHugger Robot
c87f3792f1 Merge "Handle Keyboard long-presses and Talkback shortcut on notifications" 2017-10-11 18:49:52 +00:00
Geoffrey Pitsch
409db2766b Handle Keyboard long-presses and Talkback shortcut on notifications
An incremental improvement to keyboard support on the status bar.
SwipeHelper calls a method on ExpandableNotificationRow, which it then
manually invokes from keydown/ups and the AccessibilityAction shortcut.

Regular clicks on the lockscreen still do not activate the notification.

Bug: 34840327
Test: manual
Change-Id: I5b59dec26c5e20237c4136820fff902ff8221371
2017-10-11 11:10:31 -04:00