Commit Graph

73407 Commits

Author SHA1 Message Date
Julia Reynolds
ed7b5c64e0 Merge "Limit the number of notis an app can enqueue" into oc-dr1-dev am: c65071d625
am: 8d4cd22ffb

Change-Id: I60ddda50a6d5a6a3028361435a340d6191f6c729
2017-07-10 17:14:57 +00:00
Lucas Dupin
0407c1259c Merge "Add theme style flag to WallpaperColors" into oc-dr1-dev am: 8b94ef697e
am: a9682937b6

Change-Id: Id3a0cd1c34166f156d0c94b412ca7d9397e38672
2017-07-10 17:06:33 +00:00
Julia Reynolds
8d4cd22ffb Merge "Limit the number of notis an app can enqueue" into oc-dr1-dev
am: c65071d625

Change-Id: I85e7117a88be1a629a953f1c721faba508d6d424
2017-07-10 17:06:23 +00:00
Lucas Dupin
a9682937b6 Merge "Add theme style flag to WallpaperColors" into oc-dr1-dev
am: 8b94ef697e

Change-Id: Ic63c9dc9963846afd2ab854630d56512059609d9
2017-07-10 16:58:46 +00:00
Julia Reynolds
c65071d625 Merge "Limit the number of notis an app can enqueue" into oc-dr1-dev 2017-07-10 16:55:01 +00:00
Lucas Dupin
8b94ef697e Merge "Add theme style flag to WallpaperColors" into oc-dr1-dev 2017-07-10 16:49:33 +00:00
Julia Reynolds
685525ed0a Merge "Rate limit notification sounds/vibrations" into oc-dr1-dev
am: 00d83ea50f

Change-Id: I9228a7b79f4c8f438fceb462128d16eddda2b563
2017-07-10 16:02:37 +00:00
TreeHugger Robot
00d83ea50f Merge "Rate limit notification sounds/vibrations" into oc-dr1-dev 2017-07-10 15:57:32 +00:00
TreeHugger Robot
b2f9ab3347 Merge "Allow splits to declare a classloader type." 2017-07-10 15:01:52 +00:00
TreeHugger Robot
330ca71a95 Merge "Allow setup apps to colorize notifications." 2017-07-10 15:01:07 +00:00
Bryce Lee
76f4782227 Merge "Add app bounds to Configuration#compareTo." into oc-dr1-dev am: 649053810f
am: 31bf99946c

Change-Id: I502d823cb4f9089a1c460d8a810381fef7333b2d
2017-07-10 14:37:56 +00:00
Bryce Lee
31bf99946c Merge "Add app bounds to Configuration#compareTo." into oc-dr1-dev
am: 649053810f

Change-Id: Ifc8c8e2df9296072f1c5746cff0bc005755b60a8
2017-07-10 14:30:25 +00:00
Narayan Kamath
506b3db322 Merge "SharedPreferencesImpl: Avoid pointless allocation during apply." 2017-07-10 14:25:54 +00:00
Bryce Lee
649053810f Merge "Add app bounds to Configuration#compareTo." into oc-dr1-dev 2017-07-10 14:21:37 +00:00
Julia Reynolds
6ad0aecf99 Limit the number of notis an app can enqueue
In addition to the number they can post. Also decrease
the number of posts per second to 5, but allow finished
progress notifications through.

Fixes: 63173849
Fixes: 63167456
Test: runtests systemui-notification & simultaneously
downloading 5 files.
Change-Id: I0c8ea35b3d9d38b000ea5fe383515e1d5a26bac7
2017-07-10 09:42:24 -04:00
Julia Reynolds
5f8e0b881e Rate limit notification sounds/vibrations
1 alert per second.

Bug: 36662487
Test: runtest systemui-notification
Change-Id: I2046ae17b9e89ac0a83e182b91422fd242bc7557
2017-07-10 09:37:54 -04:00
Julia Reynolds
4db5955557 Allow setup apps to colorize notifications.
Fixes: 63147379
Test: runtest systemui-notification, core tests
Change-Id: I2077a9fd563826d978d0dc01be89dd0bbc09eebf
2017-07-10 09:17:39 -04:00
Narayan Kamath
35c11a740c SharedPreferencesImpl: Avoid pointless allocation during apply.
Test: make
Change-Id: I5ae03b5561b38e23af50764e17ac5ccfccc1b476
2017-07-10 10:15:26 +01:00
Lucas Dupin
4bd24f36c5 Add theme style flag to WallpaperColors
Theme colors should always be the same in sysui and launcher.
We're now sharing a hint HINT_SUPPORTS_DARK_THEME, to make sure
we're never out of sync.

Test: runtest -x tests/Internal/src/android/app/WallpaperColorsTest.java
Fixes: 63140091
Change-Id: Ibd196f540d77269df377804b0f4d4d0d20820067
2017-07-07 14:36:45 -07:00
Fyodor Kupolov
430ac2cb95 Merge "Disable lookaside allocator on low-RAM devices" 2017-07-07 21:20:09 +00:00
Julia Reynolds
6b734d0478 Merge "Allow setup apps to colorize notifications." into oc-dr1-dev
am: e4101089bb

