Commit Graph

39922 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
Android Build Merger (Role)
8cb2dcf081 Merge "Merge "Settings: Fix leak of BroadcastReceiver intents" am: 3499af28c4 am: 1b4a0abdbb am: 517b35fa1c am: d2ff3244dc" 2017-10-19 15:33:57 +00:00
Manu Viswanadhan
ee36f6fedb Merge "Settings: Fix leak of BroadcastReceiver intents" am: 3499af28c4 am: 1b4a0abdbb am: 517b35fa1c
am: d2ff3244dc

Change-Id: I57c99fcf7698535177c23b62e45f8e1a032a7220
2017-10-19 15:31:41 +00: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
Manu Viswanadhan
d2ff3244dc Merge "Settings: Fix leak of BroadcastReceiver intents" am: 3499af28c4 am: 1b4a0abdbb
am: 517b35fa1c

Change-Id: I11f0b50f93e2a722ecf3c8bd398462c967d9bfb2
2017-10-19 06:21:39 +00:00
Manu Viswanadhan
517b35fa1c Merge "Settings: Fix leak of BroadcastReceiver intents" am: 3499af28c4
am: 1b4a0abdbb

Change-Id: I4779532a0be4e8a821e521d1b962b4c57ecf86b8
2017-10-19 06:12:20 +00:00
Manu Viswanadhan
1b4a0abdbb Merge "Settings: Fix leak of BroadcastReceiver intents"
am: 3499af28c4

Change-Id: I2b0f3920f39981956d25017999a25799d995252b
2017-10-19 06:02:23 +00:00
Manu Viswanadhan
d199295ef3 Settings: Fix leak of BroadcastReceiver intents
Use Case: Repeated BT ON/OFF

Failure: Broadcast receiver leak is observed with ON/OFF stress
test which leads to broadcast receiver delays.

Steps:
BT ON/OFF.

Root Cause: During every ON/OFF there are broadcast receiver leaks
caused by repeated registering of profile intent receivers.

Fix: Separate broadcast receiver created for profile intents, such
that broadcast receiver for adapter state intents is always
active. Unregister and re-register the profile receiver when BT
is turned OFF.

Test: BT ON/OFF

Bug: 35415158

Change-Id: Id1db747c61bb2dd33515ac45cdc2059844d3e4f5
2017-10-18 23:29:03 +00: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
Terry (Woncheol) Heo
7fb9a4d538 Merge "Fix loading of the default animation settings" 2017-10-18 04:39:53 +00:00
TreeHugger Robot
8712878165 Merge "Fixes retrieving fullscreen stack when recents is not available yet" 2017-10-18 01:09:37 +00:00
Winston Man
e033dbd760 Update build target to restrict it to arm and x86 only am: 50365007b6
am: a3edc551c0

Change-Id: I2cb6bf873f58489e88d701a7151c163e1a133162
2017-10-17 23:59:58 +00:00
Winston Man
a3edc551c0 Update build target to restrict it to arm and x86 only
am: 50365007b6

Change-Id: If461907f6f797e5fda72ef47147594a4ed7f41a9
2017-10-17 23:37:59 +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
Winston Man
50365007b6 Update build target to restrict it to arm and x86 only
This is to address build breakage for MIPS
https://android-build.googleplex.com/builds/submitted/4400887/sdk_phone_mips-sdk_mac/latest/logs

Bug: 64504762
Test: build successful with target marlin-eng (arm), gce_x86_phone (x86) and sdk_phone_mips (mips)
Change-Id: I710c823ae235d0650b4d1a018180b552261aecc5
2017-10-17 21:37:43 +01: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
Winston Man
cfa760cc87 Merge "Update pre-built apks in platform" into oc-mr1-dev am: 69780830e5
am: 8721e4f7ee

Change-Id: Ife918e817f5a9f26075927b74dbb83a4c1d126bc
2017-10-17 17:59:48 +00:00
Winston Man
8721e4f7ee Merge "Update pre-built apks in platform" into oc-mr1-dev
am: 69780830e5

Change-Id: I73a727dc39e0d2be1d47afeef1305362b13ffbc4
2017-10-17 17:49:05 +00:00
Winston Man
69780830e5 Merge "Update pre-built apks in platform" into oc-mr1-dev 2017-10-17 17:33:50 +00:00
Jeffrey Huang
197eef2cac Merge "Add null check for lifecycle" 2017-10-17 17:23:01 +00:00
Winston Man
d5583fafa7 Update pre-built apks in platform
Now include arm and x86 apks from built server

CtsShim (8.1.0-4396705)

./packages/CtsShim/apk/arm/CtsShim.apk
package: name='com.android.cts.ctsshim'
versionCode='27'
versionName='8.1.0-4396705'
platformBuildVersionName='8.1.0'
sdkVersion:'24'
targetSdkVersion:'24'

./packages/CtsShim/apk/arm/CtsShimPriv.apk
package: name='com.android.cts.priv.ctsshim'
versionCode='27'
versionName='8.1.0-4396705'
platformBuildVersionName='8.1.0'
sdkVersion:'24'
targetSdkVersion:'24'

./packages/CtsShim/apk/x86/CtsShim.apk
package: name='com.android.cts.ctsshim'
versionCode='27'
versionName='8.1.0-4396705'
platformBuildVersionName='8.1.0'
sdkVersion:'24'
targetSdkVersion:'24'

./packages/CtsShim/apk/x86/CtsShimPriv.apk
package: name='com.android.cts.priv.ctsshim'
versionCode='27'
versionName='8.1.0-4396705'
platformBuildVersionName='8.1.0'
sdkVersion:'24'
targetSdkVersion:'24'

Built here:
https://android-build.googleplex.com/builds/branch-dashboard/ub-ctsshim-dev?build_id=4396705

Final OC-MR1 drop for Oct 19th.

This build IS suitable for public release.

Bug: 64504762

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.PrivilegedUpdateTests
Test: gts-tradefed run commandAndExit gts-dev --module GtsPackageManagerHostTestCases
Change-Id: I9a439f7287a8d3703cf014c7c03df2348a384a80
2017-10-17 18:02:48 +01: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
jeffreyhuang
cd3e26a24a Add null check for lifecycle
- Add a null check so that search works correctly in
 DevelopmentSettingsDashboardFragment

Bug: 34203528
Test: Manual Testing
Change-Id: I26e84d2dcb403a2e68d092056a6c8940becedeff
2017-10-16 16:59:54 -07:00
TreeHugger Robot
4c5367a1c0 Merge "Request focus when EditTextPreference opens" 2017-10-16 22:54:43 +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
Fan Zhang
eb086514d2 Request focus when EditTextPreference opens
Change-Id: I2f755f7045836b5e95825029f9a494369a2af109
Fixes: 67759420
Test: robotests
2017-10-16 14:13:17 -07: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
TreeHugger Robot
2806975bfb Merge "Auto-dim refinements" into oc-mr1-dev 2017-10-16 19:37:31 +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
Winston Man
6a7645dc0c Merge "Update CtsShim with multiArch" into oc-mr1-dev am: 0d2d6b6a86
am: 865c5fef38

Change-Id: I6691bb658052abcd3c8332019558b056312acb8c
2017-10-15 03:08:12 +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
Winston Man
865c5fef38 Merge "Update CtsShim with multiArch" into oc-mr1-dev
am: 0d2d6b6a86

Change-Id: Idcaf213ed1e081c816f1e6a8fa8a1650f6b04265
2017-10-15 02:22:06 +00:00
TreeHugger Robot
13dccdbb7a Merge "Remove WifiNetworkScoreCache fake" 2017-10-14 00:20:23 +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