OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Use correct PLMN info for an incoming CB-SMS"
Amit Mahajan [Thu, 7 Feb 2019 01:30:09 +0000 (01:30 +0000)]
Merge "Use correct PLMN info for an incoming CB-SMS"

5 years agoMerge "Update navigation bar upon change of display density"
Treehugger Robot [Wed, 6 Feb 2019 23:44:05 +0000 (23:44 +0000)]
Merge "Update navigation bar upon change of display density"

5 years agoMerge "Work around clang-tidy bug in dex_builder.cc."
Chih-hung Hsieh [Wed, 6 Feb 2019 22:01:44 +0000 (22:01 +0000)]
Merge "Work around clang-tidy bug in dex_builder.cc."

5 years agoMerge "Add connect time to conference participant."
Youming Ye [Wed, 6 Feb 2019 21:55:06 +0000 (21:55 +0000)]
Merge "Add connect time to conference participant."

5 years agoMerge "Atom: Add BluetoothSocketConnectionStateChanged"
Treehugger Robot [Wed, 6 Feb 2019 20:36:24 +0000 (20:36 +0000)]
Merge "Atom: Add BluetoothSocketConnectionStateChanged"

5 years agoAtom: Add BluetoothSocketConnectionStateChanged
Jack He [Thu, 31 Jan 2019 01:24:55 +0000 (17:24 -0800)]
Atom: Add BluetoothSocketConnectionStateChanged

* Logs when a Bluetooth socket's connection state is changed
* A Bluetooth socket can be:
  - RFCOMM socket
  - SCO socket
  - BR/EDR L2CAP socket
  - BLE L2CAP socket

Bug: 112969790
Test: make, test drive with statsd
Change-Id: I97b1e650e197a0dad1e2959e2f5b4dd98370d892
Merged-In: I97b1e650e197a0dad1e2959e2f5b4dd98370d892
(cherry picked from commit 815cdbaae0577654a6c019abbbd6d596e8cdb703)

5 years agoMerge "Revert "Minimum viable TimeZoneDetectorService""
Neil Fuller [Wed, 6 Feb 2019 18:02:38 +0000 (18:02 +0000)]
Merge "Revert "Minimum viable TimeZoneDetectorService""

5 years agoMerge "[KA07] Drop TCP keepalive ack packets"
Chalard Jean [Wed, 6 Feb 2019 17:54:28 +0000 (17:54 +0000)]
Merge "[KA07] Drop TCP keepalive ack packets"

5 years agoMerge "Implementation of RcsMessageStore APIs [base]"
Sahin Caliskan [Wed, 6 Feb 2019 17:44:09 +0000 (17:44 +0000)]
Merge "Implementation of RcsMessageStore APIs [base]"

5 years agoMerge "Fix reference leak on TvInputManagerService"
nchalko [Wed, 6 Feb 2019 16:33:19 +0000 (16:33 +0000)]
Merge "Fix reference leak on TvInputManagerService"

5 years agoImplementation of RcsMessageStore APIs [base]
Sahin Caliskan [Thu, 24 Jan 2019 22:32:12 +0000 (14:32 -0800)]
Implementation of RcsMessageStore APIs [base]

This change adds the implementation of RcsMessageStore. Please see the
bug for the design and one-pager

Test: Added unit tests

Bug: 109759350
Change-Id: I6049dcf74ef9e19a38ce58148a89497992bc1c98

5 years agoMerge "[KA04] Expose TCP socket keepalive API"
Chalard Jean [Wed, 6 Feb 2019 15:13:02 +0000 (15:13 +0000)]
Merge "[KA04] Expose TCP socket keepalive API"

5 years ago[KA07] Drop TCP keepalive ack packets
Aaron Huang [Tue, 15 Jan 2019 08:53:51 +0000 (16:53 +0800)]
[KA07] Drop TCP keepalive ack packets

To support TCP keepalive offload, APF filter needs to add program
for dropping keepalive ack packets when offload is starting.

Bug: 114151147
Test: runtest frameworks-net -c android.net.apf.ApfTest
Change-Id: If16a9bc04eb29dfedb950b6e4c85fe9ad4cf259f

5 years ago[KA04] Expose TCP socket keepalive API
junyulai [Tue, 8 Jan 2019 12:04:33 +0000 (20:04 +0800)]
[KA04] Expose TCP socket keepalive API