Change-Id: I14f8f499ac62ed47d40ca9b2a7bff0c79120dcd7
2017-07-07 19:31:57 +00:00
Julia Reynolds
e4101089bb Merge "Allow setup apps to colorize notifications." into oc-dr1-dev 2017-07-07 19:24:37 +00:00
Andrew Solovay
9715f06f3a Merge "docs: Described why ProgressDialog is now deprecated." into oc-dev am: 1cdf4244f4 am: bc4dc42887
am: 967bae0cf6

Change-Id: Ied39e43b0e3528984c086346f8e60fde99cb8def
2017-07-07 19:21:43 +00:00
Andrew Solovay
967bae0cf6 Merge "docs: Described why ProgressDialog is now deprecated." into oc-dev am: 1cdf4244f4
am: bc4dc42887

Change-Id: I96a162db5fc80ab578a206ca13bd193a33762a64
2017-07-07 19:15:29 +00:00
Andrew Solovay
465810c895 Merge "docs: Described why ProgressDialog is now deprecated." into oc-dev
am: 1cdf4244f4

Change-Id: I1c25c17f1f73e4006e3b0fa9479d5b0563c6be98
2017-07-07 19:09:39 +00:00
Andrew Solovay
bc4dc42887 Merge "docs: Described why ProgressDialog is now deprecated." into oc-dev
am: 1cdf4244f4

Change-Id: I295298edcd7f26df46edb71924fa63038a381619
2017-07-07 19:08:56 +00:00
Andrew Solovay
1cdf4244f4 Merge "docs: Described why ProgressDialog is now deprecated." into oc-dev 2017-07-07 19:02:48 +00:00
Julia Reynolds
d71c5a9426 Allow setup apps to colorize notifications.
Fixes: 63147379
Test: runtest systemui-notification, core tests
Change-Id: I2077a9fd563826d978d0dc01be89dd0bbc09eebf
2017-07-07 17:22:43 +00:00
Robert Carr
17c3a03be0 Merge "SurfaceView: Avoid initializing Surface from an invalid SurfaceControl." into oc-dev am: 401b8907d0 am: 2f927d56cf
am: 7de9f7a334

Change-Id: I00846580b78758631cd6db262c1b5057204515f6
2017-07-07 03:35:15 +00:00
Robert Carr
7de9f7a334 Merge "SurfaceView: Avoid initializing Surface from an invalid SurfaceControl." into oc-dev am: 401b8907d0
am: 2f927d56cf

Change-Id: I2916aa9a24b84d4f379c8ebebc7e19eb4adc96f4
2017-07-07 03:29:06 +00:00
Robert Carr
2f927d56cf Merge "SurfaceView: Avoid initializing Surface from an invalid SurfaceControl." into oc-dev
am: 401b8907d0

Change-Id: I10b683e78ea75a1ca9cdd4e31317aa7f284ac046
2017-07-07 03:22:53 +00:00
Robert Carr
5482790a3f Merge "SurfaceView: Avoid initializing Surface from an invalid SurfaceControl." into oc-dev
am: 401b8907d0

Change-Id: Ib7a916fb484fb3a7924315169d162f4fdddd8a06
2017-07-07 03:22:50 +00:00
TreeHugger Robot
401b8907d0 Merge "SurfaceView: Avoid initializing Surface from an invalid SurfaceControl." into oc-dev 2017-07-07 03:10:12 +00:00
Lucas Dupin
f058f7a58d Merge "Merge "Hide all color hints references" into oc-dr1-dev am: b1ab0ff21e" into oc-dr1-dev-plus-aosp
am: 6e7e4ed024

Change-Id: I66ba5dd375d68f90ab21a37e37735d0e22a9a933
2017-07-07 03:07:42 +00:00
Adam Lesinski
204f662f31 Merge "Fix Configuration#updateFrom() when assetsSeq doesn't change" into oc-dr1-dev
am: da075a9681

Change-Id: Ic4b22dab0f73fb91b23946946b6e2d30727606df
2017-07-07 02:50:55 +00:00
Lucas Dupin
1446809f30 Merge "Hide all color hints references" into oc-dr1-dev
am: b1ab0ff21e

Change-Id: I54e5d27f52d197ae2512ab7216e12e11cf5c8c30
2017-07-07 02:42:35 +00:00
TreeHugger Robot
da075a9681 Merge "Fix Configuration#updateFrom() when assetsSeq doesn't change" into oc-dr1-dev 2017-07-07 01:38:01 +00:00
Fyodor Kupolov
05a0f0fa4d Disable lookaside allocator on low-RAM devices
Also dump lookaside config if it's different from the default.

Test: adb shell setprop debug.force_low_ram 1
      adb shell stop/start
      adb shell dumpsys meminfo system  // no lookaside allocations
Bug: 62877322

