Commit Graph

38877 Commits

Author SHA1 Message Date
Damien Bargiacchi
4e9436261f Allow config.xml to set the default display's default color mode
am: 4364bbf93f

Change-Id: I6d68be94598f3fe28225826e00459d5707b7ecee
2016-11-09 19:14:26 +00:00
Erik Kline
88424ed1b2 Merge "Handle IpReachabilityMonitor errors better." into nyc-mr2-dev 2016-11-09 01:21:26 +00:00
Philip Cuadra
ac39b9626d Pinner Service - update Camera app max size to 80MB
The prebuilt camera app in /system/app uses uncompressed libs to save
memory.  A recent update pushed it over the arbitrary 50MB limit.  This
change moves that arbitrary limit to 80MB.

Bug 32289474
Tested manually

Change-Id: Icf4e4476447fd363f2ab311b237f17a0e9d43053
2016-11-08 11:23:23 -08:00
Erik Kline
e452660466 Handle IpReachabilityMonitor errors better.
If construction of a new IpReachabilityMonitor throws an IAE then
log it and immediately call onProvisioningFailure().

Test: runtest frameworks-wifi
      passes, except for selectQualifiedNetworkDoesNotChooseDeletedEphemeral()
      which fails with an NPE for unrelated reasons.

Bug: 31038971
Bug: 31742703
Change-Id: Ie91b8bdd509d06ad54d062bf446e74c092eb096c
2016-11-08 16:02:24 +09:00
Damien Bargiacchi
4364bbf93f Allow config.xml to set the default display's default color mode
Bug: 31928803
Change-Id: I2707ae47611dca134fa9b4afa2d09e0812b3efd3
2016-11-07 11:20:55 -08:00
Jorim Jaggi
3188386ff8 Fix waitingForDrawn callback not called when adjusting for IME
Test: Go into multi-window, with IME target at the top. Open IME,
lock screen and immediately unlock with fingerprint. Make sure
you don't end up with a unrecoverable black screen.

Change-Id: I1b9dd3aab64454e2d2894f5f273b70385615c74f
Fixes: 32544627
2016-11-04 23:50:52 +00:00
Greg Plesur
9ee91d8d11 If the current device is a watch, fix DeviceOwner/ProfileOwner logic.
am: 34fb70ab88

Change-Id: I901764f7bba26c921896d94444799185cce41932
2016-11-04 14:09:29 +00:00
Greg Plesur
34fb70ab88 If the current device is a watch, fix DeviceOwner/ProfileOwner logic.
In this case, don't require the device to have gone through the
Setup Wizard before disqualifying DO/PO if there's an incompatible
account on the device.

BUG: 32438704,32438210

Change-Id: I6858db13c8df6e95d01d18a903f4343f70370e8b
2016-11-03 17:35:42 -04:00
Greg Plesur
a71a0b8da1 New Wear devices need to update their DISABLE_LOCKSCREEN_KEY.
am: eb2e45369a

Change-Id: I64c1cc38bc38d9d0ee6214a64c6ddfaa57095ce0
2016-11-03 20:23:24 +00:00
Greg Plesur
eb2e45369a New Wear devices need to update their DISABLE_LOCKSCREEN_KEY.
Previous versions of Wear forced this flag to "true."

BUG: 32591969
Change-Id: I9619eee5df5f67e92818ef0b7b45ddd2299449f1
2016-11-03 15:01:19 -04:00
TreeHugger Robot
8b85444802 Merge "High speed GPS/GNSS Navigation Information Block" into nyc-mr2-dev 2016-11-03 17:27:10 +00:00
Wyatt Riley
5d5bac8383 High speed GPS/GNSS Navigation Information Block
When speed goes above 400m/s, the GnssLocationProvider will
stop output of location, measurements and navigation message.

Test: Several on device tests, see bug for details

Bug: 31711586
Change-Id: I8bceb9a67b10ac7cf21983bb856ed0608957096a
2016-11-02 17:23:40 -07:00
Nimrod Gileadi
51ac3a911c Increment a MetricsLogger counter on back press.
am: 580135c1b8

