344557 Commits

Author SHA1 Message Date
Ruchi Kandoi
998ef794a3 Merge "Make OMAPI stricter" 2018-03-30 23:29:08 +00:00
Ruchi Kandoi
f0082409b5 Make OMAPI stricter
- Channel implements java.nio.Channels.Channel.
- openBasicChannel(aid) and openLogicalChannel(aid) is added back.
- Add finalizers for the classes.
- SecureElementListener -> onConnectedListener

Bug: 76448978
Test: CtsOmapiTestCases
Change-Id: I7f92c4dcb5c08a72d32ac9440872ab853badec1d
2018-03-30 23:08:42 +00:00
Hall Liu
17449f95dd Make changes to MBMS API following recs
* Change all error handling logic to return an error code via the async
callback
* Add an UNKNOWN code for errors for future backwards compatibility, and
prohibit the middleware from sending this code.
* Add IntDef for errors through the async callback
* Amend documentation for download()
* Implement support for arranging downloaded files into a hierarchy
following that of the server.

Change-Id: I4d5c8f6229b216d9aa84397e628e62279033cc74
Fixes: 76449215
Test: CTS
2018-03-30 14:42:24 -07:00
Treehugger Robot
34ce11f2bd Merge "Fix socket leaks in various android.net.Network methods." 2018-03-30 20:52:42 +00:00
Pavlin Radoslavov
c2c759842a Update Bluetooth codec related strings
The settings related to Bluetooth codec selection
are actually triggers. Updated the corresponding
strings to reflect that.

Bug: 67682722
Test: Manual - examined the result UI
      runtest systemui
      make -j40 RunSettingsRoboTests
      make -j40 RunSettingsLibRoboTests
Change-Id: I872414f7620931a67b028c2997b0740ae3a45986
Merged-In: I872414f7620931a67b028c2997b0740ae3a45986
(cherry picked from commit a80a65a11fc6fd6aa7f3dfb19516c3d15c512dfb)
2018-03-30 12:38:46 -07:00
Paul Jensen
f72f5b30af Fix socket leaks in various android.net.Network methods.
Bug: 72124526
Test: make CtsNetTestCases
Merged-In: I2a2254ce65c2176ae0be1d6276034b1bb0cad987
Merged-In: I23150482d6c2ab2eaa2b37732af68af69320792b
Change-Id: I3398b67272360f894e01a8cdfbc47b17d77c2330
(cherry picked from commit 89bb993293f0d7a524d1404184a55584b59bb67c)
2018-03-30 12:20:35 -07:00
Bernie Innocenti
786150bc09 Merge "apf: adjust JNI to accept_packet()'s new signature" 2018-03-30 11:51:41 +00:00
Bernie Innocenti
64bc32c5d4 apf: adjust JNI to accept_packet()'s new signature
Test: Fixes the build breakage
Change-Id: Id5c3cec5459ce6f9693457448002e60bbca6c09b
2018-03-30 17:13:57 +09:00
Bernie Innocenti
51dab0ed9d Merge "Relax APF version check in ApfGenerator" 2018-03-30 07:25:08 +00:00
Lorenzo Colitti
8e338f7dae Merge "Mark networks with OEM_PAID always restricted" 2018-03-30 07:00:54 +00:00
Pavel Maltsev
4af9107d6c Mark networks with OEM_PAID always restricted
Bug: 68762530
Exempt-From-Owner-Approval: OWNERS have approved, but gerrit doesn't see it
Test: runtest -x frameworks/base/tests/net/ -c android.net.NetworkCapabilitiesTest
Change-Id: Ieadef7c42634d890281543226203530fb18eb0a3
2018-03-30 07:00:39 +00:00
Chalard Jean
b8a1509d68 Merge "Limit the number of routes for performance" 2018-03-30 06:40:29 +00:00
Chalard Jean
39d6694208 Merge "Clarify documentation for getActiveNetworkInfo and friends" 2018-03-30 06:37:22 +00:00
Lorenzo Colitti
7fcde83572 Merge "Disallow Reserved SPI Allocation" 2018-03-30 06:16:17 +00:00
Colin Cross
a2b78a7ed2 Add a droiddoc generator for hwbinder.stubs
hwbinder.stubs provides stubs for @SystemAPI hwbinder classes
that doesn't depend on framework, used to break a dependency cycle
between hidl interfaces and android_system_stubs_current while
satisifying the link type checks.