Change-Id: I152dae9714e7e55f93af3311b7387a6ac816e8f6
2017-07-06 17:38:08 -07:00
TreeHugger Robot
b1ab0ff21e Merge "Hide all color hints references" into oc-dr1-dev 2017-07-07 00:12:08 +00:00
Ruchi Kandoi
999b6bc2a7 Merge changes from topic 'NCI-2.0' am: 430dded515 am: 4d08be4a52 am: 67d3257519
am: a404bfb348

Change-Id: I300bc7d72f21dc42692f69fc32697d484ed3b4f5
2017-07-06 23:15:42 +00:00
Love Khanna
1a20b0b72a NCI2.0 update LF_T3T_PARAMETERS of 18 byte. am: e7ecebae11 am: 93d313b0a0 am: a161427214
am: 308f484f7c

Change-Id: I0e3422104eb914ca126bd4d672f86384d58d2cba
2017-07-06 23:14:42 +00:00
Ruchi Kandoi
a404bfb348 Merge changes from topic 'NCI-2.0' am: 430dded515 am: 4d08be4a52
am: 67d3257519

Change-Id: I77202532d60368ebc18e754a5454eb6fa1b0e5dc
2017-07-06 23:04:53 +00:00
Love Khanna
308f484f7c NCI2.0 update LF_T3T_PARAMETERS of 18 byte. am: e7ecebae11 am: 93d313b0a0
am: a161427214

Change-Id: If545ea98d8c8d6a97006bcc455b55e7c665e5a66
2017-07-06 23:03:36 +00:00
Ruchi Kandoi
67d3257519 Merge changes from topic 'NCI-2.0' am: 430dded515
am: 4d08be4a52

Change-Id: Ie427005b3fa448a33c1756afdea66715914c4ff4
2017-07-06 22:56:19 +00:00
Love Khanna
a161427214 NCI2.0 update LF_T3T_PARAMETERS of 18 byte. am: e7ecebae11
am: 93d313b0a0

Change-Id: If6952f71012f48a789c31775161720dd409bf40b
2017-07-06 22:55:33 +00:00
Robert Carr
7c67b7d097 SurfaceView: Avoid initializing Surface from an invalid
SurfaceControl.

In a recent CL we introduced a call to Surface#createFrom, in order to
recreate the Surface object from the underlying SurfaceControl, as a
workaround to emulate when it was parcelled over binder in the past.
However this is causing BufferQueue abandoned errors when stopping and
resuming some applications. To understand them, we need to revisit the
SurfaceView destruction process when handling onStop.

First mWindowStopped will be set to true (SurfaceView#windowStopped),
and we should then enter updateSurface. Our requested visibility will
now be false and so we emit the Surface destroyed callbacks. Notice in
the finally block in mUpdateSurface, we will release mSurface, but we
will NOT null mSurfaceControl. Inline documentation explains why.

In the case that the activity is not actually being destroyed, it's
possible that we may not get a dispatchDetachedFromWindow. This means
that we will not null mSurfaceControl. Now if the activity is
un-stopped and we re-enter updateSurface we encounter a problem
state. "creating" will be set to false since mSurfaceControl != null,
however mSurfaceControl will not point to a valid surface.

Prior to the introduction of the #createFrom call, this unwanted state
didn't cause any problems. Because mSurface was released back in the
finally block as we were stopping we now fall out of the
mSurface.isValid() block in updateSurface. As we reach the finally
block again, we would now set mSurfaceControl=null since the app was
no longer stopped. Later when we reach updateSurface again (which
tends to happen quite often) it will now be null and we will correctly
set creating=true, create a valid SurfaceControl, and move along
happily. However following, the introduction of this
Surface#createFrom call we will now reinitialize the Surface from an
invalid underlying SurfaceControl. This means we will enter the
mSurface.isValid block, but will proceed to emit an invalid Surface to
the client in the callbacks.

We avoid this state by making creating=true even if
SurfaceControl=non-null when the calculated visibility changes from
invisible to visible.

Bug: 63251745
Test: Manual of app from bug and apps from previous related bugs. go/wm-smoke. Additional manual testing of many SV apps.
Change-Id: Icc32a34cac239d65267da705cc23feb23e1ceb67
2017-07-06 15:53:04 -07:00
Ruchi Kandoi
4d08be4a52 Merge changes from topic 'NCI-2.0'
am: 430dded515

Change-Id: I264533bf8782ea66bd6959ca08f9699985273c9f
2017-07-06 22:48:20 +00:00
Love Khanna
93d313b0a0 NCI2.0 update LF_T3T_PARAMETERS of 18 byte.
am: e7ecebae11

Change-Id: Ic91ecb6a8dcb8529efda8eb0cdc99ca7758b66e6
2017-07-06 22:47:08 +00:00
Ruchi Kandoi
430dded515 Merge changes from topic 'NCI-2.0'
* changes:
  AID suffix registration.
  NCI2.0 update LF_T3T_PARAMETERS of 18 byte.
2017-07-06 22:41:29 +00:00
TreeHugger Robot
5cb8f220a8 Merge changes from topic 'nci-2.0-part2' into oc-dr1-dev
* changes:
  NCI2.0 update LF_T3T_PARAMETERS of 18 byte.
  AID suffix registration.
2017-07-06 22:39:48 +00:00