Commit Graph

26982 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Shuo Qian
c3e4dd3799 Merge "API Council Feedback - Override EmergencyNumberDB File API" 2020-03-11 19:24:51 +00:00
Shuo Qian
e03edaba0e Merge "API Council Feedbacks" 2020-03-11 19:24:35 +00:00
Zoey Chen
85fab6aa74 Revert "[Telephony mainline] Add SystemApi and NonNull annotation"
Revert "[Telephony Mainline] 1. Move the functionality about blo..."

Revert "[Telephony mainline] Move all METHOD_* constants from Sy..."

Revert "[Telephony mainline] Move the functionality into the cal..."

Revert submission 1175092-1575532679259-3b86bd03

Reason for revert: <Revisit and redesign in S>
Reverted Changes:
I5c4380f93:[Telephony mainline] Move all METHOD_* constants f...
I84bbfc13c:[Telephony mainline] Move METHOD_* constants from ...
I5a53cb416:[Telephony mainline] Move the functionality into t...
I69d1fd77c:[Telephony Mainline] 1. Move the functionality abo...
I619d6ba04:[Telephony mainline] Add SystemApi and NonNull ann...

Change-Id: I379281a1879dddcaae8862c9f970ef57892ecbea
Merged-In: I0749492a5648dfa2fb83271f349a8370972f7032
2020-03-11 08:23:57 +00:00
Treehugger Robot
d9b1353771 Merge "Update preferred payment related APIs" 2020-03-11 07:10:57 +00:00
Jack Yu
d70879e5bb Update preferred payment related APIs
Add API docs for ACTION_PREFERRED_PAYMENT_CHANGED and the constants(PREFERRED_PAYMENT_*).
Change return type from String to CharSequence for
getDescriptionForPreferredPaymentService.

Test: build pass
Bug: 149998286
Change-Id: Ibe0c77bb25da2673cc8f46cd1e2735c0a1e30523
2020-03-11 02:51:25 +00:00
sqian
a14185aad4 Add updateMccMncConfiguration as @TestApi for CTS
Test: cts; https://paste.googleplex.com/5930499648258048
Bug: 147897445
Change-Id: I63288be1acd9e898548ced345799ac1ae69ce427
Merged-In: I63288be1acd9e898548ced345799ac1ae69ce427
(cherry picked from commit 3d873cf7d0)
2020-03-10 22:57:43 +00:00
sqian
a1c74497cd API Council Feedback - Override EmergencyNumberDB File API
Use ParcelFileDescriptor; Introduce Reset API

Test: atest TelephonyHostTest#testEmergencyNumberDb
Bug: 147805285
Change-Id: I7a7733c02874c0f17fef8c91b9e543c8e803f504
Merged-In: I7a7733c02874c0f17fef8c91b9e543c8e803f504
(cherry picked from commit 75c49ab334)
2020-03-10 22:13:46 +00:00
Shuo Qian
9ae1afee27 API Council Feedbacks
1) Update doc of ACTION_UPDATE_EMERGENCY_NUMBER_DB
2) Add new APIs EXTRA_VERSION and EXTRA_REQUIRED_HASH
3) Rename isDataConnectionEnabled to IsDataConnectionAllowed
4) Format the API documentations with html format
5) Throw errors for shutdownAllRadios, isAnyRadioPoweredOn
6) Modify the doc of TelephonyManager.getEmergencyNumberDbVersion
7) Add UPDATE_CONFIG permission for ACTION_UPDATE_EMERGENCY_NUMBER_DB

