439428 Commits

Author SHA1 Message Date
Aaron Huang
b7d665988d Merge "Add keepalive related methods and fields to system APIs" 2020-01-10 06:16:04 +00:00
Meng Wang
9bda007cb8 Merge "Use Parcelable CellIdentity instead of CellLocation in AIDL." 2020-01-10 04:25:45 +00:00
Chiachang Wang
570260393a Add IpClientCallbacks.onNewDhcpResults(DhcpResultsParcelable)
Add new callback to replace old one. Target to remove
onNewDhcpResults(Dhcpresults). The previous onNewDhcpResults
callback will be removed after clients are migrated.

Bug: 135998869
Test: build
Test: atest FrameworksNetTests NetworkStackTests
Change-Id: Id6c72228560dc3c387755c27adacaa9aece6309a
2020-01-10 03:46:50 +00:00
Treehugger Robot
3e3f8bc09f Merge "Support PBAP for get/close profile proxy" 2020-01-10 02:21:13 +00:00
James Lin
eb30d6184e Merge "[RCS] Create the new IMS RCS registration apis in AIDL ImsRcsController" 2020-01-10 01:45:56 +00:00
Rahul Sabnis
eccd5bdbb7 Make the BluetoothMap class @SystemApi
Bug: 146462547
Test: Manual
Change-Id: I2bd3fbb058019bbb32472eac4fcaa65677cbf950
2020-01-09 17:00:56 -08:00
Rahul Sabnis
43203a8bf8 Add setConnectionPolicy to HidDevice and Pan. Clean up documentation for
the method in Pbap.

Bug: 147444905
Test: Manual
Change-Id: I308b29d8ce96f9e410a66d59379a731ae12e0478
2020-01-09 16:28:19 -08:00
Yan Yan
614fd1b51b Merge changes from topic "include-uiccapptype"
* changes:
  Make mainline IPsec(IKE) to statically include @UiccAppType
  move UiccAppType to annotation class
2020-01-10 00:23:28 +00:00
Sarah Chin
95a2c736e9 Merge "Update OWNERS file" 2020-01-10 00:12:28 +00:00
Rambo Wang
82a5ab8ada Expose permission READ_PRECISE_PHONE_STATE as public API
PhoneStateListener will check if apps declare permision
READ_PRECISE_PHONE_STATE when apps try to register the following
phone state change:
- LISTEN_PRECISE_CALL_STATE
- LISTEN_DATA_CONNECTION_REAL_TIME_INFO
- LISTEN_CALL_DISCONNECT_CAUSES
- LISTEN_CALL_ATTRIBUTES_CHANGED
- LISTEN_IMS_CALL_DISCONNECT_CAUSES

But as this permission is hide. None of the public APIs can request
the permission from apps in the javadoc.

By publishing the permission, we can receive intended request from
apps and all APIs require the permission can declair in javadoc.

Bug: 147324131
Test: N/A

Change-Id: I0234ebcba705e43ab7e8bc625516c4bcb10cd0b2
2020-01-09 16:09:15 -08:00
Sarah Chin
48173c8caf Update OWNERS file
Add sarahchin, dbright

Test: none
Bug: 147314799
Change-Id: Iaa16b9856607482523b68bf3ec8a8dd10cec848c
2020-01-10 00:03:29 +00:00
Yan Yan
17d04f08d6 Merge "Allow mainline IPsec(IKE) to statically include @PolicyDirection" 2020-01-09 23:42:59 +00:00
Anders Frostad Pedersen
d2ba4f36c7 Allow zero stride
For some pixel formats, stride has no meaning.
Take this into account and use buffer width instead.

Bug: 143470518
Change-Id: I728b40803e80c4e534504c5b9db55921bb5e7dbc
Merged-In: I728b40803e80c4e534504c5b9db55921bb5e7dbc
Test: android.graphics.cts.ImageDecoderTest#testConserveMemoryPlusHardware
2020-01-09 23:28:56 +00:00
Rambo Wang
fdd350b67a Merge "Deprecate some UICC related APIs in TelephonyManager" 2020-01-09 22:59:44 +00:00
Daniel Bright
a9298cc06f Merge "Flipping NR signal strengths coming from HAL" 2020-01-09 20:33:12 +00:00
Sarah Chin
2137c9bd39 Make MmsManager public
Test: atest TelephonyFrameworksTests
Bug: 144004293
Change-Id: I6cd3587ecba36c9ff9d45a6c174077e8dd7d8fb0
2020-01-09 12:16:41 -08:00
Sarah Chin
80b73b9e1c 5G meteredness for telephony framework
Added networkTypes to SubscriptionPlan
Send SubscriptionPlans as dispatch via listener
Updated API for R

