Commit Graph

55910 Commits

Author SHA1 Message Date
Keun-young Park
8486706aff Merge "Revert "make isUiModeLocked, isNightModeLocked test api"" into nyc-dev 2016-03-01 22:59:14 +00:00
Keun-young Park
92373d23ee Revert "make isUiModeLocked, isNightModeLocked test api"
This reverts commit b493a7dffe.

Change-Id: I651b7ee5b9ca5d7fa1cde1c625bbaa585e186544
2016-03-01 22:58:15 +00:00
George Mount
f445f76eca Merge "Clear child fragment manager after it is destroyed." into nyc-dev 2016-03-01 21:41:45 +00:00
George Mount
b67d34f10e Merge "Ensure that fragments are created in added order." into nyc-dev 2016-03-01 21:40:54 +00:00
Todd Kennedy
4f858aaa5a Merge "Revert "Revert "Remove deprecated methods / classes""" into nyc-dev 2016-03-01 20:39:59 +00:00
Wale Ogunwale
6e66695777 Merge "Add activity onStop lifecycle to event logs." into nyc-dev 2016-03-01 20:34:15 +00:00
Jakub Pawlowski
ecc873d5ee Merge "Hide android.bluetooth.OobData" into nyc-dev 2016-03-01 20:04:34 +00:00
Jeff Sharkey
9ad8613bbb Suppress StopInfo exception based on target API.
Bug: 27429026
Change-Id: Ibf0b058b1f921c20fbc3c72045467883a8934f67
2016-03-01 12:18:40 -07:00
Winson Chung
1f3eca97b9 Merge "Disable extracting the bg color from the window background." into nyc-dev 2016-03-01 19:07:36 +00:00
Jakub Pawlowski
b73ebc88d9 Hide android.bluetooth.OobData
Bug: 27385555
Change-Id: I1767909ca17b1b23a2f23ea4a5b4a02cc52eecde
2016-03-01 11:00:33 -08:00
Felipe Leme
c50bf8e33e Merge "Created metric events for scoped directory access API." into nyc-dev 2016-03-01 18:58:28 +00:00
Andreas Gampe
4f655de3de Merge "Frameworks/base: Refactor TextView initialization" into nyc-dev 2016-03-01 18:38:09 +00:00
Keun-young Park
63f2c9b0cb Merge "make isUiModeLocked, isNightModeLocked test api" into nyc-dev 2016-03-01 18:37:57 +00:00
Felipe Leme
3e166b27fc Created metric events for scoped directory access API.
BUG: 27334821
Change-Id: I8a1bfc328dcd26b42bb66884d14b34ad11aa232f
2016-03-01 10:12:58 -08:00
Calin Juravle
e1ac71fe99 Merge "Restrict the cases when we profile guided compile an apk" into nyc-dev 2016-03-01 17:59:20 +00:00
Dimitry Ivanov
1984d78330 Merge "Display Toast with linker warnings after Activity.onStart()" into nyc-dev 2016-03-01 17:50:02 +00:00
Adam Powell
3518feda21 Correct state loss tracking for FragmentTransaction.commitNow
Booleans are hard.

Bug 27419920

Change-Id: I91a746aa14cad36bf77ec6224ffc13b00dc39ae7
2016-03-01 09:07:44 -08: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
Wale Ogunwale
cd7043e99a Add activity onStop lifecycle to event logs.
Also added reasons why onPause and onResume are called.

Bug: 27384433
Change-Id: If6c304f577b601511f6d9b948061d2cfa0dcb970
2016-03-01 07:29:17 -08: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
Todd Kennedy
a67932374d Revert "Revert "Remove deprecated methods / classes""
This reverts commit 5cbeb59026.

Change-Id: Id96010364d65e6131221ebbcc8ce5889a2da256c
2016-03-01 07:19:33 -08:00
Julia Reynolds
2319dd3a66 Merge "Api review: AutomaticZenRule" into nyc-dev 2016-03-01 15:05:36 +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
57b82f38c4 Merge "Allow system to bypass DISALLOW_SHARE_LOCATION restriction" into nyc-dev 2016-03-01 01:22:00 +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
72041bb2c6 Merge "Fix issue #27385109: control activity behavior without triggering..." into nyc-dev 2016-03-01 00:35:40 +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
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
Winson
073a526ba7 Disable extracting the bg color from the window background.
Bug: 27406401
Change-Id: Id03a7d5d199d324d67301c060551db2d3a52e5ac
2016-02-29 16:09:18 -08: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
b7480c2bd6 Merge "Revert "InputConnectionWrapper never supports null target."" into nyc-dev 2016-02-29 21:49:42 +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
82197c33a2 Merge "InputConnectionWrapper never supports null target." into nyc-dev 2016-02-29 21:13:10 +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
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
8ccb68af89 Merge "DO NOT SUBMIT: Hide VR features for preview." into nyc-dev 2016-02-29 19:43:55 +00:00
Andreas Gampe
ddc1397eba Frameworks/base: Refactor TextView initialization
To allow static initialization of a number of View classes based
on TextView, refactor the initialization of the font cache to be
explicit from the zygote.

Bug: 27265238
Change-Id: I1b71086d3f49d8b3e72eea2bf8359351d25fc0fd
2016-02-29 11:13:01 -08: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
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