Bug: 77285514
Test: m checkbuild
Change-Id: Id4093e19f607dc5b0c663e1b637012799ab110c3
2018-03-29 22:41:40 -07:00
Lorenzo Colitti
0dde066ef7 Merge "Require explicitly supplied truncation length" 2018-03-30 04:59:22 +00:00
Lorenzo Colitti
2891409c93 Merge "Clarify UDP encapsulation socket API" 2018-03-30 04:58:47 +00:00
Bernie Innocenti
d6bf7ffea7 Relax APF version check in ApfGenerator
Instead of requiring an *exact* version, we now require a minimum
version. This is necessary if we wish to upgrade the APF interpreter in
vendor firmware independently of the framework code. Adding new opcodes
without changing the semantics of the old ones is always possible and
usually easy, so we can at least have a backwards-compatibility horizon
wider than a single version.

Change-Id: I4f1ed661afb2ede193188eb8086fbf2a8b45b33d
Test: Change extracted from aosp/647079 and tested there
2018-03-30 13:14:54 +09:00
Treehugger Robot
d136b0fb08 Merge "Add the compilation reason to the dexopt dumps" 2018-03-30 01:20:26 +00:00
Remi NGUYEN VAN
e18fd9fff0 Merge "Use InterfaceSet for upstream interfaces." 2018-03-30 01:05:38 +00:00
Hansong Zhang
8d799f8340 Hearing Aid: change get/set active device (3/3)
* setActiveDevice() returns false in error case, e.g. when the device is
not connected
* add getActiveDevices() instead of isActiveDevice(), which returns a list
that must have two elements: left and right, or empty list on error

Test: manual
Bug: 69623109
Change-Id: I48f3388c56434d0c21e09bd8b794e58848cd8794
2018-03-29 17:54:24 -07:00
Treehugger Robot
81270b1885 Merge "Dummy WorkChain class" 2018-03-30 00:17:37 +00:00
Steven Moreland
86d170c7ce HIDL: add APIs used by subclasses to SystemApi
Two methods:
- HwBinder()
- HwBinder registerService
- HwBinder onTransact

are used by Stub classes generated by hidl-gen.

Bug: 72480743
Test: build hidl-gen generated stubs with system_current
    after manually copying stub jar to prebuilts.
Change-Id: I9b409271b683ad4769a0420e1688b14c561d39d1
Merged-In: I9b409271b683ad4769a0420e1688b14c561d39d1
(cherry picked from commit 4c0d6b62a9d60798f54de33d6cea1626cc21cc4a)
2018-03-29 15:04:27 -07:00
Steven Moreland
9efa13f38c Update HIDL-related documentation.
This is a followup CL to previous @SystemApi CLs.

Bug: N/A
Test: N/A
Change-Id: I9c7dcc776dcfb89fd90afa4fc5d74e40ff0a5f94
Merged-In: I9c7dcc776dcfb89fd90afa4fc5d74e40ff0a5f94
(cherry picked from commit 739811a5c53e435b3f0cfd5abf58389416be429c)
2018-03-29 15:04:20 -07:00
Steven Moreland
ff0a3642e4 Add remaining missing HIDL SystemApi methods.
A couple methods of Java classes which became SystemApis
but were used are still @hide.

Bug: 72480743
Test: hidl_test_java
Change-Id: I0cb82384932ab1758fa7576b2125825c48a4a6c9
Merged-In: I0cb82384932ab1758fa7576b2125825c48a4a6c9
(cherry picked from commit adcb896fd6e476f277d6f1d20e2e50b8e81c4369)
2018-03-29 15:04:14 -07:00
Steven Moreland
9312938842 HIDL: reportSyspropMethod -> enableInstrumentation
Renaming this method with a semantic meaning which
better explains its purpose without caring about
its implementation details.

