Commit Graph

7083 Commits

Author SHA1 Message Date
Chen Xu
a2dd17be66 Merge "Expose ModemActivitiyInfo to system API" 2019-09-13 01:56:22 +00:00
Shuo Qian
747fd26f71 Merge "Listeners of active emergency numbers" 2019-09-12 22:57:11 +00:00
Shuo Qian
7a1eb6d56b Listeners of active emergency numbers
1) Introduce a new signature-level system permission allowing system apps to listen the
 active emergency number, placed by calls or texts.

2) Add PhoneStateListener API surface to provide a mechanism to listen the
outgoing call emergency number or outgoing sms emergency number.

Bug: 135204580
Test: atest
Change-Id: I6e6bce6d4b97d492ca20302002911f9daa20767e
2019-09-12 13:37:59 -07:00
Chen Xu
7322e4a7ce Expose ModemActivitiyInfo to system API
ModemActivityInfo is used for batteryStatusService which is part of
system service. To prepare telephony to be an mainline module, we
should expose ModemActivityInfo to systemAPI

1. remove getConsumedPower API as we are missing modem support, API
today only report 0
2. isValid API is introduced to cover modem issues before. Do not
expose this for now.

Bug: 140908357
Test: Build
Change-Id: I6e1b0daa2e0ce23b9fd55f0dd7037631b93eb7a5
2019-09-11 23:33:08 -07:00
Xiangyu/Malcolm Chen
3570d3af38 Merge "Remove permission check for LISTEN_ACTIVE_DATA_SUBSCRIPTION_ID_CHANGE" 2019-09-09 21:22:37 +00:00
Brad Ebinger
18206aecea Merge "Re-deprecating Capabilities in ImsFeature" am: f4cd3de77a am: 36d3aa0e02 am: 86d97445cf
am: 384b50304f

Change-Id: Ib8d2e1d1184a168dee79ac3e31b6a46f4c0b3ac5
2019-09-06 16:09:32 -07:00
Brad Ebinger
384b50304f Merge "Re-deprecating Capabilities in ImsFeature" am: f4cd3de77a am: 36d3aa0e02
am: 86d97445cf

Change-Id: I405d270b964f93e643b1630250bc09dda229987a
2019-09-06 14:56:40 -07:00
Brad Ebinger
86d97445cf Merge "Re-deprecating Capabilities in ImsFeature" am: f4cd3de77a
am: 36d3aa0e02

Change-Id: Id9ea164e537b6f12b2af02f2833b0f95d3391e1c
2019-09-06 14:33:57 -07:00
Pengquan Meng
7af3d7f0c0 Merge "Support maximum wait time for Cell broadcast" am: 156f347db4 am: 0362123033
am: 90247580a7

Change-Id: Ia785431a50d6fa6343a6cd67b31f57416004ad51
2019-09-06 14:33:39 -07:00
Pengquan Meng
90247580a7 Merge "Support maximum wait time for Cell broadcast" am: 156f347db4
am: 0362123033

Change-Id: I08d29451c56e9f0405399eddbc3c4fc662ee1b6a
2019-09-06 14:22:00 -07:00
Brad Ebinger
f4cd3de77a Merge "Re-deprecating Capabilities in ImsFeature" 2019-09-06 18:55:17 +00:00
Pengquan Meng
156f347db4 Merge "Support maximum wait time for Cell broadcast" 2019-09-06 17:15:28 +00:00
Malcolm Chen
f028c3bb68 Remove permission check for LISTEN_ACTIVE_DATA_SUBSCRIPTION_ID_CHANGE
Bug: 140020981
Test: sanity
Change-Id: I060511af068bfbbc9fea5c5d27a5d04eb2924fda
2019-09-05 17:09:16 -07:00
Pengquan Meng
9f677a0790 Support maximum wait time for Cell broadcast
Geo-Fencing Maximum Wait Time a device shall allow to determines it
location meeting operator policy. If the device is unable to determine
its position meeting operator policy within the GeoFencing Maximum Wait Time,
it shall present the alert to the user and discontinue further positioning
determination for the alert.

Bug: 139022202
Test: manual
Merged-In: If3d8d7915f2d86da20c63e99bee01f30e3ea89c0
Change-Id: If3d8d7915f2d86da20c63e99bee01f30e3ea89c0
(cherry picked from commit 02d6ac0f20)
2019-09-05 15:27:31 -07:00
Brad Ebinger
98c0e000eb Re-deprecating Capabilities in ImsFeature
Readding the @deprecated javadoc to Capabilities as it is valid
to @hide a superclass of a @SystemApi.

Bug: 138990145
Test: manual
Change-Id: I1749aa3f09b7782fd0d665238be4c288a33536ea
2019-09-05 11:18:37 -07:00
Pengquan Meng
02d6ac0f20 Support maximum wait time for Cell broadcast
Geo-Fencing Maximum Wait Time a device shall allow to determines it
location meeting operator policy. If the device is unable to determine
its position meeting operator policy within the GeoFencing Maximum Wait Time,
it shall present the alert to the user and discontinue further positioning
determination for the alert.

