192659 Commits

Author SHA1 Message Date
Andrei Stingaceanu
8c44e74524 Merge "Landscape extracted mode - floating toolbar interference" into mnc-dev 2015-05-20 09:32:50 +00:00
Andrei Stingaceanu
975a8d0f4d Landscape extracted mode - floating toolbar interference
In landscape do not allow starting selection modes if the
extracted mode has not yet started. Also remove the single
tap selection delayed runnable.

This allows for a smooth transition (as in no floating
toolbar artifacts) into extracted mode. Also fixes
(more as in hides) the double selections.

Bug: 20930071
Change-Id: Idb9c375dc25777761b11ca17ccfd9f5eedc642b4
2015-05-20 10:31:19 +01:00
Erik Kline
6f611d7267 Merge "Set NLM_F_ACK in our RTM_NEWNEIGH requests" into mnc-dev 2015-05-20 08:05:22 +00:00
Erik Kline
cef7bc939f Set NLM_F_ACK in our RTM_NEWNEIGH requests
With NLM_F_ACK set in RTM_NEWNEIGH requests we get some response from
the kernel, whether there was an error or not.

Additionally:

    [1] add IpReachabilityMonitor#probeNeighbor() as a public
        static method, since it actually depends very little on the
        class internals and might be of larger use.

    [2] add a unittest for parsing NetlinkErrorMessages.

Bug: 18581716
Change-Id: I5d62e7a9972c7440f0483c38c77677436d3a1a25
2015-05-20 16:46:30 +09:00
Lorenzo Colitti
4b545dfbcd Merge "Add a hidden method to clear the capabilities of a NetworkRequest" into mnc-dev 2015-05-20 05:49:03 +00:00
Nitin Arora
11f83882f2 Bluetooth: Clear BLE always ON apps at Airplane mode
This patch clears the container managing the Ble Always On
apps while switching on, the airplane mode. The airplane mode
will completely turn Off the Bleutooth Adapter from any state
it is in.

Change-Id: Ib28d39d85efe3aac37e3a53a4fb892099568c702
2015-05-19 22:38:46 -07:00
Dongwon Kang
cf4f3d5c4c TIF: Fix an incorrect conversion in timeShiftSetPlaybackParams()
Bug: 21313401
Change-Id: I73e55c454cf0e2cd90d922acf5c6efe727f59204
2015-05-20 13:57:34 +09:00
Erik Kline
77b01b8876 Merge "Close netlink socket when shutting down IpReachabilityMonitor" into mnc-dev 2015-05-20 03:26:14 +00:00
Erik Kline
abd3142dca Close netlink socket when shutting down IpReachabilityMonitor
This forces the NetlinkSocketObserver thread to exit quickly, rather
than lingering until the next random netlink neighbor multicast message
arrives.

Additionally, add a small unittest to verify that multiple calls to
NetlinkSocket#close() are safe.

Change-Id: I101730fad7eee72f9c6e8a7e7bd10c634f2ceab4
2015-05-20 12:08:55 +09:00
Deepanshu Gupta
1c5bf7f1dd Merge "Make Context.getClassLoader() work." into mnc-dev 2015-05-20 03:05:52 +00:00
Deepanshu Gupta
f8ea750455 Make Context.getClassLoader() work.
Context.getClassLoader() is used by the LayoutInflater and can be used
by custom views. However, when called from the LayoutInflater, this
needs to return only the Framework classes. This is so that the IDE gets
a chance to instantiate the custom views, which helps in better error
reporting and better fallback in case of exceptions, like MockView.

To workaround this need of the same method returning different results
based on where it's called from, the method call in LayoutInflater is
renamed to getFrameworkClassLoader() and the new method is injected in
Context. The implementation of getFrameworkClassLoader() maintains the
existing behaviour of getClassLoader().

Context.getClassLoader() is now modified to return classes from both
Framework and the app namespace.

Also, update the list of packages to search for Framework views.

Change-Id: I1a6be4aa1fc5c1c5520b5440a348a52f10b6eb3b
2015-05-19 19:56:20 -07:00
Svetoslav
f357c96273 Merge "Prevent modification of system fixed permissions" into mnc-dev 2015-05-20 01:57:44 +00:00
Simranjit Singh Kohli
bdf2d1fa38 Merge "[Fix Potential for error]:" into mnc-dev 2015-05-20 01:04:57 +00:00
Adrian Roos
1bbe3d4b75 Merge "Fix user switcher ripple emanation point" into mnc-dev 2015-05-20 00:43:47 +00:00
Simranjit Singh Kohli
6a184878f8 [Fix Potential for error]:
Init for accounts maybe called when non-system app asks for accounts.
That might lead to deletion of accounts and broadcast from the user,
which requires permission. Hence, we should clear calling identity
before requesting it.

Bug: 21140169

