Commit Graph

107582 Commits

Author SHA1 Message Date
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
Treehugger Robot
36216f6f23 Merge "Add method in Handler to remove messages with equal object" 2020-03-17 01:42:01 +00:00
fengjinlan
f30f5a3b9f Add method in Handler to remove messages with equal object
Change-Id: Ibae80f5008df54f4ac8544abb4cc5863ea3db86d
Signed-off-by: fengjinlan <fengjinlan@xiaomi.com>
2020-03-17 00:01:42 +00:00
Hai Zhang
5f00139706 Merge "Add OWNERS file for role." 2020-03-16 22:55:07 +00:00
Hai Zhang
9173da8f8a Add OWNERS file for role.
Test: build
Change-Id: Ib22925c0bdb97ea97964ad9fb08222ca27facbab
2020-03-16 11:03:12 -07:00
Cody Kesting
84091b4c50 Merge "Add support for registering test networks with administrators." 2020-03-16 18:02:55 +00: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
Lucas Lin
4db4933c81 Merge "Add some comments in isAlwaysOnVpnLockdownEnabled" 2020-03-16 10:08:51 +00:00
junyulai
fd661f5db8 [SP24] Rename functions that add Entry unconditionally
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 unconditionally,
name them insertEntry.
  setIfaceValues -> insertEntry
  addEntry -> insertEntry

Test: atest FrameworksNetTests ImsPhoneCallTrackerTest TetheringTests
Test: m doc-comment-check-docs
Bug: 148895143
Change-Id: I801ddc49e283a254b9586700c9b597c0adb0d459
2020-03-16 14:27:45 +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
Treehugger Robot
cc13533098 Merge "USB: Add OWNERS for USB functionality" 2020-03-16 04:30:34 +00:00
Junyu Lai
240f5bb4e9 Merge "[SP21] Address comments for API council review about aosp/1172143" 2020-03-16 02:41:19 +00:00
lucaslin
86e560c749 Add some comments in isAlwaysOnVpnLockdownEnabled
Bug: 141621373
Test: Build pass.
Change-Id: Ib9df71192937164ff95ce564195d5d68508ec69d
2020-03-16 09:40:01 +08:00
Treehugger Robot
80e92b670d Merge "Added OWNERS file for inputmethod" 2020-03-14 04:22:17 +00:00
Treehugger Robot
9a3446e067 Merge "Add @RequiresPemission compat framework APIs." 2020-03-13 19:10:21 +00:00
Cody Kesting
a6d36265c0 Merge "Update Javadoc comments for ConnectivityDiagnostics constants." 2020-03-13 19:09:18 +00:00
Nicolas Geoffray
8f2ce6f24a Merge "Revert "Zygote: Load system server code early"" 2020-03-13 13:57:07 +00:00
Nicolas Geoffray
6be3b0e117 Revert "Zygote: Load system server code early"
This reverts commit 76b4b2c366.

Bug: 128688902
Bug: 150032912
Test: boots

(cherry-picked from commit 1b14f2cc51)

Merged-In: I0ae248ac2a3fe4002466cae33b231234ddaa69f2
Change-Id: I0ae248ac2a3fe4002466cae33b231234ddaa69f2
2020-03-13 12:07:04 +00:00
Wale Ogunwale
15ef780c0d Added OWNERS file for inputmethod
Bug: N/A
Test: N/A
Merged-In: I0dd7bad55dec4f2332d7819d4ccb1e0da7a2d9b7
Change-Id: I0dd7bad55dec4f2332d7819d4ccb1e0da7a2d9b7
(cherry picked from commit ecf66058ea)
2020-03-13 03:06:12 -07: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
vichang
05f3bf50d6 Merge "Move yesterday/today Strings from LocaleData into a new ICU class" 2020-03-12 18:17:06 +00: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
Mark Chien
3294427e9b Merge "Add javadoc for Network#netId" 2020-03-12 09:55:18 +00:00
markchien
34070e84f2 Add javadoc for Network#netId
Bug: 151156820
Test: m doc-comment-check-docs
Change-Id: Iea34a5c58a8b77c83258a39a8a44601e21a482f5
2020-03-12 09:54:44 +00:00
James Wei
2688557ea7 USB: Add OWNERS for USB functionality
Add and update active owners

