Commit Graph

24544 Commits

Author SHA1 Message Date
Glen Kuhne
8902f81589 Merge "Move ipconnectivity.proto to services-proto.jar" 2016-10-27 16:27:27 +00:00
Andrii Kulian
debcf7603f Merge "Refactor stack removal methods" 2016-10-27 07:52:07 +00:00
Marie Janssen
1e012d93c7 resolve merge conflicts of 1238daf to master
Change-Id: Icc70d291379d4f4816881e46704197513e6d548e
2016-10-26 17:57:22 -07:00
Marie Janssen
1238daf20d Bluetooth: prevent enabling BLE in airplane mode am: a80d745c65 am: 6affbde556
am: 73bfd25356

Change-Id: Ieb424a2d68058d4171e6c9bd04f8a42cc1f3d7e9
2016-10-27 00:29:51 +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
Andrii Kulian
6d6fb401c7 Refactor stack removal methods
Refactor some parts of stack removal to make methods implementations
correspond to their names.

Change-Id: Ie686c463d67232d9d5fd96468fe3911003d22471
Test: Manual and existing tests still pass.
2016-10-26 16:22:31 -07:00
TreeHugger Robot
9633c7092a Merge "CarrierConfig: add persist_lpp_mode_bool" 2016-10-26 22:14:47 +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
Alain Vongsouvanh
bac23b4fda Properly set the center of the circular mask. am: 63d2e41d1b
am: 285cf2d765

Change-Id: I7ebd39225bff8740d486d38f4668eeb8fd83da56
2016-10-26 21:33:44 +00:00
Alain Vongsouvanh
285cf2d765 Properly set the center of the circular mask.
am: 63d2e41d1b

Change-Id: If638998c5012b5ebb68cca77b257a991b09827a9
2016-10-26 21:29:15 +00: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
bc3d8e8673 [DO NOT MERGE] Don't accidentally delete renamed packages am: e2c85890ac am: 2a81b4c908
am: c893565d24

Change-Id: I3b0abcfcc23b114b38204c0c957acb1316698845
2016-10-26 20:45:07 +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
Winson Chung
cd1ff64683 Ensure PIP retains bounds on device rotation.
- When device rotates, ensure that the PIP continues to show in the
  same aspect ratio, snapped to the same logical snap point.
- Move common snapping code to policy so that it can be shared between
  SystemUI and the framework.

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testPinnedStackInBoundsAfterRotation

Change-Id: I2d9f1a2dc077a55c39acc1ccba982c255e2ff3a4
2016-10-26 12:53:01 -07:00
Winson Chung
303c6b78b6 Fix wrong bounds being used in landscape.
- Ensure we use the right display size when calculating PIP bounds.
- Also update interface to take the display id.

Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testPinnedStackDefaultBounds
Test: #testPinnedStackMovementBounds

Change-Id: I01fd8ba6dee212c29a9a092673ee8f7843e41af6
2016-10-26 12:49:40 -07:00
Ecco Park
4fa1ab7029 CarrierConfig: add persist_lpp_mode_bool
Removing carrier specific function from
GnssLocationProvider.java

This property is used for persisting the current
lpp_mode of carrier even after sim is removed

Instead, we will use the property of carrier config

Bug: 32250938

Change-Id: Ibc69883723392cb0fbfcd8dbf3e866860db9dd5d
Signed-off-by: Ecco Park <eccopark@google.com>
2016-10-26 11:51:10 -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
Glen Kuhne
0719940ce4 Move ipconnectivity.proto to services-proto.jar
Moved ipconnectivity.proto from services.core.jar to
framework-protos.jar.
Replaced 'mergeFrom' MessageNano base class calls, with 'parseFrom'
IpConnectivityLog calls.

This solves an issue where the services.jar would conflict with
duplicate nano proto base class definitions in other .jars
(wifi-service.jar).

Bug: 32261442
Test: Existing unit tests pass
Change-Id: I49100935fcae2e85e12eaa7f3462864f3a340b97
2016-10-26 10:18:46 -07:00
Vitalii Tomkiv
94cdb8fa0a Merge "Add timeout to usb_device_get_string to prevent usb stuck state for bad behaving devices." 2016-10-26 16:57:25 +00:00
Julius D'souza
58efe25cd7 DO NOT MERGE: Add initial ambient light sensor rate am: 82b9aff0a9
am: 4d3af80494

Change-Id: Ia54da3fd528bc62c74f607af1e8d45a51bf11918
2016-10-26 03:34:09 +00:00
Julius D'souza
4d3af80494 DO NOT MERGE: Add initial ambient light sensor rate
am: 82b9aff0a9

Change-Id: I65408c700317d76e271659945fe280318dabe315
2016-10-26 03:29:41 +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
TreeHugger Robot
27fd7ee5c0 Merge "tv.input: Updating tv input hal client with hidl." 2016-10-26 00:47:02 +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
8a2725f8da Make sure to call dismissKeyguard after setOccluded am: ec50931d88 am: 1d4f2b9914 am: ae7f618f38
am: 4bcd7ec40b

Change-Id: Idd47ad1862c093e894d14e1eabb6f05f9733b083
2016-10-26 00:03:01 +00:00
Jorim Jaggi
4bcd7ec40b Make sure to call dismissKeyguard after setOccluded am: ec50931d88 am: 1d4f2b9914
am: ae7f618f38

Change-Id: Ic11164067ce5145771fd0e6f13dcd478c16877f2
2016-10-25 23:54:55 +00:00
Jorim Jaggi
1d4f2b9914 Make sure to call dismissKeyguard after setOccluded
am: ec50931d88