Bug: 72480743
Test: hidl_test_java
Change-Id: I4b0577b3f61180ecfd66ae146973fa5cc2a3b244
Merged-In: I4b0577b3f61180ecfd66ae146973fa5cc2a3b244
(cherry picked from commit 36be191dfdd220e24f166b96cbdd64cfa30b4eb5)
2018-03-29 15:04:06 -07:00
Steven Moreland
4dde8a113b Allow HIDL to be used in priv-apps.
Marking HIDL as SystemApi to allow vendor apps to talk to their own
native HIDL services. This includes implementing HIDL callback objects.

HIDL (HAL interface design language) is a language that is used to
facilitate vendor<->system communication which provides guarantees
of ABI stability. For system and vendor services alike, this can also
be used for internal communication.

Bug: 67725182
Test: boot device, hidl_test_java
Change-Id: I9d028cc43ce6f81ea619f01e18f1cd772e17cbfa
Merged-In: I9d028cc43ce6f81ea619f01e18f1cd772e17cbfa
(cherry picked from commit e8e63aae6f705cbe316a1d9a7780f9f534bc3948)
2018-03-29 15:03:59 -07:00
John Reck
9ab5045d92 Merge "Change shader precision because of CTS fail" 2018-03-29 21:04:05 +00:00
Victor Hsieh
29d32fb55b Merge "Fix seccomp filter set up in zygote" 2018-03-29 20:37:33 +00:00
Calin Juravle
bceae38c7a Add the compilation reason to the dexopt dumps
Knowing why we compiled a package will make some investigations easier.

Test: adb shell dumpsys package dexopt
Bug: 76425903
Change-Id: I67b5bc980d198340aa52affb24fb3ce7e3080d67
2018-03-29 12:44:57 -07:00
dohyunia.kim
2e57a442f3 Change shader precision because of CTS fail
Change-Id: I5d8747ecf9091a251b56d3a9de4bdb8ab0260898
Merged-In: I5d8747ecf9091a251b56d3a9de4bdb8ab0260898
2018-03-29 19:26:09 +00:00
Treehugger Robot
b57de56276 Merge "Move alpha long/short to the base CellIdentity according API Review." 2018-03-29 16:45:52 +00:00
Bookatz
ebf962f74b Dummy WorkChain class
To avoid future merge conflicts, a dummy WorkChain class must be
added temporarily. It goes along with the dummy StatsLog.java class.

Bug: 71607284
Test: none
Merged-In: Iff361eb98e079c7b2146c092dc27a3618a813c94
Change-Id: I66cf0c36c1842b99a5a4dd104fc5c06c0cfbe2b5
2018-03-29 09:43:05 -07:00
Treehugger Robot
db43124b01 Merge "tools/bit: Avoid leak in error condition" 2018-03-29 15:22:55 +00:00
Remi NGUYEN VAN
25a7e4fdbf Use InterfaceSet for upstream interfaces.
Allows using different upstream interfaces for IPv4 and IPv6.

Bug: 38218697
Bug: 64382985
Bug: 64976379
Bug: 64995262
Bug: 64380515
Test: runtest frameworks-net, manual (with aosp/644099 applied)

Change-Id: I3db63f7aa5255a0229253187def7590a386c5133
2018-03-29 18:13:46 +09:00
Chalard Jean
e0d26f66b0 Limit the number of routes for performance
In evaluating whether "most" of the addressing space is
covered, the list of routes are obtained from a third-party
app, so it's possbile the system service stalls unless
some limit is enforced on how much work it has to do.
This change limits the number of routes to 400, as determined
by time measurement on various devices.