Test: Treehugger; Manual made a call; make -j offline-sdk-docs
Bug: 147696692
Bug: 147805285
Bug: 148217670
Bug: 148218347
Change-Id: Idf3dee3de5ebf75ca8b8fbaaf879e69f7ae4b754
Merged-In: Idf3dee3de5ebf75ca8b8fbaaf879e69f7ae4b754
(cherry picked from commit dc86120fca)
2020-03-10 21:53:36 +00:00
sqian
9799e6e810 Introduce system API for ActivityManager.updateMccMncConfiguration for Mainline
Test: treehugger
Bug: 147381728
Bug: 138545688
Change-Id: Ieef1dbbab3b05fc166c3dbc53ed2507ef45d09d7
Merged-In: Ieef1dbbab3b05fc166c3dbc53ed2507ef45d09d7
(cherry picked from commit b9c9bfa6e8)
2020-03-10 21:29:32 +00:00
Treehugger Robot
365caf6f04 Merge "Update permissions of BluetoothPan System APIs and re-hide some APIs that do not need to be System APIs." 2020-03-10 19:13:52 +00:00
Jack Yu
1743401728 Change naming to be more specific
Change SECURE_ELEMENT_PRIVILEGED to SECURE_ELEMENT_PRIVILEGED_OPERATION.

Bug: 150877612
Test: build pass
Change-Id: I2b567c4dc978d5246b9d3d1481d395c6ad6448d0
2020-03-10 15:27:01 +08:00
Rahul Sabnis
d479374757 Update permissions of BluetoothPan System APIs and re-hide some APIs
that do not need to be System APIs.

Bug: 146045934
Test: Manual
Change-Id: Ic6325fde05294eb0266fee25f4b3e7098749a287
2020-03-09 16:58:34 -07:00
Hall Liu
57948adee3 Merge changes from topic "sys-selection-chan"
* changes:
  Split setSystemSelectionChannels
  Add setSystemSelectionChannels API
2020-03-09 20:00:40 +00:00
Remi NGUYEN VAN
b3d7fe48ad Merge "Add missing RequiresPermission to EthernetManager" 2020-03-09 07:42:25 +00:00
Remi NGUYEN VAN
bb5104fa13 Add missing RequiresPermission to EthernetManager
The method requires NETWORK_STACK or MAINLINE_NETWORK_STACK permissions,
but the annotation was missing.

Test: m
Fixes: 150877670
Change-Id: I2af74cbcfa642f05f5e7bf85b2a8e8c38595f6ca
2020-03-09 14:18:55 +09:00
Mark Chien
802c23d43d Merge "Send offload status changed callback" 2020-03-09 02:52:07 +00:00
markchien
de31d856fc Send offload status changed callback
The callback would be fired when offload started, stopped, or failed.
If offload is not supported, "failed" callback would be fired when user
enable tethering. Enabling multiple tethering would not have multiple
offload status callbacks because offload should already be started or
failed.

Bug: 130596697
Test: -build, flash, boot
      -atest TetheringTests
      -ON/OFF hotspot
Change-Id: Ia0398601144b0e5f61dc0c5771eacf13e7cfbb59
2020-03-09 01:51:20 +00:00
Treehugger Robot
e3643bcb6e Merge "Identity Credential: Apply changes identified in API review." 2020-03-07 12:56:05 +00:00
Hall Liu
6c219c886b Split setSystemSelectionChannels
Split method into two parts, one that takes a callback/executor and one
that doesn't.

Fixes: 148866746
Test: atest TelephonyManagerTest#testSetSystemSelectionChannels
Change-Id: Ic5a130e5806b4516caa1a8510214eaf9b2b43b03
Merged-In: Ic5a130e5806b4516caa1a8510214eaf9b2b43b03
2020-03-06 14:19:11 -08:00
Hall Liu
1276af44e9 Add setSystemSelectionChannels API
Add setSystemSelectionChannels as a SystemApi, connecting to the
identically-named HAL method.

Fixes: 144595103
Test: manual through the testapp, atest TelephonyManagerTest
Change-Id: I52ff09258af772e272937dd137813d0d63c50cb5
Merged-In: I52ff09258af772e272937dd137813d0d63c50cb5
2020-03-06 14:19:07 -08:00