Commit Graph

5978 Commits

Author SHA1 Message Date
Lorenzo Colitti
c346f72614 Merge changes Ibb63f6b4,Ib64559a5 into nyc-dev
am: 19e84f7

* commit '19e84f7b750c97d5d7440af16c7ba18bf759e5dc':
  Clean up netd state when tethering fails.
  Clear LinkProperties on interface removed.

Change-Id: I3e6593324fa955ab3c0e590655d0632347f83ec8
2016-04-05 13:39:10 +00:00
Lorenzo Colitti
a3d5948c37 Clear LinkProperties on interface removed.
When an interface is removed, all netlink events for that
interface are lost, because netd will no longer be able to
resolve the ifindex in the netlink event to an interface name,
and it only communicates to the framework events that include an
interface name.

This can cause us to end up with stale IP addresses if, for
example, wlan0 is removed because we switch wifi back from AP
mode to STA mode when exiting tethering. The presence of stale
IPv4 addresses can in turn lead us to miss a provisioning
notification because we already think we have an IPv4 address.

Change-Id: Ib64559a5a4fa261f483760b69fa7996314e7cc17
2016-04-05 20:28:57 +09:00
Roshan Pius
bbc3704933 Merge "power_profile: Move all wifi power values" into nyc-dev
am: bf8ea13

* commit 'bf8ea13069aec021739b9919a27741f1722466f6':
  power_profile: Move all wifi power values

Change-Id: I31b97ab5150ecb35797f699a7fc53adc8857c039
2016-04-04 22:29:34 +00:00
Roshan Pius
bf8ea13069 Merge "power_profile: Move all wifi power values" into nyc-dev 2016-04-04 22:21:25 +00:00
Phil Weaver
b11f31ff43 Merge "Add accessibility window title and anchor." into nyc-dev
am: d4a1932

* commit 'd4a19326085f2a68d568dfa754c29fd0ac49d193':
  Add accessibility window title and anchor.

Change-Id: I9b15bac883b470f06a41ee0b7ebf1b7d68e4ae2f
2016-04-04 16:43:00 +00:00
Phil Weaver
d4a1932608 Merge "Add accessibility window title and anchor." into nyc-dev 2016-04-04 16:36:01 +00:00
Mihai Nita
f9e34621e9 Merge "Fix suggestions in the language selector" into nyc-dev
am: 5d580ba

* commit '5d580baa507ff35f1a58889b7b57d04a346696d1':
  Fix suggestions in the language selector

Change-Id: I77d78c507d42f81336b7a926b5f02a2c6babcb3d
2016-04-02 03:31:06 +00:00
Mihai Niță
5d580baa50 Merge "Fix suggestions in the language selector" into nyc-dev 2016-04-02 03:24:54 +00:00
Jorim Jaggi
80cd40449a Do not clear INSCREEN and INSET_DECOR for resolver
am: 958f00f

* commit '958f00f396e1e7bf2edc4aa4e27fe11fa533b44a':
  Do not clear INSCREEN and INSET_DECOR for resolver

Change-Id: Iab172e0260470d656978720333352ae1b1f5196f
2016-04-02 01:27:10 +00:00
Jorim Jaggi
958f00f396 Do not clear INSCREEN and INSET_DECOR for resolver
Since we switched this activity to draw the system bar backgrounds,
and clearing these flags leads to that we don't get the insets
communicated, we need to remove the clearing of the flags.

Bug: 27914346
Change-Id: I72114ac7cec40933fa45891b3d1441bd30f883d4
2016-04-02 01:18:24 +00:00
Mihai Nita
86235d4970 Fix suggestions in the language selector
The current implementation makes the decision based on the
list of locales translated in frameworks/base

It will break if we remove country from the resource locale IDs
(e.g. fr-FR => fr)
It also offers no flexibility in case we want to suggest a country
based on other criteria.

Bug: 27378061
Change-Id: I3d8514e8abff83a4c98c5658533738611cf12576
2016-04-01 17:01:01 -07:00
Makoto Onuki
e7b5752c91 Merge "ShortcutManager: implement backup & restore" into nyc-dev
am: b1a684c

* commit 'b1a684c6461b2c316798dfd7bc91c7f39ee3c211':
  ShortcutManager: implement backup & restore

