283916 Commits

Author SHA1 Message Date
Ruchi Kandoi
9377a53aa9 Merge "nfc: First chunked NDEF record of TNF doesn't contain the type field"
am: 7b0d16249c

Change-Id: I35ccc367fc1182c1cf8c470d8bfcf6dcf27d2825
2017-03-07 02:46:54 +00:00
Erik Kline
4568fa4a82 Merge "Start of tethering OffloadController"
am: 121006f428

Change-Id: I590569818c7d7ac50dcc61bd7058bd7c5cad4e77
2017-03-07 02:45:51 +00:00
Hemant Gupta
ef3e0dbf00 Bluetooth: Expose L2CAP API to support OPP 1.2
Add changes to expose L2CAP API to create an insecure L2CAP socket
for supporting OPP 1.2.

Test: Connect with Remote OPP Client supporting OPP 1.2 and verify
that connection and transfer happens over L2CAP. Connect with Remote
OPP Client supporting OPP 1.1 and verify that connection and transfer
happens over RFCOMM.

Bug: 33010988
Change-Id: I21ed672afb4ed5d2355ff0a0f9691af220921c1f
2017-03-07 02:30:52 +00:00
Tyler Gunn
9324d6513b Merge "API review cleanups/changes." 2017-03-07 01:55:59 +00:00
Treehugger Robot
7b0d16249c Merge "nfc: First chunked NDEF record of TNF doesn't contain the type field" 2017-03-07 01:27:18 +00:00
Treehugger Robot
121006f428 Merge "Start of tethering OffloadController" 2017-03-07 01:00:57 +00:00
Hall Liu
b64ac4c57a Add further Connection-side APIs for RTT (part 2)
Add methods and callbacks to facilitate local and remote RTT initiation
and termination in the middle of a call. Adds @hide Connection-side APIs
to communicate with the ConnectionService, as well as plumbing for
RemoteConnections.

Test: manual, through telecom testapps
Merged-In: Ia80604b7dff8586ff222dbccdbe55e91aab02178
Change-Id: Ia80604b7dff8586ff222dbccdbe55e91aab02178
2017-03-06 16:48:24 -08:00
Andre Eisenbach
9b3d4cb3a7 Merge "BluetoothManagerService: continue teardown when BLE apps registered"
am: ba0992f4c4

Change-Id: Iac58de264ca48184d2ddd0cf4aeb9a3d5719539c
2017-03-07 00:37:31 +00:00
Yang Ni
25684ceff5 Merge "Removed close guards for Element and Type objects"
am: 97c9b57cec

Change-Id: I28b4149b6a0ace42dff2ca4ce9a1803b0baa4430
2017-03-07 00:36:19 +00:00
Andre Eisenbach
ba0992f4c4 Merge "BluetoothManagerService: continue teardown when BLE apps registered" 2017-03-06 21:25:40 +00:00
Martin Brabham
c2b0622634 BluetoothManagerService: continue teardown when BLE apps registered
When the adapter is toggled off; when there are BLE apps registered, a
request is sent to unregister all of the BLE apps.  Upon unregister each app
will call through to this function via a callback.  When this gets called if
the ble app count is 0, we can disable everything.  I am keeping track of the
flag so that we know explicitly where we are coming from.

Bug: 34707848
Test: Compile
Change-Id: I9a8322a6fa918e7b410770894c257ec9f7d8d1f5
2017-03-06 21:25:33 +00:00
Yang Ni
97c9b57cec Merge "Removed close guards for Element and Type objects" 2017-03-06 21:25:29 +00:00
Ruchi Kandoi
2b527ac293 nfc: First chunked NDEF record of TNF doesn't contain the type field
Test: CTS test passes
Bug: 34943312
Change-Id: I08f37ee76810f642b35ae8bde05ef0e2eff921e0
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2017-03-06 13:10:20 -08:00
Tom Cherry
c2dcebe6e6 Merge "Check for spurious wake ups"
am: 3a3cd0a27f

Change-Id: Ia445070278f5a80c85b48e06ddf614d462db45af
2017-03-06 19:57:18 +00:00
Tom Cherry
3a3cd0a27f Merge "Check for spurious wake ups" 2017-03-06 19:25:59 +00:00
Tyler Gunn
159f35c8e4 API review cleanups/changes.
- Change onCreateIncomingConnectionFailed/onCreateOutgoingConnectionFailed
to accept the connection mgr phone account as the first parameter.
- For the video APIs, pass the target SDK of the caller into along so
that the Telecom permission check can have fallback behavior for older API
versions.
- Add guidance for how UX should be shown in onShowIncomingCallUi API.
API guidance follows how the Dialer app shows its notification and full
screen UX.

Test: Manual, CTS.
Bug: 35767711
Bug: 35767096
Change-Id: Ib343f0eda1a4d067a38c553f33f140b4efcf3e48
2017-03-06 11:04:55 -08:00
Ajay Panicker
4ddee9722d Merge "Bluetooth: Use content observer for airplane mode"
am: 8871623b8d  -s ours

