438455 Commits

Author SHA1 Message Date
David Sehr
957ac164ef Merge "Add hook for JVMTI agent in system server" 2019-12-09 23:29:53 +00:00
Shuo Qian
c1f935e3c0 Integrate Signal Threshold for 5G
1) Introduce default values for 5G Signal thresholds
2) Introduce parameter to control in 5G NR Signal Strength Level
3) Introduce SignalThresholdInfo to support Framework and HAL

Test: Treehugger
Bug: 135717625
Change-Id: I8a716e9fe445349a56bb33b6b8f581febb21552b
Merged-In: I8a716e9fe445349a56bb33b6b8f581febb21552b
(cherry picked from commit 7d7b2f1a44f89bb5ae3e525d2afd1a7f52c46729)
2019-12-09 15:24:39 -08:00
Amit Mahajan
d03fd70f74 Whitelist telephony-common, ims-common.
These need to be whitelisted because they are not part of the jars
in /system/framework/ now. Earlier they were, due to which this was
not required since libs under /system/framework are already
whitelisted (through a separate rule).

Test: basic telephony sanity
Test: m com.android.telephony && adb install com.android.telephony.apex
Bug: 145555313
Change-Id: Ieaeec41f1db527f1dd8568a542697c5ba4a4c419
2019-12-09 14:08:14 -08:00
Chong Zhang
560f980bb0 Merge "Add memfd_create to android.system.Os" 2019-12-09 22:06:08 +00:00
David Sehr
8f3eee0466 Add hook for JVMTI agent in system server
Add a place to attach a jvmti agent into the system server in debug
builds.  This allows profiling and other investigations for performance
improvements.

Bug: none
Test: attach agent, collect result
Change-Id: I299dffb1774fdce48b9b695a614b7ab60f1307e2
Merged-In: I299dffb1774fdce48b9b695a614b7ab60f1307e2
(cherry picked from commit 1a88539df2279286695018c86485e4eb89357629)
2019-12-09 13:52:38 -08:00
David Sehr
0e3e2a73c6 Merge "Allow tuning of heaptargetutilization" 2019-12-09 21:24:47 +00:00
Meng Wang
52b8e3e448 Merge "Remove usage of hidden API PhoneConstants.SUBSCRIPTION_KEY" 2019-12-09 21:18:02 +00:00
Treehugger Robot
34bc0deb01 Merge "Start zygote with -Xopaque-jni-ids:swapable" 2019-12-09 20:21:43 +00:00
Rahul Sabnis
67eae9d7ba Merge "Resolve BluetoothA2dp hidden APIs to resolve dependencies" 2019-12-09 19:33:28 +00:00
David Sehr
a494449297 Allow tuning of heaptargetutilization
Remove a pair of explicit sets of this value.  This allows ART to tune
this parameter to improve GC responsiveness and memory usage.  Tuning
this parameter is a key area of work for OEM-requested high-memory
device configurations.

Bug: 145823510
Test: boot and run with various configurations of the flag.
Change-Id: I19680ff5fa1ebf9dfd4a3f71533d03510f4da414
Merged-In: I19680ff5fa1ebf9dfd4a3f71533d03510f4da414
(cherry picked from commit b2910d3b6ff282194a4fa4e6c6818c4325168a4f)
2019-12-09 10:49:47 -08:00
Benedict Wong
5501fcae57 Add message template support for checkStringNotEmpty
This change adds the ability for the Preconditions#checkStringNotEmpty()
to take a message template instead of just an error message, allowing
for template reuse.

Test: FrameworksNetTests passing
Change-Id: I6df1c3bff77b227126c35f066ee9112e959d6b1c
2019-12-09 17:55:42 +00:00
Anton Hansson
e15e6483f6 Revert "Add genrule for the current sdk proto"
This reverts commit 1911d7c1a27771dde909deeed5cc99e6a744e8ce.

Bug: 145882325
Test: treehugger
Change-Id: I94ca81c29ef967a489b1e3c34591134fa0bb0b35
2019-12-09 17:30:13 +00:00
Anton Hansson
099c082dfe Migrate sdkext tests to CTS
Bug: 143937446
Test: treehugger
Change-Id: I583952fdfe8f169c6839a6488837bf4fb964d5a7
2019-12-09 17:21:56 +00:00
Anton Hansson
b52bd1cbbe Expose SdkExtension in the system SDK
Also tweak the javadoc a little bit.