Change-Id: Id18fb8e6f4cae11086eb0aaee810d5a20ea0e678
2016-04-01 23:28:33 +00:00
Makoto Onuki
b1a684c646 Merge "ShortcutManager: implement backup & restore" into nyc-dev 2016-04-01 23:18:43 +00:00
Toni Barzic
a124a533cf Merge "Teach keyguard about PASSWORD_QUALITY_MANAGED" into nyc-dev
am: 1c2db89

* commit '1c2db8992f5db3dfcb0c35e55850c2f469d6d253':
  Teach keyguard about PASSWORD_QUALITY_MANAGED

Change-Id: I7e99e8cec86ee06e2e96d67e557762a5098dea04
2016-04-01 22:39:23 +00:00
Toni Barzic
1c2db8992f Merge "Teach keyguard about PASSWORD_QUALITY_MANAGED" into nyc-dev 2016-04-01 22:28:57 +00:00
Chong Zhang
47814b0829 Merge "Avoid extra relaunch when rotating side-by-side apps" into nyc-dev
am: fbe10f1

* commit 'fbe10f175fa3cb2083d15b4dbfb05c6f223d7f2c':
  Avoid extra relaunch when rotating side-by-side apps

Change-Id: I1f58f668a9593571b26d9c8c9692cd625e9679a8
2016-04-01 22:07:39 +00:00
Chong Zhang
fbe10f175f Merge "Avoid extra relaunch when rotating side-by-side apps" into nyc-dev 2016-04-01 21:56:45 +00:00
Makoto Onuki
2e210c4d0f ShortcutManager: implement backup & restore
Also:
- Fix cross profile pinning.  Now ShortcutLauncher correctly keeps
track of target package user IDs.

- Add performance stats for package manager calls and show them on
dumpsys.

Bug 27548047

Change-Id: I2472980b2955b6c70947aaaa9b76f75d0616db6e
2016-04-01 14:06:56 -07:00
Chong Zhang
167bbfac24 Avoid extra relaunch when rotating side-by-side apps
Update configuration with WM first and check if the stacks need to be
resized due to the update. If so, let activity manager resize the stacks
inline, instead of letting WM schedule another pass of resizeStack. This
way the configuration will be updated to the latest before ensureActivity-
ConfigurationLocked, and we don't need another relaunch there.

bug: 27834014

Change-Id: Ib761a96cada0c3247b0480f18370670c593159da
2016-04-01 13:58:41 -07:00
Philip P. Moltmann
2d9616511a Merge "Make sure PrintDocumentInfo is always sane." into nyc-dev
am: 4f05eb1

* commit '4f05eb194cf3f2c7c518d643d29906d4c7d246de':
  Make sure PrintDocumentInfo is always sane.

Change-Id: I48ac9dce7a84a9926b3756f0f190d05799ffdaad
2016-04-01 16:58:36 +00:00
Philip P. Moltmann
4f05eb194c Merge "Make sure PrintDocumentInfo is always sane." into nyc-dev 2016-04-01 16:49:31 +00:00
Roshan Pius
2a91e4aabc power_profile: Move all wifi power values
Move over all wifi related power values to power_profile.xml from
config.xml. If these parameters are present in both the xml files, we
ignore the one in config.xml, else we fall back to config.xml value.

Also add wifi tx level battery consumption

BUG: 27227497
Change-Id: I331dcdf5694740b951298b61c3105952b884690a
2016-04-01 08:57:02 -07:00
Wei Wang
613eac8d76 Merge "Add death monitor to AsyncChannel Server." into nyc-dev
am: 3054d01

* commit '3054d010327f8888919d7e0a97d63773dd015681':
  Add death monitor to AsyncChannel Server.

Change-Id: I949160fa577caf42c02fbd07270e20c56cc2803a
2016-03-31 23:22:47 +00:00
Wei Wang
3054d01032 Merge "Add death monitor to AsyncChannel Server." into nyc-dev 2016-03-31 23:13:35 +00:00
Wei Wang
19c4883c85 Add death monitor to AsyncChannel Server.
Bug:27878941
Change-Id: Ia6d12b49979b47434db7969372d6c02f799bc7d4
2016-03-31 15:49:36 -07:00
Ruben Brunk
ec64b9d807 Merge "Grant default permissions to preinstalled VrListenerServices." into nyc-dev
am: 8f7e381

* commit '8f7e3815e71cfb9a45b8632e6b9f37684699ff82':
  Grant default permissions to preinstalled VrListenerServices.

