Commit Graph

84331 Commits

Author SHA1 Message Date
Tianjie Xu
361d379280 Merge "Improved wipe reason information for RecoverySystem"
am: c8f5981028

Change-Id: I4da95142ea12593e00ab0d0a44f8e9a0c021596b
2019-02-13 11:43:46 -08:00
Tianjie Xu
c8f5981028 Merge "Improved wipe reason information for RecoverySystem" 2019-02-13 19:18:01 +00:00
Blake Kragten
e66ad835f2 Merge "Modem power monitor"
am: 366318b9c3

Change-Id: I85d2b97c40df223106d9a4047b3898d0db3c733e
2019-02-13 09:33:27 -08:00
Blake Kragten
4d3a9f2b3c Modem power monitor
This is an AOSP carry over for the frameworks base CL. This change is needed here to allow telephony changes to be added to AOSP with no issues.

Adding monitored power rail as a new cellular battery stats component. This will be used to better determine actual power usage of the modem rather than relying on battery reduction rates.

If the device does not support rail power monitoring then this value
will always remain at 0.

Test: adb shell dumpsys activity service TelephonyDebugService --metrics
Results Examples:
	Energy consumed by modem (mAh): 2.41

Change-Id: If85af2f2e1b255661e189c5375ecc5825be84c58
2019-02-13 16:02:03 +00:00
Hans Boehm
e0203aa6ec Merge "Adjust AsyncTask.THREAD_POOL_EXECUTOR config"
am: 2b56c4cf48

Change-Id: I0a8554c58710b162df57cbf2ca8dcb7591666ef9
2019-02-12 21:30:19 -08:00
Hans Boehm
2b56c4cf48 Merge "Adjust AsyncTask.THREAD_POOL_EXECUTOR config" 2019-02-13 05:14:43 +00:00
Po-Chien Hsueh
3699ba8e9f Merge "Add DynamicAndroidClient"
am: fa240e8054

Change-Id: I05b545489d9fb075a782ee942195011d79bbfbca
2019-02-12 19:02:06 -08:00
vichang
8c6c630bcf Merge "Include /apex/com.android.runtime for native library in app classloader"
am: 9de24de618

Change-Id: I9bcc87b6866695689d31abf7e8e2066158857aba
2019-02-12 18:57:43 -08:00
Remi NGUYEN VAN
89b04a01c2 Merge "Check NetworkStack UID and perms before binding"
am: c96b852f46

Change-Id: Ia9d4718162ed9534c5f61a9be0e8654026b902c8
2019-02-12 18:45:49 -08:00
Yutaro Maruyama
3835f6a4f9 Improved wipe reason information for RecoverySystem
More information will be useful to investigate unintentional wipe
for users. Added timestamp information into reason text.

Bug: 120586954
Change-Id: I26dd4eff815d736bf34e944be6843cbb80515ca9
2019-02-13 10:53:16 +09:00
Po-Chien Hsueh
fa240e8054 Merge "Add DynamicAndroidClient" 2019-02-13 01:20:26 +00:00
vichang
9de24de618 Merge "Include /apex/com.android.runtime for native library in app classloader" 2019-02-13 00:58:37 +00:00
Remi NGUYEN VAN
c96b852f46 Merge "Check NetworkStack UID and perms before binding" 2019-02-13 00:10:18 +00:00
Hans Boehm
573bb79cfb Adjust AsyncTask.THREAD_POOL_EXECUTOR config
Remove the queue, reduce core pool size but no longer let it time out.

Reduce the timeout for additional threads.

If necessary, use a special executor, with an unbounded queue, to run
overflow tasks.

Bug: 123762797
Test: AOSP boots, also with MAXIMUM_POOL_SIZE = 1.
Change-Id: I4bc9593a044d1773ff1878684e2397a7c2a9a87a
2019-02-12 15:43:26 -08:00
Steven Moreland
21f4e04f3d Merge "Remove ParcelFileDescriptor.aidl"
am: c7c7fe6325