Bug: 137191822
Bug: 143937447
Test: treehugger
Change-Id: Iae1b025685344c2ffe4ed1089850b447c82a6b83
Merged-In: Iae1b025685344c2ffe4ed1089850b447c82a6b83
2019-12-09 17:21:24 +00:00
Neil Fuller
a7453c69b2 Extend LocalLog to enable UTC timestamps
Extend LocalLog to enable UTC timestamps with elapsed realtime clock
info too.

Switch time-related usages over to using UTC timestamps. This will make
debugging a lot easier when the code doing the logging is responsible
for changing the system clock and default time zone.

Test: treehugger only
Bug: 140712361
Change-Id: Ic6b12f9032c0c3ebc48f12a970a7b4dd398e7fec
2019-12-09 17:02:44 +00:00
Roshan Pius
f4c912ec75 InterfaceConfiguration: Don't use @hide Sets class
InterfaceConfiguration class is going to be jar-jar'ed by wifi (in
internal master). Remove this @hide usage to avoid transitive @hide
dependency on wifi mainline module.

Bug: 145904524
Test: Compiles
Change-Id: I4dbe69a8597d75d19fb12b4f4940b26b64fda35e
2019-12-09 15:40:19 +00:00
Jorim Jaggi
d915fc7025 Merge "Automatically clean up flicker test data" 2019-12-09 14:14:54 +00:00
easoncylee
1620d24cb9 Convert apct/framework/presubmit-cloud-tf to Test Mapping Suite.
This CL is to convert CF presubmit tests to run in Test Mapping suite.
It has been verified that the test coverage is the same as the original
ATP config.

Bug: 145165552
Bug: 145575229

Test: TreeHugger
      atest FrameworksServicesTests
      atest FrameworksCoreTests

Change-Id: I76e3b0d3a85d447d7b1e3138f6b341c8f00475dd
2019-12-09 20:51:57 +08:00
Treehugger Robot
0b51af2540 Merge "Convert apct/framework/ext_services_test-cloud-tf and apct/framework/testables_test-cloud-tf to Test Mapping Suite." 2019-12-09 06:39:52 +00:00
Paul Hu
60675ece9a Merge "Add CONNECTIVITY_INTERNAL to bt tethering related APIs temporarily" 2019-12-08 14:00:52 +00:00
Chen Xu
a8c4669579 Merge "allow com.android.cellbroadcastservice grant signature permission" 2019-12-07 21:19:23 +00:00
Rahul Sabnis
625e1c3ef4 Resolve BluetoothA2dp hidden APIs to resolve dependencies
Bug: 143240341
Test: Manual
Change-Id: Ib55e0fb106fa7b91ef4d3559da12ea2c048f1ae5
2019-12-06 16:58:05 -08:00
Treehugger Robot
bb8b854423 Merge "Add last connected device concept" 2019-12-07 00:39:13 +00:00
Treehugger Robot
a594a9e68c Merge "Add property to skip idle state for zram writeback" 2019-12-07 00:12:04 +00:00
Jordan Liu
9fd7c05eb9 Merge "Expose some SystemApis and edit framework-cellbroadcast-shared-srcs" 2019-12-07 00:06:23 +00:00
Jayachandran C
316302c001 Remove usage of IccCardConstants hidden APIs
Expose the string IccCardConstants as system APIs
Use TelephonyManger.SIM_STATE_XXX for remaining

Bug: 145767148
Test: Build
Change-Id: I5711d783be8c8414b8f9d7baa80cb4224bd771aa
2019-12-06 16:06:12 -08:00
Zach Johnson
bd4031de4a Merge changes from topics "merge BT bond", "parameterize BT enable", "remove BT isEnabled"
* changes:
  Collapse the implementations of BluetoothDevice.createBond
  Call parameterized version of IBluetooth.enable
  Implement isEnabled in terms of getState
2019-12-06 23:20:07 +00:00
Treehugger Robot
c4090312df Merge "SubscriptionPlan: move out of telephony" 2019-12-06 23:12:58 +00:00
Marco Nelissen
b002876a41 Merge "Fix bad javadoc link" 2019-12-06 22:30:15 +00:00
Treehugger Robot
b0a795a511 Merge "Remove old compatibility layer for old ImsService Impls" 2019-12-06 22:11:26 +00:00
Shuo Qian
0024076b1a Merge "Make getPackagesWithPriviligesForAllActiveSubscriptions system API" 2019-12-06 22:01:17 +00:00
Meng Wang
1ba2871a02 SubscriptionPlan: move out of telephony
Hidden APIs of SubscriptionPlan are used in system server, not
telephopny. So it makes more sense for SubscriptionPlan to be in
core instead of telephopny.