Change-Id: I057ac6778ea53d3f96b3e5c42fe3a2fe60c3cf28
2015-05-19 17:38:10 -07:00
Ruben Brunk
6664aee15a camera: Add AIDL interface for CameraServiceProxy.
- Adds an AIDL interface to allow the proxy camera service
  running in system server to accept RPCs from the camera
  service running in mediaserver.
- Request an update to the valid user set from the proxy
  camera service when mediaserver restarts to initialize
  properly + avoid DOS after a crash.

Bug: 21267484
Change-Id: Ib821582794ddd1e3574b5dc6c79f7cb197b57f10
2015-05-19 17:20:24 -07:00
fenglu
95ce803da7 LCE feature enhancement
- space pollLceData calls every 500ms
- cluster multiple pending pollLceData calls into one
- cherry pick from mwd to mnc-dev

Bug: 21307957
Change-Id: I04513011db3ae29af02bd54fe91cb8e0d4ab9f12
2015-05-19 17:08:00 -07:00
Christopher Tate
f7a9aaa12e Merge "Rebind backup transports only when clearly needed" into mnc-dev 2015-05-20 00:07:12 +00:00
Christopher Tate
1a78d8c2b8 Rebind backup transports only when clearly needed
Significantly narrow the circumstances under which transports
will be re-bound.  In particular, we now do not unbind + rebind
whenever any component in a bound transport's host package changes;
rather, we do so only when the transport component itself has
changed state, or when there is a state change that might cause
a new transport to become available.

Bug 19775237

Change-Id: Ib386875df19ffe9f2d3eb9f9788187338360644a
2015-05-19 17:05:22 -07:00
Svetoslav
6503e69d1d Prevent modification of system fixed permissions
Change-Id: I061b993df305f27e52f08dad54f1bdbf162de4d9
2015-05-19 16:49:53 -07:00
Eric Laurent
cae3466333 AudioFormat: more compressed formats
Add MP3 and AAC as valid AudioFormat encodings.
Only @hide for now to allow system components to manage
audio patches with those formats.

Bug: 18649264.
Change-Id: I5ef5f151783308e31d8ac5b29454589077ef62ea
2015-05-19 16:46:52 -07:00
Jean-Michel Trivi
1705113e91 Merge "API for converting AudioAttributes to stream type" into mnc-dev 2015-05-19 23:42:34 +00:00
Jean-Michel Trivi
d1d5a0a080 API for converting AudioAttributes to stream type
Bug 21267880

Change-Id: I3389dcb3a35a3786ecdb8f56a917a0ae619e8417
2015-05-19 16:35:25 -07:00
Svetoslav
6d9a53abbc Merge "Handle downgrading a runtime permission to an install one" into mnc-dev 2015-05-19 23:30:48 +00:00
Svetoslav
a1d0f3031f Handle downgrading a runtime permission to an install one
bug:21300531

Change-Id: I5c020c0faae3e727bbe898441c58116e2ab892b8
2015-05-19 16:27:00 -07:00
Joe Fernandez
e56cce575b am 25a3b711: am 97c616cb: Merge "docs: M Preview - Updating image for Program Overview" into mnc-preview-docs
* commit '25a3b7117a174e2a0dccdaf84c8394e5bdf1e7ca':
  docs: M Preview - Updating image for Program Overview
2015-05-19 23:16:10 +00:00
Yigit Boyar
bf6d1ebc4b am 9b716793: Merge "Revert "Make VPA.setInterpolator(null) unset the interpolator."" into lmp-mr1-ub-dev
* commit '9b7167937ab5ea456c45e735d3bd749ccf49c432':
  Revert "Make VPA.setInterpolator(null) unset the interpolator."
2015-05-19 23:15:48 +00:00
John Reck
3df4869a77 Fix Bitmap#sameAs NPE
Bug: 21281842

Change-Id: I4a1e33d7e642fa50e8789f1441e8587d1c15119c
2015-05-19 16:06:16 -07:00
Daichi Hirono
b7d072f42f Merge "DocumentUI: Plish the design of footer bottons." into mnc-dev 2015-05-19 22:20:43 +00:00
Wei Wang
de35f0d952 Merge "setCallbackType should be public for onlost/onfound apis" into mnc-dev 2015-05-19 22:10:24 +00:00
Joe Fernandez
25a3b7117a am 97c616cb: Merge "docs: M Preview - Updating image for Program Overview" into mnc-preview-docs
* commit '97c616cb113ba3144ff91b7f974d832fdc5ff0f0':
  docs: M Preview - Updating image for Program Overview
2015-05-19 22:07:20 +00:00
Prerepa Viswanadham
f5e368ff26 setCallbackType should be public for onlost/onfound apis
Bug: 21304922
Change-Id: I27ed4f3e00ac13354e3ef75e5686916be0d10918
2015-05-19 22:04:56 +00:00
Jeff Sharkey
891230b59e Merge "Push initial disk state, handle empty media." into mnc-dev 2015-05-19 22:04:54 +00:00
Fabrice Di Meglio
b3793d7201 Merge "Add IntentFilter auto verification - part 12" into mnc-dev 2015-05-19 22:02:40 +00:00
John Reck
63005e6e5b Reduce wasted buffer allocations
Bug: 20170924

