Commit Graph

61481 Commits

Author SHA1 Message Date
Andrii Kulian
3737049fa7 Merge "Reset pointer icon when view is not present" into nyc-dev
am: 6cf85afcb1

* commit '6cf85afcb1e0e410e8e168c999e40fad3797d6ab':
  Reset pointer icon when view is not present
2016-02-29 21:39:34 +00:00
Andrii Kulian
6cf85afcb1 Merge "Reset pointer icon when view is not present" into nyc-dev 2016-02-29 21:36:08 +00:00
Yohei Yukawa
1bfce67fd4 Merge "InputConnectionWrapper never supports null target." into nyc-dev
am: 82197c33a2

* commit '82197c33a23a130acd93dcf54e70138a7e7ba970':
  InputConnectionWrapper never supports null target.
2016-02-29 21:25:29 +00:00
Yohei Yukawa
82197c33a2 Merge "InputConnectionWrapper never supports null target." into nyc-dev 2016-02-29 21:13:10 +00:00
Alan Viverette
993b8abe02 Merge "Use asset cookie in XML block cache key" into nyc-dev
am: 89dea902c1

* commit '89dea902c184a981392ceca90d28a7b5986952fc':
  Use asset cookie in XML block cache key
2016-02-29 21:06:22 +00:00
Yohei Yukawa
90bd36363c InputConnectionWrapper never supports null target.
This CL makes it clear that InputConnectionWrapper does not support null
target.  In other words, the semantics of null InputConnection can never
be emulated by a non-null InputConnectionWrapper.

This is particularly problematic when app developers are just forwarding
the return value of super.onCreateInputConnection() to
InputConnectionWrapper or its subclass, because there are many chance
that super.onCreateInputConnection() starts returning null, e.g. when:
  A. the application is extending a Framework class, and the Framework
     class is updated by OTA.
  B. the application is extending system WebView, and the WebView is
     updated.
  C. the application is extending a 3rd party library, and the app
     developer creates a new build with a new version of the 3rd party
     library.

To make it easy to catch these kind of bugs, this CL lets the
constructor of InputMethodWrapper throw NullPointerException when target
is null.  Bugs like crbug.com/571229 should be caught by developers
more easily.

Bug: 27407697
Change-Id: I83875bea886d4784f9507c930050efc29708d9db
2016-02-29 12:45:49 -08:00
Alan Viverette
89dea902c1 Merge "Use asset cookie in XML block cache key" into nyc-dev 2016-02-29 20:12:38 +00:00
Ruben Brunk
0cbe76be29 Merge "Revert "DO NOT SUBMIT: Hide VR features for preview."" into nyc-dev
am: b77f9ec93a

* commit 'b77f9ec93a11841aacb72d4fecd1bf56f6253254':
  Revert "DO NOT SUBMIT: Hide VR features for preview."
2016-02-29 19:55:40 +00:00
Ruben Brunk
b77f9ec93a Merge "Revert "DO NOT SUBMIT: Hide VR features for preview."" into nyc-dev 2016-02-29 19:50:37 +00:00
Ruben Brunk
e5d76e8276 Revert "DO NOT SUBMIT: Hide VR features for preview."
This reverts commit cfa66a2a45.

Change-Id: Ibf36092205b14c29935d1f28be5f5b5f64b1d16c
2016-02-29 19:50:15 +00:00
Ruben Brunk
420d9dae55 Merge "DO NOT SUBMIT: Hide VR features for preview." into nyc-dev
am: 8ccb68af89

* commit '8ccb68af89c68e32b908652436acfa339e034bcc':
  DO NOT SUBMIT: Hide VR features for preview.
2016-02-29 19:50:03 +00:00
Ruben Brunk
8ccb68af89 Merge "DO NOT SUBMIT: Hide VR features for preview." into nyc-dev 2016-02-29 19:43:55 +00:00
Polina Bondarenko
0710ca4270 Merge "Removed IAE from HardwarePropertiesManager." into nyc-dev
am: 0097077396

* commit '00970773960de9f81dafcc7e864f3e278fe53662':
  Removed IAE from HardwarePropertiesManager.
2016-02-29 18:41:48 +00:00
Andrii Kulian
33c1bc586c Reset pointer icon when view is not present
Sometimes pointer change request is delivered after view is detached from its
ViewRootImpl. E.g. when popup is present click outside to close it.

Bug: 27292939
Change-Id: I925728af334a1e1ae53f7e530d639e50b0c37f2b
2016-02-29 10:38:59 -08:00
Jeff Sharkey
6a7a297e61 Merge "Sigh, someone is pushing 2MB through StopInfo." into nyc-dev
am: 341de33e3c

* commit '341de33e3c9a8a8685d99602690e95ccb64b77a2':
  Sigh, someone is pushing 2MB through StopInfo.
