438849 Commits

Author SHA1 Message Date
Rahul Sabnis
ea2e20c857 Remove unused BluetoothHearingAid APIs and usages
Bug: 143244535
Test: Manual
Change-Id: I8915ec755794b2c44412386de03c5fc0778d8ec7
2019-12-16 16:41:33 -08:00
evitayan
1785e06281 IKE Session API changes in setting CA cert and retrieving vendor ID
This commit:
  - makes serverCaCert @Nullable
  - adds interface to retrieve vendor ID of the remote server

Bug: 145276978
Bug: 146168441
Test: atest FrameworksIkeTests(all passed)
Test: make update-api && make
Change-Id: If55a0a70c99a98287933a6d134413ab1329ff402
2019-12-16 16:24:19 -08:00
evitayan
7dd731a114 Child Session API changes in configuring and retrieving internal address
This commit:
- creates separate methods for requesting IPv4 and IPv6 internal
  address
- removes method to request internal subnet
- removes methods to request specific DNS and DHCP server
- uses IpPrefix to represent subnet

Bug: 145453636
Bug: 145454043
Bug: 145451419
Bug: 145454818
Test: atest FrameworksIkeTests(all passed)
Test: make update-api && make
Change-Id: Ic3fdccc12e7f2c361637e004e34b27e09d7900a0
2019-12-16 15:42:57 -08:00
James Lin
6a1d13f58e Merge "[RCS] Add IMS service into system service registry" 2019-12-16 23:28:44 +00:00
Meng Wang
66972daf11 Remove PhoneStateLister#onOtaspChanged
and replace with Registrant in Phone, since the callback is only used
inside telephony.

Bug: 140908357
Test: make
Change-Id: Ia86e9885f85d7f6b3698e96653add00e9b8670ed
2019-12-16 15:10:43 -08:00
Meng Wang
46e185031a Merge "Telephony module will staticlly link IState.java" 2019-12-16 22:47:52 +00:00
Jack Yu
d8513243aa Merge "Make IMS supported Call Barring MMI codes customizable" 2019-12-16 21:56:08 +00:00
Chen Xu
0bc81e1d23 Merge "expose APIs for mainline telephony-sdk" 2019-12-16 20:51:04 +00:00
Shuo Qian
3d18290b0d Mainline Network Policy constants public
Test: Treehugger
Bug: 145759152
Change-Id: I05ab2e723d60cff9f67d89302591026c33c54e24
2019-12-16 20:49:18 +00:00
Meng Wang
8532de9d05 Telephony module will staticlly link IState.java
to avoid hidden API dependency.

Bug: 137202333
Test: make
Merged-In: I5a9ddbebadcf6226402f6e4a37ced168fe07d55b
Change-Id: I5a9ddbebadcf6226402f6e4a37ced168fe07d55b
2019-12-16 12:22:01 -08:00
Treehugger Robot
09c87c5587 Merge "zygote: fix mprotect range for non-page-aligned segments" 2019-12-16 20:19:05 +00:00
Treehugger Robot
322f00e30f Merge "Update AccessNetworkType for NR" 2019-12-16 19:38:41 +00:00
Victor Hsieh
e2e7470edb Include linux/fsverity.h and remove inlined definition
aosp/1184798 has updated kernel header to 5.4.

Test: atest com.android.apkverity.ApkVerityTest
Bug: None
Change-Id: If9ae25d84ecc20aed8c733fb2ebd640b4a26d9f7
2019-12-16 10:57:07 -08:00
David Su
0def143e45 Fix android.util.CloseGuard sample usage
Updated first sample with `Reference.reachabilityFence(this)`
to be consistent with the second sample.

Bug: 145831809
Test: none
Change-Id: I8c625de4f36a8cd52a3825021ff631db62f04662
2019-12-16 10:46:46 -08:00
Anton Hansson
8e764c9042 Re-submit "Add genrule for the current sdk proto"
This reverts commit e15e6483f657dd3bba1f04e9b088c99d9a217a55,
but adds embedded_launcher: true, as well as a copy of sdk.proto
as a workaround.

...which should hopefully fix the python3-issues.

Test: m cur_sdkinfo
Change-Id: I58aff4e175bd44372e9e03e67439085f08ccdc5e
2019-12-16 18:44:39 +00:00
Neil Fuller
41c13aa123 Merge "Fix TimeZoneDetectorStrategyTest" 2019-12-16 18:42:17 +00:00
Treehugger Robot
58ea8819f5 Merge "Expose the onCarrierPrivilegedAppsChanged as SystemApi" 2019-12-16 18:40:50 +00:00
Brad Ebinger
07ba9c6fff Merge "Move RCS UCE out of Telephony Mainline" 2019-12-16 17:53:31 +00:00
Jack Yu
8409679749 Merge "Added read phone state permission for getNetworkCountryIso" 2019-12-16 17:29:15 +00:00
Neil Fuller
6d84974246 Fix TimeZoneDetectorStrategyTest
Fix TimeZoneDetectorStrategyTest#testFirstPlausiblePhoneSuggestionAcceptedWhenTimeZoneUninitialized.
A test that isn't run by treehugger. Broken by commit
9a81291281f16e1adbc2b260bebed91306649c83.

