230296 Commits

Author SHA1 Message Date
Jeff Davidson
a6a78076ee Implement roaming tracking in NetworkStats summary queries.
Whether a network is deemed roaming or not was already being tracked
as part of the NetworkIdentitySet, so the underlying data store
already tracks roaming and native data separately. However, this data
was being aggregated together in NetworkStatsCollection#getSummary,
since the NetworkIdentitySet is converted to an iface name for the
purposes of matching, and the iface name will be identical whether or
not the iface is considered roaming. Now it is separated.

Also fixes a long-standing bug in NetworkIdentitySet where an identity
read from a saved file would always be considered roaming == false,
even if it wasn't at the time it was written.

Bug: 25813438
Change-Id: I11ab5b51182ed8da7af8fde468df065f9fdc3dad
2016-01-19 16:57:51 -08:00
Filip Gruszczynski
64b6b44869 Create dim layer surfaces only when they are necessary.
Instead of creating the surfaces for dim layers the moment when the
dim layer is constructed, we can save memory until the dim layer is
actually used and allocate the surface then.

Change-Id: Iedd717d198faf2df3ff39a41537ec0e1018c7ca9
2016-01-19 16:54:38 -08:00
Sanket Agarwal
168f2e556b Merge "Add support for AVRCP 1.3." 2016-01-20 00:23:38 +00:00
Matthew Williams
e501c39e2c Merge "Revert "Redact Account info from getCurrentSyncs"" 2016-01-20 00:14:42 +00:00
Matthew Williams
309a75556a Revert "Redact Account info from getCurrentSyncs"
This reverts commit b63057e698a01dafcefc7ba09b397b0336bba43d.

Reverting this b/c http://droidmerger-01.mtv.corp.google.com:8888/googleplex/branch/lmp-dev
claims there's an automerge path from lmp-dev all the way to master.

Change-Id: Ia99a20410153442436ea836b5223a524b640dcbf
2016-01-20 00:12:25 +00:00
Shreyas Basarge
bf8fdcdd4c Merge "NPE fix in SyncStorageEngine" 2016-01-20 00:08:50 +00:00
Yohei Yukawa
18f3d9a39e Merge "There should be a way to clear additional subtypes." 2016-01-20 00:03:37 +00:00
Matthew Williams
f39549e389 Redact Account info from getCurrentSyncs
BUG:26094635
If the caller to ContentResolver#getCurrentSyncs does not hold the
GET_ACCOUNTS permission, return a SyncInfo object that does not
contain any Account information.

Change-Id: I5628ebe1f56c8e3f784aaf1b3281e6b829d19314
(cherry picked from commit b63057e698a01dafcefc7ba09b397b0336bba43d)
2016-01-20 00:02:58 +00:00
Matthew Williams
9244633392 Merge "Redact Account info from getCurrentSyncs" 2016-01-19 23:58:11 +00:00
Jason Monk
3e189877ab SysUI Tuner: Status bar work
Improve general status bar goodness, more exactness, less breakage.

Extra extra icons, disabled by default.

Control all the status bar things!

Probably other stuff (10000).

Change-Id: I5d6282a4dcbcefea9f0880042cdf6293cb693712
2016-01-19 18:58:05 -05:00
Aga Wronska
0adf7fa7ed Merge "Refactor SearchManager:" 2016-01-19 23:34:21 +00:00
Rubin Xu
900fe2410d Merge "Add JNI bridge to the new logd security buffer." 2016-01-19 23:31:32 +00:00
Matthew Williams
b63057e698 Redact Account info from getCurrentSyncs
BUG:26094635
If the caller to ContentResolver#getCurrentSyncs does not hold the
GET_ACCOUNTS permission, return a SyncInfo object that does not
contain any Account information.

Change-Id: I5628ebe1f56c8e3f784aaf1b3281e6b829d19314
2016-01-19 23:19:18 +00:00
Tony Mak
a344be935d Merge "Make getInstalledDialerApplications to query for specific user" 2016-01-19 23:08:30 +00:00
Rob Carr
0102a8a8e9 Merge "Replace SurfaceViews across resize trigerred relaunches." 2016-01-19 22:59:10 +00:00
Winson
c5fd350522 Removing extraneous calls.
- Removing calls to ensureCapacity, which was causing reallocations when
  using a temporary set with multiple uses.
- Fixing issue with update callback not being called when immediately 
  updating a TaskView’s transform
- Adding utility methods in preparation for refactoring code


