OSDN Git Service

android-x86/frameworks-base.git
5 years agoAdd class comment to avoid extending ServiceState class.
Cody Kesting [Fri, 15 Mar 2019 23:22:08 +0000 (16:22 -0700)]
Add class comment to avoid extending ServiceState class.

ServiceState implements Parcelable and all 'Parcelables' are required to
be final, per the Android API Guidelines (go/android-api-guidelines).
This won't be changed for historical reasons, but clients should avoid
extending this class.

Bug: 128865231
Test: non-functional change that won't impact tests.
atest CtsTelephonyTestCases:ServiceStateTest
Change-Id: Ib369f1449a3e085f404fff1c706fda0b76d42890

5 years agoMerge "Move the IpMemoryStore to the network stack."
Xiao Ma [Tue, 19 Mar 2019 13:21:12 +0000 (13:21 +0000)]
Merge "Move the IpMemoryStore to the network stack."

5 years agoMerge "Fix API for SocketUtils"
Remi NGUYEN VAN [Tue, 19 Mar 2019 08:08:50 +0000 (08:08 +0000)]
Merge "Fix API for SocketUtils"

5 years agoMerge "Replace Handler with Executor for async DNS API"
Luke Huang [Tue, 19 Mar 2019 05:35:39 +0000 (05:35 +0000)]
Merge "Replace Handler with Executor for async DNS API"

5 years agoMerge "Refactor answer callback for async DNS query JAVA API"
Luke Huang [Tue, 19 Mar 2019 05:35:18 +0000 (05:35 +0000)]
Merge "Refactor answer callback for async DNS query JAVA API"

5 years agoMerge "Fixing engineGetCertificateChain exception"
Treehugger Robot [Tue, 19 Mar 2019 03:02:31 +0000 (03:02 +0000)]
Merge "Fixing engineGetCertificateChain exception"

5 years agoMerge "Remove deprecated entitlement API"
Mark Chien [Tue, 19 Mar 2019 02:44:37 +0000 (02:44 +0000)]
Merge "Remove deprecated entitlement API"

5 years agoMerge "Address API review comments for VPN changes."
Lorenzo Colitti [Tue, 19 Mar 2019 02:16:58 +0000 (02:16 +0000)]
Merge "Address API review comments for VPN changes."

5 years agoMerge "MediaHTTPConnection: move connection states into an inner class"
Treehugger Robot [Tue, 19 Mar 2019 01:29:24 +0000 (01:29 +0000)]
Merge "MediaHTTPConnection: move connection states into an inner class"

5 years agoMerge "Emergency API review"
Brad Ebinger [Mon, 18 Mar 2019 23:29:34 +0000 (23:29 +0000)]
Merge "Emergency API review"

5 years agoMerge "Add 5G icon to System UI"
Pengquan Meng [Mon, 18 Mar 2019 22:39:04 +0000 (22:39 +0000)]
Merge "Add 5G icon to System UI"

5 years agoMerge "Set sdk_version 28 in aidl_interface"
Jeongik Cha [Mon, 18 Mar 2019 22:29:10 +0000 (22:29 +0000)]
Merge "Set sdk_version 28 in aidl_interface"

5 years agoMerge "Mark EXTRA_INCOMING_NUMBER for PHONE_STATE broadcast as deprecated."
Tyler Gunn [Mon, 18 Mar 2019 22:18:52 +0000 (22:18 +0000)]
Merge "Mark EXTRA_INCOMING_NUMBER for PHONE_STATE broadcast as deprecated."

5 years agoEmergency API review
sqian [Fri, 22 Feb 2019 23:54:47 +0000 (15:54 -0800)]
Emergency API review

1) Remove 'current' in Emergency APIs
2) Remove nullable
3) Handled the null Telephony service case
4) Hide getEmergencyServiceCategoryBitmask
5) Make getEmergencyUrns unmodifiable

Test: Treehugger
Bug: 122368381
Bug: 126699022
Bug: 126701211
Merged-In: I6eb1d8a3ae1625ff3f43f983c488c2969649713b
Change-Id: I6eb1d8a3ae1625ff3f43f983c488c2969649713b

5 years agoMediaHTTPConnection: move connection states into an inner class
Dichen Zhang [Mon, 18 Mar 2019 22:02:17 +0000 (15:02 -0700)]
MediaHTTPConnection: move connection states into an inner class