The new set of API allows applications to request keepalives
offload for established TCP sockets over wifi.

However, the application must not write to or read from the
socket after calling this method, until specific callbacks are
called.

Bug: 114151147
Test: atest FrameworksNetTests FrameworksWifiTests NetworkStackTests

Change-Id: I3880505dbc35fefa34ef6c79555458ecf5d296a4

5 years agoMerge "Add Os.bind, Os.sendTo to public API"
Remi NGUYEN VAN [Wed, 6 Feb 2019 10:58:54 +0000 (10:58 +0000)]
Merge "Add Os.bind, Os.sendTo to public API"

5 years agoFix reference leak on TvInputManagerService
Kyeongkab.Nam [Wed, 16 Jan 2019 01:44:37 +0000 (10:44 +0900)]
Fix reference leak on TvInputManagerService

Fix reference leak when TV input changed.

Test: 1. Modify to call android.os.Debug.dumpReferenceTables() in
TvInputManagerService#onServiceConnected
2. Build and run
3. Repeat to launch and finish TV player application with logcat output
4. Confirm Global Reference Table information on logcat whether
reference increase

Change-Id: I9b9896115088d8b179a9cf29ddca88e8a8fa529a

5 years agoMerge "[KA03.5] Add stable AIDL parcelable for TcpKeepalivePacketData"
Chalard Jean [Wed, 6 Feb 2019 09:19:07 +0000 (09:19 +0000)]
Merge "[KA03.5] Add stable AIDL parcelable for TcpKeepalivePacketData"

5 years agoMerge "Deprecate getActiveLinkProperties."
Treehugger Robot [Wed, 6 Feb 2019 08:32:10 +0000 (08:32 +0000)]
Merge "Deprecate getActiveLinkProperties."

5 years agoMerge "Give owneship of packages/NetworkStack to Android Core Networking"
Bernie Innocenti [Wed, 6 Feb 2019 07:22:01 +0000 (07:22 +0000)]
Merge "Give owneship of packages/NetworkStack to Android Core Networking"

5 years agoGive owneship of packages/NetworkStack to Android Core Networking
Bernie Innocenti [Wed, 6 Feb 2019 06:21:09 +0000 (15:21 +0900)]
Give owneship of packages/NetworkStack to Android Core Networking

Test: ../../build/make/tools/checkowners.py packages/NetworkStack/OWNERS
Change-Id: I6254f1ac2a24611ca6901f8f940d9e5babaaf373

5 years agoDeprecate getActiveLinkProperties.
Chalard Jean [Fri, 11 Jan 2019 07:47:53 +0000 (16:47 +0900)]
Deprecate getActiveLinkProperties.

There are other, more idiomatic ways to do this. Deprecating this
with usage limited to P will curb usage and reduce the maintenance
load.
This also deprecates the extra EXTRA_NETWORK_TYPE, which has
survived from an old world but has only been used in deprecated
broadcasts for some time.

Bug: 109783091
Test: eyeball current.txt
Change-Id: I87b74833bb4ec362ee3fd07511a66d318c29067d

5 years agoMerge "[KA03] Support tcp keepalive offload"
Chalard Jean [Wed, 6 Feb 2019 06:06:53 +0000 (06:06 +0000)]
Merge "[KA03] Support tcp keepalive offload"

5 years agoMerge "Add more android-core-netwoking members to android_net_* jni"
Bernie Innocenti [Wed, 6 Feb 2019 06:05:05 +0000 (06:05 +0000)]
Merge "Add more android-core-netwoking members to android_net_* jni"

5 years agoAdd more android-core-netwoking members to android_net_* jni
Bernie Innocenti [Wed, 6 Feb 2019 04:40:58 +0000 (13:40 +0900)]
Add more android-core-netwoking members to android_net_* jni

Would have been good to include platform/system/netd:/OWNERS here, but
per-file and include don't seem to play well together.

Test: N/A
Change-Id: Ie7a481c655fb76040eaff29a8ad249e32f5b525f

5 years ago[KA03.5] Add stable AIDL parcelable for TcpKeepalivePacketData
junyulai [Wed, 30 Jan 2019 11:11:45 +0000 (19:11 +0800)]
[KA03.5] Add stable AIDL parcelable for TcpKeepalivePacketData

Bug: 114151147
Test: atest FrameworksNetTests
Change-Id: I057dde79013b9eda5037b9a44f8eee06cc07352e

