Commit Graph

56374 Commits

Author SHA1 Message Date
Michal Karpinski
67536e7b44 Merge "Adding SecurityException information to all device logging DPM public methods" into nyc-dev am: 8fc5462ee1
am: 5bbc8cd539

* commit '5bbc8cd539ca81bfa37929f3a5b0ec11a7d4a510':
  Adding SecurityException information to all device logging DPM public methods
2016-03-01 16:08:26 +00:00
Michal Karpinski
5bbc8cd539 Merge "Adding SecurityException information to all device logging DPM public methods" into nyc-dev
am: 8fc5462ee1

* commit '8fc5462ee1f9b8e5b13d13b0920433b340fa6b6c':
  Adding SecurityException information to all device logging DPM public methods
2016-03-01 16:04:35 +00:00
Michal Karpinski
8fc5462ee1 Merge "Adding SecurityException information to all device logging DPM public methods" into nyc-dev 2016-03-01 15:57:44 +00:00
Michal Karpinski
b58e4966db Adding SecurityException information to all device logging DPM public methods
Bug: 22860162
Change-Id: I6cdfad2dcdf14896c855debef34964def190e110
2016-03-01 15:26:56 +00:00
Julia Reynolds
e03aba3b19 Merge "Api review: AutomaticZenRule" into nyc-dev am: 2319dd3a66
am: 84c0cf5baf

* commit '84c0cf5baf35bf314c0f69397adacb6a4376102e':
  Api review: AutomaticZenRule
2016-03-01 15:11:18 +00:00
Julia Reynolds
84c0cf5baf Merge "Api review: AutomaticZenRule" into nyc-dev
am: 2319dd3a66

* commit '2319dd3a66754b8b6ff27a1363c33244a8a9eccc':
  Api review: AutomaticZenRule
2016-03-01 15:07:23 +00:00
Julia Reynolds
2319dd3a66 Merge "Api review: AutomaticZenRule" into nyc-dev 2016-03-01 15:05:36 +00:00
Jorim Jaggi
c0a0a5d43b Fix popup window calculation for multi-window am: 8175846ed6
am: b763aebb2b

* commit 'b763aebb2b449e5a8d09f9d0a2666b142d2b9558':
  Fix popup window calculation for multi-window
2016-03-01 09:08:25 +00:00
Jorim Jaggi
b763aebb2b Fix popup window calculation for multi-window
am: 8175846ed6

* commit '8175846ed686077736c985f0ae4d236b7a4c647c':
  Fix popup window calculation for multi-window
2016-03-01 09:04:35 +00:00
Jorim Jaggi
8175846ed6 Fix popup window calculation for multi-window
If ignoreBottomDecorations=true, the display size was extracted from
the resources. However, this didn't work if the parent window was in
multi-window, as all the calculations went wrong. Instead, introduce
View.getWindowDisplayFrame which returns the "full" frame of the task
the window is currently in, without any insets, and use that to
calculate the bottom edge.

Bug: 26255254
Change-Id: I8b235b335775022ae399ee082d1200aa76cc047c
2016-03-01 09:00:29 +00:00
Fyodor Kupolov
7e282f182d Merge "Allow system to bypass DISALLOW_SHARE_LOCATION restriction" into nyc-dev am: 57b82f38c4
am: 9f432e3e2e

* commit '9f432e3e2eef8c8f0d1f35b3d12ed926f1a29db0':
  Allow system to bypass DISALLOW_SHARE_LOCATION restriction
2016-03-01 02:23:10 +00:00
Fyodor Kupolov
9f432e3e2e Merge "Allow system to bypass DISALLOW_SHARE_LOCATION restriction" into nyc-dev
am: 57b82f38c4

* commit '57b82f38c42d9926d0eb09d600480bebe54500ae':
  Allow system to bypass DISALLOW_SHARE_LOCATION restriction
2016-03-01 02:21:10 +00:00
Fyodor Kupolov
57b82f38c4 Merge "Allow system to bypass DISALLOW_SHARE_LOCATION restriction" into nyc-dev 2016-03-01 01:22:00 +00:00
Dimitry Ivanov
7788694837 Merge "Explicitly check for updated system apps" into nyc-dev am: cad065fb7f
am: 87885e6896

* commit '87885e689692cd969c0489a277f1aface9f87c7c':
  Explicitly check for updated system apps
2016-03-01 01:04:55 +00:00
Dimitry Ivanov
87885e6896 Merge "Explicitly check for updated system apps" into nyc-dev
am: cad065fb7f