Change-Id: I83e81bd944c36c0f96a213bf57f99e61a7b35404
2017-03-06 18:21:33 +00:00
Treehugger Robot
8871623b8d Merge "Bluetooth: Use content observer for airplane mode" 2017-03-06 17:59:03 +00:00
Ajay Panicker
b208a1f0ac Bluetooth: Use content observer for airplane mode
We are making this switch as the airplane mode switch intent is going away.

Fix: 35256299
Test: Toggle Airplane Mode
Change-Id: I3b1e5bbdf689b0db98cfbb0ab377198d34f0ba05
2017-03-06 17:55:34 +00:00
Martijn Coenen
85d12da977 Remove interfaceChain from IServiceManager::add()
Bug: 32742469
Test: hidl_test, hidl_test_java, binderized marlin boots
Change-Id: I418a5123e62517961a685a6433fe4ba384264862
2017-03-06 15:43:42 +01:00
Hugo Benichi
4cf199383f Merge "Revert "ConnectivityManager: no double NetworkCallback registration" because oit caused regressions http://b/35955593, http://b/35921499."
am: 704520c392

Change-Id: Ia0ae78f8406b81377491407cf5ef8ca339952def
2017-03-06 12:30:05 +00:00
Hugo Benichi
704520c392 Merge "Revert "ConnectivityManager: no double NetworkCallback registration" because oit caused regressions http://b/35955593, http://b/35921499." 2017-03-06 12:20:45 +00:00
Erik Kline
e0cce21f4d Start of tethering OffloadController
Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 32163131
Change-Id: If8f7df069f37f1b3d440d446ab1b160a52ba9e09
2017-03-06 19:34:38 +09:00
Hugo Benichi
649e32484e Revert "ConnectivityManager: no double NetworkCallback registration" because oit caused regressions http://b/35955593, http://b/35921499.
This reverts commit faa70976b490116323107166f90fdd944c5bdc77.

Change-Id: I86c07c113f24753be7c977e6d7f570b99391e1b5
2017-03-06 06:16:51 +00:00
Paul Lawrence
071dcc02b4 Merge "Make seccomp honor setenforce"
am: c337e32bb0

Change-Id: I9d1bfd35f7da304188da2d6aff6b937108ae4680
2017-03-04 02:17:43 +00:00
Treehugger Robot
c337e32bb0 Merge "Make seccomp honor setenforce" 2017-03-04 02:08:54 +00:00
Paul Lawrence
ffad2adfa5 Make seccomp honor setenforce
Note: This code is in frameworks, since we might want to have tools
linked against seccomp_policy that continue to enforce seccomp

Bug: 35950093
Test: Builds, Seccomp: 2 is in zygote & zygote64 status
      Run setenforce 0 && stop && start
      Seccomp: 0 is in zygote & zygote64 status

Change-Id: I797a6c29f58725f84089c570f784125fb99f57ce
2017-03-03 13:08:08 -08:00
Peter Qiu
be39334afb Merge "wifi: WifiConfiguration: update documentation for isHomeProviderNetwork"
am: 6ac19c0d23

Change-Id: Ia4966b2d8109a85a94f59d7ec57b387a8f6f612e
2017-03-03 19:10:46 +00:00
Treehugger Robot
6ac19c0d23 Merge "wifi: WifiConfiguration: update documentation for isHomeProviderNetwork" 2017-03-03 19:02:28 +00:00
Yang Ni
45438c9402 Removed close guards for Element and Type objects
Bug: 28053769

These objects are tiny and unlikely to cause memory issues.

In addition, llvm-rs-cc auto-generated code contains such objects, which are
not visibible to developers and impossible to manually destroy, leaving
distracting warnings in Strict Mode.

Test: RsTest with StrictMode on and CTS tests

Change-Id: Iec68cca4f1259124b9f503a230c1a28b97ede1f3
2017-03-03 10:44:30 -08:00
Brad Ebinger
d2369792dd Return generic Binder on onBind
By returning a generic Binder on onBind in
ImsServiceBase, we can detect when the process
crashes and restart the service, if necessary.

Test: Telephony Unit Tests
Change-Id: I2fbe2708c3df37704f0c526210267a35c75ee1eb
2017-03-03 10:15:09 -08:00
Andreas Gampe
7f8466fab4 Framework: Ensure image heap string literals for Patterns
Do not use Pattern.toString to construct complex patterns. Instead,
make the string literals explicit so they can be compile-time
allocated, thus ending up as clean memory in the image heap.

Bug: 34956610
Test: m
Test: Device boots
Change-Id: I20d45c31243af00168553c218f75fb0795b55149
2017-03-03 09:38:58 -08:00
Tobias Thierer
50351bd85c Merge "Move value for the Build.CUR_DEVELOPMENT constant into libcore"
am: 3e6c189c68

