Commit Graph

24691 Commits

Author SHA1 Message Date
Jeff Sharkey
623e155d53 Merge "Give easy flag to disable Direct Boot emulation." 2016-11-04 23:32:14 +00:00
TreeHugger Robot
3e8431f1f2 Merge "Move IActivityManager to aidl." 2016-11-04 22:24:12 +00:00
Chad Brubaker
cbc59b8aa6 Merge "Move ephemeral apps into the ephemeral SELinux domain" 2016-11-04 21:46:16 +00:00
Stephen Chen
5963fd864b Merge "Implement metered tracking for NetworkStats summary queries." 2016-11-04 21:29:33 +00:00
Jeff Sharkey
00455bf0fe Give easy flag to disable Direct Boot emulation.
Direct Boot emulation is encouraged to help developers test their
apps, but it's not required.

Test: cts-tradefed run cts-dev --module CtsAppSecurityHostTestCases --test android.appsecurity.cts.DirectBootHostTest#testDirectBootEmulated
Bug: 30686636
Change-Id: I3bb2dd42c0f71e52d8b7cf8da7e50568f41aafb7
2016-11-04 14:45:33 -06:00
TreeHugger Robot
94d0bca68f Merge "Add supports-multiwindow command to am." 2016-11-04 19:08:29 +00:00
Sudheer Shanka
fc46e9b643 Move IActivityManager to aidl.
Bug: 30977067
Test: Existing tests are passing, dump commands still working.
Change-Id: I9cf81c4d381ebce14a6c701e409cbb269f2ff1fb
2016-11-04 10:43:25 -07:00
TreeHugger Robot
37ea9a1f02 Merge "Send BOOT_COMPLETED when updating system apps" 2016-11-04 17:01:03 +00:00
Stephen Chen
2514787897 Implement metered tracking for NetworkStats summary queries.
Dependent on ag/1550196 where API is defined.

Bug: 31015360
Bug: 26545374
Test: runtest --path
frameworks/base/core/tests/coretests/src/android/net/NetworkStatsTest.java,
other test classes.

Change-Id: I968b9e3352d7880e3fc438f12de628a2da057e0a
2016-11-04 09:55:21 -07:00
Julia Reynolds
b3a04f0816 Never use getApplicationInfo.
Always use getApplicationInfoAsUser.

Test: runtest, and install a work profile app and post a notification.

Bug: 32615127
Change-Id: I92cdf42d791d27eaff64b945be96b216e5866f6d
2016-11-04 10:13:38 -04:00
TreeHugger Robot
cb291f38f8 Merge "Add shell command to move activity stacks between displays" 2016-11-04 09:00:10 +00:00
TreeHugger Robot
8be6cc89ef Merge "Trust: Add missing cleanup upon removing user" 2016-11-04 00:38:15 +00:00
Andrii Kulian
839def9b54 Add shell command to move activity stacks between displays
Also rename "stack movetask" command to be consistent with other
shell commands.

Test: New CTS tests coming soon.
Change-Id: I3d7e04e0ae8ea76c27c3e4c1e286d5cd4539870c
2016-11-03 17:26:35 -07:00
TreeHugger Robot
10398dfb1d Merge "Order non-app window containers." 2016-11-03 23:54:20 +00:00
Andre Eisenbach
da9d0ecb83 Merge "BT: Don't switch devices when one of the connected BT headsets disconnects" am: 0bebfe76fc am: 2fe13541ad am: 51d7a455aa
am: 045226008c

Change-Id: Iacd5ae71b6338bcb461ae69cc09e5158fea502dc
2016-11-03 23:38:59 +00:00
Andre Eisenbach
045226008c Merge "BT: Don't switch devices when one of the connected BT headsets disconnects" am: 0bebfe76fc am: 2fe13541ad
am: 51d7a455aa

Change-Id: Ia5b8bcbb6f42ef939abe71b74327d845e4a11768
2016-11-03 23:32:10 +00:00
Andre Eisenbach
51d7a455aa Merge "BT: Don't switch devices when one of the connected BT headsets disconnects" am: 0bebfe76fc
am: 2fe13541ad

Change-Id: Iba20aef49c4d34875d8521cba82e6ffc26051ac3
2016-11-03 23:25:37 +00:00
Andre Eisenbach
2fe13541ad Merge "BT: Don't switch devices when one of the connected BT headsets disconnects"
am: 0bebfe76fc