5 years ago[KA03] Support tcp keepalive offload
markchien [Thu, 27 Dec 2018 14:49:51 +0000 (22:49 +0800)]
[KA03] Support tcp keepalive offload

When offload is starting, socket will be switched to repair
mode. Read and write on the socket will not be allowed until
repair mode is turned off. If remote packet arrives, repair
mode will be turned off automatically and a callback will
be raised to indicate that socket is ready to read from.

Bug: 114151147
Test: -atest FrameworksNetTests
      -manual

Change-Id: I0c335865912e183e7ad32a8ea12188f02ccde5fd

5 years agoUpdate navigation bar upon change of display density
rleix [Tue, 14 Aug 2018 02:57:39 +0000 (10:57 +0800)]
Update navigation bar upon change of display density

Restart the navigation bar upon change of density or font scale, then
the facet buttons of navigation bar will be scaled properly.

Test: Settings->Display->Advanced->Display size->Largest

bug: 122563094

Change-Id: I6d2d7ac4a801fac6f30bb78acee4c00ec2c4e507
Merged-In: I6d2d7ac4a801fac6f30bb78acee4c00ec2c4e507
Signed-off-by: Lei,RayX <rayx.lei@intel.com>
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
Exempt-from-Owner-Approval: Car specific file

5 years agoWork around clang-tidy bug in dex_builder.cc.
Chih-Hung Hsieh [Wed, 6 Feb 2019 01:08:30 +0000 (17:08 -0800)]
Work around clang-tidy bug in 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: Ibf80f951ae2369a55570770febe8a1c4422181e1

5 years agoMerge "Add nuisance call reporting API to Telecom."
Tyler Gunn [Tue, 5 Feb 2019 21:23:15 +0000 (21:23 +0000)]
Merge "Add nuisance call reporting API to Telecom."

5 years agoMerge "Update the Hearing Aids Strings"
Treehugger Robot [Tue, 5 Feb 2019 20:20:51 +0000 (20:20 +0000)]
Merge "Update the Hearing Aids Strings"

5 years agoMerge "Migrate suspend HAL interactions to new suspend control AIDL."
Santos Cordon [Tue, 5 Feb 2019 18:03:55 +0000 (18:03 +0000)]
Merge "Migrate suspend HAL interactions to new suspend control AIDL."

5 years agoMigrate suspend HAL interactions to new suspend control AIDL.
Santos Cordon [Wed, 30 Jan 2019 01:39:44 +0000 (01:39 +0000)]
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

5 years agoMerge "Track Multiple Event Instances in EventReporter"
Nathan Harold [Tue, 5 Feb 2019 17:59:57 +0000 (17:59 +0000)]
Merge "Track Multiple Event Instances in EventReporter"

5 years agoMerge "Add a Telephony Debug Surface"
Nathan Harold [Tue, 5 Feb 2019 17:59:14 +0000 (17:59 +0000)]
Merge "Add a Telephony Debug Surface"

5 years agoMerge "[KA02] internal cleanup and refactor for SocketKeepalive"
Chalard Jean [Tue, 5 Feb 2019 17:56:02 +0000 (17:56 +0000)]
Merge "[KA02] internal cleanup and refactor for SocketKeepalive"

5 years agoAdd nuisance call reporting API to Telecom.
Tyler Gunn [Wed, 16 Jan 2019 18:42:14 +0000 (10:42 -0800)]
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

5 years agoMerge "Add error handling and other improvements to Bugreporting API"
Nandana Dutt [Tue, 5 Feb 2019 13:48:13 +0000 (13:48 +0000)]
Merge "Add error handling and other improvements to Bugreporting API"