Change-Id: I5332d425146fcac44b662843fa9b10644a6f8e1e
2016-03-31 22:02:55 +00:00
Ruben Brunk
8f7e3815e7 Merge "Grant default permissions to preinstalled VrListenerServices." into nyc-dev 2016-03-31 21:57:04 +00:00
Alan Viverette
e413d20fa9 Merge "Improve handling of AlertDialog padding between title and content" into nyc-dev
am: f0f919f

* commit 'f0f919f19a6b442648048837c2ff3517f89853da':
  Improve handling of AlertDialog padding between title and content

Change-Id: Ia506c800dbdbdd3214f80a9f75fb78bfbc4c4847
2016-03-31 21:11:33 +00:00
Alan Viverette
f0f919f19a Merge "Improve handling of AlertDialog padding between title and content" into nyc-dev 2016-03-31 21:03:20 +00:00
Philip P. Moltmann
4723f36d3e Make sure PrintDocumentInfo is always sane.
Change-Id: I73cf554d42dc33b7a1f6577088ec53b447f14c8c
2016-03-31 10:26:25 -07:00
Adam Lesinski
ed72f0e9ba Merge "BatteryStats: Add ble scans to checkin data and start global ble scan timer" into nyc-dev
am: ac4dfec1

* commit 'ac4dfec1c6d684b7d0d8ce09a5cba8fa9003e3a4':
  BatteryStats: Add ble scans to checkin data and start global ble scan timer

Change-Id: I70c38df715190c58809732d03835286ab18a2e27
2016-03-31 03:03:40 +00:00
Adam Lesinski
ac4dfec1c6 Merge "BatteryStats: Add ble scans to checkin data and start global ble scan timer" into nyc-dev 2016-03-31 02:58:26 +00:00
Philip P. Moltmann
fa04bc7a5d Merge "Add the print service recommendation service" into nyc-dev
am: 740a5f0

* commit '740a5f023eea7b2fdb3e31efe8b8d5ac18aa8302':
  Add the print service recommendation service

Change-Id: Ie58ade9356f591781496581259b6d8a876780ac9
2016-03-31 02:17:26 +00:00
Andrii Kulian
b6ba05ffb0 Merge "Refactor usages of Picture In Picture and Multi Window (1/4)" into nyc-dev
am: ac94586

* commit 'ac945867145c571506a211ccb0a87a3402c4d745':
  Refactor usages of Picture In Picture and Multi Window (1/4)

Change-Id: I34a274c3eca15546d7be85fbb30ac072ff03db7f
2016-03-31 02:17:08 +00:00
Mihai Nita
1dae8e1f0d Merge "Ignore stopwords in the Arabic locale sort" into nyc-dev
am: aeaa8d6

* commit 'aeaa8d62563da3b615f54b564e01aba3a98f29da':
  Ignore stopwords in the Arabic locale sort

Change-Id: Id130f4608b116a88cdf40d2d7c2a6be2309284e9
2016-03-31 02:16:45 +00:00
Adam Lesinski
d9b99be587 BatteryStats: Add ble scans to checkin data and start global ble scan timer
Bug:27930206
Change-Id: Ieb81eddeb0ac54ad93615f3abdc18cbcab19a729
2016-03-30 18:58:27 -07:00
Ruben Brunk
98576cf949 Grant default permissions to preinstalled VrListenerServices.
- While explicitly bound, the package for a single pre-installed
  VrListenerService will be granted permission to access
  notification policy, be bound as a notification listener service,
  and draw system overlays.

Bug: 22855417
Change-Id: I568d5d9c032e0926e47c8ef4b46e3910b6bdf766
2016-03-30 18:48:54 -07:00
Philip P. Moltmann
740a5f023e Merge "Add the print service recommendation service" into nyc-dev 2016-03-31 01:33:17 +00:00
Andrii Kulian
ac94586714 Merge "Refactor usages of Picture In Picture and Multi Window (1/4)" into nyc-dev 2016-03-31 00:57:42 +00:00
Alan Viverette
d6bfb82dc8 Improve handling of AlertDialog padding between title and content
Very slight improvements all-around. There is now greater separation
between the list's top edge and the title and less separation between
the list's bottom edge and the buttons.

Bug: 27535708
Change-Id: Ia0d0dfa5ea6d34597104885dd2c773144dcf446e
2016-03-30 20:56:30 -04:00
Mihai Niță
aeaa8d6256 Merge "Ignore stopwords in the Arabic locale sort" into nyc-dev 2016-03-31 00:53:42 +00:00
Toni Barzic
79675b326c Teach keyguard about PASSWORD_QUALITY_MANAGED
PASSWORD_QUALITY_MANAGED should have password security mode,
rather than None.