Change-Id: Ibd4c4f9defec469bb14a282c53d64932123d4905
2016-11-03 23:22:07 +00:00
TreeHugger Robot
c2a2b94393 Merge "Get rid of Keyguard visibility modifiers on WindowState" 2016-11-03 23:08:26 +00:00
Michael Kwan
94438b77db Add supports-multiwindow command to am.
The supports-multiwindow command allows the ability to
check if the device has multiwindow support in the shell.

Test: manual - adb shell am supports-multiwindow
Bug: 30120559
Change-Id: If5e251a878a29cef2365715b18e4275e4f1ff0ca
2016-11-03 15:31:58 -07:00
Adrian Roos
ae025828bb Trust: Add missing cleanup upon removing user
Change-Id: I4a1d9d38344aea54d1f0ae6d6834a45b2e73cb1c
Fixes: 31995569
2016-11-03 14:46:21 -07:00
Satish Kodishala
2980980a75 BT: Don't switch devices when one of the connected BT headsets disconnects
Usecase:
1. Enable multi-hf.
2. Connect to HS1.
3. Connect to HS2.
4. Make a call on AG. Here call audio is present on HS2.
5. Now disconnect HS1 from AG.

Failure:
When HS1 is disconnected, call audio is routed to handset/speaker.

Root cause:
When hs1 disconnection intent is received, SCO path is cleared
and audio is routed to handset/speaker.

Fix:
Check if the device being disconnected is same as the device
call audio is present before clearing SCO path.

Change-Id: If83325679b70b5893e44e8d844000ee028d0246c
2016-11-03 20:57:56 +00:00
Wale Ogunwale
3a93169454 Order non-app window containers.
- Add non-app window tokens to the display child container based on
their base layer so the highest based layer is z-ordered on-top.
- Separated DisplayContent.mNonAppWindowContainers into
mAboveAppWindowContainer and mBelowAppWindowContainer where the former
contains non-app windows that should be z-ordered on-top of all app
windows and the later contains non-app windows that should be
z-ordered below app windows.
- Change wallpaper base layer to 1 so that it is always below all other
window types.
- Add Ime related windows/tokens to DisplayContent.mImeWindowContainers
so that we can track them together
- Use alternative binder token when adding window TYPE_INPUT_METHOD_DIALOG
so that it can properly be associated as an IME token in WM vs. with
system_server or sys-ui token.

Test: Existing tests pass.
Bug: 30060889
Change-Id: Ib53e09af12545868c3741d83aaccb7311c872b41
2016-11-03 20:56:57 +00:00
Greg Plesur
794e66cfd2 New Wear devices need to update their DISABLE_LOCKSCREEN_KEY. am: eb2e45369a am: a71a0b8da1
am: e44736a819

Change-Id: I36f1980ede5ea483c4750386a7b5905254ce33f8
2016-11-03 20:36:27 +00:00
Greg Plesur
e44736a819 New Wear devices need to update their DISABLE_LOCKSCREEN_KEY. am: eb2e45369a
am: a71a0b8da1

Change-Id: I9a19eea21e008a9253ea7abbd854b21f4696548c
2016-11-03 20:29:55 +00: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
Fyodor Kupolov
c200bb7be4 Send BOOT_COMPLETED when updating system apps
Previously, when a system app was updated, it wasn't getting
BOOT_COMPLETED broadcast.
sendPackageAddedForUser was extended to support multiple userIds and also
send LOCKED_BOOT_COMPLETED. handlePackagePostInstall is now using the same
method as installExistingPackageAsUser

Test: pm install --user X -r systemAppV2.apk
Bug: 32242899
Change-Id: I75fe955aaf02d0a4c80b3604e3ef82316bf5dbc0
2016-11-03 11:07:50 -07:00
Winson Chung
34f47747f7 Merge changes I0d6f2f0c,I278ab8c3
* changes:
  Experiment for snapping PIP to closest edge.
  Experiment with allowing tap to break through to interact with the PIP.
2016-11-03 17:48:12 +00:00
Wyatt Riley
f405b08210 High speed GPS/GNSS Navigation Information Block am: 5d5bac8383
am: 0021090eb9

Change-Id: I77d910e9cfd33d5b4aeabfa0f2c2db7fa73120b4
2016-11-03 17:39:18 +00:00
Wyatt Riley
0021090eb9 High speed GPS/GNSS Navigation Information Block
am: 5d5bac8383