Bug: 145814152
Test: make
Change-Id: I3bfb0ec699f46b0cc34c3bc2e13bfb242bc295bf
2019-12-06 13:50:15 -08:00
Meng Wang
a11df59bb4 Merge "SubscriptionPlan: move out of telephony" 2019-12-06 21:37:52 +00:00
Anton Hansson
ed8cbcca55 Merge "Add TEST_MAPPING" 2019-12-06 20:14:02 +00:00
sqian
22f5749ccc Make getPackagesWithPriviligesForAllActiveSubscriptions system API
Test: build
Bug: 145550382
Change-Id: Ia7efb9e4b22b24f3c87c7cd631548c7254b28926
Merged-In: Ia7efb9e4b22b24f3c87c7cd631548c7254b28926
(cherry picked from commit 6f27c5769d8c5b5c76d143f590a8c4d1c5d8ccee)
2019-12-06 12:07:57 -08:00
Meng Wang
36673a4b44 SubscriptionPlan: move out of telephony
Hidden APIs of SubscriptionPlan are used in system server, not
telephopny. So it makes more sense for SubscriptionPlan to be in
core instead of telephopny.

Bug: 145814152
Test: make
Change-Id: I4c7ae02f9f4f154c99263521e08265d6fb367272
2019-12-06 11:47:46 -08:00
Meng Wang
dcff8689db Remove usage of hidden API PhoneConstants.SUBSCRIPTION_KEY
The extra key for subscription ID of ACTION_CARRIER_CONFIG_CHANGED is
CarrierConfigManager.EXTRA_SUBSCRIPTION_INDEX.

Bug: 140908357
Test: make
Change-Id: I437ebf67bd27e2ac69b2b7784d98d7683350652c
Merged-In: I437ebf67bd27e2ac69b2b7784d98d7683350652c
2019-12-06 11:44:16 -08:00
Jordan Liu
bf68dc85a4 Expose some SystemApis and edit framework-cellbroadcast-shared-srcs
The APIs are used in the CellBroadcastService, and the
framework-cellbroadcast-shared-srcs library is also linked there.

Bug: 135956699
Test: manual
Change-Id: I5e71ea1ee1a858c0520c241dc7365733441e0f50
Merged-In: I5e71ea1ee1a858c0520c241dc7365733441e0f50
2019-12-06 11:19:48 -08:00
Anton Hansson
9ff695eee1 Add TEST_MAPPING
...and remove the broken test!

Bug: 137191822
Test: treehugger (hopefully!?)
Change-Id: I175c1262275ae95caabac32a5308fd454ae62a4d
2019-12-06 19:00:33 +00:00
kwekua
525d252ec1 Merge "[BugFix]Fix enter deep doze when moving" 2019-12-06 18:59:17 +00:00
Marco Nelissen
738d5e11ce Fix bad javadoc link
Method link was referring to itself.

Bug: 144964777
Test: build offline-sdk-docs, open doc in browser
Change-Id: Ib373b16d36ee91ebe10f5c6c2a635c65480a48e0
2019-12-06 10:37:31 -08:00
Kim Baekgyeong
ef06dcb4b1 Add last connected device concept
When connecting multiple audio devices
Media and Sonification sounds comes out of the last connected device,
not a high-priority device.

Test: play music
Test: connect wired earphone // sound : wired earphone
Test: connect usb earphone // sound : usb earphone, not the wired earphone(high-priority)
Test: connect bluetooth headset // sound : bluetooth headset
Test: disconnect bluetooth headset // sound : usb earphone, not the wired earphone(high-priority)
Bug: 135749685

Change-Id: I366e136f8e660c4d7f00935cc9088a926c9a605a
2019-12-06 09:38:30 -08:00
Treehugger Robot
dd2c24061d Merge "Refactor audio device type in audio frameworks." 2019-12-06 17:26:20 +00:00
Treehugger Robot
8efafa49db Merge "Unhide NETLINK_NETFILTER constant" 2019-12-06 16:53:29 +00:00
Treehugger Robot
c6f86d3403 Merge "Fix capitalized variable UserData" 2019-12-06 15:26:11 +00:00
Anton Hansson
6a8eaf415d Merge "Add an init service for setting sdk props" 2019-12-06 13:28:21 +00:00
Anton Hansson
2df0a1096a Merge "Add genrule for the current sdk proto" 2019-12-06 12:04:55 +00:00
Neil Fuller
6e3020490d Merge "TimeDetector improvements" 2019-12-06 11:53:14 +00:00
Anton Hansson
2613c2d9d4 Merge "Add derive_sdk binary for reading sdk protos" 2019-12-06 11:13:03 +00:00
Aaron Huang
8aed6e69f0 Merge "Add TrafficStats methods to public APIs" 2019-12-06 10:59:11 +00:00