26212 Commits

Author SHA1 Message Date
Rambo Wang
fdd350b67a Merge "Deprecate some UICC related APIs in TelephonyManager" 2020-01-09 22:59:44 +00:00
Lorenzo Colitti
f6bbab0f6b Merge "Add a NetworkProvider class to the SDK." 2020-01-09 15:09:58 +00:00
Junyu Lai
2220f75cdf Merge "[SP02] Add provider interfaces to system API" 2020-01-09 14:19:37 +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
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
Junyu Lai
a113464439 Merge "[SP01] Add NetworkStats to system API" 2020-01-09 08:33:24 +00:00
Shi Lu
11485b8068 Merge "Expose Searching Status" 2020-01-09 07:27:05 +00:00
Treehugger Robot
e515bb6fb6 Merge "Add spoken subtitle information to TvTrackInfo" 2020-01-09 04:40:37 +00: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
Zongheng Wang
6c64897b4e Merge "Add addOnSubscriptionsChangedListener with an executor as a parameter" 2020-01-09 03:11:39 +00:00
junyulai
d27a1725e8 [SP01] Add NetworkStats to system API
In order to let external module report their network stats,
expose necessary APIs to construct NetworkStats object.

Test: atest FrameworksNetTests CtsUsageStatsTestCases
Test: m doc-comment-check-docs
Bug: 130855321
Change-Id: Id3ec8aaff3df67948c25eac2319a74cf33a27979
2020-01-09 03:11:22 +00:00
Xiangyu/Malcolm Chen
593bd91f2c Merge "[Telephony Mainline] Make newFromBundle and fillInNotifierBundle System API" 2020-01-09 02:37:56 +00:00
Chiachang Wang
4bcef011b2 Expose clearCapabilities for mainline module
Support telephony mainline module usage.

Bug: 138306002
Test: Build and make api-stubs-docs-update-current-api
Change-Id: I6260695b01ec06244d2822f9438a7fae83539ff2
Merged-In: I0a462da4e87cae2c7d4a9b9a92de061a086c5752
2020-01-09 10:25:03 +08:00
Chiachang Wang
914a0fff2e Expose NetworkSpecifier methods as SystemApi
Support for Wi-Fi mainline module.

Bug: 135998869
Test: build and make system-api-stubs-docs-update-current-api
Test: atest FrameworksNetTests
Change-Id: I88f00ca4f4cd51c71f7668b34f101fe7d1332c5c
Merged-In: Id705ee0f2b5c464f6d8ccc91f20dcb39dcf6f2b8
2020-01-09 10:22:47 +08:00
James Wei
7d66bd9b54 USB: [Tethering mainline] Expose @hide APIs to @SystemApi
Bug: 142372304
Test: Manual test: Enable USB tethering
Test: atest UsbTests
Test: atest UsbManagerTests
Change-Id: Ib284b0a72b06ff45b4d3b55a8d48c20f51284a20
2020-01-09 10:21:34 +08:00
Kyeongkab.Nam
f692b95b2a Add spoken subtitle information to TvTrackInfo
Add TIF API for getting spoken subtitle attribute for audio tracks
in order for TV App to use it.

Test: build
Bug: 112835103
Change-Id: I2ebc27dae020bce14cd1a3464e91416c7a4415ec
2020-01-09 09:13:08 +09:00
Xiangyu/Malcolm Chen
939d3d62cd Merge changes from topics "141018421_set3", "146905502", "remove_getPhoneId"
* changes:
  Make sanitizeLocationInfo System Api.
  Expose setUiccApplicationsEnabled as @SystemApi for eSIM to call upon slot mapping change.
  Mainline: remove usage of hiddepn API SubscriptionManager#getPhoneId
2020-01-08 23:51:48 +00:00
Meng Wang
0204e4a08e Merge "PersistableBundle: writeToStream/readFromStream" 2020-01-08 23:47:40 +00:00
Xiangyu/Malcolm Chen
5b879d5b2c Merge "[Mainline] Make canManageSubscription(SubscriptionInfo, String) System API." 2020-01-08 23:05:03 +00:00
Malcolm Chen
538fd0d477 [Telephony Mainline] Make newFromBundle and fillInNotifierBundle System
API

The APIs are used in several placed where listens to
SERVICE_STATE_CHANGE broadcast.

