27103 Commits

Author SHA1 Message Date
zoey chen
51670b219f [TelephonyMainline] @hide system api since we'll revisit in S. - IccLock
Test: make
Bug: 146983487
Change-Id: Iabc3300e883e2afad6145f9bb1410d0606a35c11
Merged-In: Iabc3300e883e2afad6145f9bb1410d0606a35c11
2020-03-18 10:51:38 +08:00
junyulai
5a1b9fce65 [SP25] Rename functions that add Entry conditionally
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)
2020-03-18 00:29:15 +00:00
Amit Mahajan
5a29b0447b Revert "Expose ACTION_USER_SWITCHED as system API"
This reverts commit ffe0cbe5ca68b7c8fa939106ef39c71eccc10f13.

Reason for revert: Not needed for now; will be redone in S.

Bug: 148180958
Change-Id: I426e00e1eb79af5b520fc8c59439614459720fa6
2020-03-18 00:19:53 +00:00
Alex Lin
b375f0bd4a Merge changes from topic "add-error-code"
* changes:
  Update EuiccService encodeSmdxSubjectAndReasonCode
  Rename ErrorCode
  Add public error codes to Euicc public API
2020-03-17 23:01:43 +00:00
Cody Kesting
35cba128cb Merge "Update ConnectivityDiagnosticsCallback function name." 2020-03-17 19:00:39 +00:00
Cody Kesting
40f23ffb38 Update ConnectivityDiagnosticsCallback function name.
API Council feedback suggests renaming ConnectivityDiagnosticsCallback
'onConnectivityReport' function to be 'onConnectivityReportAvailable'.

Bug: 150598997
Test: atest FrameworksNetTests
Change-Id: Ieea727ecee6cf358a53a215fd4b06233dfe967ea
Merged-In: Ieea727ecee6cf358a53a215fd4b06233dfe967ea
2020-03-17 17:10:38 +00:00
Mark Chien
81ab487105 Merge "Support static address configuration" 2020-03-17 13:26:09 +00:00
Treehugger Robot
66a82eecd2 Merge "Removing some of the API don't have to be @SystemApi" 2020-03-17 12:51:25 +00:00
Remi NGUYEN VAN
ab5fdfa7cd Merge "Move sensitive field parceling bool to constructor" 2020-03-17 07:49:38 +00:00
Jack Yu
d5848b795d Merge "Removed permission check" 2020-03-17 03:15:32 +00:00
Zoey Chen
1724914c9f Merge "[TelephonyMainline] @hide system api since we'll revisit in S. - DataAllowed" 2020-03-17 02:45:25 +00:00
Remi NGUYEN VAN
ad7ddfd7f8 Move sensitive field parceling bool to constructor
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
2020-03-17 11:42:33 +09:00
markchien
b69c39ad83 Support static address configuration
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
2020-03-17 00:11:16 +08:00
Treehugger Robot
ba350f4652 Merge changes I801ddc49,Id1b8f41b
* changes:
  [SP24] Rename functions that add Entry unconditionally
  [SP23] Address misc API review comment about NetworkStats
2020-03-16 11:38:00 +00:00
Zoey Chen
eff8e993c7 Merge "[TelephonyMainline] @hide system api since we'll revisit in S - Cdma" 2020-03-16 11:27:42 +00:00
Aaron Huang
8173b63126 Removing some of the API don't have to be @SystemApi
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
2020-03-16 17:39:41 +08:00
junyulai
c7e614d0f3 [SP23] Address misc API review comment about NetworkStats
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
2020-03-16 14:27:45 +08:00
zoey chen
b81b4e5cd8 [TelephonyMainline] @hide system api since we'll revisit in S - Cdma
Test: make
Bug: 148404061
Change-Id: I83dbaa24f94f5cca846d6ca71c7e6814ecd832b8
Merged-In: I83dbaa24f94f5cca846d6ca71c7e6814ecd832b8
2020-03-16 05:48:10 +00:00
Mark Chien
2f92c8d46c Merge "Change TetheringConstants class to final" 2020-03-16 05:25:40 +00:00
zoey chen
4fdc013e04 [TelephonyMainline] @hide system api since we'll revisit in S. - DataAllowed
Test: make
Bug: 146107006
Change-Id: I62a0249a1462c9e8d71552e2304642eb6bde3eb5
Merged-In: I62a0249a1462c9e8d71552e2304642eb6bde3eb5
2020-03-16 13:14:27 +08:00
Junyu Lai
240f5bb4e9 Merge "[SP21] Address comments for API council review about aosp/1172143" 2020-03-16 02:41:19 +00:00
markchien
070c260a65 Change TetheringConstants class to final
Bug: 151322331
Test: m doc-comment-check-docs
Change-Id: Ia02be3d1d91a08ae4a56b25560ed448c96a693db
2020-03-15 22:54:57 +08:00
Alex Lin
2c3cc82819 Update EuiccService encodeSmdxSubjectAndReasonCode
Update the method signature of encoding subject code and reasoncode
Bug: 149216056
Test: atest EuiccService