Test: atest com.android.server.timezonedetector
Bug: 140712361
Change-Id: Id1c867caf45055c22d6b8462534624cc82032293
2019-12-16 17:17:18 +00:00
Anton Hansson
3ede866f2e Merge "Restrict visibility into the sdkext package" 2019-12-16 16:23:17 +00:00
Anton Hansson
4c1f4c2bc6 Merge "Add stubs and an sdk definition for sdkext" 2019-12-16 16:00:43 +00:00
Treehugger Robot
e1b61141f9 Merge "Notify ClockChangedListeners on main thread" 2019-12-16 15:39:28 +00:00
Victor Chang
e84c6b50c2 Regenerate LocaleDataTables.cpp
LocaleDataTables.cpp is outdated due to ICU update over the years

Test: ./tools/localedata/extract_icu_data.py $ANDROID_BUILD_TOP
Test: m droid
Change-Id: I21918cc0f50c7347e514dc7b015607e19cffb377
2019-12-16 15:31:09 +00:00
Treehugger Robot
7da7428409 Merge "Get clock title on demand" 2019-12-16 14:45:23 +00:00
Oli Lan
285976f50d Pass ApexSessionParams when submitting sessions to apex service.
This is a minimal change to allow ApexManager to work with the apex
service API change in aosp/1189340.

Bug: 141148175
Test: atest CtsRollbackManagerHostTestCases
Test: atest CtsStagedInstallHostTestCases
Change-Id: If0065516cfb32ee6c3dcaafeae7b8546a8cae903
Merged-In: I560ee4ed6dd82277892a511909378d5a5a8502ff
2019-12-16 14:32:42 +00:00
Treehugger Robot
b65218c561 Merge "Add aurimas as the owners of the android.annotation package" 2019-12-16 14:25:59 +00:00
Anton Hansson
d5a308938e Merge "Add stubs_defaults for framework modules" 2019-12-16 12:59:13 +00:00
Anton Hansson
2337daf1c5 Restrict visibility into the sdkext package
Only the stubs should be visible to the outside world. However,
the sources also need to be exposed for now.

Bug: 137191822
Test: m
Change-Id: Id051cc928c2c5050a6df6470e9ee221f178fd835
2019-12-16 11:55:04 +00:00
Neil Fuller
ee2d1af5d9 Convert some users of Time.format() to an alt.
Convert some frameworks/base/ users of android.text.format.Time.format()
to use calculations based on java.time instead. This avoids future
Y2038 issues associated with Time. A TimeMigrationUtils method is
added that has similar localization behavior to Time's format() method.

This commit only contains a replacement for basic formatting usecases.
Later commits can handle more complex usecases.

The only case that modifies the format is the changes to
CalendarContract.java: the pattern used there was unusual and only
used in logging/debug logic which was switched off by default.

Bug: 16550209
Test: build / boot / treehugger
Test: atest FrameworksCoreTests:android.text.format.TimeMigrationUtilsTest
Change-Id: Ib142979858012bb766b4c107d41a21b0324de506
Merged-In: Ib142979858012bb766b4c107d41a21b0324de506
2019-12-16 09:30:36 +00:00
Treehugger Robot
2cf7b94daf Merge "Update TelephonyManager#getNai docs for new device ID requirements" 2019-12-16 09:07:50 +00:00
paulhu
741e513050 Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission
Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission to phone
package in privapp permission list.

Bug: 146222771
Test: build, flash, boot to home
Change-Id: I1c88b892b1d2f50856b139a5cad5dc8b07a006be
2019-12-16 09:02:36 +00:00
Jayachandran Chinnakkannu
706ac54f75 Merge "Remove READ_SMS permission for ACTION_SMS_MMS_DB_CREATED" 2019-12-16 07:03:43 +00:00
Jiyong Park
da70947b3e Add aurimas as the owners of the android.annotation package
Bug: N/A
Test: N/A
Change-Id: I5feb978f8390c35d87a2b8b9fb82a3f63de936f2
2019-12-16 11:38:32 +09:00
Treehugger Robot
81491a1265 Merge "Replaced Build.IS_DEBUGGABLE" 2019-12-16 02:32:58 +00:00
Treehugger Robot
775540c6d6 Merge "Pipe featureId from app to noteOp in BT code" 2019-12-14 17:36:47 +00:00
Andrew Chant
1aab035706 Merge changes from topic "dec13_netrevert"
* changes:
  Revert "[NS A24] Add an object to represent changes in assignment"
  Revert "[NS A25] Send all listen callbacks after all rematches"
  Revert "[NS A26] Move available callbacks out of the rematch computation"
  Revert "[NS A27] Remove useless logs and a useless var"