Change-Id: If8e8576f7e18faf6cb45ff228222c0c34be98d6d
2016-11-03 17:33:19 +00:00
TreeHugger Robot
8b85444802 Merge "High speed GPS/GNSS Navigation Information Block" into nyc-mr2-dev 2016-11-03 17:27:10 +00:00
Torne (Richard Coles)
ab5d0ba22e resolve merge conflicts of 0d16fa4 to master
Change-Id: I3c01fe6f5439885d28c6d28415004b26845f06b0
2016-11-03 15:09:34 +00:00
Richard Coles
0d16fa4096 Merge "Fix WebViewUpdateServiceTest failures when using Thread without Looper." am: be19fe5e8a am: 9c47f5c87a
am: 0092dbabe0

Change-Id: Ic1b2d362c582513ba821f6b9035e1ac91dcfa471
2016-11-03 14:54:09 +00:00
Richard Coles
0092dbabe0 Merge "Fix WebViewUpdateServiceTest failures when using Thread without Looper." am: be19fe5e8a
am: 9c47f5c87a

Change-Id: Ia5d867468080e0e48a4e5b3c08b1ee627e16cebe
2016-11-03 14:48:05 +00:00
Richard Coles
9c47f5c87a Merge "Fix WebViewUpdateServiceTest failures when using Thread without Looper."
am: be19fe5e8a

Change-Id: I85e2e13f395dac085616838670c19ddbedc67e9d
2016-11-03 14:42:08 +00:00
Richard Coles
be19fe5e8a Merge "Fix WebViewUpdateServiceTest failures when using Thread without Looper." 2016-11-03 14:34:50 +00:00
Julia Reynolds
3f2e215cd6 Merge "Replace test TODOs with ACTION." 2016-11-03 13:42:29 +00:00
Jorim Jaggi
b0d273427b Get rid of Keyguard visibility modifiers on WindowState
Not needed anymore \o/. Also fixes a flicker when transitioning
between two activities that both set FLAG_LIGHT_STATUS that was
somehow introduced recently.

Test:
- Start an light status bar activity from another activity that
already has light status bar, ensure there is no flicker.
- Open IME and make sure the content gets resized like before.

Change-Id: Ie9c9e1cd40f909c449d36ae436250063af20539e
2016-11-03 04:34:50 +00:00
Winson Chung
dff5c08bfd Experiment for snapping PIP to closest edge.
Test: Enable in SysUI tuner, drag PIP.  This is only experimental to help
      figure out what UX we want to keep.

Change-Id: I0d6f2f0c5909d6a76aae4a8fb84c5076f6996fdd
2016-11-02 18:25:29 -07: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
TreeHugger Robot
47994ccb78 Merge "Cleanup dumpstate for CTS tests" 2016-11-03 00:21:31 +00:00
TreeHugger Robot
02e17d27b1 Merge "[DPM] Management and retrieval of network logs" 2016-11-02 23:28:10 +00:00
TreeHugger Robot
82df4ef603 Merge "Added support for window TYPE_PRESENTATION" 2016-11-02 21:50:40 +00:00
Jorim Jaggi
ad5d284643 Cleanup dumpstate for CTS tests
Change-Id: Iefd7f2863b1a2d8974d0cd1c27b1d3b2d3ffbe8e
2016-11-02 14:21:07 -07:00
TreeHugger Robot
4cd3e8c0a9 Merge "Fixing issue with PIP while IME is showing." 2016-11-02 20:08:33 +00:00
Julia Reynolds
1864ff5dae Replace test TODOs with ACTION.
Also call packagemanager less.

Test: runtest
Change-Id: Icff2a5b9e7fff49ef8cf7b643c198707a6089007
2016-11-02 15:58:11 -04:00
Dianne Hackborn
54c8ac3d6f Merge "Power manager always needs to allow wake locks for services, receivers" 2016-11-02 19:46:32 +00:00
TreeHugger Robot
3b59466f75 Merge "Make window token add/remove APIs require displayId" 2016-11-02 19:34:30 +00:00
Wale Ogunwale
5b6714c2fa Added support for window TYPE_PRESENTATION
Switched presentation feature to use new window TYPE_PRESENTATION
and also add its own window token to the display the presentation
is running on. This is needed as window manager no longer allows
tokens to have windows on multiple displays.

Bug: 32566372
Test: Presentation mode works.
Change-Id: I9c2998311b65640743b8e23ec4f10bf1ffbfd785
2016-11-02 18:25:34 +00:00