Commit Graph

379406 Commits

Author SHA1 Message Date
Chalard Jean
292da961e6 Merge "[KA02] internal cleanup and refactor for SocketKeepalive" 2019-02-05 17:56:02 +00:00
Nandana Dutt
cefdee8540 Merge "Add error handling and other improvements to Bugreporting API" 2019-02-05 13:48:13 +00:00
junyulai
06835112ab [KA02] internal cleanup and refactor for SocketKeepalive
In previous change, the new SocketKeepalive API was exported.
But internally, old PacketKeepalive names and structures are
still used.

This change rename them properly for code consistency and also
refactor KeepalivePacketData to support different types of
KeepalivePacketData.

Bug: 114151147
Test: 1. atest FrameworksNetTests
      2. atest FrameworksWifiTests
      3. atest FrameworksTelephonyTests

Change-Id: Ia9917d12987e91e87e34ffb3f126e7bc7c9c187e
Merged-In: Ia9917d12987e91e87e34ffb3f126e7bc7c9c187e
2019-02-05 20:13:47 +09:00
Nandana Dutt
551906c296 Add error handling and other improvements to Bugreporting API
* Validate input arguments
* Ensure primary user
* Handle remote exceptions
* Pass error conditions to listener
* Ensure only one bugreport is in progress, at least via the API.

BUG: 123584708
BUG: 123571915
Test: Builds
Test: Manual; unit tests coming up

Change-Id: I4d1e0000fe815a02b82ce625864759fd818e6a24
2019-02-05 10:37:37 +00:00
Treehugger Robot
a75411975a Merge "Move CLIENT_PROTOCOL_VERSION to point of use" 2019-02-05 09:15:21 +00:00
Sooraj Sasindran
17ed973b1b Merge "Allow Privileged apps to read prefered data state" 2019-02-05 02:53:14 +00:00
Jordan Liu
8f7a989df5 Merge "CallAttributes.equals does deep check" 2019-02-05 00:59:31 +00:00
Sooraj Sasindran
96b977f796 Allow Privileged apps to read prefered data state
Allow Privileged apps to read prefered data state
Change ArrayList to List for public API

Bug: 122900079
Bug: 123697660
Test: verified manually
Change-Id: Ib1221a65edf554b700088d68505da137ccd7de5e
2019-02-04 16:25:59 -08:00
Treehugger Robot
256640541f Merge "Use default methods for MBMS group call callbacks" 2019-02-04 23:41:33 +00:00
Jordan Liu
8eaa95322b CallAttributes.equals does deep check
Also fix PreciseCallState.equals() to not return the opposite of equals.

Bug: 123363462
Test: CallAttributesTest
Change-Id: I7a9b65a01bc32ebfe304a0434a82bfe97929421c
2019-02-04 14:20:04 -08:00
Hall Liu
3d834a0e69 Merge "Unhide isRttSupported in TelephonyManager" 2019-02-04 21:15:04 +00:00
Treehugger Robot
171dfad60c Merge "Temporarily disable clang-tidy for dex_builder.cc." 2019-02-04 20:46:26 +00:00
Chih-Hung Hsieh
7ae7f169fb Temporarily disable clang-tidy for dex_builder.cc.
Bug: 123880763
Test: build with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=*,-readability-*,
-google-readability-*,-google-runtime-references,-cppcoreguidelines-*,
-modernize-*,-llvm-*,-bugprone-narrowing-conversions,
-misc-non-private-member-variables-in-classes,
-misc-unused-parameters,-hicpp-*,-fuchsia-*

Change-Id: I7be72b9db232a375bf7caf3b2dbeb9c6f7368a8e
2019-02-04 10:35:55 -08:00
Youming Ye
0d16222125 Merge "Add IntDef for SIP response code." 2019-02-04 18:03:32 +00:00
Orion Hodson
e649a56524 Move CLIENT_PROTOCOL_VERSION to point of use
Removes dependency on constant that was in libcore.

Bug: b/119742461
Test: m -j100 checkbuild
Change-Id: I1708652edf65789ef4bdb6e83568696f70f96bdd
2019-02-04 17:09:31 +00:00
Anton Hansson
5d7fc9568e Merge "Separate privapp grant for dialer" 2019-02-04 12:23:47 +00:00
Hans Boehm
1cbb20b2df Merge "Improve AsyncTask API documentation" 2019-02-04 01:20:56 +00:00
Suren Baghdasaryan
1e4b9d7583 Merge "Replace hardcoded cgroup paths" 2019-02-03 22:28:22 +00:00
Suren Baghdasaryan
9c9b025715 Replace hardcoded cgroup paths
Replace hardcoded cgroup paths with new processgroup library API calls,
include required headers. Add required dependencies.