Bug: 140908357
Test: build
Change-Id: I84543dbb056694d975799c7959c7ed66e286c530
Merged-In: I84543dbb056694d975799c7959c7ed66e286c530
2020-01-08 14:03:55 -08:00
Malcolm Chen
b9446af563 Make sanitizeLocationInfo System Api.
sanitizeLocationInfo is a helper API but it's used by TelephonyRegistry
which is not part of mainline module. So we need to expose it as System
Api, and properly rename it.

Bug: 146905502
Test: build flash and boot
Change-Id: Ia318ada2e478dbb24349119203b7869d23342ee5
Merged-In: Ia318ada2e478dbb24349119203b7869d23342ee5
2020-01-08 14:01:39 -08:00
Malcolm Chen
4ece3db113 Expose setUiccApplicationsEnabled as @SystemApi for eSIM to call upon slot
mapping change.

Because currently we rely on eSIM module to do handle some slot mapping
change and single to dual SIM config change, eSIM needs to also make
sure uicc applications are enabled for certain scenarios. So we expose
the SubscriptionManager#setUiccApplicationsEnabled as @SystemApi

Bug: 141018421
Test: unittest
Change-Id: I9844e71260ea009afd0928a0f4be4426e7d12358
Merged-In: I9844e71260ea009afd0928a0f4be4426e7d12358
2020-01-08 13:56:27 -08:00
Cody Kesting
afa0f1756e Merge "Add API surface for ConnectivityDiagnostics API." 2020-01-08 21:53:14 +00:00
Meng Wang
2536134b12 PersistableBundle: writeToStream/readFromStream
Bug: 143911192
Test: manual sanity test
Change-Id: I208487d572c8148f28fac3307873dfdc90996ae1
2020-01-08 13:44:15 -08:00
Malcolm Chen
2619a9b138 [Mainline] Make canManageSubscription(SubscriptionInfo, String)
System API.

Bug: 146900942
Test: Build flash and bootup
Change-Id: I824582f9203b950d1153091181de345629adfe65
Merged-In: I824582f9203b950d1153091181de345629adfe65
2020-01-08 13:39:36 -08:00
Hall Liu
f428f58080 Merge "Add setDisabledForSimNetworkLock to StatusBarManager" 2020-01-08 20:54:48 +00:00
Yifan Hong
d0c62b9dab Merge changes from topics "vab_allocate", "vab_wait"
* changes:
  Use @ErrorCode for UpdateEngineCallback
  Add @ErrorCode annotation to UpdateEngine APIs
  Add UpdateEngine.cleanupSuccessfulUpdate
  Add UpdateEngine.allocateSpace
2020-01-08 18:37:16 +00:00
Kyeongkab.Nam
8bbcf8aae5 Add hearingImpaired information to TvTrackInfo
Add TIF API for getting hearing impaired attribute for audio and
subtitle tracks in order for TV App to use it.

Test: build
Bug: 112835103
Change-Id: I4046b5d49fcec2b944972bc532e844f0bdab9476
2020-01-08 17:51:27 +09:00
SongFerng Wang
995d20337f Merge "[Mainline] Create getDataRegistrationState and expose as system api" 2020-01-08 06:38:27 +00:00
Aaron Huang
b5b0b321f6 Merge "Make Context.NETWORK_POLICY_SERVICE @SystemApi" 2020-01-08 03:22:43 +00:00
Treehugger Robot
f04ee52d5a Merge "Add audio description information to TvTrackInfo" 2020-01-08 02:43:24 +00:00
Treehugger Robot
5e7e617e17 Merge "Make the BluetoothHidHost class @SystemApi" 2020-01-08 02:43:18 +00:00
Rahul Sabnis
9913cb52cf Make the BluetoothHidHost class @SystemApi
Bug: 146462547
Test: Manual
Change-Id: I2044e850583701173b51ca89e30ff8aa79bb255c
2020-01-07 17:02:22 -08:00
sqian
ff8dfe7eb2 Expose getActiveSubscriptionInfoForIcc for Mainline
Test: cts; treehugger
Bug: 122015219
Change-Id: I900e36fafe009206ec7431220603fcb8f404e33e
Merged-In: I900e36fafe009206ec7431220603fcb8f404e33e
(cherry picked from commit b086534dbec32c1855333499fed77a9b13d6933b)
2020-01-07 13:45:07 -08:00
Treehugger Robot
c0c8c00976 Merge "Add setConnectionPolicy to BluetoothPbap" 2020-01-07 20:33:21 +00:00
Lorenzo Colitti
96529ad7fc Merge changes If28f0be6,If0f80067
* changes:
  Make LinkPropertiesTest pass, and fix an NPE.
  Add the DHCP server address to LinkProperties.
