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
The point of this is to be able to move parts of processListenRequests
independently.
Test: FrameworksNetTests
Change-Id: I6c889b15696123c1120221977b0f36fa3d91de56
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
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
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
Broadcast ACTION_DEFAULT_SUBSCRIPTION_CHANGED keyed phoneId in extra
SubscriptionManager.EXTRA_SLOT_INDEX too.
Bug: 140908357
Test: make
Change-Id: Ib501050f8393471ffe5185670fa6b3dfb69c21f1
To avoid merge conflict with internal branch.
Test: make
Change-Id: I04636443ea70f0cbac784a910c3d57fa80bd6bcc
Merged-In: I1b750751148925b4a7bd94553318907654012fc1
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)
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
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)
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)
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
Also tweak the javadoc a little bit.
Bug: 137191822
Bug: 143937447
Test: treehugger
Change-Id: Iae1b025685344c2ffe4ed1089850b447c82a6b83
Merged-In: Iae1b025685344c2ffe4ed1089850b447c82a6b83
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
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
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
Expose the string IccCardConstants as system APIs
Use TelephonyManger.SIM_STATE_XXX for remaining
Bug: 145767148
Test: Build
Change-Id: I5711d783be8c8414b8f9d7baa80cb4224bd771aa
* changes:
Collapse the implementations of BluetoothDevice.createBond
Call parameterized version of IBluetooth.enable
Implement isEnabled in terms of getState
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