Bug: 151289514
Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: Ifed67825df464b86e12c63193b6b54692ac4de7c
2020-03-12 17:12: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
Daniel Bright
14906e7a11 Merge "Whitelist telephony broadcasts for bground use" 2020-03-12 04:09:38 +00:00
Daniel Bright
60fe698771 Whitelist telephony broadcasts for bground use
Whitelisted telephony broadcasts using the intent background flag.
Ensured that each broadcast was protected manually through cts test below.

Bug: 148181747
Bug: 151112539
Test: Switched on ActivityManagerDebugConfig.DEBUG_BACKGROUND_CHECK for SIM_STATE_CHANGED
Test:  android.telephony.cts.TelephonyProtectedBroadcastsTest
Merged-In: Id280fc2128b84dda2a8184dfa32ecc5b8f787afb
Change-Id: Id280fc2128b84dda2a8184dfa32ecc5b8f787afb
2020-03-11 17:07:23 -07:00
Shuo Qian
af0d638e98 Merge "Add updateMccMncConfiguration as @TestApi for CTS" 2020-03-11 19:25:12 +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
Cody Kesting
beb34da474 Add support for registering test networks with administrators.
CTS testing for ConnectivityDiagnosticsManager requires registering
TestNetworks with the administrator UIDs set. This sets up the CTS
process to be an administrator over the test network, which allows it to
receive ConnectivityDiagnosticsCallback callbacks.

Bug: 148032944
Test: atest android.net.cts.ConnectivityDiagnosticsManagerTest
Test: atest IpSecManagerTunnelTest
Change-Id: I7a443c368cf1ac470fbe40883ca24bc3143153b0
2020-03-10 23:27:01 -07:00
Aaron Huang
ea79b2ec19 Merge "Remove framework code that has moved to frameworks/libs/net" 2020-03-11 04:22:09 +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
Lucas Lin
1e5c2626b8 Merge "Make NETWORK_STATUS notification to be blockable" 2020-03-11 01:22:23 +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
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
Victor Chang
b8fd6681b5 Move yesterday/today Strings from LocaleData into a new ICU class
Note that the strings are no longer cached here to avoid permanent
app Java heap growth due to strong cache. Consider that no user of DateSorter
exists in the platform, and the API is legacy. The impact on app performance
is expected to be very low.

Bug: 144560585
Bug: 138994281
Test: atest CtsWebkitTestCases:android.webkit.cts.DateSorterTest
Change-Id: I659d430901cf1838befc0a35f5188d069169e824
2020-03-10 18:51:21 +00:00
Treehugger Robot
1bb18d83eb Merge "Add error code for BluetoothDevice#getBatteryLevel to represent Bluetooth is off" 2020-03-10 17:28:27 +00:00
Anna Trostanetski
43fe983a6b Merge "Allow overriding disabled changes in final release." 2020-03-10 13:11:41 +00:00
Andrei-Valentin Onea
77d832b12d Merge "Add option to toggle all changes" 2020-03-10 12:12:45 +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
Aaron Huang
ecbc722486 Remove framework code that has moved to frameworks/libs/net
Add srcs to framework and change import path.
Remove the codes which are moved to frameworks/libs/net.

Bug: 139268426
Bug: 135998869
Bug: 138306002
Bug: 143925787
Test: atest FrameworksNetTests
      atest FrameworksTelephonyTests
      ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Ia5692aade490fbc8a037186fcdfc453e0dd8045b
Merged-In: Ibf2f370c97a602f186e37ea9ffbe177dd2ee0f1c
2020-03-10 06:45:16 +00:00
Shawn Lin
74c6a9785a Merge "Fixed DisplayCutout flaky test" 2020-03-10 06:35:51 +00:00
lucaslin
749db81a73 Make NETWORK_STATUS notification to be blockable
Bug: 149749735
Test: Build pass
Change-Id: I272f1a13f09f9cfcf5f9c3c33618c20d1d7bdfcd
2020-03-10 11:38:25 +08:00
shawnlin
a62e449f6b Fixed DisplayCutout flaky test
The root cause is that only the top cutout spec was cached.

Now cache the full spec string.

Bug: 145983914
Test: atest android.view.DisplayCutoutTest#fromSpec_setsSafeInsets_top_and_bottom, android.view.DisplayCutoutTest#fromSpec_setsSafeInsets_top -- --abi x86
Test: atest DisplayCutouTest, ScreenDecorationTest
Change-Id: I21ef26e5453412ec659b1d05798b61f04c3d660b
Merged-In: I1d5663ebd8588021387b7ae5296851769954f996
2020-03-10 11:28:27 +08:00