Change-Id: If62c3751ed6af15092a34435df08bb4d627536ea
2016-01-19 22:56:52 +00:00
Amit Mahajan
ca1bdcfd70 Revert "Added constructor with looper param for OnSubscriptionsChangedListener"
This reverts commit 831e401c055391745691a58d0c87c48b49139f50.

Not needed now since tests create HandlerThread

BUG=25691379
Change-Id: Ic0ac3e3ef3c717fd31acb5fc8d6d81cc9995a2f7
2016-01-19 22:46:34 +00:00
Winson
c8a4cdc067 Fix regression with drop targets not being visible.
- This happened because the RecentsView had the same priority as the
  touch handler, which updates the visible dock states, which RV uses
  to determine what to draw, resulting in the first time after rotation
  to not show the right targets.  The touch handler should now have a
  higher priority than the view that depends on it.

Change-Id: I9441e34f677fe105757c237db0f6970e7cf8203b
2016-01-19 22:42:53 +00:00
Sanket Agarwal
ba12af5167 Add support for AVRCP 1.3.
* Add metadata support.
* Add player settings support.
* Add playback support.

A2DP Settings App support.

Bluetooth: A2DP Sink support for Settings App

- add support for A2DP Sink in Settings App. This will enable connection
  initiation and updation on Settings App
- add framework Apis to support A2DP Sink. Any third party Apps can access
  A2DP Sink priority of device and playing state of device
- add support for key to set priority. This manages priority of device for
  A2DP Sink profile

Change-Id: If5f9139f37cdb9d200387877c7801075205c78a0
2016-01-19 14:37:18 -08:00
Tao Bao
4fd6c26410 Stop rebooting into recovery if uncrypt fails.
uncrypt needs to be called when an OTA package sits on /data. If uncrypt
fails or gets skipped (likely due to unexpected runtime restart during
the reboot), we should abort the rebooting. Because otherwise a) it
would fail for sure when reboots into recovery; b) useful logs would be
gone once it reboots.

Bug: 26444951
Change-Id: Ic3bc682b03f003f197e277ed6b6886e85f364754
2016-01-19 14:33:40 -08:00
Robert Carr
23fa16b759 Replace SurfaceViews across resize trigerred relaunches.
In resize modes where we are preserving the main application
window, we need to tell the WindowManager to prepare to replace
the child surfaces, or they will dissapear across relaunches.

Bug: 26070641
Change-Id: I864168688dc320e9280e651f9c5df614f52bc96c
2016-01-19 22:23:41 +00:00
John Reck
dcdbba7c95 Re-enable new pipeline
Change-Id: I0d0b2a109a3756d404e4e244348a863a9afa3f9b
2016-01-19 13:57:48 -08:00
Alan Viverette
7487f90581 Merge "Animate context popup menu around origin point" 2016-01-19 21:43:33 +00:00
Aga Wronska
f6a31d319f Refactor SearchManager:
- Move SearchManager out of BaseActivity.
- Refactor usage of onCurrentDirectoryChanged(int anim).
- Cancel search when directory changes.
- Enable testing for cancelling search when directory changes.
- Avoid recreating action bar when only the content of the directory is
  changed.

BUG=26495573

Change-Id: I1400090fcb529ad3905018d1640fdb7416542989
2016-01-19 13:29:09 -08:00
Filip Gruszczynski
11cbea90ef Merge "Don't remove task needed for reuse when clearing during activity start." 2016-01-19 21:26:55 +00:00
John Reck
0c540849d7 Merge "Fix ordering of texture->upload arguments" 2016-01-19 21:21:33 +00:00
Filip Gruszczynski
be9dabdc0f Don't remove task needed for reuse when clearing during activity start.
Bug: 26541093
Change-Id: I4ed39110e9bd72e5f7e11a49acc0a36dc8414df4
2016-01-19 13:04:19 -08:00
John Reck
9372ac3621 Fix ordering of texture->upload arguments
Caught by scatter-shotting GL_CHECKPOINTS which
seem generally useful to have

Bug: 26609444

Change-Id: Ie31d9297d8dae56405126720f338b4256c8bae77
2016-01-19 12:58:48 -08:00
Ruben Brunk
6e415b691f Merge "Update LightsService to use low-persistence mode." 2016-01-19 20:54:44 +00:00
Lenka Trochtova
9c844b13ef Merge "Add a system config flag for making all guests ephemeral." 2016-01-19 20:51:30 +00:00
Julia Reynolds
7036788c10 Apply extractors in the correct order.
The intrusiveness extractor depends on the final importance being set.

Bug: 26572389
Change-Id: Id1523a0839281c6cdc86def7deafe2cc33610b93
2016-01-19 15:49:03 -05:00
Lenka Trochtova
02fee15d85 Add a system config flag for making all guests ephemeral.
BUG: 25737696