* commit 'cad065fb7fc2fbf8dc4b930f3b52c90e2602cc48':
  Explicitly check for updated system apps
2016-03-01 00:58:41 +00:00
Dianne Hackborn
35c892a899 Merge "Fix issue #27385109: control activity behavior without triggering..." into nyc-dev am: 72041bb2c6
am: 8680858008

* commit '868085800891a1d087978ed74df643659b7830d3':
  Fix issue #27385109: control activity behavior without triggering...
2016-03-01 00:56:49 +00:00
Dimitry Ivanov
cad065fb7f Merge "Explicitly check for updated system apps" into nyc-dev 2016-03-01 00:51:38 +00:00
Dianne Hackborn
8680858008 Merge "Fix issue #27385109: control activity behavior without triggering..." into nyc-dev
am: 72041bb2c6

* commit '72041bb2c6cbdab53f00d23cd7f832acf2cbfb5d':
  Fix issue #27385109: control activity behavior without triggering...
2016-03-01 00:50:08 +00:00
Svet Ganov
69d4ef19ca Merge "Notification listener and ranker callbacks on binder threads." into nyc-dev am: 5345a9f663
am: c3b711ca52

* commit 'c3b711ca529932b578dcb9b5f0962b46d259c288':
  Notification listener and ranker callbacks on binder threads.
2016-03-01 00:40:51 +00:00
Dianne Hackborn
72041bb2c6 Merge "Fix issue #27385109: control activity behavior without triggering..." into nyc-dev 2016-03-01 00:35:40 +00:00
Svet Ganov
c3b711ca52 Merge "Notification listener and ranker callbacks on binder threads." into nyc-dev
am: 5345a9f663

* commit '5345a9f6636faa8b525c0d602fdf13ec93507494':
  Notification listener and ranker callbacks on binder threads.
2016-03-01 00:33:53 +00:00
Svetoslav Ganov
5345a9f663 Merge "Notification listener and ranker callbacks on binder threads." into nyc-dev 2016-03-01 00:27:17 +00:00
Svet Ganov
b8f53ee812 Notification listener and ranker callbacks on binder threads.
The callbacks for the notification listener and notification
ranker were delivered on binder threads which is problematic
becuase: 1) permission checks and app ops checks would fail
unless the app developer knows to clear binder calling id and
restore it after that; 2) developers need to synchronize their
implementation as they get callbacks on different threads (
arguably callbacks should not be concurrent); 3) this doesn't
follow the pattern in the platform;

Also the code delivering callbacks was catching Throwable which
we shouldn't do in general and also masks bugs in the listener
or ranker implementation. Now that the callbacks are offloaded
to the main listener/ranker thread system code should not be
guarding against Throwable to handle exceptions propagated
over binder calls.

bug:26704777

Change-Id: I171fb41bbe25e6105dd05e4166193dbcec594f82
2016-02-29 16:26:17 -08:00
Abhijith Shastry
f7c39a6219 Merge "Updates to BlockedNumberContract from API review." into nyc-dev am: b7ed5b074d
am: 401a811c29

* commit '401a811c297c5fdedefb8521616fcdf741cd1ed0':
  Updates to BlockedNumberContract from API review.
2016-03-01 00:26:08 +00:00
Dimitry Ivanov
b2b8c3c1d9 Explicitly check for updated system apps
Unbundled apps should not be allowed to share
linker-namespaces with default namespace; it implies
that they will not have unlimited access to private
native libs once updated.

Bug: http://b/27189432
Change-Id: I60295b9b31d700016add93537418fdcce5a77719
2016-02-29 16:23:10 -08:00
Abhijith Shastry
401a811c29 Merge "Updates to BlockedNumberContract from API review." into nyc-dev
am: b7ed5b074d

* commit 'b7ed5b074d59a188c25a44a113a0d49dec24d876':
  Updates to BlockedNumberContract from API review.
2016-03-01 00:19:30 +00:00
Jeff Sharkey
3541354007 Merge "Parcelable classes should always be final." into nyc-dev am: 753c347efd
am: 620ef3f226

* commit '620ef3f22654676cd37df23db059a71e0607d6a9':
  Parcelable classes should always be final.
2016-03-01 00:12:20 +00:00
Jeff Sharkey
620ef3f226 Merge "Parcelable classes should always be final." into nyc-dev
am: 753c347efd

* commit '753c347efd0a03ee0187e9c98c9978e43104c257':
  Parcelable classes should always be final.