Change-Id: I29fb7f03b5da8edf3643118bc74bba553f2f6ca1
2016-11-02 13:03:04 +00:00
TreeHugger Robot
523c4fd695 Merge "Increment a MetricsLogger counter on back press." into cw-f-dev 2016-11-02 12:55:17 +00:00
Vinod Krishnan
305187983b DO NOT MERGE Wear Fwk: Disable Animations for A11y
am: 8500f26d51

Change-Id: I8bddbad4b8777a3fedac2f88717b48d00f596a8c
2016-11-01 22:57:58 +00:00
vinodkrishnan
89e653ccc7 Merge "DO NOT MERGE Wear Fwk: Disable Animations for A11y" into cw-f-dev 2016-11-01 22:54:11 +00:00
Mark Renouf
e065f7c5a9 Workaround for javac compilation issue of lambda code
Since ag/32554459 some Robolectric tests are compiling
framework code with javac. For reasons unclear so far this
code fails to compile with javac:

> ShortcutService.java:408: error: variable ri might not have been initialized

https://android-build.googleplex.com/builds/submitted/3416256/angelfish-userdebug/latest/logs

Removing the lambda expressions corrects the issue.

BUG: 32554459

Change-Id: I189c8ef02dc93b46ef6418c1ff14f2312097898a
2016-11-01 17:48:20 +00:00
Makoto Onuki
f0644d03a2 Always scan the Settings app for updated shortcuts.
am: ac2898228e

Change-Id: I64f476ec3b4003e87004ab6c05536f91e659d39e
2016-11-01 01:12:34 +00:00
Makoto Onuki
ac2898228e Always scan the Settings app for updated shortcuts.
The setting apps' version code is 25 for both DR and MR1, so the
shortcut manager will not notice when it's changed.

Let's just always scan this app.

Bug 32554059

Change-Id: Ia05363b30a5eeb989dc4c44cf5dbd71cde96de96
2016-10-31 15:46:36 -07:00
Nimrod Gileadi
580135c1b8 Increment a MetricsLogger counter on back press.
For Wear, we want to know how often users press the side button, which
is mapped to a back key press. The number of times the back button is
pressed is probably a useful metric for the rest of Android.

The counter string, "key_back_down" is not yet declared in
go/tron-counters, but we should get the framework change in ASAP.

Bug: 32396371
Change-Id: Ia102318cd5ca4d077ce404944084806198c334f7
2016-10-31 21:43:37 +00:00
Vinod Krishnan
8500f26d51 DO NOT MERGE Wear Fwk: Disable Animations for A11y
- When Accessibility is turned on, Android Wear devices become unusable.
Add an option to disable animations, will be disabled in an overlay.

Bug: 24985771

Change-Id: If5fc44705d56579b305abd48a0d820f306b9be10
2016-10-28 16:56:25 -07:00
Fyodor Kupolov
7c9a91094d [DO NOT MERGE] Only setSize if -s arg is specified
am: b87a491de6

Change-Id: I33afbd12925a1afb79ed9b444948372ebbaf5e95
2016-10-28 00:21:10 +00:00
TreeHugger Robot
e97969b4d0 Merge "[DO NOT MERGE] Only setSize if -s arg is specified" into nyc-mr1-dev 2016-10-28 00:11:14 +00:00
Fyodor Kupolov
b87a491de6 [DO NOT MERGE] Only setSize if -s arg is specified
Calculate size of installed APKs only when INSTALL_EXTERNAL flag is set.
calculateInstalledSize is expensive and may take up to 20% of total
installation time.

Bug: 32180551
Bug: 29932779
Change-Id: I173d2b38820cc86cbfacecd1bacef57369d10af7
2016-10-27 15:29:41 -07:00
Jeff Sharkey
eeac5a064d Only bind to RESOLVE_EPHEMERAL_PACKAGE once.
am: 7765d7320d