Change-Id: Ib25480fa4efe63940fed144f4e28dee185244fad
2016-10-25 23:39:25 +00:00
Vitalii Tomkiv
d9804ef160 Add timeout to usb_device_get_string to prevent usb stuck state for bad
behaving devices.

Bug: 31923641
Test: manual run and test with bad devices.
Change-Id: Ie93b5d33e23de461e1b158215adcf5ccc122f48a
2016-10-25 15:58:05 -07:00
Adrian Roos
0f7cc4dc2c Merge "Move UiMode broadcasts to foreground" 2016-10-25 22:48:40 +00:00
Leonard Mosescu
f3409ceee5 Adding "attach-agent" to ActivityManagerShellCommand
This new command is used to attach runtime agents to a running application:

attach-agent <PROCESS> <FILE>
   Attach an agent to the specified <PROCESS>,
   which may be either a process name or a PID.

Test: m test-art-host, manual testing:
    . invalid syntax, missing arguments
    . invalid syntax, extra arguments
    . invalid numeric PID
    . invalid process name
    . valid process, not debuggable
    . valid process, missing agent
    . valid process, valid agent

Bug: 31682382

Change-Id: Ife88dbf23991dde7945d9208e54cd014bb7ecdc6
2016-10-25 22:42:39 +00:00
Dianne Hackborn
fe51103711 Merge "Tweak ActivityManager.getPackageImportance()" 2016-10-25 22:41:00 +00:00
TreeHugger Robot
f2ec2c1e42 Merge "Apply display override config for secondary displays" 2016-10-25 22:00:57 +00:00
Dongwon Kang
13e0691078 tv.input: Updating tv input hal client with hidl.
Test: end-to-end test with sw hal implementation.
Bug: 32096101
Change-Id: I673b6c8b2cb1f20ae6fce7d201d2a01fca446042
2016-10-25 13:37:12 -07:00
Andrii Kulian
5406e7ade8 Apply display override config for secondary displays
Now display-specific settings, such as dimensions and orientation,
are stored in display override config. For default display it is
mirroring the global config. Each time when global config is updated,
override of the default display should be updated too and vice versa.

Test: Existing and manual tests still pass.
Change-Id: Ic6c2190092d328820f314a05bed43c875db18170
2016-10-25 13:22:10 -07:00
Christopher Wiley
fbc27b1e9e Merge "Add unit tests for Tethering.isTetherProvisioningRequired" am: 836ffa6e1c am: c29f2575f2 am: a7bb5ad809
am: 2ae41619ae

Change-Id: Iee7c8575ee22a494e2657e15e1aaae9b05a37045
2016-10-25 18:43:16 +00:00
Christopher Wiley
2ae41619ae Merge "Add unit tests for Tethering.isTetherProvisioningRequired" am: 836ffa6e1c am: c29f2575f2
am: a7bb5ad809

Change-Id: I249e487a26a1fbc8fa748c518fcb332e28598437
2016-10-25 18:38:33 +00:00
Christopher Wiley
a7bb5ad809 Merge "Add unit tests for Tethering.isTetherProvisioningRequired" am: 836ffa6e1c
am: c29f2575f2

Change-Id: Ica704d0a64dde80ae0a9f1cef0250bfbdafcd49a
2016-10-25 18:31:02 +00:00
Christopher Wiley
c29f2575f2 Merge "Add unit tests for Tethering.isTetherProvisioningRequired"
am: 836ffa6e1c

Change-Id: I1dab386e3891c01a2917c32847d2aecdbfa10102
2016-10-25 18:23:02 +00:00
TreeHugger Robot
945e30f0f3 Merge "Fix background animator not resetting" 2016-10-25 18:22:45 +00:00
Treehugger Robot
836ffa6e1c Merge "Add unit tests for Tethering.isTetherProvisioningRequired" 2016-10-25 18:12:42 +00:00
Matthew Bouyack
96e3a222fa Avoid redundant setMatrix calls from setMatrixInTransaction This matches the behavior of setPositionInTransaction and setSizeInTransaction. am: 8dd88f649b am: 36d5474ef8
am: dfe7d0bd0e

Change-Id: Ied2c3314b61f24e7c7a8442adcfbf33a383e65ed
2016-10-25 17:08:39 +00:00
Matthew Bouyack
dfe7d0bd0e Avoid redundant setMatrix calls from setMatrixInTransaction This matches the behavior of setPositionInTransaction and setSizeInTransaction. am: 8dd88f649b
am: 36d5474ef8

Change-Id: Iaca05f400b080d80a5fb1b9b2882d303a836b638
2016-10-25 17:01:32 +00:00
Matthew Bouyack
36d5474ef8 Avoid redundant setMatrix calls from setMatrixInTransaction This matches the behavior of setPositionInTransaction and setSizeInTransaction.
am: 8dd88f649b

Change-Id: Id510d1e5653ec167a4494a9ff14728fca446862c
2016-10-25 16:55:44 +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
Jorim Jaggi
7156b650f0 Fix background animator not resetting
Test: Set wallpaper, make sure screen is not black.
Change-Id: I4031375e0892906a4e4085ce05664191a55bfb4e
Fixes: 32375010
2016-10-25 08:34:42 -07:00
Dianne Hackborn
9df8f51044 Tweak ActivityManager.getPackageImportance()
- Now requires PACKAGE_USAGE_STATS permission.
- Simpler implementation.

Test: none

Change-Id: Id42ee31d0af8d896cbc94c81666bc734198c1273
2016-10-24 17:59:27 -07:00
Christopher Wiley
497c147b82 Add unit tests for Tethering.isTetherProvisioningRequired
Check that we tolerate various dependencies not being available.

Bug: 31946071
Test: These are tests

Change-Id: Ic0a9cd6f255ba9ff4c774dee640df1a0bdf8dc39
2016-10-24 17:07:05 -07: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