438306 Commits

Author SHA1 Message Date
Artur Satayev
700e08b291 Add new UnsupportedAppUsage annotation as lib dependency.
Bug: 145132366
Test: m
Change-Id: Ibb7f8424186149365354a96249c06c9fccde66bd
Merged-In: Ibb7f8424186149365354a96249c06c9fccde66bd
2019-12-11 19:44:16 +00:00
Treehugger Robot
3850162da5 Merge "BtHelper: Do not broadcast on CONNECTING" 2019-12-10 14:44:58 +00:00
Treehugger Robot
2bf6bf92c6 Merge "InterfaceConfiguration: Don't use @hide Sets class" 2019-12-10 13:52:48 +00:00
Neil Fuller
9436134056 Merge "Extend LocalLog to enable UTC timestamps" 2019-12-10 09:42:38 +00:00
Anton Hansson
65596f4dd2 Merge "Revert "Add genrule for the current sdk proto"" 2019-12-10 07:50:42 +00:00
Treehugger Robot
69cad8ffbb Merge "Remove hidden APIs for callState and dataState." 2019-12-10 06:21:07 +00:00
Betty Chang
04872c7b6b Merge "[Telephony MainLine] Add PackageChangeReceiver to replace PackageMonitor" 2019-12-10 02:14:10 +00:00
Treehugger Robot
888c3b0347 Merge "Convert apct/framework/presubmit-cloud-tf to Test Mapping Suite." 2019-12-10 01:59:36 +00:00
Myles Watson
866b1bbcd4 BtHelper: Do not broadcast on CONNECTING
Bug: 145575361
Test: 1. connect to the Teams meeting when BT connected
      2. switch to the earpiece
      3. switch back to BT
Change-Id: I3fba738289f6ed362e5be67bf37cd5fd4a22474e
2019-12-10 00:54:44 +00:00
Meng Wang
d4e90d2e09 Merge "Style fix." 2019-12-10 00:24:32 +00:00
Meng Wang
6213c3dbd2 Remove hidden APIs for callState and dataState.
Bug: 140908357
Test: make
Merged-In: I008f47447f15ac556c8a88297a8706543e25b3e8
Change-Id: I008f47447f15ac556c8a88297a8706543e25b3e8
2019-12-09 16:14:14 -08:00
Benedict Wong
0d0bfc92e8 Merge "Add message template support for checkStringNotEmpty" 2019-12-09 23:59:30 +00:00
Meng Wang
3c97f033c5 Style fix.
To avoid merge conflict with internal branch.

Test: make
Change-Id: I04636443ea70f0cbac784a910c3d57fa80bd6bcc
Merged-In: I1b750751148925b4a7bd94553318907654012fc1
2019-12-09 23:30:16 +00:00
David Sehr
957ac164ef Merge "Add hook for JVMTI agent in system server" 2019-12-09 23:29:53 +00: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
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
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