Change-Id: I2ca3b6d7938a461a6fe2d591b74985908c2d07bc
2016-10-27 20:23:23 +00:00
Jeff Sharkey
286f069221 Merge "Only bind to RESOLVE_EPHEMERAL_PACKAGE once." into nyc-mr1-dev 2016-10-27 20:18:10 +00:00
Marie Janssen
6affbde556 Bluetooth: prevent enabling BLE in airplane mode
am: a80d745c65

Change-Id: I05a57fa747abedab24e0509c1fb7ab8737b2256a
2016-10-27 00:20:17 +00:00
Jeff Sharkey
7765d7320d Only bind to RESOLVE_EPHEMERAL_PACKAGE once.
We never unbind, so we only ever need one bind request; creating more
bind requests just wastes resources.

Test: builds
Bug: 32446301
Change-Id: I7d6c4a93b8f5bb8d9aed7a5041b193e19a2d65fc
2016-10-26 23:01:53 +00:00
Marie Janssen
a80d745c65 Bluetooth: prevent enabling BLE in airplane mode
Enabling BLE in airplane mode puts BluetoothManagerService in an
unexpected state which causes Bluetooth to be on when airplane mode
is disabled.

Also fixes a bug where a crash of a BLE client would trigger a restart
into ON mode.

Test: SL4A BleBackgroundScanTest:test_airplane_mode_disables_ble

Bug: 32140251
Bug: 32140271
Bug: 32369494

Change-Id: Ie65157e65c3a1ca914f567a7a0c631175d1e5835
(cherry picked from commit bd93b7b3dc6141cef6236cf0ca7dcc5acf5bfeed)
2016-10-26 14:55:47 -07:00
TreeHugger Robot
7aa48283b0 Merge "Properly set the center of the circular mask." into cw-f-dev 2016-10-26 21:20:22 +00:00
Svetoslav Ganov
2a81b4c908 [DO NOT MERGE] Don't accidentally delete renamed packages
am: e2c85890ac

Change-Id: Icbd85ddfc76e50553414bd47860370cdc442b796
2016-10-26 20:28:30 +00:00
TreeHugger Robot
e9db00e39f Merge "[DO NOT MERGE] Don't accidentally delete renamed packages" into nyc-mr1-dev 2016-10-26 20:22:53 +00:00
Alain Vongsouvanh
63d2e41d1b Properly set the center of the circular mask.
The new circular mask did not take into account devices with a chin,
setting the center of the circular mask higher than it should be.

BUG: 32418552
Change-Id: Ia45e197492a57341ad7db620b1d3fcc4820eabf0
2016-10-26 13:01:49 -07:00
Svetoslav Ganov
e2c85890ac [DO NOT MERGE] Don't accidentally delete renamed packages
Apps on the system image can change their package by declaring
their old one in the manifest. If a package is renamed it is
internally referred by its old name.

The reconciliation code was using the new package name for
renamed packages and was concluding the apk is orphaned thus
deleting it. This puts the package in a bad state where the app
is gone and the version on the system partition is disabled.

Also Play was showing an update for a renamed system app as
an install while it is an update because of the same reason,
it was using the new package name while the app is internally
referred by the old one.

The fix for both above is to internally normalize the package
name by using the old one if the package was renamed or the
package name as is.

Test: With the fix put the old calculator on the system image
and booted, then put the renamed calculator and booted, updated
calculator from play and rebooted - calculator keeps working.
Also did the above steps without the patch to put calculator
in a bad state and flashed the system with the patch which
fixed the broken calculator app.

bug:32321269

Change-Id: I98bfc05c399edfc9854ebcce44182fefa55ceeff
2016-10-26 18:14:06 +00:00
Julius D'souza
1e0055bb51 Merge "DO NOT MERGE: Add initial ambient light sensor rate" into cw-f-dev 2016-10-26 03:23:19 +00:00
Julius D'souza
82b9aff0a9 DO NOT MERGE: Add initial ambient light sensor rate
Bug: 32153559