Change-Id: I508f7591ad990d774b7866a831ac84f7a8fb6f77
2019-02-12 10:02:23 -08:00
Steven Moreland
c7c7fe6325 Merge "Remove ParcelFileDescriptor.aidl" 2019-02-12 17:51:35 +00:00
Victor Chang
a366cc8c52 Include /apex/com.android.runtime for native library in app classloader
Bug: 123702996
Test: Manual test. After moving libicuuc.so into the apex path,
  call System.loadLibrary("icuuc") in test app
Test: CtsJniTestCases pass after moving libicuuc into apex and applied
CTS patch here. http://r.android.com/898053

Change-Id: Ic9049c1595b4ea029ec65649c3f3283672744569
2019-02-12 14:53:01 +00:00
Remi NGUYEN VAN
d49230d8df Merge "Remove hard-coded NetworkStack package name"
am: e765e8b7aa

Change-Id: I0e67a5e857d4f5ba2af1f0928be6d97c0f4ce94f
2019-02-11 20:22:40 -08:00
Remi NGUYEN VAN
e765e8b7aa Merge "Remove hard-coded NetworkStack package name" 2019-02-12 03:58:09 +00:00
Kiyoung Kim
e3f4f5eedb Merge "Schematize Display system properties"
am: db5c59214f

Change-Id: I363f989b8259adccc86c85708e64fcb05222e6fc
2019-02-11 19:13:06 -08:00
Steven Moreland
a4912bd4a4 Remove ParcelFileDescriptor.aidl
This is now a built-in type in AIDL.

Bug: N/A
Test: N/A
Change-Id: Ibbc1251ce3378fed39b7edeb611185358a1c0dc0
2019-02-11 18:54:32 -08:00
Treehugger Robot
db5c59214f Merge "Schematize Display system properties" 2019-02-12 02:50:08 +00:00
Phil Weaver
a525ea4436 Merge "Add owners for accessibility"
am: bbbeba3c02

Change-Id: I099187d207d5610bc79d630f105bff2de41481c3
2019-02-11 16:34:27 -08:00
Treehugger Robot
bbbeba3c02 Merge "Add owners for accessibility" 2019-02-12 00:07:59 +00:00
Xiangyu/Malcolm Chen
0c15f98874 Merge changes from topics "118348832", "120945564"
am: 52a31598e7

Change-Id: Ib236b90d107ec7fa40c32c9604af95f58b844e05
2019-02-11 15:45:28 -08:00
Xiangyu/Malcolm Chen
52a31598e7 Merge changes from topics "118348832", "120945564"
* changes:
  Adding validationBeforeSwitchSupported in phoneCapability.
  Add API to handle user's subscription selection changes.
2019-02-11 23:19:17 +00:00
Howard Chen
1eb4c54294 Add DynamicAndroidClient
DynamicAndroidClient is the SystemApi to invoke DynamicAndroid
installation service. It also provides a listener for status update.

Bug: 122440941
Test: Compile and run on internal target
Change-Id: I1ea5e861ecaca1647b445eac57ed15a144be68e8
Merged-In: I1ea5e861ecaca1647b445eac57ed15a144be68e8
2019-02-11 14:02:46 +08:00
Nate Fischer
0424bd04bf Merge "WebView: propose myself as OWNER"
am: 9fdd759e40

Change-Id: I908fb894e288d53d4cc8d3bd19580db4d99de278
2019-02-08 18:15:32 -08:00
Treehugger Robot
9fdd759e40 Merge "WebView: propose myself as OWNER" 2019-02-09 01:59:29 +00:00
Remi NGUYEN VAN
9c5d964902 Remove hard-coded NetworkStack package name
Have the network stack pass its package name in
showProvisioningNotification instead.

Bug: 124033493
Test: flashed, WiFi and captive portal works
Test: atest FrameworksNetTests NetworkStackTests
Change-Id: I1f3312768ba1fb34e99a827e1fcdaf7510e318a8
2019-02-08 12:12:57 +09:00
Remi NGUYEN VAN
c205f33bc4 Check NetworkStack UID and perms before binding
This ensures that the NetworkStack that is used on the device has a
signature that matches the NetworkStackPermissionsStub.