Bug: 139022202
Test: manual
Change-Id: If3d8d7915f2d86da20c63e99bee01f30e3ea89c0
2019-09-05 10:42:43 -07:00
Patrick Huang
d1c89a2e35 Merge "Add TelephonyManager APIs to take physical slotIndex - getSimCardState - getSimApplicationState" 2019-09-04 22:27:50 +00:00
Patrick Huang
f7f87dd1c9 Add TelephonyManager APIs to take physical slotIndex
- getSimCardState
- getSimApplicationState

Bug: 134627366
Test: Manual test on device
Change-Id: I72612afb9f8ff3d898db99afaaee0c0d3654f754
2019-09-04 13:14:41 -07:00
Jordan Liu
c4fde94a5a Merge "Change CellBroadcast APIs to SystemApi" am: 82454e029f am: d41a61df80 am: 6b79955db4
am: 0beff21dae

Change-Id: Ib2129988fc7e3f03073ce601003cc54d1eeb42d8
2019-09-03 15:10:04 -07:00
Jordan Liu
0beff21dae Merge "Change CellBroadcast APIs to SystemApi" am: 82454e029f am: d41a61df80
am: 6b79955db4

Change-Id: I1a40ce3f449b474b1d6c9d9ba5f1bedd276b4efb
2019-09-03 14:28:34 -07:00
Jordan Liu
d41a61df80 Merge "Change CellBroadcast APIs to SystemApi"
am: 82454e029f

Change-Id: Ic39446ab84f910b0f5225ad42f061e2a525ec868
2019-09-03 13:52:14 -07:00
Jordan Liu
e4141f0e8b Change CellBroadcast APIs to SystemApi
Bug: 135956699
Test: atest SmsManagerPermissionTest
Change-Id: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
Merged-In: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
2019-09-03 11:32:58 -07:00
Jordan Liu
9cdab3bf86 Merge "Change CellBroadcast APIs to SystemApi" 2019-08-31 04:56:14 +00:00
Jordan Liu
657ef5a7e8 Change CellBroadcast APIs to SystemApi
Bug: 135956699
Test: atest SmsManagerPermissionTest
Change-Id: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
2019-08-30 14:27:39 -07:00
Nazanin Bakhshi
1aa6877696 Merge "Fix crashes seen when checking for carrierConfig certificates" into qt-qpr1-dev am: 848df9895f
am: 92654741c0

Change-Id: Ie2dc1d4750f1b5abcd8908394cb0211d7949ca90
2019-08-30 12:57:43 -07:00
Nazanin Bakhshi
92654741c0 Merge "Fix crashes seen when checking for carrierConfig certificates" into qt-qpr1-dev
am: 848df9895f

Change-Id: Ie61a4409cdda0435633993098097638a474bc8ea
2019-08-30 12:43:21 -07:00
Nazanin Bakhshi
293ecad827 Fix crashes seen when checking for carrierConfig certificates
1. Do not throw exception when packageName is not found
2. Fix NPE caused by null SubscriptionInfo

Bug: 140122832
Test: Utest and manual test
Change-Id: I686647419896a1780f0697b3ed5d319363675f5f
2019-08-30 18:36:27 +00:00
Sarah Chin
5741927f2b Merge "Handle 5G meteredness in telephony framework" 2019-08-30 17:41:18 +00:00
Aurimas Liutikas
488d37b2d0 Merge "Add missing nullability annotations." into stage-aosp-master am: 85c0a5a2be am: ed5beec21b
am: de0ebb082e

Change-Id: I60c55b6706e8d43121e8b2c7a35efff38668f66b
2019-08-30 08:54:38 -07:00
Aurimas Liutikas
de0ebb082e Merge "Add missing nullability annotations." into stage-aosp-master am: 85c0a5a2be
am: ed5beec21b

Change-Id: I202951d51820be47b9195734601830553215bdd7
2019-08-30 08:43:01 -07:00
Sarah Chin
92860a704b Handle 5G meteredness in telephony framework
Carriers can set override values via SubscriptionManager.
Added constants and configs for 5G meteredness updates.

Bug: 139070884
Bug: 139218397
Test: atest FrameworksTelephonyTests
Test: atest
cts/tests/tests/telephony/current/src/android/telephony/cts/SubscriptionManagerTest.java

Change-Id: Ic8c5938c4a414ce63303a1fa25af60a0082b1ba9
2019-08-30 14:27:39 +00:00
Aurimas Liutikas
1da3bde08d Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Merged-In: I109260842cfc25f06e40694997fcbb4afa02c867
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
2019-08-30 00:16:24 +00:00
Aurimas Liutikas
4d1699da48 Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
2019-08-29 17:15:44 -07:00
Aurimas Liutikas
00be951a08 Add missing nullability annotations.
To prepare for enabling MissingNullability Metalava check this CL
works on adding missing nullability issues that metalava flags if
we tell it to flag new things since API 29.