Bug: 111307099
Test: builds, boots

Change-Id: Ic2dc2a94328cf1927fafaa9506537aeb213df413
Merged-In: Ic2dc2a94328cf1927fafaa9506537aeb213df413
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-02-02 17:03:41 +00:00
Chen Xu
996f047394 Merge "Add NR to preferred network type combination" 2019-02-02 01:24:00 +00:00
Amit Mahajan
13d5d5a1c8 Merge "Fix wrong userData length and excessive userData issues" 2019-02-01 22:25:37 +00:00
Pengquan Meng
b8e4cd87de Merge "Add signal strength converter" 2019-02-01 21:09:46 +00:00
Treehugger Robot
f96ebc501e Merge "[viewcompiler] Support more than 16 registers in invoke instructions" 2019-02-01 18:57:18 +00:00
Jordan Liu
84d250c18d Merge "Refresh cardId before using it." 2019-02-01 18:23:26 +00:00
Tyler Gunn
6e3a88a3e2 Merge "Deprecate acceptRingingCall and endCall." 2019-02-01 17:27:58 +00:00
Treehugger Robot
cf74daba15 Merge "Fix the wrong assignment" 2019-02-01 16:44:36 +00:00
Eran Messeri
0f9319ed1b Merge "Add owners for KeyChain code" 2019-02-01 12:51:51 +00:00
Kyeongkab.Nam
7a40f70c4a Fix the wrong assignment
the format value is erroneously assigned to sinkChannelMask.
Therefore, it modify to assign the format value to sinkFormat.

Test: manual
Change-Id: Iaa2f2cef0f1448a432279483b23e0057ae3ed381
2019-02-01 17:22:08 +09:00
Treehugger Robot
c72866785a Merge "Fix to register the receiver for all users" 2019-02-01 08:08:32 +00:00
Holly Jiuyu Sun
2638587995 Merge "Handle permission check for multi-active SIMs devices." 2019-02-01 04:16:50 +00:00
Treehugger Robot
1cb64c6a85 Merge "[viewcompiler] Add PrecompiledLayoutTest to TEST_MAPPING" 2019-02-01 02:50:31 +00:00
Hans Boehm
13060ffbd8 Improve AsyncTask API documentation
Bug: 34278255
Test: TreeHugger
Change-Id: I0347072112254f98d257a72ef1fc7c21b086df39
2019-01-31 17:36:36 -08:00
Pengquan Meng
45fcd30fb0 Add signal strength converter
This add a converter for SignalStrength response and indication.

Bug: 123532650
Test: build & current test
Change-Id: Id4cf874f6cc1798c732d6afb4a22f4d6bc4047fd
2019-01-31 17:32:32 -08:00
Jordan Liu
ed3af9f960 Merge "Fix read/write parcel of CallAttributes" 2019-02-01 01:20:53 +00:00
Taesu Lee
309fc2d4a8 Fix wrong userData length and excessive userData issues
Added checking size excess in encodeUCS2() and an exception cause in
EncodeException to distinguish between unencodable char and size excess.
It will prevent wrong userData length and excessive userData issues
during encoding userData. Please see below one issue scenario.

stringToGsm7BitPackedWithHeader() throws an EncodeException when
septeCount > 255. The EncodeException is caught and encoding again
through encodeUCS2(). However, the length of encoded userData as UCS-2
is converted as Byte without checking size excess. Thus first byte of
userData will be wrong and total userData will exceed maximum User Data.

Test: Manual

Change-Id: Ib6df5484072d77548e8adcbcbd15ad7a401c99f8
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-02-01 08:51:56 +09:00
Brad Ebinger
3811aba3a4 Merge "Add new ImsException to better handle ImsService errors" 2019-01-31 23:26:57 +00:00
Eric Holk
d1b4383660 [viewcompiler] Support more than 16 registers in invoke instructions
This was causing the viewcompiler to crash on deeper layout hierarchies.