Bug: 139070884
Test: atest FrameworksTelephonyTests
Test: atest cts/tests/tests/telephony/current/src/android/telephony/cts/SubscriptionManagerTest.java
Change-Id: Idb67fb7676adf9e1158113e7b8b08e655f470920
Merged-In: Idb67fb7676adf9e1158113e7b8b08e655f470920
(cherry-pick from ag/9459941)
2020-01-09 19:45:14 +00:00
Tom Cherry
1089bdfb43 Add liblog as a dependency where libbase is used
Bug: 119867234
Test: build
Change-Id: Iad0de2cef63aa52bb573e1571efbac1d689e7603
2020-01-09 11:11:28 -08:00
David Su
7304f01576 Merge "Fix ConnectivityManagerTest @hide Wifi API usages" 2020-01-09 18:07:30 +00:00
Anton Hansson
c176697552 Update references to sdkextensions cts
Renamed to SdkExtensionsTestCases.

Bug: 137191822
Test: atest --test-mapping frameworks/base/apex/sdkextensions
Change-Id: Idb544b2df013ccb88f6c4f0d590206e73661357a
2020-01-09 17:29:44 +00:00
Treehugger Robot
70129fc863 Merge "Use new UnsupportedAppUsage annotation." 2020-01-09 15:46:03 +00:00
Neil Fuller
35cc296228 Rename android.util.TimestampedValue to android.os
Rename android.util.TimestampedValue to android.os to avoid dependency
from android.util onto android.os, which is disallowed by lint.

Bug: 147012511
Test: boot
Merged-In: I4b84db03c8ad24bbef63e45d6d15fb306a10364e
Change-Id: I4b84db03c8ad24bbef63e45d6d15fb306a10364e
(cherry picked from commit d159015e5445fcfc0b3e4084095e2850d28a3fb4)
2020-01-09 15:34:43 +00:00
Artur Satayev
7651f0a4c0 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I4bc8c9482e4bb1af21363f951affff7ee3fefeab
Merged-In: I4bc8c9482e4bb1af21363f951affff7ee3fefeab
2020-01-09 15:13:52 +00:00
Lorenzo Colitti
f6bbab0f6b Merge "Add a NetworkProvider class to the SDK." 2020-01-09 15:09:58 +00:00
Artur Satayev
a900cb533f Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I5be7335b23a92b8ac80d2fd890198273b66ad644
Merged-In: I5be7335b23a92b8ac80d2fd890198273b66ad644
2020-01-09 14:59:34 +00:00
Junyu Lai
2220f75cdf Merge "[SP02] Add provider interfaces to system API" 2020-01-09 14:19:37 +00:00
Artur Satayev
d9b11b058c Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I8789f8499d4dca08580672e9e45ed9a7026dd686
Merged-In: I8789f8499d4dca08580672e9e45ed9a7026dd686
2020-01-09 13:56:05 +00:00
Aaron Huang
40a873a6cd Expose DhcpInfo parcelable interface implementation methods
Parcelable class requires a CREATOR field be exposed.

Bug: 139268426
Bug: 135998869
Test: atest FrameworksNetTests
      atest android.net.cts

Change-Id: I41c68406d09014dda99f337add8c0db0298b0582
2020-01-09 21:33:22 +08:00
Daulet Zhanguzin
9dd0f80341 Deprecate checkNotNull in favor of Objects.requireNonNull().
Remove one of unused overloads. The same change passed on master:
ag/10013392

Bug: 126528330

Test: Treehugger
Test: made equivalent change in internal branch to verify that removed method is not in use

Change-Id: I37c5b93e2ffbfa38a5b9feb4cae2062ef24acec5
2020-01-09 11:18:25 +00:00
Mark Chien
07dcca55fc Merge "Expose some tethering constants in Settings" 2020-01-09 11:10:49 +00:00
Lorenzo Colitti
ae5cb71b08 Add a NetworkProvider class to the SDK.
Bug: 138306002
Test: builds, boots, wifi and telephony work
Test: tested by upcoming change that uses this in NetworkFactory
Change-Id: I2f61bf323215b7c6feff8acc92e7434346751773
2020-01-09 19:50:26 +09:00
paulhu
1835432b46 Add NetworkCapabilities#deduceRestrictedCapability
Support telephony mainline module usage.

Bug: 138306002
Test: atest FrameworksNetTests
      atest CtsNetTestCases --instant