2019-12-14 07:10:08 +00:00
Chen Xu
c0fa362e1b Merge "remove API RoleManager.getFinancialSms" 2019-12-14 06:57:48 +00:00
Daniel Bright
60b37c37f0 Replaced Build.IS_DEBUGGABLE
Changed Build.IS_DEBUGGABLE to TelephonyUtils.IS_DEBUGGABLE and
Build.IS_USER to TelephonyUtils.IS_USER.

Bug: 145952396
Test: Telephony unit tests

Change-Id: If3ca3171f8c09552642e797fb0ce2d00ccacc999
Merged-In: If3ca3171f8c09552642e797fb0ce2d00ccacc999
2019-12-13 21:41:12 -08:00
Chen Xu
435d1c1a53 remove API RoleManager.getFinancialSms
getFinancialSms is not functional and not used today, thus
remove it to avoid future confusion

Bug: 138745655
Bug: 140908357
Test: atest android.telephony.cts.SmsManagerTest
Change-Id: Ib57d0fc189b6c894227894ee02b592f7ee46f22f
(cherry picked from commit d6b2673181e2976dffc6ed9a493968e678aa30c0)
Merged-in: Ib57d0fc189b6c894227894ee02b592f7ee46f22f
2019-12-13 20:48:41 -08:00
Chen Xu
b25174e9d0 Merge changes from topic "cpcpcp"
* changes:
  move encodeException to non-updatable framework/base/telephony/common
  move IApnSourceService.aidl to android.service.carrier
  use SmsCbMessage.MESSAGE_FORMAT_3GPP to replace hidden SmsMgr APIs
  apply correct @SystemAPI for PackageManager
2019-12-14 04:16:54 +00:00
Jack Yu
fd5241f120 Merge changes I5c5c4eb3,I36712447,I5b78d449
* changes:
  Throw illegal argument exception when slot index is invalid
  Code clean up
  Improved debug message
2019-12-14 04:15:39 +00:00
Andrew Chant
884ab0e195 Revert "[NS A24] Add an object to represent changes in assignment"
This reverts commit 5c18198aae4f2aba47c0d16de7960f1a4da26f61.

Reason for revert: Toggling wifi on/off causes networking to
 stop working with these four patches applied.
Bug: 146230156

Change-Id: Ie0217796c89abf0dc86e6a4f8324811155dc57cd
2019-12-14 03:35:07 +00:00
Andrew Chant
9bea6e4d36 Revert "[NS A25] Send all listen callbacks after all rematches"
This reverts commit 336d25f744616d59831414668bcc56784c7af1b3.

Reason for revert: Toggling wifi on/off causes networking to
 stop working with these four patches applied.
Bug: 146230156

Change-Id: Icd368df5ef76991dd2b4c1fa530cbc5fae2f61fa
2019-12-14 03:33:51 +00:00
Andrew Chant
9d26869e6a Revert "[NS A26] Move available callbacks out of the rematch computation"
This reverts commit e63d4bb92b497d13cec30e68125e4b636b1b6cbb.

Reason for revert: Toggling wifi on/off causes networking to
 stop working with these four patches applied.
Bug: 146230156

Change-Id: I9af7f8b9af1a6279f2b9f1249824da705164c6b5
2019-12-14 03:32:41 +00:00
Andrew Chant
8db7d76b54 Revert "[NS A27] Remove useless logs and a useless var"
This reverts commit 04ea217324d0250568b9c3f1cd8ef61ad0ee1630.

Reason for revert: Toggling wifi on/off causes networking to
 stop working with these four patches applied.
Bug: 146230156

Change-Id: I6c75ac179bcc08cc5979194eea69525b333e2ba7
2019-12-14 03:31:20 +00:00
Treehugger Robot
07b7384007 Merge "Move TelephonyUtils to base/telephony" 2019-12-14 01:35:53 +00:00
Chen Xu
4c0941420e move encodeException to non-updatable framework/base/telephony/common
Bug: 140908357
Test: Build
Change-Id: I9be6b41fe4af0eb4eb56debffc020735509dc407
(cherry picked from commit 3a7dfca8db0185ce0683e22c11b7906215a96a51)
Merged-in: I9be6b41fe4af0eb4eb56debffc020735509dc407
2019-12-13 17:07:50 -08:00
Chen Xu
2a03dd50ce move IApnSourceService.aidl to android.service.carrier
Bug: 140908357
Test: Build & Manual
Change-Id: I21b83798f5ecd819627a7168c167cf3cfe99dd68
(cherry picked from commit 478ba408d3850944b44171cc2ef619719951f30f)
Merged-in: I21b83798f5ecd819627a7168c167cf3cfe99dd68
2019-12-13 17:04:23 -08:00
Michael Groover
265bb44569 Update TelephonyManager#getNai docs for new device ID requirements
Bug: 131188555
Test: Build
Change-Id: I99aa929ce7c734d9449fe23f6f483af4463fed19
Merged-in: I99aa929ce7c734d9449fe23f6f483af4463fed19
2019-12-14 01:03:53 +00:00