We fix this by reserving several scratch registers. When an invoke instruction
uses registers that don't fit in a 4-bit field, we move all of these values into
the scratch registers and use an invoke/range instruction instead. The scratch
registers are all above the highest allocated register, so they are guaranteed
not to clobber meaningful values.

Supporting more registers for invoke also required supporting
register-to-register moves, which some how we'd gotten by without so far.

Finally, to make viewcompiler fail more loudly when things go wrong, many
DCHECKs have been changed to CHECKs.

Bug: 123517491
Test: atest
Change-Id: I9eb7c9bcf1fc7d713e664b331804bdcddafc95a4
2019-01-31 15:15:14 -08:00
Holly Jiuyu Sun
d0b187b204 Refresh cardId before using it.
Bug: 122978614
Bug: 111614811
Test: on phone
Change-Id: I30d70b839f05183ad201a114ea12c79c730f4206
Merged-In: I30d70b839f05183ad201a114ea12c79c730f4206
2019-01-31 14:46:33 -08:00
Peter Kalauskas
b9e216c2b6 Merge "Update android.hidl.manager-V1.0-java to V1.2" 2019-01-31 22:05:47 +00:00
Peter Kalauskas
65589e9563 Update android.hidl.manager-V1.0-java to V1.2
Test: Manual
Bug: 123307146
Change-Id: I8dcd291c187af2cb20fd9a8f09bd55e75a2762e1
2019-01-31 21:40:12 +00:00
Eric Holk
8c933e5a9d [viewcompiler] Add PrecompiledLayoutTest to TEST_MAPPING
PrecompiledLayoutTest makes sure that layouts generated by the viewcompiler are
equivalent to inflating from the resource XML file. We'll want to run these
tests when making changes to the viewcompiler.

Bug: 111895153
Test: atest
Change-Id: Iffa6f0f01c3f43d43feaabd1a5cd36be76650975
2019-01-31 21:22:06 +00:00
Jordan Liu
6192edb752 Fix read/write parcel of CallAttributes
Fixes: 123363462
Test: manual
Change-Id: I947005d43930ad136e5d6933c950d0f27f8fbadd
2019-01-31 20:03:30 +00:00
Hall Liu
5a0f2501c5 Unhide isRttSupported in TelephonyManager
Was hidden due to development process and never unhidden.

Change-Id: I1ef35e9988ad45491b2098628024f8d96b11ae3b
Fixes: 119620879
Test: compiles
2019-01-31 11:44:36 -08:00
Treehugger Robot
f9ec508556 Merge "Do not generate greylist if UNSAFE_DISABLE_HIDDENAPI_FLAGS=true" 2019-01-31 19:25:59 +00:00
Tyler Gunn
9bd8db4af7 Deprecate acceptRingingCall and endCall.
These APIs are replaced by CallScreeningService and the new
companion app roles in InCallService.

Test: Update Apis and verify deprecated.
Bug: 63966743
Change-Id: Ib4c4ac6b723ccd46d3052fb2b9c9f58b3151cc29
2019-01-31 10:54:03 -08:00
Remi NGUYEN VAN
a5a7af11d7 Merge "Compile CaptivePortalLogin as system_current" 2019-01-31 15:01:49 +00:00
Howard Chen
0b2057db02 Merge "Add the DynamicAndroid Service" 2019-01-31 14:35:49 +00:00
Remi NGUYEN VAN
0fe59007ce Merge "Add NetworkStackPermissionStub definitions" 2019-01-31 14:13:22 +00:00
Remi NGUYEN VAN
74b1c8626e Merge "Prepare CaptivePortalLogin for system_current" 2019-01-31 12:46:00 +00:00
Remi NGUYEN VAN
d8c75a0438 Add NetworkStackPermissionStub definitions
The NetworkStackPermissionStub package is used to enforce that
permissions used by the NetworkStack are only used in packages
sharing signature with NetworkStackPermissionStub.

Permissions defined in this package are intended to be used only by the
NetworkStack: both NetworkStack and the stub APK will be signed with
a dedicated certificate to ensure that, with permissions being signature
permissions.

This APK *must* be installed, even if the NetworkStack app is not
installed, because otherwise, any application will be able to define
this permission and the system will give that application full access
to the network stack.

Test: flashed, booted
Bug: 112869080
Change-Id: Ia13a9e6a703cb7b4403697a7f7bfff0f6f3b813e
2019-01-31 21:16:13 +09:00