2016-02-29 18:34:10 +00:00
Polina Bondarenko
0097077396 Merge "Removed IAE from HardwarePropertiesManager." into nyc-dev 2016-02-29 18:34:01 +00:00
Jeff Sharkey
341de33e3c Merge "Sigh, someone is pushing 2MB through StopInfo." into nyc-dev 2016-02-29 18:30:40 +00:00
Jeff Sharkey
369f509d56 Sigh, someone is pushing 2MB through StopInfo.
Bug: 27401092
Change-Id: Ib27a56ecc63662ce2d6210890ac65eca09fac9d6
2016-02-29 11:29:37 -07:00
Aurimas Liutikas
52628bc847 Merge "Fix crash when restoring SearchView." into nyc-dev
am: 0a04ab2418

* commit '0a04ab241867bd4e268ffdddf37dede3b5570b0b':
  Fix crash when restoring SearchView.
2016-02-29 18:23:13 +00:00
Aurimas Liutikas
0a04ab2418 Merge "Fix crash when restoring SearchView." into nyc-dev 2016-02-29 18:21:10 +00:00
Alan Viverette
5c64b957dd Use asset cookie in XML block cache key
Ensure we're using file paths from the correct package. Also cleans up
synchronization to avoid synchronizing on local variables which, while
not an issue in the current implementation, is generally unsafe.

Bug: 27313689
Change-Id: Ib8550909e7b02ea88d19ce2fc43756a16f9664ab
2016-02-28 15:16:05 -05:00
Jeff Sharkey
917fe2f8a5 Merge "When system server goes down, crash apps more." into nyc-dev
am: 004bf6ade3

* commit '004bf6ade3e7e400c896541cce0e513eef179738':
  When system server goes down, crash apps more.
2016-02-28 00:24:21 +00:00
Jeff Sharkey
f8880561e6 When system server goes down, crash apps more.
Similar to first patch, but now using new "rethrowFromSystemServer()"
method which internally translates DeadObjectException into
DeadSystemException.  New logic over in Log.printlns() now
suppresses the DeadSystemException stack traces, since they're
misleading and just added pressure to the precious log buffer space.

Add some extra RuntimeInit checks to suppress logging-about-logging
when the system server is dead.

Bug: 27364859
Change-Id: I05316b3e8e42416b30a56a76c09cd3113a018123
2016-02-27 17:17:01 -07:00
Adrian Roos
8bef84a2f4 Merge "Fix crash with decorated custom notifications" into nyc-dev
am: 7006b01f5d

* commit '7006b01f5d91c77c9f658d392fb2cc183bc504be':
  Fix crash with decorated custom notifications
2016-02-27 02:33:20 +00:00
Adrian Roos
7006b01f5d Merge "Fix crash with decorated custom notifications" into nyc-dev 2016-02-27 02:29:15 +00:00
Selim Cinek
4ff315113f Merge "Adapted the notficication style" into nyc-dev
am: 9620d8652b

* commit '9620d8652bacc84e179ff9a2548d7cb833887437':
  Adapted the notficication style
2016-02-27 01:24:32 +00:00
Selim Cinek
9620d8652b Merge "Adapted the notficication style" into nyc-dev 2016-02-27 01:19:46 +00:00
Adrian Roos
5081c0de54 Fix crash with decorated custom notifications
Clones notifications before adding them to remote views so
the original stays parcelable on its own.

Also prevents the compatibility inflation from triggering when
an app uses a decorating style to prevent recursive wrapping.
Those styles only exist on N and later anyways.

Also fixes the compatibility inflation in listeners.

Bug: 27368615
Change-Id: Iedf3036bf315dd9c7b476c7e8bcce57de5b5c9c8
2016-02-26 17:11:29 -08:00
Selim Cinek
60a5425592 Adapted the notficication style
The text sizes are now uniform and textsize manipulations
are not allowed anymore.

Bug: 24866646
Change-Id: I14b094d9238bee0320c387e3032806d00d4f200c
2016-02-26 17:05:03 -08:00
Andreas Gampe
ce45c2f775 Merge "Frameworks/base: Remove unused field" into nyc-dev
am: d23947e12f

* commit 'd23947e12fa19b8b83b2614a820c4d360433c182':
  Frameworks/base: Remove unused field
2016-02-27 01:04:50 +00:00
Andreas Gampe
d23947e12f Merge "Frameworks/base: Remove unused field" into nyc-dev 2016-02-27 01:03:30 +00:00
Adam Lesinski
91fec802b7 Merge "BatteryStats: Fix issue where network traffic accounting might be lost" into nyc-dev
am: 09c09fd345

* commit '09c09fd345a6b4c9619885428dce9802ad7b8cd8':
  BatteryStats: Fix issue where network traffic accounting might be lost