Change-Id: Ic54bded46f88991290ed1e4d2574f865b6f598ec
2016-10-25 17:13:29 -07:00
Jorim Jaggi
1d4f2b9914 Make sure to call dismissKeyguard after setOccluded
am: ec50931d88

Change-Id: Ib25480fa4efe63940fed144f4e28dee185244fad
2016-10-25 23:39:25 +00:00
Matthew Bouyack
4f14be3d40 Merge "Avoid redundant setMatrix calls from setMatrixInTransaction This matches the behavior of setPositionInTransaction and setSizeInTransaction." into cw-f-dev 2016-10-25 16:48:20 +00:00
Matthew Bouyack
8dd88f649b Avoid redundant setMatrix calls from setMatrixInTransaction
This matches the behavior of setPositionInTransaction and setSizeInTransaction.

By eliminating calls to setMatrix, we avoid triggering redundant
SurfaceFlinger invalidates. This is particularly noteworthy on Android
Wear where we must update the minute hand every 60 seconds, but want the
device to spend as much time sleeping as possible.

See b/31489482

Change-Id: I424bb9f60c3033921fa04e7abcfc552500114f1f
2016-10-24 16:09:15 -07:00
Jorim Jaggi
ec50931d88 Make sure to call dismissKeyguard after setOccluded
If we call it before, SystemUI will not dismiss the Keyguard as
it is still occluded in that state.

Change-Id: I15cf9cc43b9a2b747bfd224a6dfbd769eee19d69
Fixes: 32202560
2016-10-24 15:40:06 -07:00
Julius D'souza
e2590cccfd Merge "DO NOT MERGE: Cap doze autobrightness when collecting new sensor samples" into cw-f-dev 2016-10-22 03:58:28 +00:00
Julius D'souza
e88cbbf40d Merge "Revert "DO NOT MERGE: Disable dim brightness reset when using ALS-based doze"" into cw-f-dev 2016-10-22 03:58:02 +00:00
Julius D'souza
a2b07dc8d9 DO NOT MERGE: Cap doze autobrightness when collecting new sensor samples
Bug: 32169300

Change-Id: If7eb443bc7c4bcc21eb4bc317f4fcd1219e9e25b
2016-10-21 19:22:23 -07:00
Julius D'souza
4fff94f1ed Revert "DO NOT MERGE: Disable dim brightness reset when using ALS-based doze"
This reverts commit 637ae798cc.

Change-Id: I1c7b449a2b13d5d3d956ac0570cb14b49c2e8b2c
2016-10-22 02:21:01 +00:00
Julius D'souza
a39e64eac2 Merge "DO NOT MERGE: Disable dim brightness reset when using ALS-based doze" into cw-f-dev 2016-10-21 22:29:36 +00:00
Julius D'souza
637ae798cc DO NOT MERGE: Disable dim brightness reset when using ALS-based doze
Bug: 32169300

Change-Id: I60d23405eb38ec0625b5b7f739a84918f4632359
2016-10-21 15:24:39 -07:00
TreeHugger Robot
088f73a9e9 Merge "Fwk: Only chime when docked and accessbility is on" into cw-f-dev 2016-10-21 20:41:10 +00:00
Vinod Krishnan
cf11ceab65 Fwk: Only chime when docked and accessbility is on
Bug: 32036947

Change-Id: I5786abe827735cc3a4bc1d52baacaa19bccaae77
2016-10-21 10:28:37 -07:00
TreeHugger Robot
653b982d18 Merge "DO NOT MERGE ANYWHERE Allow Wear Home app to send wallpaper commands at any time" into cw-f-dev 2016-10-21 17:23:45 +00:00
Erik Wolsheimer
b608d28f84 DO NOT MERGE ANYWHERE Allow Wear Home app to send wallpaper commands at any time
BUG: 32172459
BUG: 32069897
Change-Id: I6f030b6288433b9cefce0f2fb1a69de61bfa7617
2016-10-21 09:27:15 -07:00