2020-01-07 06:43:20 +00:00
Zongheng Wang
5d39bd1e2e Add addOnSubscriptionsChangedListener with an executor as a parameter
Bug: 140562205
Test: Manual
Change-Id: I4c81d9f3a8a3c7d11261cdfe1ae27b49abc33e43
2020-01-07 13:55:20 +08:00
SongFerng Wang
6297d2548d Merge "isTetheringApnRequired's permission is wrong." 2020-01-07 04:34:59 +00:00
SongFerngWang
d82fbaffa0 [Mainline] Create getDataRegistrationState and expose as system api
Bug: 144486008
Test: atest ServiceStateTest  (PASS)

Change-Id: Ice803f412135932ac2cedadc09433957c16ea512
Merged-In: Ice803f412135932ac2cedadc09433957c16ea512
2020-01-07 12:04:11 +08:00
Tom Hsu
03cbd5d35c Merge "Change TelephonyManager#isManualNetworkSelectionAllowed to system api" 2020-01-07 02:24:31 +00:00
Treehugger Robot
250a41a139 Merge "SMS service loads MMS config directly instead" 2020-01-07 01:29:05 +00:00
Rambo Wang
d9832ed2ed Deprecate some UICC related APIs in TelephonyManager
In specific, the following APIs are marked deprecated:
- TelephonyManager#iccOpenLogicalChannel
- TelephonyManager#iccCloseLogicalChannel
- TelephonyManager#iccCloseLogicalChannelBySlot
- TelephonyManager#iccTransmitApduLogicalChannel
- TelephonyManager#iccTransmitApduLogicalChannelBySlot
- TelephonyManager#iccTransmitApduBasicChannel
- TelephonyManager#iccTransmitApduBasicChannelBySlot
- TelephonyManager#iccExchangeSimIO
- TelephonyManager#sendEnvelopeWithStatus

The comments of the APIs are updated, suggesting to switch to
android.se.omapi.SEService APIs instead.

Telephony APIs do not provide any resource management for opened
logical channels, so it's easy for apps to open channels and
never close them. Secure Element Service does provide resource
management, so we are directing apps to use those APIs instead.

Bug: 146360599
Test: N/A
Change-Id: Id44402c637aaa77c77ee7672e0ceddf1bee20f7c
2020-01-06 17:12:40 -08:00
Treehugger Robot
b0546af594 Merge "Expose SignalStrength.CREATOR" 2020-01-07 01:02:53 +00:00
Hall Liu
2ada7fbac2 Merge "Clean up SmsApplication and expose getDefaultSmsPackage" 2020-01-07 00:36:51 +00:00
Taesu Lee
5f39e5d863 SMS service loads MMS config directly instead
getCarrierConfigValues() is removed from MmsManager and SMS service
loads Carrier configuration values directly since MmsService could
return null or cached config instead if an app requests the config by
receiving ACTION_CARRIER_CONFIG_CHANGED before the config is loaded
newly in MmsService by ACTION_CARRIER_CONFIG_CHANGED.

Bug: 145768042
Test: manual

Change-Id: Idc21015cab2902bd0f67e2131ea89b04c4fc4f5e
Merged-In: Idc21015cab2902bd0f67e2131ea89b04c4fc4f5e
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-01-07 00:12:54 +00:00
Hall Liu
9ded659a50 Add setDisabledForSimNetworkLock to StatusBarManager
Add a new @SystemApi disable utility method to allow telephony's
mainline module to disable the status bar when the device is SIM-locked

Bug: 146834818
Bug: 138956541
Test: atest StatusBarManagerTest
Change-Id: Id3757fc560c5b70bed553f19b050524a024b4c78
2020-01-06 15:47:45 -08:00
Rahul Sabnis
e36a171b23 Add setConnectionPolicy to BluetoothPbap
Bug: 145943634
Test: Manual
Change-Id: I72fc624d5c6578ca0374a1e943810d97b6361250
2020-01-06 15:22:55 -08:00
Hall Liu
13beb87783 Merge "Create new APIs for overriding APNs" 2020-01-06 23:14:44 +00:00