BUG=27923581

Change-Id: I6b2aeee0a79a37a868d7d30117c77f73495892ad
2016-03-30 17:23:50 -07:00
Philip P. Moltmann
9dcb86a48d Add the print service recommendation service
This service connects through the print manager to the print spooler:

PrintSpooler.AddPrintersActivity <-> PrintManager <-> PrintManagerService <-> UserState <-> RemotePrintServiceRecommendationService <-> PrintRecommendationService <-> PrintRecommendationServiceImpl

Hence there is a lot of mindless plumming.

The actual changes are only in the AddPrintersActivity which is extended
to show another list of services: The recommended services.

The PrintServiceRecommendationService is based on the experimenal print
service stubs provider. This provider was contributed the Android by
Mopria. As this services uses Android own network discovery service most
code from the experimental provider goes away. In fact the only logic
left over is the selections of mdns-txt fields to look at and the
printer vendor configuration.

This relies on the Android MDNS to get fixed (Bug: 27696905). This also
does not deal with how to update the recommendation service.

Bug: 24533249
Change-Id: I6edc6e25fc08a50d478b61c71bb8ea158b08624c
2016-03-30 17:21:07 -07:00
Mihai Nita
4de75e9fa2 Ignore stopwords in the Arabic locale sort
Bug: 26277596
Change-Id: I7cf36d67313de8ee89d12b0289a15bccb9dd9ecc
2016-03-30 15:57:43 -07:00
Yohei Yukawa
9f42270f9b Merge "Add IC#closeConnection()." into nyc-dev
am: f6f0f5f

* commit 'f6f0f5fbe988cede008168438e469657c62ac51b':
  Add IC#closeConnection().

Change-Id: Id5dff1aab51d7538fe8213a6692aff6069ae8f7a
2016-03-30 22:07:07 +00:00
Yohei Yukawa
f6f0f5fbe9 Merge "Add IC#closeConnection()." into nyc-dev 2016-03-30 21:55:31 +00:00
Teng-Hui Zhu
63d118531c Merge "LUTInterpolator needs to have 2 frame at minimal" into nyc-dev
am: 620a84c

* commit '620a84c76aa3b0180fa214328cd200645de9008d':
  LUTInterpolator needs to have 2 frame at minimal

Change-Id: I21005de68c66524ce471e423baaaccd6adb21e62
2016-03-30 20:38:48 +00:00
Tenghui Zhu
620a84c76a Merge "LUTInterpolator needs to have 2 frame at minimal" into nyc-dev 2016-03-30 20:30:06 +00:00
Yohei Yukawa
9f9afe526d Add IC#closeConnection().
It turns out that BaseInputConnection has still depended on a private
API named BaseInputConnection#reportFinish(), which was introduced
4 years ago to work around a UI freeze due to an unbalanced batch edit
count [1].  Note that such an unbalanced batch edit count cannot always
be avoidable.  It can easily occur in the following situations.
 - The current IME crashed during batch edit.
 - The user changed the View focus during batch edit.
 - The current IME called IMM#switchToNextInputMethod() during batch
   edit.

The remaining problem is that #reportFinish() is still an internal API
and only subclasses of BaseInputConnection can implement it, and IMM
calls it when and only when the current InputConnection is
BaseInputConnection or its subclass.  InputConnectionWrapper and any
other InputConnection implementations will never receive such a callback
to clean up InputConnection#{begin, end}BatchEdit(), which is considered
to be a major contributor to UI freeze.

To address the above issue, we unhide BaseInputConnection#reportFinish()
as InputConnection#closeConnection() so that application developers can
receive an appropriate callback to clean up internal state including
unfinished batch edit.

  [1] I5525d776916f0c42d5e6d4a4282aed590d7f0e9a
      9d69ecbf61

Bug: 24688781
Bug: 25332806
Change-Id: I234309c5880c9fe0b299b8bd0f8862796d4dda0d
2016-03-30 12:03:51 -07:00
Teng-Hui Zhu
a5dcc6c25d LUTInterpolator needs to have 2 frame at minimal
Otherwise, it could be having invalid data, here NAN.
Fix:27343522

Change-Id: I5bb17f04c62f268ec633675015ef589be2413338
2016-03-30 11:36:35 -07:00