Change-Id: Ifb9c1a11f48e191f7d49384946f9fd78d81b84dc
Merged-In: Ifb9c1a11f48e191f7d49384946f9fd78d81b84dc
2020-03-13 18:32:52 -07:00
Alex Lin
4888d9aca2 Rename ErrorCode
Renamed ErrorCode from ERROR_EUICC_GSMA_INSTALL_ERROR to
ERROR_INSTALL_PROFILE, and updated javadocs
Bug: 143107744
Test: atest EuiccManagerTest

Change-Id: I3c2dcd2ff4d3d037997c6fee6278ffd706671d3f
Merged-In: I3c2dcd2ff4d3d037997c6fee6278ffd706671d3f
2020-03-13 18:25:14 -07:00
Alex Lin
e61b636a61 Add public error codes to Euicc public API
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
2020-03-13 18:25:14 -07:00
Daniel Bright
127fd8d6e8 Merge "Rollback SystemApis for Mainline" 2020-03-13 21:36:43 +00:00
Treehugger Robot
f36f5590ac Merge "Rollback @SystemApi on ApnSetting" 2020-03-13 20:58:11 +00:00
Malcolm Chen
de9182c01f Make createLocationInfoSanitizedCopy as @hide.
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
2020-03-13 20:38:16 +00:00
Xiangyu/Malcolm Chen
deb27cc388 Merge "Re-order parameters of setUiccApplicationsEnabled." 2020-03-13 20:38:06 +00:00
Tobias Thierer
9357875fcc Merge "Remove clone() and "implements Cloneable" from android.icu.number.Precision and ScientificNotation" 2020-03-13 19:45:23 +00:00
Treehugger Robot
9a3446e067 Merge "Add @RequiresPemission compat framework APIs." 2020-03-13 19:10:21 +00:00
Xiangyu/Malcolm Chen
aafea7546b Merge "Rename EXTRA_NUM_OF_ACTIVE_SIM_SUPPORTED." 2020-03-13 18:18:48 +00:00
Treehugger Robot
cbfaae4f0c Merge "Remove PHONE_TYPE_IMS and PHONE_TYPE_THIRD_PARTY as apis" 2020-03-13 14:04:40 +00:00
Victor Chang
c6dcd53490 Remove clone() and "implements Cloneable" from android.icu.number.Precision and ScientificNotation
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
2020-03-13 13:59:58 +00:00
SongFerng Wang
8b3f684395 Merge "[Mainline] Add @hide. Revisit and redesign in S" 2020-03-13 04:22:33 +00:00
Malcolm Chen
55d7950641 Rename EXTRA_NUM_OF_ACTIVE_SIM_SUPPORTED.
According to API council review.