Test: flashed, WiFi working
Bug: 124033493
Change-Id: Ia1413a4e127e01ab707d3f4887cd39df72c751e3
2019-02-08 11:57:28 +09:00
Malcolm Chen
77b2b559e1 Add API to handle user's subscription selection changes.
When user selects a eSIM subscription, Settings app informs Telephony.
Telephony needs to take actions such as writting it into global
settings, switch profiles and notify registrants, for example
AlternativeNetworkAccessService.

Bug: 120945564
Test: unittest
Change-Id: I846d9444aac368d183e06744c9eb8aa0c08dfe6a
Merged-In: I846d9444aac368d183e06744c9eb8aa0c08dfe6a
2019-02-07 17:42:34 -08:00
Phil Weaver
6ac1a60bf1 Add owners for accessibility
Test: Relying on treehugger. No functional changes.
Change-Id: I2511b04e56301bd34a8eaced7be8dd8582cc3cc7
2019-02-07 10:52:13 -08:00
Remi NGUYEN VAN
7f71f50ae6 Merge "Add API for NetworkStack to start captive portal"
am: ca551ce981

Change-Id: I72166f14ec4f7589a1dbd0334de37530ebccf88e
2019-02-06 18:49:45 -08:00
Remi NGUYEN VAN
ca551ce981 Merge "Add API for NetworkStack to start captive portal" 2019-02-07 02:39:17 +00:00
Youming Ye
5ff42a7991 Merge "Add connect time to conference participant."
am: bd2016353c

Change-Id: Ie5319da32e9f4d2855c7c4fe34e570add327dd70
2019-02-06 14:15:21 -08:00
Youming Ye
bd2016353c Merge "Add connect time to conference participant." 2019-02-06 21:55:06 +00:00
Neil Fuller
91145c9a6e Merge "Revert "Minimum viable TimeZoneDetectorService""
am: 1fe970651f

Change-Id: Ie5bc6073d0344d0560e98ec574f9bb3d3fecf182
2019-02-06 10:19:42 -08:00
Neil Fuller
1fe970651f Merge "Revert "Minimum viable TimeZoneDetectorService"" 2019-02-06 18:02:38 +00:00
Chalard Jean
e38d50b7c8 Merge "[KA04] Expose TCP socket keepalive API"
am: e5f71e4ed0

Change-Id: If8bc33ff30a529092802f9450a3772aaaa401c20
2019-02-06 07:22:31 -08:00
junyulai
352dc2f202 [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
2019-02-06 22:51:42 +09:00
Chalard Jean
968c9f495c Merge "[KA03.5] Add stable AIDL parcelable for TcpKeepalivePacketData"
am: 533b2960fc

Change-Id: I3ee97cd66e19486ba0edd6cab58bd37b43a0904b
2019-02-06 01:29:24 -08:00
Chalard Jean
533b2960fc Merge "[KA03.5] Add stable AIDL parcelable for TcpKeepalivePacketData" 2019-02-06 09:19:07 +00:00
Chalard Jean
19159dbc95 Merge "Deprecate getActiveLinkProperties."
am: 4b7cae6c0d

Change-Id: I745db0698d3fe76779e83c98aff9464a2b1b0709
2019-02-06 00:45:03 -08:00
Treehugger Robot
4b7cae6c0d Merge "Deprecate getActiveLinkProperties." 2019-02-06 08:32:10 +00:00
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
Chalard Jean
eb1ea889bc 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
2019-02-06 15:44:44 +09:00
Chalard Jean
6bbaced544 Merge "[KA03] Support tcp keepalive offload"
am: 5f8ddc2eb1

Change-Id: I7715266c2c24d3f5dd65cd0e375d99b16be6aea6
2019-02-05 22:19:41 -08:00
junyulai
2ed5d4cf92 [KA03.5] Add stable AIDL parcelable for TcpKeepalivePacketData
Bug: 114151147
Test: atest FrameworksNetTests
Change-Id: I057dde79013b9eda5037b9a44f8eee06cc07352e
2019-02-06 14:07:39 +09:00
markchien
150e191bca [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
2019-02-06 12:22:22 +09:00