This is not a complete CL, mostly addresses public api and
toString/equals for @SystemApi

Exempt-From-Owner-Approval: Large scale nullability clean up
Bug: 124515653
Test: make -j checkapi
Merged-In: I109260842cfc25f06e40694997fcbb4afa02c867
Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
2019-08-30 00:14:44 +00:00
Treehugger Robot
1953ea490f Merge "SDK API doesSwitchModemConfigTriggerReboot" 2019-08-28 17:51:50 +00:00
Taesu Lee
a5369e3158 Merge "No need PDU data for deleteMessageFromIcc()" am: 0280bd3970 am: aa27371a71 am: 4b6e943d0d am: 9364284662
am: 5e30bf808b

Change-Id: If7a7dfe61c9035eb78385e01f1924af821fa0c3a
2019-08-28 02:27:49 -07:00
Taesu Lee
5e30bf808b Merge "No need PDU data for deleteMessageFromIcc()" am: 0280bd3970 am: aa27371a71 am: 4b6e943d0d
am: 9364284662

Change-Id: Iee7ea241539f8484e380c85046506ebd9cedf96a
2019-08-28 02:13:12 -07:00
Taesu Lee
9364284662 Merge "No need PDU data for deleteMessageFromIcc()" am: 0280bd3970 am: aa27371a71
am: 4b6e943d0d

Change-Id: I2b87b4b52f69cc75400773f34215173cd7518d58
2019-08-28 01:58:52 -07:00
Taesu Lee
aa27371a71 Merge "No need PDU data for deleteMessageFromIcc()"
am: 0280bd3970

Change-Id: Ida80e7e57477eb13a7d999ab589fef8e1139acb7
2019-08-28 01:27:10 -07:00
Treehugger Robot
0280bd3970 Merge "No need PDU data for deleteMessageFromIcc()" 2019-08-28 08:01:30 +00:00
sung_jae
7494ccbaf8 Merge "Fix NPE" am: 78658058dc am: f66dc6a966 am: 085bce44f9 am: aef181528b
am: 048b643bd8

Change-Id: I63d44cbd21ee8635f40d3cc4d965c6e3dea0ad4d
2019-08-27 14:38:49 -07:00
sung_jae
048b643bd8 Merge "Fix NPE" am: 78658058dc am: f66dc6a966 am: 085bce44f9
am: aef181528b

Change-Id: I4c9552e5d70f90bbe9fc6712f1a72c5e4499b731
2019-08-27 14:22:03 -07:00
Pengquan Meng
2a0cd6d35f Merge "Support WAC decoding in UMTS format" am: 9bc9b80912 am: 6cf420a80e
am: 49d538731b

Change-Id: If03eba667943b68bed66eb77acdcc53dd22cf3ed
2019-08-27 14:15:40 -07:00
sung_jae
aef181528b Merge "Fix NPE" am: 78658058dc am: f66dc6a966
am: 085bce44f9

Change-Id: I4f9297a151a2394a18cda5091636dd08a1dd51cf
2019-08-27 14:11:25 -07:00
Pengquan Meng
6cf420a80e Merge "Support WAC decoding in UMTS format"
am: 9bc9b80912

Change-Id: I7efc88e5878e68b571d55fd386ad022b9a662bc3
2019-08-27 13:50:18 -07:00
sung_jae
f66dc6a966 Merge "Fix NPE"
am: 78658058dc

Change-Id: Iab42549310f6fdc6154c57a77721073a414215a2
2019-08-27 13:45:18 -07:00
Pengquan Meng
9bc9b80912 Merge "Support WAC decoding in UMTS format" 2019-08-27 20:16:54 +00:00
Treehugger Robot
78658058dc Merge "Fix NPE" 2019-08-27 20:14:20 +00:00
Pengquan Meng
c3427c01b3 Support WAC decoding in UMTS format
This add a decoder for WAC information. WAC is appended to the UMTS
cell broadcast message. The encoding is defined in ATIS-0700041.

Bug: 123096618
Test: build & manual test
Merged-In: I73dc22c27c2cfd47000ae65448fbc857ed9aa42f
Change-Id: I73dc22c27c2cfd47000ae65448fbc857ed9aa42f
(cherry picked from commit 14df7e3845369e7254e6aae13160c7e1caa1d28a)
(cherry picked from commit 1f64582bdf)
2019-08-26 16:24:14 +00:00
Taesu Lee
265dc5bce2 No need PDU data for deleteMessageFromIcc()
Test: Manual

Change-Id: I5a64546cb9da57c039c7c86768f3710a1874220d
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-08-26 16:11:17 +09:00