Change-Id: I981b746a28cda09d7a75fa79faeacb2cc58b1fc4
2017-03-03 12:07:59 +00:00
Tobias Thierer
3e6c189c68 Merge "Move value for the Build.CUR_DEVELOPMENT constant into libcore" 2017-03-03 12:02:09 +00:00
Narayan Kamath
a31b7d383f Merge "fd_utils: switch to libbase logging."
am: 982f42f71c

Change-Id: I22364e3242317761ac27c51c54efb84dd6aee815
2017-03-03 11:07:19 +00:00
Narayan Kamath
982f42f71c Merge "fd_utils: switch to libbase logging." 2017-03-03 10:59:25 +00:00
Narayan Kamath
04d17c07cc Merge "fd_utils: add missing logging for a couple of failure cases."
am: 9dbcff7d73

Change-Id: Iabd49e8f322e926b1b157ff85f1e9e4f66b0f56a
2017-03-03 10:41:46 +00:00
Narayan Kamath
9dbcff7d73 Merge "fd_utils: add missing logging for a couple of failure cases." 2017-03-03 10:34:37 +00:00
Calin Juravle
e6f3ed6aef Merge changes from topic 'secondary-dex1'
am: d56d98b860

Change-Id: Ia9c1329584597a6f30aeaa2bd8e8c979705d8eea
2017-03-03 03:51:04 +00:00
Calin Juravle
d56d98b860 Merge changes from topic 'secondary-dex1'
* changes:
  Use DexManager logic to decide if a package is used by other apps
  Skip class path checking for secondary dex files
2017-03-03 03:42:34 +00:00
Calin Juravle
c649449093 Use DexManager logic to decide if a package is used by other apps
Stop relying on the file marker recorded by the runtime. We have the
same data available from the DexManager.

The clean up CL to remove the handling of the file markers will follow.

Test: verify that "shared packages" (e.g. gmscore) are not compiled with speed-profile.

Bug: 32871170

(cherry picked from commit 07b6eabe79261267ecd7114790e96e1f6828672a)

Change-Id: I2969b75fa77d38dde0073ef67aa89b1dc91237b5

Merged-In: I6cc5834ac88489e69896cd5fba9ed9968aa7f5a2
2017-03-03 02:16:04 +00:00
Calin Juravle
f8afcdc7b7 Skip class path checking for secondary dex files
Pass '&' marker to dex2oat classpath when compiling secondary dex files.
This will skip class path checking when loading the oat files.

Test: adb shell cmd package compile -m speed -f --secondary-dex com.google.android.gms
      oatdump --header-only --oat-
file=/data/user/0/com.google.android.gms/app_chimera/m/00000006/oat/arm64/DynamiteModulesC_GmsCore_prodmnc_alldpi_release
      check that the class path contains the special '&' marker

Bug: 32871170

(cherry picked from commit aae35767b6bca6f872c906a0fd38d7adb61217bd)

Change-Id: I7f3c6743e749316ee02e8586a525ad28ae1ef765

Merged-In: If0628aeb4e3f5717604bfc4a87a4b1d438e5fa65
2017-03-03 02:12:24 +00:00
Elliott Hughes
6f00e6e977 Merge "Remove the name length limit for system properties."
am: c657b769ab

Change-Id: I700b379c0482d7d9609183a39a5c9664746ea5aa
2017-03-03 00:30:10 +00:00
Elliott Hughes
c657b769ab Merge "Remove the name length limit for system properties." 2017-03-03 00:22:31 +00:00
Calin Juravle
a400ccdaa0 Merge changes from topic 'secondary-dex'
am: 9e88c53337

Change-Id: I77e80eaf9274a64348c80b251e865ecdb6e53dbc
2017-03-03 00:13:57 +00:00
Calin Juravle
ade90057c6 Save package dex usage info after secondary dex reconciliation
am: 61fd6eab46

Change-Id: I90a95645e9d2acf1b2377e165a64b34b1a678295
2017-03-03 00:12:19 +00:00
Calin Juravle
112a61bf32 Compile secondary dex files during background dexopt job
am: 574994afde

Change-Id: I204983f6221c07467b450ea9e0bf71b6d15926e1
2017-03-03 00:10:42 +00:00
Calin Juravle
90ac28d618 Add a shell command to force the background dexopt job
am: f7edab63d9

Change-Id: Ie77bc356a9ff4786c23a06d1267dc7ca5e45a90a
2017-03-03 00:08:50 +00:00
Calin Juravle
a0358c9e32 A bit more refactoring in BackgroundDexOptService
am: a57ef16375

Change-Id: Ic258b5484eedcc68650b474acb4fa3eae8589c82
2017-03-03 00:06:59 +00:00
Calin Juravle
110e897eaa [PM] Clean up logic for secondary dex oat files
am: e69fba3f7f

Change-Id: I223b27221acf25e628003dde0f63cffe66779753
2017-03-03 00:05:07 +00:00