Don't pre-allocate buffers if there is a SurfaceView or other
View that has requested transparent regions. This doesn't fully
address the problem of allocating buffers when there's a full
screen SurfaceView but it at least gets back to KitKat levels
of only having 1 wasted buffer instead of 3 (the 1 being
a result of the fact that it will still draw one frame of emptiness
forcing a buffer dequeue).

Change-Id: Ied9553186bc7b111d180b63f87b92bd317cb4b97
2015-05-19 15:00:13 -07:00
Joe Fernandez
97c616cb11 Merge "docs: M Preview - Updating image for Program Overview" into mnc-preview-docs 2015-05-19 21:59:15 +00:00
Jeff Sharkey
f5a6bd7538 Push initial disk state, handle empty media.
Stash volume count from last scan, and use it to push initial storage
notifications state when listener is first attached.

Also omit disks with invalid size, which usually means they're an
empty slot with no media.

Bug: 20503551
Change-Id: I75097035aebaad70ba32437179a863f6a0910aa5
2015-05-19 14:57:22 -07:00
Joe Fernandez
b6a1b2aa3b docs: M Preview - Updating image for Program Overview
- also removing unused images

Change-Id: Ic120bc3b119ccda70e85fb0a7254d835677467dd
2015-05-19 14:57:19 -07:00
Fabrice Di Meglio
f2fec45280 Add IntentFilter auto verification - part 12
- again tune Intent resolution candidates filtering: first add always list
  if not empty, other wise add undefined and browsers. If the list is still
  empty at the end, then add all the initial candidates.

See bug #19628271

Change-Id: I21f5313daf7bec1049c1e7c08275c825855d2935
2015-05-19 14:50:54 -07:00
Jorim Jaggi
10449c1d15 Follow up for I8050df3177b6d540829c3f0989a4e4b1381c87ec (1/2)
Change-Id: I071282032b4c4d6e19b5093a25cc541b0e83ebb4
2015-05-19 14:01:07 -07:00
Jason Monk
09389a9b58 Don't crash in bugreport on devices without BT
Bug: 21160862
Change-Id: Ia3295fc6ebbd8ad1b5d03c70c89370d09f9cbb03
2015-05-19 16:33:14 -04:00
Santos Cordon
0e2d3f2f87 Merge "Add enable/disable properties to phone accounts." into mnc-dev 2015-05-19 20:28:50 +00:00
Santos Cordon
91371dc036 Add enable/disable properties to phone accounts.
Bug: 20303449
Change-Id: Ie6203a284454d43f4dd20917f0f1fda0b36484f8
2015-05-19 13:06:21 -07:00
Svet Ganov
db6dab359c Merge "Clear binder identity before dispatching ap op mode changes." into mnc-dev 2015-05-19 19:51:28 +00:00
Svet Ganov
3853611f77 Clear binder identity before dispatching ap op mode changes.
bug:21078841

Change-Id: I409b739bbda10542142c8aac1522ad49882f5ec5
2015-05-19 12:45:56 -07:00
Eino-Ville Talvala
1975b0a4be Merge "Camera2: Fix session close callback" into mnc-dev 2015-05-19 19:39:12 +00:00
John Reck
0bb478b7ff Merge "Don't recreate the surface unnecessarily" into mnc-dev 2015-05-19 19:31:58 +00:00
Selim Cinek
4a21a7fab6 Fixed Focusability issues with heads up
The panel was focusable when a heads up came in which
lead to several bugs. Sometimes the user was not able to
type anymore and focus listeners fired.

Bug: 21153703
Bug: 20892889
Change-Id: Iab86e651ef827767225ca092bb2c1e3fe1ddf385
2015-05-19 19:27:43 +00:00
John Reck
80181b99c7 Don't recreate the surface unnecessarily
Bug: 19896200

The flicker is caused because ViewRootImpl is
requesting a change from OPAQUE to TRANSLUCENT due
to the presence of a GLSurfaceView. However, WindowManager
will use this as a signal to recreate the SurfaceControl.

This is not actually correct, as the underlying format
of the SurfaceControl was *already* TRANSLUCENT due to being
hardware accelerated. Add a fast-path for this step
where the format didn't actually change such that all that is
necessary is for the OPAQUE flag to be flushed through
to SurfaceFlinger.

This doesn't address the larger, more complex issue of a surface
flickering if the pixel format really did need to change, but
this should address the common case.

Change-Id: Ia5275705733123a3d7929bf5951829415753e2b2
2015-05-19 12:18:40 -07:00
Adrian Roos
970be5313a Fix user switcher ripple emanation point
Bug: 18444431
Change-Id: I35b053b151ba1e6e326d3a6c2bd2c3c8e3ad8c28
2015-05-19 12:11:48 -07:00