Currently, in NetworkStats, there are many methods to manipulate
the records. However, some methods are similar and ambiguous,
such as addEntry, addValues, setValues, addIfaceValues,
combineValues and combineAllValues.
Thus, properly grouping and renaming methods are necessary.
In this change, for methods that add one record conditionally,
name them addEntry.
addValues -> addEntry
Test: atest FrameworksNetTests ImsPhoneCallTrackerTest TetheringTests
Fix: 148895143
Change-Id: I9495a198cf247e6c79100f7ac1edcea370b071de
Merged-In: I9495a198cf247e6c79100f7ac1edcea370b071de
(cherry picked from ag/10700816)
This reverts commit ffe0cbe5ca68b7c8fa939106ef39c71eccc10f13.
Reason for revert: Not needed for now; will be redone in S.
Bug: 148180958
Change-Id: I426e00e1eb79af5b520fc8c59439614459720fa6
API Council feedback suggests renaming ConnectivityDiagnosticsCallback
'onConnectivityReport' function to be 'onConnectivityReportAvailable'.
Bug: 150598997
Test: atest FrameworksNetTests
Change-Id: Ieea727ecee6cf358a53a215fd4b06233dfe967ea
Merged-In: Ieea727ecee6cf358a53a215fd4b06233dfe967ea
This addresses API review comments recommending to use a copy
constructor with additional parameters instead of a dedicated method.
makeSensitiveFieldsParcelingCopy becomes LinkProperties(base, true).
Bug: 150877475
Test: atest FrameworksNetTests NetworkStackTests NetworkStackNextTests
Change-Id: Ib145ca7f36dcbee6ef47d09862a181fc04a28f03
Application can specify static ipv4 server and client address to setup
tethering and this is one shot configuration. Tethering service would
not save the configuration and the configuration would be reset when
tethering stop or start failure.
When startTethering callback fired, it just mean tethering is requested
successful. Therefore, callers may call startTethering again if
startTethering successful but do not receive following tethering active
notification for a while. Tethering service never actually does anything
synchronously when startTethering is called:
-startProvisioningIfNeeded just posts a message to the handler thread.
-enableTetheringInternal doesn't do anything synchronously, it just
asks the downstreams to get their interfaces ready and waits for
callbacks.
If tethering is already enabled with a different request,
tethering would be disabled and re-enabled.
Bug: 141256482
Test: -build, flash, boot
-atest TetheringTests
-atest CtsTetheringTest
Change-Id: I0399917e7cefa1547d617e688225544c4fc1a231
Some of the API we made @SystemApi won't be used by mainline
module. Removing these from the surface.
Bug: 151266974
Test: atest FrameworksNetTests
atest FrameworksTelephonyTests
atest FrameworksWifiTests
Change-Id: Ie30efa172f93a7557fb6ef56f4daf80e958c3787
Merged-In: Ie30efa172f93a7557fb6ef56f4daf80e958c3787
This change add several javadoc for NetworkStats and its Entry
class. Also remove IFACE_ALL constant accordlingly.
Test: atest FrameworkNetTests
Test: m doc-comment-check-docs
Bug: 148895143
Change-Id: Id1b8f41be79f847ad73197ff0e18258b6ee8a730
Adding public error codes to euicc public API, this will allows the user
to get an general idea of what went wrong when calling the Euicc APIs
Bug: 143107744
Test: atest EuiccService, atest EuiccManager
Change-Id: I427f17e8f28fa4a646a63299a1f63c4c5970a5a0
Merged-In: I427f17e8f28fa4a646a63299a1f63c4c5970a5a0
As we are not shipping Telephony mainline and it's TBD whether
TelephonyRegistry will be part of mainline or not, we change
createLocationInfoSanitizedCopy from @SystemApi back to @hide.
Bug: 148179832
Test: build
Change-Id: I65dea196ab80aec96b6b35edcc0059cefc2f1b43
Merged-In: I65dea196ab80aec96b6b35edcc0059cefc2f1b43
The API was first made public in R. This API change will be made into
the same platform version.
Bug: 151133612
Test: m droid
Change-Id: Ic251b4b0d7b2896b14bc55c3b09093c06600b16b
According to API council review.
Bug: 142715546
Test: build
Change-Id: I7c95b175865986901cf50e21b39a35df60ada83e
Merged-In: I7c95b175865986901cf50e21b39a35df60ada83e
Removing api status to several apis created during telephony mainline in R.
Bug: 147465477
Bug: 151335267
Test: make
Merged-In: I6d394fae478ef62769147beaeb944771a67aca70
Change-Id: I6d394fae478ef62769147beaeb944771a67aca70
Rolling back telephony SystemdApis for mainline.
Bug: 147854704
Bug: 151245675
Test: make
Merged-In: Ief11f574482461a4cda1b4e59cd23aaa0b8b9eef
Change-Id: Ief11f574482461a4cda1b4e59cd23aaa0b8b9eef
Removed permission check for getNetworkCountryIso and made it public.
This API was added since the first version of Android. Removed the
permission check for backward compatibility reason.
Test: Telephony sanity tests
Bug: 149872821
Merged-In: I68833fdf6f078d69bc8c2e5f01cf4e058d6d7093
Change-Id: I68833fdf6f078d69bc8c2e5f01cf4e058d6d7093
(cherry picked from commit 0b9a12c2c420e227d30d1ae3c3fe0ae0df8f212e)
To be consistent with other APIs, based on API council's feedback.
Bug: 148179539
Test: build
Change-Id: I1d4a2bf7dfc01842f583e02517986a8bf043bfde
Merged-In: I1d4a2bf7dfc01842f583e02517986a8bf043bfde