2016-02-27 00:19:24 +00:00
Adam Lesinski
09c09fd345 Merge "BatteryStats: Fix issue where network traffic accounting might be lost" into nyc-dev 2016-02-27 00:15:11 +00:00
John Reck
431baf2883 Merge "Switch to pbuffer surface sooner" into nyc-dev
am: db0fd9dfb2

* commit 'db0fd9dfb2a06d4767388d76aebddabd2304936e':
  Switch to pbuffer surface sooner
2016-02-27 00:06:22 +00:00
John Reck
db0fd9dfb2 Merge "Switch to pbuffer surface sooner" into nyc-dev 2016-02-26 23:53:47 +00:00
John Reck
fc736869ac Switch to pbuffer surface sooner
Bug: 27286867

If the system/app is slow, it might take too long to
stop drawing. Switch the ordering of destroying stuff so
that we switch to the pbuffer surface first, then do
cleanup

Change-Id: If64a3dbb71bb9fd53567231590436a89b2f1a09e
2016-02-26 15:43:09 -08:00
Ruben Brunk
cfa66a2a45 DO NOT SUBMIT: Hide VR features for preview.
Bug: 26945446
Change-Id: I37e2f9f6ffc65be60bcbef4bdf87da89561ef313
2016-02-26 15:32:40 -08:00
Aurimas Liutikas
7849a3d785 Fix crash when restoring SearchView.
I forgot to include Parcelable.Creator when I added SearchView
iconified state saving.

Bug: 27357167
Change-Id: Ia96490aa9c12c4042f50ba4b1aeb7422b37a1d4c
2016-02-26 15:27:31 -08:00
Muyuan Li
1673ab1ead Merge "Allows components to register shortcut key." into nyc-dev
am: 187b9b9e5b

* commit '187b9b9e5bb3c6a83a26f2ece23a6cfa16614d03':
  Allows components to register shortcut key.
2016-02-26 22:50:25 +00:00
Andreas Gampe
06f0e41ebd Frameworks/base: Remove unused field
Remove an unused field in BoringLayout. This has also the positive
side effect of allowing static initialization in the boot image.

Bug: 27248115
Change-Id: I9d6beec5f5e045ef899e8979ece96e0239f82076
2016-02-26 14:47:39 -08:00
Muyuan Li
94ce94e960 Allows components to register shortcut key.
The registered shortcut will be called from PhoneWindowManager,
before dispatching

Change-Id: If26128939b45a639c8895719a7a23ca433f39fd9
(cherry picked from commit 4da863c5a8872dcabb179a978a2b2157d9081679)
2016-02-26 22:30:34 +00:00
Oren Blasberg
b53eef9256 Merge "WallpaperManager: support custom default cropper." into nyc-dev
am: 203b353018

* commit '203b353018e1533251528b087345cc9933aa38fe':
  WallpaperManager: support custom default cropper.
2016-02-26 22:15:17 +00:00
Oren Blasberg
203b353018 Merge "WallpaperManager: support custom default cropper." into nyc-dev 2016-02-26 22:09:54 +00:00
Oren Blasberg
60598ea0aa WallpaperManager: support custom default cropper.
If the component name is specified by the OEM, that component is used
as the default (fallback) cropper rather than
com.android.wallpapercropper.

Bug: 26084319
Change-Id: I5c79beb8e84721944e752bda637cdf0377b8d826
2016-02-26 13:19:30 -08:00
John Reck
4288e399b2 Merge "Don\'t lose mInitialized in onStop()" into nyc-dev
am: 79722c27c6

* commit '79722c27c6ccec529e31bdcaeddf76aa90d409a1':
  Don't lose mInitialized in onStop()
2016-02-26 21:07:53 +00:00
Julia Reynolds
2b53b701d8 Merge "Api review: NotificationManager" into nyc-dev
am: 01e81117a9

* commit '01e81117a9bc86849f0bf20d7729c8f8101b0baf':
  Api review: NotificationManager
2016-02-26 21:03:47 +00:00
John Reck
79722c27c6 Merge "Don't lose mInitialized in onStop()" into nyc-dev 2016-02-26 21:00:27 +00:00
Julia Reynolds
92a187ddaf Merge "Api review: Notification.Builder" into nyc-dev
am: 1adc816f2d

* commit '1adc816f2dcf0a827b4619eb21a780d1b3d827b3':
  Api review: Notification.Builder
2016-02-26 21:00:21 +00:00
Chong Zhang
fb3403f5f0 Merge "Do not stop window if preserving the window" into nyc-dev
am: fd3d5e92ea

* commit 'fd3d5e92ea05ca20e6c3700e2309d849d96f2f7d':
  Do not stop window if preserving the window
2016-02-26 20:58:32 +00:00
John Reck
f4db3d253e Don't lose mInitialized in onStop()
Bug: 27350647
Change-Id: I74e6427ac4030645c416efb24948efdbdc90fa1c
2016-02-26 12:58:17 -08:00