Commit Graph

379417 Commits

Author SHA1 Message Date
Remi NGUYEN VAN
dc48356147 Add API for NetworkStack to start captive portal
Endpoints protected with INTERACT_ACROSS_USERS_FULL, such as
startActivityAsUser, should only be used by modules signed with the
platform cert. The NetworkStack needs to have the system server start
the application so this restriction can be applied.

Bug: 123846255
Test: flashed, captive portal works from primary and secondary user
Change-Id: Ib3e427b3fd03ced80c02985e795f79b096a2ec9a
2019-02-06 16:38:32 +09:00
Tyler Gunn
d6471064e9 Merge "Add nuisance call reporting API to Telecom." 2019-02-05 21:23:15 +00:00
Treehugger Robot
3fdbf46ac1 Merge "Update the Hearing Aids Strings" 2019-02-05 20:20:51 +00:00
Santos Cordon
a65ac91cbd Merge "Migrate suspend HAL interactions to new suspend control AIDL." 2019-02-05 18:03:55 +00:00
Santos Cordon
a87857e5a4 Migrate suspend HAL interactions to new suspend control AIDL.
Use the new Suspend Control Service AIDL definition to communicate with
the suspend HAL instead of using the HAL interface directly.

Bug: 121210355
Test: manual - verify auto-suspend loop is still processing.
Change-Id: I61cf05a8095f9d121fafb862def8239b325a7f43
Merged-In: I61cf05a8095f9d121fafb862def8239b325a7f43
2019-02-05 18:03:12 +00:00
Nathan Harold
fcd1db63bd Merge "Track Multiple Event Instances in EventReporter" 2019-02-05 17:59:57 +00:00
Nathan Harold
ef4110074e Merge "Add a Telephony Debug Surface" 2019-02-05 17:59:14 +00:00
Chalard Jean
292da961e6 Merge "[KA02] internal cleanup and refactor for SocketKeepalive" 2019-02-05 17:56:02 +00:00
Tyler Gunn
c30ce782c0 Add nuisance call reporting API to Telecom.
Adding new nuisance call reporting API to Telecom. Dialer will use this
to report to Telecom when the user marks a call as nuisance or not
nuisance.  We relay this to the CallScreeningService the user has chosen
to fill the call screening role, along with some basic information about
the call type (missed, rejected, incoming) and a the coarse call duration
bucket.  These values can be used by the CallScreeningService to train
the nuisance detection model it employs.

Test: Manual tested using test app.
Test: Added new CTS test coverage.
Test: Added unit tests to Telecom
Bug: 63966743
Merged-In: I389617491f640afd9ca28ec3f247912365e6cc53
Change-Id: I389617491f640afd9ca28ec3f247912365e6cc53
2019-02-05 08:42:15 -08: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
Nathan Harold
821857f776 Track Multiple Event Instances in EventReporter
To avoid spamming users or the debug app with debug
events, the DebugEventReporter will now track each
event it receives and only send a single intent for
each event signature per boot. In the future, some
other method of persistence (such as per-build) might
be preferable, but this should mitigate any looping
events.

In addition, add dump() to the event reporter so that
even if there is no debug app installed, or in case
an event happens multiple times, it can be observed
through a bugreport.

Bug: 120941729
Test: dump and observe that the events are printed.
Change-Id: Iaf04a308a29bc074acfaa16b9e70947761759181
2019-02-04 14:54:48 -08:00
Nathan Harold
948195bb01 Add a Telephony Debug Surface
This commit adds a small surface to allow telephony
to generate events for an external logger to capture
and use to take action such as gathering bugreports
or proprietary logs.

The event-IDs are considered non-stable, so they may
change from release to release or device to device.

Bug: 120941729
Test: manually tested by modifying Settings. Further
      tests will require the creation of a package
      that has READ_PRIVILEGED_PHONE_STATE.
Change-Id: I6360dab2d997d518ebd5f38a72fe88801e693bb7
2019-02-04 14:34:48 -08: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
Stanley Tng
73fcb83273 Update the Hearing Aids Strings
Minor update to the Hearing Aids string by making it plural.

Bug: 121036176
Test: Compile
Change-Id: I2745d797923f896e91c3146ca907cca85d5099e4
2019-02-02 17:56:58 +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