2016-03-01 00:08:21 +00:00
Abhijith Shastry
b7ed5b074d Merge "Updates to BlockedNumberContract from API review." into nyc-dev 2016-03-01 00:08:01 +00:00
Jeff Sharkey
753c347efd Merge "Parcelable classes should always be final." into nyc-dev 2016-03-01 00:02:43 +00:00
Jeff Sharkey
50d1c044b5 Parcelable classes should always be final.
Also hide ConnectivityMetricsEvent which isn't being used yet.

Bug: 27415331
Change-Id: Iacdccddda504f3f669185f807b4f35b8dc2b0212
2016-02-29 16:46:09 -07:00
Abhijith Shastry
575a9492bb Updates to BlockedNumberContract from API review.
Javadoc updates are also included.

BUG: 27364137
Change-Id: Id99b5c0fadd2a62a33217b44c7f30dd2f3beb9be
2016-02-29 15:44:05 -08:00
Colin Cross
414c529a4f Merge "Add dumpsys meminfo --unreachable" into nyc-dev 2016-02-29 22:19:40 +00:00
Yohei Yukawa
a72299f660 Merge "Revert "InputConnectionWrapper never supports null target."" into nyc-dev am: b7480c2bd6
am: eb764b8954

* commit 'eb764b8954821e7345e7d3469d94ebf30955bd12':
  Revert "InputConnectionWrapper never supports null target."
2016-02-29 22:04:22 +00:00
Yohei Yukawa
eb764b8954 Merge "Revert "InputConnectionWrapper never supports null target."" into nyc-dev
am: b7480c2bd6

* commit 'b7480c2bd6722fcb3e47d9e2f92389170abc9712':
  Revert "InputConnectionWrapper never supports null target."
2016-02-29 21:55:56 +00:00
Yohei Yukawa
b7480c2bd6 Merge "Revert "InputConnectionWrapper never supports null target."" into nyc-dev 2016-02-29 21:49:42 +00:00
Andrii Kulian
df8cd7dc9d Merge "Reset pointer icon when view is not present" into nyc-dev am: 6cf85afcb1
am: 3737049fa7

* commit '3737049fa7454d4327250a41ef2b399ae6bf24f5':
  Reset pointer icon when view is not present
2016-02-29 21:41:19 +00:00
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
abc4b8f035 Revert "InputConnectionWrapper never supports null target."
This reverts commit 90bd36363c.

Seems that the semantics of InputConnectionWrapper#setTarget() is more
complicated than I thought.  At least the following cases have worked
fine.

  case 1:
    InputConnectionWrapper wrapper =
            new InputConnectionWrapper(null, false);
    wrapper.SetTarget(ic);
    ...

  case 2:
    InputConnectionWrapper wrapper =
            new InputConnectionWrapper(null, true);
    wrapper.SetTarget(ic);
    ...

  case 3:
    InputConnectionWrapper wrapper =
            new InputConnectionWrapper(ic, true);
    wrapper.SetTarget(null);
    wrapper.SetTarget(ic2);
    ...

The previous code did not intended to break existing code.  Let's revert
it we decide how to deal with above cases.

Bug: 27407697
Change-Id: I8bc84d484ab0b27a02e74f11110430f70646e69a
2016-02-29 13:35:59 -08:00
Yohei Yukawa
33fbb2cae4 Merge "InputConnectionWrapper never supports null target." into nyc-dev am: 82197c33a2
am: 1bfce67fd4

* commit '1bfce67fd444ad51acac2f3dc7c1ef5bcced9d1f':
  InputConnectionWrapper never supports null target.
2016-02-29 21:35:26 +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
07bc48fae3 Merge "Use asset cookie in XML block cache key" into nyc-dev am: 89dea902c1
am: 993b8abe02

* commit '993b8abe02bd36c60c46999d7f82748abaccce20':
  Use asset cookie in XML block cache key
2016-02-29 21:09:57 +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
Dianne Hackborn
4a18c26609 Fix issue #27385109: control activity behavior without triggering...
...isUserAMonkey for testing purpose

Add an argument for the caller to specify if they are a poo flinging
monkey.

Change-Id: I0e149a8d78776abaf07517bd4ae886047b7f4252
2016-02-29 12:37:11 -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
3211b9070d Merge "Revert "DO NOT SUBMIT: Hide VR features for preview."" into nyc-dev am: b77f9ec93a
am: 0cbe76be29

* commit '0cbe76be29380cf61cc57a79021f21749751f4d4':
  Revert "DO NOT SUBMIT: Hide VR features for preview."
2016-02-29 20:03:17 +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