Change-Id: Idbd9c547eff7227085c753461b901c7cdbe396fb
2020-01-09 17:59:46 +08:00
markchien
e64a799169 Expose check write setting operation as system API
If tethering provisioning check is required, caller must have tethering
privilege permission to change tethering. If provisioning is not needed,
caller who has write settings permisssion also can change tethering.
Expose checkAndNoteWriteSettingsOperation for tethering check whether
caller has write settings permission.

Bug: 144814607
Test: -build, flash, boot
      -atest SettingsTest#testCheckWriteSettingsOperation
Change-Id: Ib3931bbe39361c2c4324935f16473cc675848032
2020-01-09 09:54:53 +00:00
junyulai
4d905c9e73 [SP02] Add provider interfaces to system API
This change contains a base class that allows external modules
to implement a custom network statistics provider. And a callback
interface that allows the implementation to signal the system.

These interfaces will be used in the follow-up changes that
implement the functionality.

Test: atest FrameworksNetTests CtsUsageStatsTestCases
Test: m doc-comment-check-docs
Bug: 130855321
Change-Id: Ib23377c8b9cef02bc32253462b068fd10734d21a
2020-01-09 08:57:37 +00:00
markchien
9845e908d0 Expose some tethering constants in Settings
Make some tethering constants @systemApi because tethering
cannot use hide Api.

Bug: 144814607
Test: build, flash, boot
Change-Id: I8b46e2483eec575cddaad392d055551b75ca71ef
2020-01-09 08:48:55 +00:00
Mark Chien
6a95399667 Merge "Fix some @hide usage in Tethering(Cont.)" 2020-01-09 08:47:07 +00:00
Anton Hansson
e1f2ed5995 Merge "Add test apex for sdkextensions" 2020-01-09 08:46:57 +00:00
Anton Hansson
e2ca01dbfe Merge "Rename sdkext module to sdkextensions" 2020-01-09 08:46:08 +00:00
Bonian Chen
63516fb9d4 [Settings] Avoid access getSubscriberId()
Replace API to avoid from access TelephonyManager#getSubscriberId(int)

Bug: 147405859
Test: build pass
Change-Id: Ie4135eb8657f97f41d3617e519f634227185fedb
2020-01-09 16:36:21 +08:00
Junyu Lai
a113464439 Merge "[SP01] Add NetworkStats to system API" 2020-01-09 08:33:24 +00:00
Naga Venkata Durga Ashok Mutyala
90ece871f2 Using WifiCommand to toggle the Wi-Fi state
Unable to turn ON the WiFi in Setup phase as there is a restriction for
setWifiEnabled only work for System Apps.

Bug: 147349850
Test: atest FrameworksCoreTests:DownloadManagerFunctionalTest

Change-Id: I452b81bcf72182c999d6f12c900860bf68fd910f
Signed-off-by: Naga Venkata Durga Ashok Mutyala <quic_nmutya@quicinc.com>
2020-01-09 14:00:13 +05:30
Shi Lu
11485b8068 Merge "Expose Searching Status" 2020-01-09 07:27:05 +00:00
Mark Chien
0728d22b39 Merge "Replace ConnectivityManager constants to TetheringManager" 2020-01-09 06:32:04 +00:00
markchien
87d3f7d4f1 Fix some @hide usage in Tethering(Cont.)
Using alternative way to fix @hide usage. Do not have API change.

Bug: 144814072
Test: buid
Change-Id: Ia23e319ad3779318471d01cbfa17b8c6df4960d3
2020-01-09 05:40:42 +00:00
Mark Chien
a3e62b2c3b Merge "[Tether09] Use INetd to call netd directly" 2020-01-09 05:29:02 +00:00
Sarah Chin
df94694c42 Merge "Handle 5G meteredness in telephony framework" 2020-01-09 05:03:24 +00:00
Treehugger Robot
e515bb6fb6 Merge "Add spoken subtitle information to TvTrackInfo" 2020-01-09 04:40:37 +00:00
Meng Wang
8af4d4ad78 Use Parcelable CellIdentity instead of CellLocation in AIDL.
Currently CellLocation is passed over AIDL by manually
marshalling/unmarshalling to/from Bundle, and type info
is not preserved in the process.

Bug: 146092124
Test: make
Merged-In: I6225f100953a2ad354acaa261a774989926393ce
Change-Id: I6225f100953a2ad354acaa261a774989926393ce
2020-01-08 20:29:27 -08:00
Treehugger Robot
d997a3571b Merge "USB: [Tethering mainline] Expose @hide APIs to @SystemApi" 2020-01-09 04:26:36 +00:00
Treehugger Robot
db9335b832 Merge changes I6260695b,I88f00ca4
* changes:
  Expose clearCapabilities for mainline module
  Expose NetworkSpecifier methods as SystemApi
2020-01-09 03:43:57 +00:00