Change-Id: I4c915ba97431a6f9f0aee2d93b618a5add51c766
2016-01-19 21:45:59 +01:00
Doris Liu
6771fc41bb Merge "Revert "Get animation update timing for AVD"" into mnc-dr1.5-dev am: a466e15223 am: 22116275aa
am: 574277d65a  -s ours

* commit '574277d65ad41ba34db5365000365a1b471be531':
  Revert "Get animation update timing for AVD"
2016-01-19 20:42:03 +00:00
Filip Gruszczynski
ddd1bc7e46 Merge "Enable enter animation when docking by dragging from recents." 2016-01-19 20:30:35 +00:00
Ruben Brunk
8ad3f208a9 Update LightsService to use low-persistence mode.
Bug: 26274041
Bug: 26217194

Change-Id: I4cbee11d0936b6df5b8aed9dfab8d9d1d928f9c3
2016-01-19 12:26:49 -08:00
Doris Liu
574277d65a Merge "Revert "Get animation update timing for AVD"" into mnc-dr1.5-dev am: a466e15223
am: 22116275aa

* commit '22116275aa2b7184c65b14c3e92455d76d3c67d4':
  Revert "Get animation update timing for AVD"
2016-01-19 20:15:14 +00:00
Doris Liu
22116275aa Merge "Revert "Get animation update timing for AVD"" into mnc-dr1.5-dev
am: a466e15223

* commit 'a466e15223ad64c5ae5d81e51f571fc45f606920':
  Revert "Get animation update timing for AVD"
2016-01-19 20:04:36 +00:00
Doris Liu
a466e15223 Merge "Revert "Get animation update timing for AVD"" into mnc-dr1.5-dev 2016-01-19 19:59:53 +00:00
Doris Liu
476b686d67 Revert "Get animation update timing for AVD"
This reverts commit fc8e3cb768b7dfd7c0ed0fb93dd9d735887e8d45.

Bug: 26616870
Change-Id: I2f018cb34f014f4ebb635e18cd940997507a4a4d
2016-01-19 19:56:13 +00:00
Calin Juravle
7bdf3cff92 Merge "Enable profile guided compilation on the framework side" 2016-01-19 19:51:51 +00:00
Gustav Sennton
4752ab714d Merge "Change API for killing app-depentents to also kill main app." 2016-01-19 19:48:29 +00:00
Adam Lesinski
0c4217b527 Merge "Fix local builds by adding CleanSpec command" 2016-01-19 19:45:29 +00:00
Calin Juravle
db4a79a5d7 Enable profile guided compilation on the framework side
The background compilation service will trigger a profile based
compilation instead of a full one. If no profile information is
available the compilation is skipped (see installd).

Note that the end decision whether or not to compile a package is taken
by dext2oat. We can't make the decision here because this service runs
under system server which cannot read app's profile data.

Bug: 26080105
Change-Id: I457ea8dea0557839c1f7cdc241770055732b0a4a
2016-01-19 11:44:27 -08:00
Adam Lesinski
719e2d0637 Fix local builds by adding CleanSpec command
Changed the package name of an R.java generated file, so we need
to clean up the old one left behind from a previous build.

Change-Id: I3ece312d367a30d736084736c44238b4e52d22d7
2016-01-19 11:39:24 -08:00
Tony Mak
b401a94d84 Make getInstalledDialerApplications to query for specific user
BUG=26634502

Change-Id: I8fe5506589bae85e3babba1aaab3b737cd12543b
2016-01-19 19:39:01 +00:00
Tony Mak
b73e7ccde5 Merge "Telecom shell command accepts userhandle as argument of phone account" 2016-01-19 19:32:41 +00:00
Tony Mak
6390bd8d69 Telecom shell command accepts userhandle as argument of phone account
We need a sort of way to enable phone account in managed profile for
writing cts running in managed profile.

Change-Id: I2e869e792c6e145c93a314f64a5de98e2f6e315f
2016-01-19 19:32:18 +00:00
Felipe Leme
2ab08ed2cc Merge "Skip zip regeneration when user didn't provide extra info." 2016-01-19 19:26:59 +00:00
Xiaohui Chen
78571980fa Merge "sysui: small refactor and delete dead code" 2016-01-19 19:25:53 +00:00
Alan Viverette
91098574f9 Animate context popup menu around origin point
Also enables the context popup menu enter transition.

Bug: 25801140
Change-Id: Id7fb384e8ac8974189b32a052352bd2f6cbb176e
2016-01-19 14:07:31 -05:00