Bug: 142715546
Test: build
Change-Id: I7c95b175865986901cf50e21b39a35df60ada83e
Merged-In: I7c95b175865986901cf50e21b39a35df60ada83e
2020-03-13 04:16:47 +00:00
Zoey Chen
f74abcb43c Merge "Revert "[Telephony mainline] Add SystemApi and NonNull annotation"" 2020-03-13 03:47:49 +00:00
Treehugger Robot
24b58ed995 Merge "Change naming to be more specific" 2020-03-13 03:30:19 +00:00
Brad Ebinger
f0fc4b5ab0 API fix: Rename and clarify ProvisioningManager constants
Fixes: 148515237
Fixes: 151173009
Test: atest CtsTelephonyTestCases; atest FrameworksTelephonyTests
Merged-In: I633ad3270f8b7d047c3522a420746b668000d078
Change-Id: I633ad3270f8b7d047c3522a420746b668000d078
2020-03-12 17:04:49 -07:00
Xiangyu/Malcolm Chen
ae4ad59cb6 Merge "Mark NonNull for canManageSubscription parameters." 2020-03-12 23:37:39 +00:00
Daniel Bright
47bc635f5c Remove PHONE_TYPE_IMS and PHONE_TYPE_THIRD_PARTY as apis
Removing api status to several apis created during telephony mainline in R.

Bug: 147465477
Bug: 151335267
Test: make
Merged-In: I6d394fae478ef62769147beaeb944771a67aca70
Change-Id: I6d394fae478ef62769147beaeb944771a67aca70
2020-03-12 15:14:28 -07:00
Daniel Bright
0663331688 Rollback @SystemApi on ApnSetting
* Remove @SystemApi from ApnSetting.TYPE_*
* Remove @SystemApi from ApnSetting.getApnTypesStringFromBitmask

Bug: 147465477
Bug: 151245732
Test: make \ flash
Merged-In: Ifc781ae494968fbaad8c591dbd990d397e0d733b
Change-Id: Ifc781ae494968fbaad8c591dbd990d397e0d733b
2020-03-12 10:11:04 -07:00
Daniel Bright
7b9c06b683 Rollback SystemApis for Mainline
Rolling back telephony SystemdApis for mainline.

Bug: 147854704
Bug: 151245675
Test: make
Merged-In: Ief11f574482461a4cda1b4e59cd23aaa0b8b9eef
Change-Id: Ief11f574482461a4cda1b4e59cd23aaa0b8b9eef
2020-03-12 09:53:17 -07:00
junyulai
393e10d4cd [SP21] Address comments for API council review about aosp/1172143
Test: atest FrameworksNetTests ImsPhoneCallTrackerTest
Test: atest TetheringTests NetworkStackTests
Test: m doc-comment-check-docs
Fix: 148552904

Change-Id: I141393f229e772d2eb9f7c156849e379bd71b845
2020-03-12 21:34:17 +08:00
Junyu Lai
0fa3b9e2e4 Merge changes from topic "sp20-stats-provider-permission"
* changes:
  [SP20] Check signature permission when accessing network stats provider
  Add permission check functions to NetworkStatsService
2020-03-12 08:19:24 +00:00
SongFerngWang
e09980c1f5 [Mainline] Add @hide. Revisit and redesign in S
Bug: 144486008
Test: build pass.
Change-Id: I9f301b65a3a476a114821c77916dbdb988e5d983
Merged-In: I9f301b65a3a476a114821c77916dbdb988e5d983
2020-03-12 07:44:39 +00:00
Jack Yu
0ce205791c Removed permission check
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)
2020-03-11 20:59:31 -07:00
Malcolm Chen
05d1ed18d5 Mark NonNull for canManageSubscription parameters.
Bug: 148106947
Test: build
Change-Id: I56dc7576c9b44337f0b61164a5cd434d17601ccb
Merged-In: I56dc7576c9b44337f0b61164a5cd434d17601ccb
2020-03-11 20:40:37 -07:00
Malcolm Chen
91056a4933 Re-order parameters of setUiccApplicationsEnabled.
To be consistent with other APIs, based on API council's feedback.

Bug: 148179539
Test: build
Change-Id: I1d4a2bf7dfc01842f583e02517986a8bf043bfde
Merged-In: I1d4a2bf7dfc01842f583e02517986a8bf043bfde
2020-03-11 18:27:35 -07:00
Shuo Qian
af0d638e98 Merge "Add updateMccMncConfiguration as @TestApi for CTS" 2020-03-11 19:25:12 +00:00