Bug: 74176086
Test: runtest framework-net
Change-Id: Ie4a96098bc044ade87b188839586f14dd101c100
2018-03-29 18:13:23 +09:00
Chalard Jean
e8785fb0e4 Clarify documentation for getActiveNetworkInfo and friends
For VPNs it's unobvious what these methods do, so document that.

Bug: 70917007
Test: Comment changes only. Checkdoc passes.
Change-Id: I31ec1aea356d88d969eaf9fc7d8c2ed13ce924eb
2018-03-29 18:10:56 +09:00
Treehugger Robot
e2e7b28c12 Merge "Fixed the Premium SMS bug reported by our partner The detail is that : === <shortcode country="ae" free="3214|1017"/> === As displayed above, Arab Emirates is registered in sms_short_codes.xml. There is only CATEGORY_FREE_SHORT_CODE number for the county code "ae". All other numbers which include length under 5 digits is set as CATEGORY_NOT_SHORT_CODE, and so Premium SMS pop-up does not appear for both case. pattern="\\d{1,5}" is added to all similar entries BUG:66911380" 2018-03-29 07:40:39 +00:00
Treehugger Robot
722282ec62 Merge "DCB whitelist short code for user association" 2018-03-29 07:29:00 +00:00
Remi NGUYEN VAN
83088dcd8e Merge "Fix network usage stats on 464xlat tethered." 2018-03-29 06:04:02 +00:00
Benedict Wong
bb7f2820f5 Require explicitly supplied truncation length
Instead of providing default truncation lengths (based on RFC or
otherwise), this change imposes a restriction that the truncation length
must be supplied for all auth or aead algorithms.

Bug: 77204048
Test: Updated tests, ran on walleye
Change-Id: I4a0e2e71aa97259e56f44e7c8a2ce53135708d97
2018-03-28 18:02:54 -07:00
Victor Hsieh
fa046a1c9e Fix seccomp filter set up in zygote
This needs to land with extra syscalls whitelisted, including capset and
setresuid.  These privileged syscalls are used in the setup after the
filter is initialized.

Test: system starts, different apps run
Bug: 63944145
Bug: 76461821
Change-Id: I49e6b292805f35baffb3530461c8741e75aceb32
2018-03-28 16:26:28 -07:00
Treehugger Robot
18aa649b8f Merge "Bluetooth HIDD: Remove unplug()" 2018-03-28 23:02:57 +00:00
Cassie
ae2b65a95a Move alpha long/short to the base CellIdentity according API Review.
Bug: 74831568
Test: Telephony sanity
Change-Id: I0ef69e3f18fca111191e1c6329ae13c0860869ba
Merged-In: I0ef69e3f18fca111191e1c6329ae13c0860869ba
2018-03-28 22:28:33 +00:00
Hall Liu
de57d0d024 Merge "Add additional logging for EMBMS edge cases" 2018-03-28 22:25:44 +00:00
Holly Jiuyu Sun
18e47b6108 Merge "Address comments from API Review." 2018-03-28 21:56:40 +00:00
Dan Willemsen
9caee5b85e Remove duplicate definitions of utility variables
These are set by the core build system, and are becoming read-only.

Bug: 76424357
Test: diff build-aosp_arm.ninja
Change-Id: I2df878bb654db48a0f2b9956220a0367c32c7ffe
2018-03-28 14:27:09 -07:00
Treehugger Robot
ff95c80198 Merge "Remove non-tombstoned ANR path." 2018-03-28 21:25:13 +00:00
Hansong Zhang
dbc6d14f6e Bluetooth HIDD: Remove unplug()
Remove the hidden unplug() API because it is not used and it can cause
the remote device to be unpaired. System apps should use unbond() and
user apps should not use reflection to invoke it.

Bug: 67866553
Test: SL4A
Change-Id: I1bdc06dbb5460c9fd52230b78cbf9434a4349d24
2018-03-28 20:11:18 +00:00
Treehugger Robot
8d8921d7fc Merge "Clean new TelephonyManager API." 2018-03-28 18:40:17 +00:00