Bug: 119900000
Test: go/ag/5140159
Change-Id: I8edae85ea614dd537758f342c0c4b57be09c2da5

5 years agoMerge "Cleanup annontations for Hearing Aids Profile API"
Treehugger Robot [Mon, 18 Mar 2019 19:57:50 +0000 (19:57 +0000)]
Merge "Cleanup annontations for Hearing Aids Profile API"

5 years agoMerge "Remove unused HarfBuzz src in libandroid_runtime"
Treehugger Robot [Mon, 18 Mar 2019 18:54:29 +0000 (18:54 +0000)]
Merge "Remove unused HarfBuzz src in libandroid_runtime"

5 years agoMerge "Add slot based ICC channel APIs"
Jordan Liu [Mon, 18 Mar 2019 18:36:54 +0000 (18:36 +0000)]
Merge "Add slot based ICC channel APIs"

5 years agoMerge "Integrate FEATURE_TELEPHONY_IMS feature into APIs"
Brad Ebinger [Mon, 18 Mar 2019 17:35:27 +0000 (17:35 +0000)]
Merge "Integrate FEATURE_TELEPHONY_IMS feature into APIs"

5 years agoMerge "Add @UnsupportedAppUsage annotations"
Andrei-Valentin Onea [Mon, 18 Mar 2019 17:28:44 +0000 (17:28 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

5 years agoAddress API review comments for VPN changes.
Pavel Grafov [Mon, 18 Mar 2019 12:36:24 +0000 (12:36 +0000)]
Address API review comments for VPN changes.

Whitelist is now a Set rather than a list + javadoc improvement.

Bug: 124882903
Bug: 125346147
Test: atest MixedDeviceOwnerTest#testAlwaysOnVpn
Test: atest MixedDeviceOwnerTest#testAlwaysOnVpnAcrossReboot
Change-Id: Ieecaad083f2ab55de33587e6ce767f5f961683c9

5 years agoMark EXTRA_INCOMING_NUMBER for PHONE_STATE broadcast as deprecated.
Tyler Gunn [Mon, 18 Mar 2019 16:13:33 +0000 (09:13 -0700)]
Mark EXTRA_INCOMING_NUMBER for PHONE_STATE broadcast as deprecated.

In Q we have introduced new APIs which replace the need for an app to
get the phone number for calls through the phone state broadcast.  As
such the EXTRA_INCOMING_NUMBER is being marked deprecated.  Developers
are encouraged to use the new replacement APIs instead.

Test: Make API / build
Fixes: 128835519
Change-Id: If1bc0076392281887f6cc8017788a07f170c7a17

5 years agoMerge "Add @UnsupportedAppUsage annotations"
Andrei-Valentin Onea [Mon, 18 Mar 2019 14:40:25 +0000 (14:40 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

5 years agoMerge "Add hdmoon@/insun@ to OWNERS"
Hyundo Moon [Mon, 18 Mar 2019 12:32:01 +0000 (12:32 +0000)]
Merge "Add hdmoon@/insun@ to OWNERS"

5 years agoAdd @UnsupportedAppUsage annotations
Andrei Onea [Mon, 18 Mar 2019 11:37:25 +0000 (11:37 +0000)]
Add @UnsupportedAppUsage annotations

For packages:
  android.os

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Merged-In: I4ece0a3f37f88fc2508cb965092aed7cabc61819
Change-Id: I0d942254f06c1a355fb906640e223ad34cced6ab

5 years agoFix API for SocketUtils
Remi NGUYEN VAN [Mon, 18 Mar 2019 02:42:14 +0000 (11:42 +0900)]
Fix API for SocketUtils

Addresses API review comments:
 - @NonNull on return values
 - short -> int for makePacketSocketAddress
 - Set class final while we're at it

Bug: 126700257
Test: m
Change-Id: I3b1775feee22b1e337b3e4e7a2ad16b28e305b67

5 years agoSet sdk_version 28 in aidl_interface
Jeongik Cha [Mon, 18 Mar 2019 02:54:19 +0000 (11:54 +0900)]
Set sdk_version 28 in aidl_interface

default value of sdk_version in aidl_interface is changed.("28" -> "system_current")
so sdk_version of this module have to be "28" because it is included in framework.jar.

Test: m -j
Bug: 126469673
Change-Id: I515b1b236a7212198c419432b7c9fc70c623c63a

5 years agoMove the IpMemoryStore to the network stack.
Chalard Jean [Wed, 30 Jan 2019 12:04:58 +0000 (21:04 +0900)]
Move the IpMemoryStore to the network stack.

Test: atest FrameworksNetTests
Change-Id: Ic5bd6ff54b09a6fa92b6863f240a5b053011acb6

5 years agoMerge "Remove NetworkParcelable"
Remi NGUYEN VAN [Mon, 18 Mar 2019 01:30:25 +0000 (01:30 +0000)]
Merge "Remove NetworkParcelable"

5 years agoMerge "Remove aidl wrappers for framework parcelables"
Remi NGUYEN VAN [Mon, 18 Mar 2019 01:30:01 +0000 (01:30 +0000)]
Merge "Remove aidl wrappers for framework parcelables"

5 years agoMerge "revent NFE in SystemUI when parsing invalid int (2)"
Evan Laird [Sat, 16 Mar 2019 15:43:04 +0000 (15:43 +0000)]
Merge "revent NFE in SystemUI when parsing invalid int (2)"

5 years agoReplace Handler with Executor for async DNS API
Luke Huang [Thu, 7 Mar 2019 11:01:26 +0000 (19:01 +0800)]
Replace Handler with Executor for async DNS API

Bug: 124882626
Test: built, flashed, booted
      atest DnsResolverTest DnsPacketTest

Change-Id: Ie1dc27643d4767f2a8a39da755edf388a00962d5

5 years agoRefactor answer callback for async DNS query JAVA API
Luke Huang [Mon, 4 Mar 2019 09:08:03 +0000 (17:08 +0800)]
Refactor answer callback for async DNS query JAVA API

1. refactor AnswerCallback with a generic type
2. support onError in AnswerCallback
3. Fix minor problem reported from API Review

Bug: 124882626
Test: built, flashed, booted
      atest DnsResolverTest DnsPacketTest

Change-Id: I685c9989f8401acb63d2e83f552b2d5b20c41af0

5 years agoMerge "CallRedirectionService API review"
Treehugger Robot [Sat, 16 Mar 2019 02:42:29 +0000 (02:42 +0000)]
Merge "CallRedirectionService API review"

5 years agoMerge "ParcelFileDescriptor: improve javadoc."
Treehugger Robot [Sat, 16 Mar 2019 02:36:30 +0000 (02:36 +0000)]
Merge "ParcelFileDescriptor: improve javadoc."

5 years agoCleanup annontations for Hearing Aids Profile API
Stanley Tng [Thu, 14 Mar 2019 23:18:29 +0000 (16:18 -0700)]
Cleanup annontations for Hearing Aids Profile API

Remove the @UnsupportedAppUsage and add the @IntDef for the Profile
Connection States in the Hearing Aids Profile API. Also, the parent
class BluetoothProfile has its Profile Connection States annontated.

Bug: 128523382
Test: Compile only
Change-Id: Ibd02516fa637ddb48d70a8dfacf607f047aec282

5 years agoMerge "Cleanup unsupported appusage in Telecom apis."
Tyler Gunn [Fri, 15 Mar 2019 23:36:21 +0000 (23:36 +0000)]
Merge "Cleanup unsupported appusage in Telecom apis."

5 years agoMerge "Moved transport to IntDef"
Treehugger Robot [Fri, 15 Mar 2019 23:21:29 +0000 (23:21 +0000)]
Merge "Moved transport to IntDef"

5 years agoMerge "Convert Android.mk file to Android.bp"
Treehugger Robot [Fri, 15 Mar 2019 22:49:30 +0000 (22:49 +0000)]
Merge "Convert Android.mk file to Android.bp"

5 years agoMerge "[API feedback] api fixed for getSlotMapping"
Pengquan Meng [Fri, 15 Mar 2019 22:38:46 +0000 (22:38 +0000)]
Merge "[API feedback] api fixed for getSlotMapping"

5 years agoCallRedirectionService API review
sqian [Thu, 14 Mar 2019 20:41:33 +0000 (13:41 -0700)]
CallRedirectionService API review

Bug: 126699669
Test: Treehugger
Change-Id: I56944f6d487660ed447d081b6dfd2cb625087869

5 years agoMerge changes from topic "Porting-ONSAPIChanges"
Sooraj Sasindran [Fri, 15 Mar 2019 19:31:55 +0000 (19:31 +0000)]
Merge changes from topic "Porting-ONSAPIChanges"

* changes:
  Should not turn on validation for data
  Provide network bands in AvailableNetworkInfo

5 years agoMerge "Update feature flag mapping owners"
Fan Zhang [Fri, 15 Mar 2019 19:12:37 +0000 (19:12 +0000)]
Merge "Update feature flag mapping owners"

5 years agoRemove NetworkParcelable
Remi NGUYEN VAN [Thu, 14 Mar 2019 17:25:09 +0000 (02:25 +0900)]
Remove NetworkParcelable

With the @JavaOnlyStableParcelable annotation, Network can now be used
as-is as a framework parcelable.

Test: atest FrameworksNetTests NetworkStackTests
Bug: 126477266
Change-Id: I5d9695a31b3ac48d10edcf08ccd0c34375353b79

5 years agoRemove aidl wrappers for framework parcelables
Remi NGUYEN VAN [Wed, 13 Mar 2019 23:09:58 +0000 (08:09 +0900)]
Remove aidl wrappers for framework parcelables

The new @JavaOnlyStableParcelable annotation allows using the framework
parcelables directly, which removes a lot of boilerplate.

Includes new copy constructors for IpPrefix and LinkAddress so they can
be copied easily as-is into parcelables.

Test: atest FrameworksNetTests
Test: booted, WiFi works
Bug: 126477266

Change-Id: Icac8afe498d0b5ebf9a0d0b9eceb14d64a29b381

5 years agoMerge "Integrate testNetworkService and Manager with Connectivity stack"
Benedict Wong [Fri, 15 Mar 2019 17:41:02 +0000 (17:41 +0000)]
Merge "Integrate testNetworkService and Manager with Connectivity stack"

5 years agoMerge "Fix ServiceState.hashCode() bug."
Cody Kesting [Fri, 15 Mar 2019 15:46:30 +0000 (15:46 +0000)]
Merge "Fix ServiceState.hashCode() bug."

5 years agoFix ServiceState.hashCode() bug.
Cody Kesting [Thu, 14 Mar 2019 17:35:23 +0000 (10:35 -0700)]
Fix ServiceState.hashCode() bug.

ServiceState currently overrides hashCode() incorrectly. It hashes an
Array field without using Arrays.hashCode(), meaning that the default
Object.hashCode() implementation is used (which is based on the address
of the Array field). This allows equivalent ServiceState instances to
produce different hashes.

Bug: 128609620
Test: atest CtsTelephonyTestCases:ServiceStateTest
Change-Id: I40a7d0b7ebab6d2a1be47ea63a6d223c4c13700b

5 years agoMerge "Bugreport Manager service clear binder identity"
Treehugger Robot [Fri, 15 Mar 2019 14:13:43 +0000 (14:13 +0000)]
Merge "Bugreport Manager service clear binder identity"

5 years agoAdd @UnsupportedAppUsage annotations
Andrei Onea [Fri, 15 Mar 2019 12:00:20 +0000 (12:00 +0000)]
Add @UnsupportedAppUsage annotations

For packages:
  com.android.internal.telephony
  com.android.internal.telephony.cat
  com.android.internal.telephony.cdma
  com.android.internal.telephony.gms
  com.android.internal.telephony.imsphone
  com.android.internal.telephony.uicc

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Merged-In: Ib70dd739d8067ca2e37f0dbc6c48a2d625935a4b
Change-Id: Ib7d46597f0d43a9e61141c96737976b02a1df008

5 years agoMerge changes I39e84219,I8d0e12cb
Treehugger Robot [Fri, 15 Mar 2019 10:28:06 +0000 (10:28 +0000)]
Merge changes I39e84219,I8d0e12cb

* changes:
  Bugreporting API: Take ownership of fds.
  Don't manage dumpstate lifecycle from system server

5 years agoRemove deprecated entitlement API
markchien [Mon, 11 Mar 2019 03:56:13 +0000 (11:56 +0800)]
Remove deprecated entitlement API

The deprecated entitlement APIs[1] is introduced in the Q
development cycle. It should be replaced by new APIs[2][3].

[1] https://android-review.googlesource.com/c/platform/frameworks/base/+/874220
[2] https://android-review.googlesource.com/c/platform/frameworks/base/+/920354
[3] https://android-review.googlesource.com/c/platform/frameworks/base/+/927513

Test: -build, flash, boot
bug: 126701557
bug: 126392011
Change-Id: I96487e9038c07363680a76db840994719d7ff768

5 years agorevent NFE in SystemUI when parsing invalid int (2)
Henrik Baard [Thu, 14 Mar 2019 11:23:04 +0000 (12:23 +0100)]
revent NFE in SystemUI when parsing invalid int (2)

A user can change various tunable settings setting via adb.

If the value set is not an integer, SystemUI will end up in an exception
loop.

Test: No crash when running:
      adb exec-out settings put secure sysui_qs_move_whole_rows a
      adb exec-out settings put secure qs_show_brightness a
      adb exec-out settings put secure clock_seconds a
      adb exec-out settings put secure sysui_volume_down_silent a
      adb exec-out settings put secure sysui_volume_up_silent a
      adb exec-out settings put secure sysui_do_not_disturb a
Change-Id: If9c565cbdd44db25ba7fce381c98aa0ab735bfc4

5 years agoMerge "[KA02.5] Use binder thread and executor to invoke callback"
Junyu Lai [Fri, 15 Mar 2019 07:35:27 +0000 (07:35 +0000)]
Merge "[KA02.5] Use binder thread and executor to invoke callback"

5 years agoAdd hdmoon@/insun@ to OWNERS
Hyundo Moon [Wed, 13 Mar 2019 12:29:23 +0000 (21:29 +0900)]
Add hdmoon@/insun@ to OWNERS

Test: N/A
Change-Id: I53a29c098f3b201049baa39ea187cd2f9b5ef167

5 years agoMerge "Remove SMSDispatcher.sendData() from greylist as it's params changed"
Treehugger Robot [Fri, 15 Mar 2019 03:42:09 +0000 (03:42 +0000)]
Merge "Remove SMSDispatcher.sendData() from greylist as it's params changed"

5 years agoMoved transport to IntDef
Jack Yu [Thu, 14 Mar 2019 22:42:09 +0000 (15:42 -0700)]
Moved transport to IntDef

Moved out from the sub class per API review feedback.

Test: Build
Bug: 128607082
Merged-In: I1b513bcaaa0ebf47c14593d962579ed48a7c6db0
Change-Id: I1b513bcaaa0ebf47c14593d962579ed48a7c6db0

5 years agoMerge "Initialize the NetworkStack before WiFi"
Treehugger Robot [Fri, 15 Mar 2019 03:26:34 +0000 (03:26 +0000)]
Merge "Initialize the NetworkStack before WiFi"

5 years agoMerge "API review: Telecom outgoing call Call redirection API"
Treehugger Robot [Fri, 15 Mar 2019 02:07:46 +0000 (02:07 +0000)]
Merge "API review: Telecom outgoing call Call redirection API"

5 years agoMerge "Rename some failed causes"
Paul Hu [Fri, 15 Mar 2019 00:43:42 +0000 (00:43 +0000)]
Merge "Rename some failed causes"

5 years agoUpdate feature flag mapping owners
Fan Zhang [Thu, 14 Mar 2019 23:25:38 +0000 (16:25 -0700)]
Update feature flag mapping owners

Test: rebuild

Change-Id: I288e039ffaf88ce271ba17bcc26f0e038314b354

5 years agoInitialize the NetworkStack before WiFi
Remi NGUYEN VAN [Thu, 14 Mar 2019 23:21:27 +0000 (08:21 +0900)]
Initialize the NetworkStack before WiFi

The NetworkStack needs to be marked as start requested before any client
can use it from the system server, so it knows to queue requests until
it actually comes up.

This fixes a bug introduced in commit:
I93315ad31925bd436e21d1eabb21d5967e6aae60
where a client trying to use the network stack in the system server
before ActivityManager.systemReady() could block and eventually timeout,
resulting in a null INetworkStackConnector.

Test: booted, WiFi working
Bug: 128620654

Change-Id: Ieca2657373eba78195b387fb266fa0424fce8ada

5 years agoMerge "Avoid IllegalArgumentException when bluetooth is disabled"
Deqiang Chen [Thu, 14 Mar 2019 22:23:18 +0000 (22:23 +0000)]
Merge "Avoid IllegalArgumentException when bluetooth is disabled"

5 years agoMerge "Explain the difference of isValid, isActive, isUsable"
Shuo Qian [Thu, 14 Mar 2019 22:05:46 +0000 (22:05 +0000)]
Merge "Explain the difference of isValid, isActive, isUsable"

5 years agoIntegrate FEATURE_TELEPHONY_IMS feature into APIs
Brad Ebinger [Tue, 12 Mar 2019 00:32:30 +0000 (17:32 -0700)]
Integrate FEATURE_TELEPHONY_IMS feature into APIs

Bug: 118823732
Test: manual
Merged-In: Iabb0e7cadae52d8ebe922f61a878298ad4dd04b0
Change-Id: Iabb0e7cadae52d8ebe922f61a878298ad4dd04b0

5 years agoAdd slot based ICC channel APIs
Jordan Liu [Thu, 28 Feb 2019 20:05:53 +0000 (12:05 -0800)]
Add slot based ICC channel APIs

These are SystemApis which require MODIFY_PHONE_STATE, and can be used
to open ICC channels when there is no available subscription, using the
slot index instead of subId.

Bug: 126578014
Test: builds
Change-Id: I3f47a8ac07813ea9e326c7d76123352708bfeea2
Merged-In: I3f47a8ac07813ea9e326c7d76123352708bfeea2

5 years agoRemove SMSDispatcher.sendData() from greylist as it's params changed
Amit Mahajan [Wed, 13 Mar 2019 22:36:33 +0000 (15:36 -0700)]
Remove SMSDispatcher.sendData() from greylist as it's params changed

Test: none
Bug: 120403639
Merged-in: Ib70dd739d8067ca2e37f0dbc6c48a2d625935a4b
Change-Id: I0218764fc02d3f6b9f12b3480aba9742a52b8413

5 years agoBugreport Manager service clear binder identity
Abhijeet Kaur [Thu, 28 Feb 2019 11:50:27 +0000 (11:50 +0000)]
Bugreport Manager service clear binder identity

Binder identity of the caller needs to be cleared before making a call
to ensureIsPrimaryUser() and is later restored for the rest of the code
to execute.

Test: Builds
Change-Id: Ida781b633efbea57a9442fb9a8a5f823f9acbe8b
Merged-In: Ida781b633efbea57a9442fb9a8a5f823f9acbe8b
(cherry picked from commit 99766179567464860585feeb669eb01619598a50)

5 years agoExplain the difference of isValid, isActive, isUsable
sqian [Tue, 30 Oct 2018 20:55:23 +0000 (13:55 -0700)]
Explain the difference of isValid, isActive, isUsable

Bug: 118675257
Test: compile
Change-Id: Ibec1bf7929991ca0e2910684f5216ab8372d4e95

5 years agoMerge "Add MANAGE_TEST_NETWORKS permission as @hide"
Benedict Wong [Thu, 14 Mar 2019 17:39:21 +0000 (17:39 +0000)]
Merge "Add MANAGE_TEST_NETWORKS permission as @hide"

5 years agoBugreporting API: Take ownership of fds.
Nandana Dutt [Wed, 13 Mar 2019 16:42:17 +0000 (16:42 +0000)]
Bugreporting API: Take ownership of fds.

BUG: 126434607
FIXES: 127649051
Test: manual
Change-Id: I39e8421925c53061b6bc2954dffe3bccb7b3314d

5 years ago[KA02.5] Use binder thread and executor to invoke callback
junyulai [Wed, 16 Jan 2019 12:23:34 +0000 (20:23 +0800)]
[KA02.5] Use binder thread and executor to invoke callback

Currently, client side of keepalive event handling rely on a
newly created thread, looper, messenger and handler per object.

However, by creating oneway AIDL interface with the executor,
the callbacks can be invoked on the binder thread with user
specified context, which not only greatly simplify the design
but also reduce the cost of current thread modeling.

Bug: 114151147
Bug: 123969871
Test: 1. atest FrameworksNetTests --generate-new-metric 10
      2. atest-deflake.sh

Change-Id: I27504074cd28d5b5eb94a7ec0e97ebaaaaa1ae3d

5 years agoMerge "Add a whitelist to control packages that can use Bugreporting API"
Treehugger Robot [Thu, 14 Mar 2019 10:13:32 +0000 (10:13 +0000)]
Merge "Add a whitelist to control packages that can use Bugreporting API"

5 years agoAPI review: Telecom outgoing call Call redirection API
sqian [Wed, 13 Mar 2019 18:56:18 +0000 (11:56 -0700)]
API review: Telecom outgoing call Call redirection API

Bug: 126360354
Test: Treehugger
Change-Id: Id5b0b4aecb33ba4dc9629cc6bd2bb8836aedc653

5 years agoMerge "fix the issue that setPreferredNW send wrong RAT to HAL"
Chen Xu [Thu, 14 Mar 2019 00:47:07 +0000 (00:47 +0000)]
Merge "fix the issue that setPreferredNW send wrong RAT to HAL"

5 years agoShould not turn on validation for data
Sooraj Sasindran [Thu, 28 Feb 2019 22:46:14 +0000 (14:46 -0800)]
Should not turn on validation for data

Should not turn on validation for data switch every time.
Provide result as a callback

Test: verified manually
Bug: 126264455
Merged-In: I5df2311d91fdab34563148b4466163696e52faf9
Change-Id: I5df2311d91fdab34563148b4466163696e52faf9

5 years agoMerge "Add me to owners for batterystats."
Treehugger Robot [Wed, 13 Mar 2019 21:45:28 +0000 (21:45 +0000)]
Merge "Add me to owners for batterystats."

5 years agoProvide network bands in AvailableNetworkInfo
Sooraj Sasindran [Thu, 7 Mar 2019 23:52:59 +0000 (15:52 -0800)]
Provide network bands in AvailableNetworkInfo

Provide network bands in AvailableNetworkInfo

Test: verified using CTS and make
Bug: 123292899
Merged-In: I0d0a180eb4da3edf50a94ba621505ad95c7a262c
Change-Id: I0d0a180eb4da3edf50a94ba621505ad95c7a262c

5 years agoMerge "Should return the number of supported SIM cards"
Treehugger Robot [Wed, 13 Mar 2019 21:18:57 +0000 (21:18 +0000)]
Merge "Should return the number of supported SIM cards"

5 years agoMerge "Fix issues associated with hold failure"
Hall Liu [Wed, 13 Mar 2019 21:18:53 +0000 (21:18 +0000)]
Merge "Fix issues associated with hold failure"

5 years agoMerge "Use jarjar rules for framework.jar."
Steven Moreland [Wed, 13 Mar 2019 20:52:37 +0000 (20:52 +0000)]
Merge "Use jarjar rules for framework.jar."

5 years agofix the issue that setPreferredNW send wrong RAT to HAL
chen xu [Wed, 13 Mar 2019 20:26:39 +0000 (13:26 -0700)]
fix the issue that setPreferredNW send wrong RAT to HAL

Bug: 126805258
Test: Manual test to set LTE only mode
Change-Id: I2e88d3bc22ca8d1e626bf381840cc80f832a8b3f

5 years agoAdd me to owners for batterystats.
Joe Onorato [Wed, 13 Mar 2019 19:11:05 +0000 (12:11 -0700)]
Add me to owners for batterystats.

I do solemnly swear that other powers I get incidentally will be
used carefully.

Test: none
Bug: 123732427
Change-Id: I672f5f10b32646b8beb3e9692ed131019c391593

5 years agoMerge "DO NOT MERGE Let isLocationEnabledForUser() return true location setting"
Treehugger Robot [Wed, 13 Mar 2019 18:52:35 +0000 (18:52 +0000)]
Merge "DO NOT MERGE Let isLocationEnabledForUser() return true location setting"

5 years agoMerge "Add alanstokes as owner of DynamicCodeLoggingService."
Treehugger Robot [Wed, 13 Mar 2019 18:01:46 +0000 (18:01 +0000)]
Merge "Add alanstokes as owner of DynamicCodeLoggingService."

5 years agoMerge "Annotate Parcelable CREATOR fields as @NonNull"
Leland Miller [Wed, 13 Mar 2019 17:23:12 +0000 (17:23 +0000)]
Merge "Annotate Parcelable CREATOR fields as @NonNull"

5 years agoAdd a whitelist to control packages that can use Bugreporting API
Nikita Ioffe [Thu, 28 Feb 2019 21:35:02 +0000 (21:35 +0000)]
Add a whitelist to control packages that can use Bugreporting API

Test: checked SecurityException is thrown for my custom app
Test: whiltelisted my custom app, checked no SecurityException is thrown
Bug: 126541701
Change-Id: Id0b61ccc1adf40bcb455d3b59b640f4b160bdd84
Merged-In: Id0b61ccc1adf40bcb455d3b59b640f4b160bdd84
(cherry picked from commit 07964b49ac81b9955d9ecf5cf60c0bb1fc32c501)

5 years agoMerge changes from topic "hidl-updater-system"
Steven Moreland [Wed, 13 Mar 2019 16:51:30 +0000 (16:51 +0000)]
Merge changes from topic "hidl-updater-system"

* changes:
  pm: AndroidHidlUpdater: system only
  pm: PackageBackwardCompatibility -> applyPolicy

5 years agoMerge "Add Nullable annotation to getDecorView"
Treehugger Robot [Wed, 13 Mar 2019 16:09:00 +0000 (16:09 +0000)]
Merge "Add Nullable annotation to getDecorView"

5 years agoDon't manage dumpstate lifecycle from system server
Nandana Dutt [Wed, 13 Mar 2019 15:17:01 +0000 (15:17 +0000)]
Don't manage dumpstate lifecycle from system server

Dumpstate now exits correctly when it's finished. So we don't have to
manage its lifecycle from system server.

BUG: 123571915
Test: manually verified dumpstate service dies
Change-Id: I8d0e12cb607cda74b5cc36e26306ea106da67ba3

5 years agoMerge "Remove support for event-based handovers."
Tyler Gunn [Wed, 13 Mar 2019 15:07:06 +0000 (15:07 +0000)]
Merge "Remove support for event-based handovers."

5 years agoMerge "Clean up bugreport API."
Treehugger Robot [Wed, 13 Mar 2019 14:07:43 +0000 (14:07 +0000)]
Merge "Clean up bugreport API."

5 years agoMerge "Improve documentation around HostnameVerifier"
Neil Fuller [Wed, 13 Mar 2019 13:26:02 +0000 (13:26 +0000)]
Merge "Improve documentation around HostnameVerifier"

5 years agoAdd alanstokes as owner of DynamicCodeLoggingService.
Alan Stokes [Tue, 12 Mar 2019 12:51:13 +0000 (12:51 +0000)]
Add alanstokes as owner of DynamicCodeLoggingService.

As suggested by agampe on I69f415929785845ede8f2d1341f4b70f97b4f480.

Test: None.
Change-Id: Ibaac6f5d96ad9b9a343ba8940345bc7d0c8126d9

5 years agoMerge "Refactor OWNERS file."
Alan Stokes [Wed, 13 Mar 2019 12:33:03 +0000 (12:33 +0000)]
Merge "Refactor OWNERS file."

5 years agoClean up bugreport API.
Abhijeet Kaur [Fri, 8 Mar 2019 11:00:29 +0000 (11:00 +0000)]
Clean up bugreport API.

Make BugreportManager class final.

Add FloatRange annotation for BugreportManager.onProgress() function's
parameter.

Make @IntDef in BugreportMode hidden.

Bug: 126434607
Test: builds
Change-Id: I95f004106ba97bc9e99859a8b23b96a86b6a43f4
Merged-In: I95f004106ba97bc9e99859a8b23b96a86b6a43f4

5 years agoShould return the number of supported SIM cards
Iris Chang [Wed, 13 Mar 2019 07:40:43 +0000 (15:40 +0800)]
Should return the number of supported SIM cards

When multiple SIM is enabled, getSimCount() in TelephonyManager.java
just returns 2 and it is not consistent with getPhoneCount(). For
devices which support more than 2 SIMs, it will cause
ArrayIndexOutOfBoundsException in the getInstance() function of CatService.java
when thress SIMs are present. To fix this issue, we need to return
the phone count in getSimCount() to synchronize both APIs.

Bug: 126292874
Test: check if JE is fixed on a device which supports 3 SIMs
Change-Id: I227f7d05349c1d0cf4c8bfa46c4e3b5f9bd42be9

5 years agoMerge "continue read file when returned count > 0"
Treehugger Robot [Wed, 13 Mar 2019 07:36:51 +0000 (07:36 +0000)]
Merge "continue read file when returned count > 0"

5 years agoMerge "Support partial connectivity probe result option"
Chiachang Wang [Wed, 13 Mar 2019 06:49:03 +0000 (06:49 +0000)]
Merge "Support partial connectivity probe result option"

5 years agoMerge "Call notifyStartupCompleted from reportFullyDrawn"
Mathieu Chartier [Wed, 13 Mar 2019 05:02:58 +0000 (05:02 +0000)]
Merge "Call notifyStartupCompleted from reportFullyDrawn"