5 years ago[KA02] internal cleanup and refactor for SocketKeepalive
junyulai [Thu, 3 Jan 2019 10:50:15 +0000 (18:50 +0800)]
[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

5 years agoAdd error handling and other improvements to Bugreporting API
Nandana Dutt [Wed, 23 Jan 2019 09:51:49 +0000 (09:51 +0000)]
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

5 years agoMerge "Move CLIENT_PROTOCOL_VERSION to point of use"
Treehugger Robot [Tue, 5 Feb 2019 09:15:21 +0000 (09:15 +0000)]
Merge "Move CLIENT_PROTOCOL_VERSION to point of use"

5 years agoMerge "Allow Privileged apps to read prefered data state"
Sooraj Sasindran [Tue, 5 Feb 2019 02:53:14 +0000 (02:53 +0000)]
Merge "Allow Privileged apps to read prefered data state"

5 years agoMerge "CallAttributes.equals does deep check"
Jordan Liu [Tue, 5 Feb 2019 00:59:31 +0000 (00:59 +0000)]
Merge "CallAttributes.equals does deep check"

5 years agoAllow Privileged apps to read prefered data state
Sooraj Sasindran [Thu, 31 Jan 2019 18:06:04 +0000 (10:06 -0800)]
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

5 years agoMerge "Use default methods for MBMS group call callbacks"
Treehugger Robot [Mon, 4 Feb 2019 23:41:33 +0000 (23:41 +0000)]
Merge "Use default methods for MBMS group call callbacks"

5 years agoTrack Multiple Event Instances in EventReporter
Nathan Harold [Sat, 2 Feb 2019 01:43:09 +0000 (17:43 -0800)]
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

5 years agoAdd a Telephony Debug Surface
Nathan Harold [Mon, 14 Jan 2019 20:00:06 +0000 (12:00 -0800)]
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

5 years agoCallAttributes.equals does deep check
Jordan Liu [Mon, 4 Feb 2019 20:24:57 +0000 (12:24 -0800)]
CallAttributes.equals does deep check

Also fix PreciseCallState.equals() to not return the opposite of equals.

Bug: 123363462
Test: CallAttributesTest
Change-Id: I7a9b65a01bc32ebfe304a0434a82bfe97929421c

5 years agoMerge "Unhide isRttSupported in TelephonyManager"
Hall Liu [Mon, 4 Feb 2019 21:15:04 +0000 (21:15 +0000)]
Merge "Unhide isRttSupported in TelephonyManager"

5 years agoMerge "Temporarily disable clang-tidy for dex_builder.cc."
Treehugger Robot [Mon, 4 Feb 2019 20:46:26 +0000 (20:46 +0000)]
Merge "Temporarily disable clang-tidy for dex_builder.cc."

5 years agoTemporarily disable clang-tidy for dex_builder.cc.
Chih-Hung Hsieh [Mon, 4 Feb 2019 18:35:55 +0000 (10:35 -0800)]
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

5 years agoAdd connect time to conference participant.
Youming Ye [Wed, 30 Jan 2019 19:20:35 +0000 (11:20 -0800)]
Add connect time to conference participant.

Bug: 78176188
Test: Manual
Change-Id: Ifb7f061ddcc69356a21d08c9c446edeb38a6674c

5 years agoMerge "Add IntDef for SIP response code."
Youming Ye [Mon, 4 Feb 2019 18:03:32 +0000 (18:03 +0000)]
Merge "Add IntDef for SIP response code."

5 years agoMove CLIENT_PROTOCOL_VERSION to point of use
Orion Hodson [Mon, 4 Feb 2019 16:54:24 +0000 (16:54 +0000)]
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

5 years agoMerge "Separate privapp grant for dialer"
Anton Hansson [Mon, 4 Feb 2019 12:23:47 +0000 (12:23 +0000)]
Merge "Separate privapp grant for dialer"

5 years agoMerge "Improve AsyncTask API documentation"
Hans Boehm [Mon, 4 Feb 2019 01:20:56 +0000 (01:20 +0000)]
Merge "Improve AsyncTask API documentation"

5 years agoMerge "Replace hardcoded cgroup paths"
Suren Baghdasaryan [Sun, 3 Feb 2019 22:28:22 +0000 (22:28 +0000)]
Merge "Replace hardcoded cgroup paths"

5 years agoUpdate the Hearing Aids Strings
Stanley Tng [Sat, 2 Feb 2019 02:11:17 +0000 (18:11 -0800)]
Update the Hearing Aids Strings

Minor update to the Hearing Aids string by making it plural.

Bug: 121036176
Test: Compile
Change-Id: I2745d797923f896e91c3146ca907cca85d5099e4

5 years agoReplace hardcoded cgroup paths
Suren Baghdasaryan [Fri, 14 Dec 2018 18:32:22 +0000 (10:32 -0800)]
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>
5 years agoMerge "Add NR to preferred network type combination"
Chen Xu [Sat, 2 Feb 2019 01:24:00 +0000 (01:24 +0000)]
Merge "Add NR to preferred network type combination"

5 years agoMerge "Fix wrong userData length and excessive userData issues"
Amit Mahajan [Fri, 1 Feb 2019 22:25:37 +0000 (22:25 +0000)]
Merge "Fix wrong userData length and excessive userData issues"

5 years agoMerge "Add signal strength converter"
Pengquan Meng [Fri, 1 Feb 2019 21:09:46 +0000 (21:09 +0000)]
Merge "Add signal strength converter"

5 years agoMerge "[viewcompiler] Support more than 16 registers in invoke instructions"
Treehugger Robot [Fri, 1 Feb 2019 18:57:18 +0000 (18:57 +0000)]
Merge "[viewcompiler] Support more than 16 registers in invoke instructions"

5 years agoMerge "Refresh cardId before using it."
Jordan Liu [Fri, 1 Feb 2019 18:23:26 +0000 (18:23 +0000)]
Merge "Refresh cardId before using it."

5 years agoMerge "Deprecate acceptRingingCall and endCall."
Tyler Gunn [Fri, 1 Feb 2019 17:27:58 +0000 (17:27 +0000)]
Merge "Deprecate acceptRingingCall and endCall."

5 years agoMerge "Fix the wrong assignment"
Treehugger Robot [Fri, 1 Feb 2019 16:44:36 +0000 (16:44 +0000)]
Merge "Fix the wrong assignment"

5 years agoRevert "Minimum viable TimeZoneDetectorService"
Neil Fuller [Fri, 26 Oct 2018 10:46:06 +0000 (11:46 +0100)]
Revert "Minimum viable TimeZoneDetectorService"

Remove the stubbed TimeZoneDetectorService. Priorities
dictated that it not be worked on so it has never been
used.

This reverts commit 7fb88c3928b6fef1f3d559ea23468ccd1379bd49.

Bug: 112827764
Bug: 78217059
Test: build / boot
Change-Id: I39ed2fc7f8de8d4b2c0d883cd264cc126579af27
Merged-In: I39ed2fc7f8de8d4b2c0d883cd264cc126579af27
(cherry picked from commit f4894d391b9f335cec5c7eb483212a998b7bbe19)

5 years agoMerge "Add owners for KeyChain code"
Eran Messeri [Fri, 1 Feb 2019 12:51:51 +0000 (12:51 +0000)]
Merge "Add owners for KeyChain code"

5 years agoFix the wrong assignment
Kyeongkab.Nam [Fri, 1 Feb 2019 02:51:02 +0000 (11:51 +0900)]
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

5 years agoMerge "Fix to register the receiver for all users"
Treehugger Robot [Fri, 1 Feb 2019 08:08:32 +0000 (08:08 +0000)]
Merge "Fix to register the receiver for all users"

5 years agoMerge "Handle permission check for multi-active SIMs devices."
Holly Jiuyu Sun [Fri, 1 Feb 2019 04:16:50 +0000 (04:16 +0000)]
Merge "Handle permission check for multi-active SIMs devices."

5 years agoMerge "[viewcompiler] Add PrecompiledLayoutTest to TEST_MAPPING"
Treehugger Robot [Fri, 1 Feb 2019 02:50:31 +0000 (02:50 +0000)]
Merge "[viewcompiler] Add PrecompiledLayoutTest to TEST_MAPPING"

5 years agoImprove AsyncTask API documentation
Hans Boehm [Fri, 1 Feb 2019 01:22:55 +0000 (17:22 -0800)]
Improve AsyncTask API documentation

Bug: 34278255
Test: TreeHugger
Change-Id: I0347072112254f98d257a72ef1fc7c21b086df39

5 years agoAdd signal strength converter
Pengquan Meng [Fri, 1 Feb 2019 00:29:43 +0000 (16:29 -0800)]
Add signal strength converter

This add a converter for SignalStrength response and indication.

Bug: 123532650
Test: build & current test
Change-Id: Id4cf874f6cc1798c732d6afb4a22f4d6bc4047fd

5 years agoMerge "Fix read/write parcel of CallAttributes"
Jordan Liu [Fri, 1 Feb 2019 01:20:53 +0000 (01:20 +0000)]
Merge "Fix read/write parcel of CallAttributes"

5 years agoFix wrong userData length and excessive userData issues
Taesu Lee [Thu, 31 Jan 2019 05:38:56 +0000 (14:38 +0900)]
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>
5 years agoMerge "Add new ImsException to better handle ImsService errors"
Brad Ebinger [Thu, 31 Jan 2019 23:26:57 +0000 (23:26 +0000)]
Merge "Add new ImsException to better handle ImsService errors"

5 years ago[viewcompiler] Support more than 16 registers in invoke instructions
Eric Holk [Tue, 29 Jan 2019 16:32:42 +0000 (08:32 -0800)]
[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

5 years agoRefresh cardId before using it.
Holly Jiuyu Sun [Wed, 30 Jan 2019 23:25:24 +0000 (15:25 -0800)]
Refresh cardId before using it.

Bug: 122978614
Bug: 111614811
Test: on phone
Change-Id: I30d70b839f05183ad201a114ea12c79c730f4206
Merged-In: I30d70b839f05183ad201a114ea12c79c730f4206

5 years agoMerge "Update android.hidl.manager-V1.0-java to V1.2"
Peter Kalauskas [Thu, 31 Jan 2019 22:05:47 +0000 (22:05 +0000)]
Merge "Update android.hidl.manager-V1.0-java to V1.2"

5 years agoUpdate android.hidl.manager-V1.0-java to V1.2
Peter Kalauskas [Tue, 22 Jan 2019 23:41:59 +0000 (15:41 -0800)]
Update android.hidl.manager-V1.0-java to V1.2

Test: Manual
Bug: 123307146
Change-Id: I8dcd291c187af2cb20fd9a8f09bd55e75a2762e1

5 years ago[viewcompiler] Add PrecompiledLayoutTest to TEST_MAPPING
Eric Holk [Mon, 28 Jan 2019 23:16:52 +0000 (15:16 -0800)]
[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

5 years agoFix read/write parcel of CallAttributes
Jordan Liu [Wed, 30 Jan 2019 23:35:44 +0000 (15:35 -0800)]
Fix read/write parcel of CallAttributes

Fixes: 123363462
Test: manual
Change-Id: I947005d43930ad136e5d6933c950d0f27f8fbadd

5 years agoUnhide isRttSupported in TelephonyManager
Hall Liu [Thu, 31 Jan 2019 19:37:45 +0000 (11:37 -0800)]
Unhide isRttSupported in TelephonyManager

Was hidden due to development process and never unhidden.

Change-Id: I1ef35e9988ad45491b2098628024f8d96b11ae3b
Fixes: 119620879
Test: compiles

5 years agoMerge "Do not generate greylist if UNSAFE_DISABLE_HIDDENAPI_FLAGS=true"
Treehugger Robot [Thu, 31 Jan 2019 19:25:59 +0000 (19:25 +0000)]
Merge "Do not generate greylist if UNSAFE_DISABLE_HIDDENAPI_FLAGS=true"

5 years agoDeprecate acceptRingingCall and endCall.
Tyler Gunn [Thu, 31 Jan 2019 18:54:03 +0000 (10:54 -0800)]
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

5 years agoMerge "Compile CaptivePortalLogin as system_current"
Remi NGUYEN VAN [Thu, 31 Jan 2019 15:01:49 +0000 (15:01 +0000)]
Merge "Compile CaptivePortalLogin as system_current"

5 years agoMerge "Add the DynamicAndroid Service"
Howard Chen [Thu, 31 Jan 2019 14:35:49 +0000 (14:35 +0000)]
Merge "Add the DynamicAndroid Service"

5 years agoMerge "Add NetworkStackPermissionStub definitions"
Remi NGUYEN VAN [Thu, 31 Jan 2019 14:13:22 +0000 (14:13 +0000)]
Merge "Add NetworkStackPermissionStub definitions"

5 years agoMerge "Prepare CaptivePortalLogin for system_current"
Remi NGUYEN VAN [Thu, 31 Jan 2019 12:46:00 +0000 (12:46 +0000)]
Merge "Prepare CaptivePortalLogin for system_current"

5 years agoAdd NetworkStackPermissionStub definitions
Remi NGUYEN VAN [Wed, 30 Jan 2019 12:45:56 +0000 (21:45 +0900)]
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

5 years agoMerge "Fix bluetooth tethering on multi-user"
Remi NGUYEN VAN [Thu, 31 Jan 2019 11:53:53 +0000 (11:53 +0000)]
Merge "Fix bluetooth tethering on multi-user"

5 years agoAdd owners for KeyChain code
Eran Messeri [Thu, 31 Jan 2019 11:48:40 +0000 (11:48 +0000)]
Add owners for KeyChain code

Add the Android Enterprise Security team as OWNERS for KeyChain and
KeyChain-related code.

The KeyChain code currently lives under keystore/, which means every
change requires Keystore owners approval, but it does not make sense for
KeyChain as KeyChain is a Keystore client and is developed
independently.

Test: Gerritt upload.
Bug: 33166666
Change-Id: Idfedda9553add303439179ce10a1e75e437bbe83

5 years agoCompile CaptivePortalLogin as system_current
Remi NGUYEN VAN [Wed, 30 Jan 2019 15:16:27 +0000 (00:16 +0900)]
Compile CaptivePortalLogin as system_current

Test: make CaptivePortalLogin
Test: flashed, boots, login works
Bug: 112869080
Change-Id: I955c1b111ce76262fe20f5891b1853de0889f4b8

5 years agoPrepare CaptivePortalLogin for system_current
Remi NGUYEN VAN [Wed, 30 Jan 2019 14:39:24 +0000 (23:39 +0900)]
Prepare CaptivePortalLogin for system_current

Includes small changes to stop using non-SystemApi endpoints.

Test: make CaptivePortalLogin
Test: flashed, login works, SSL certificate invalid flow works
Bug: 112869080
Merged-In: Ic6ce98942959705ea7ef14a7a62d33e3abf7eb72
Change-Id: Ie7ea3bab6aa8629ce4c111adee0c0699d95d4b0e

5 years agoAdd NR to preferred network type combination
chen xu [Thu, 31 Jan 2019 08:44:52 +0000 (00:44 -0800)]
Add NR to preferred network type combination

This add NR 5G to preferred network type and move preferredNetworkMode
from SystemApi to hidden api as we are not going to support
preferredNetworMode enum in the future.

Bug: 111453000
Test: build
Change-Id: I08a8f7bf44a62ef109583b82b22f65fd6f89c71d
(cherry picked from commit 8bcdc4cf66e9d654fa31d7c62654ff81ee04cdc6)
Merged-in: I08a8f7bf44a62ef109583b82b22f65fd6f89c71d

5 years agoMerge changes from topic "bindprocess-resolv"
Remi NGUYEN VAN [Thu, 31 Jan 2019 07:52:04 +0000 (07:52 +0000)]
Merge changes from topic "bindprocess-resolv"

* changes:
  Allow use of bindProcessToNetwork only to change private DNS bypass.
  Allow bypassing private DNS via bindProcessToNetwork.

5 years agoMerge "Add get last entitlement value callback API"
Mark Chien [Thu, 31 Jan 2019 07:23:31 +0000 (07:23 +0000)]
Merge "Add get last entitlement value callback API"

5 years agoAdd the DynamicAndroid Service
Howard Chen [Mon, 7 Jan 2019 06:10:44 +0000 (14:10 +0800)]
Add the DynamicAndroid Service

  Define the DynamicAndroid with AIDL.
  Add a java implementation.
  Start a service instance in the system server.
  Add a permission test.

Bug: 122015653
Test: Build & Test on a pixel phone with following command \
  ./frameworks/base/services/tests/runtests.py -e class com.android.server.DynamicAndroidTest

Merged-In: I2e54b6b71fac4a4c5a9c9c25ce6bdac74cddcfb7
Change-Id: I2e54b6b71fac4a4c5a9c9c25ce6bdac74cddcfb7

5 years agoFix bluetooth tethering on multi-user
Remi NGUYEN VAN [Wed, 30 Jan 2019 23:46:36 +0000 (08:46 +0900)]
Fix bluetooth tethering on multi-user

Bluetooth runs as UID 1001002 when on a secondary user. With this change
the NetworkStack verifies that the calling UID matches the Bluetooth app
regardless of the user.

Test: flashed, BT reverse tethering still working as primary user
      (no option to turn on as secondary user on phones)
Bug: 123655057
Change-Id: I23f9c5fa40f3bb676ac65dd8c15106c9d78309a4

5 years agoMerge "Add UserHandle.getAppId to SystemApi"
Remi NGUYEN VAN [Thu, 31 Jan 2019 06:04:11 +0000 (06:04 +0000)]
Merge "Add UserHandle.getAppId to SystemApi"