438369 Commits

Author SHA1 Message Date
Chalard Jean
7ec1ff6414 [NS A23] Move a synchronized block in a central place
As the calls to this apparently need to be synchronized, let's
do it all in the same place instead of in all callers

Test: FrameworksNetTests
Change-Id: I0c097e7756fc155ba0243834b84626e86c68340e
2019-12-10 14:15:14 +09:00
Chalard Jean
1892115a76 [NS A22] Small refactoring
The point of this is to be able to move parts of processListenRequests
independently.

Test: FrameworksNetTests
Change-Id: I6c889b15696123c1120221977b0f36fa3d91de56
2019-12-10 14:15:14 +09:00
Chalard Jean
3cf4e7f161 [NS A21] More cleanup
Test: FrameworksNetTests NetworkStackTests
Change-Id: I4771f2e9151ff16a7045d9c3025ac686f244b22d
2019-12-10 14:15:14 +09:00
Chalard Jean
11becab648 [NS A20] Cleanup
A lot of this code can't be triggered at all.
• newNetwork.created in l.6488 is implied by newNetwork.everConnected
  in l.6357
• !newNetwork.isVPN() in l.6488 is implied by the fact that VPNs are
  always foreground, so oldPermission can't != newPermission in l.6488
• updateUids in l.6502 is useless because uids can't change during a
  rematch (because there is no code doing that). Metered state and
  roaming state similarly can't change during a rematch, so
  meteredChanged and roamingChanged are always false
• updateAllVpnCapabilities in l.6537 is useless because VPN do not
  inherit the foreground state of their underlying networks, which
  would be the only reason to call that in l.6537
• Object.equals() in l.6480 is necessary false because at this line
  it is known that the foreground state has changed, which must have
  caused the NET_CAPABILITY_FOREGROUND to be different, so the objects
  can't be equal

Test: FrameworksNetTests NetworkStackTest
Change-Id: I2a52f7f4a085f3eea22a1dd170af8f04671250ff
2019-12-10 14:14:57 +09:00
zoey chen
a65fe478b9 [TelephonyMainline] Cannot use UnsupportedAppUsage API, use appropriate method to replace it.
Bug: 145583708
Test: make
Change-Id: Ie2b330e23911198bd6a1aaaa3e03c0ff1ed12ac9
Merged-In: Ie2b330e23911198bd6a1aaaa3e03c0ff1ed12ac9
2019-12-10 11:26:01 +08:00
Calin Juravle
2227b5ae10 Do not clean up ART profiles during OTAs
Test: manual, upgrade & test for profiles
Bug: 135299330

(cherry picked from commit 86b6bbd4c593aedb3c5e27995727fb2cb55c604b)

Merged-In: I39d3376fc845ec5f2b474ea6f39a3c534ed2ce69
Change-Id: I29833113f7d0806733be669cfbc6fe2b206a982f
2019-12-10 03:04:35 +00:00
Betty Chang
04872c7b6b Merge "[Telephony MainLine] Add PackageChangeReceiver to replace PackageMonitor" 2019-12-10 02:14:10 +00:00
Chiachang Wang
afd43e48c6 Add TetherConfigParcel to improve startTetheringWithConfiguration
In order to support extensibility, update the interface between
netd to take a configuration parcel, instead of fixed
parameters.

Bug: 145777247
Test: atest FrameworksNetTests
Test: build, flash, on/off tethering
Change-Id: I3dbccc46ce4ddccfb6d518de240e4604b7f95eed
2019-12-10 10:07:12 +08: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
Meng Wang
92bc49b463 Remove hidden API usage: PhoneConstants.PHONE_KEY
Broadcast ACTION_DEFAULT_SUBSCRIPTION_CHANGED keyed phoneId in extra
SubscriptionManager.EXTRA_SLOT_INDEX too.

Bug: 140908357
Test: make
Change-Id: Ib501050f8393471ffe5185670fa6b3dfb69c21f1
2019-12-09 16:06:51 -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
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