Commit Graph

6888 Commits

Author SHA1 Message Date
Hall Liu
1eb5888091 Merge "Mark old APIs as @removed" am: 999be29822 am: bcc49768e2
am: 44cc3636d3

Change-Id: I05221a9ee2295c18954499e17b9154fc9d3ddad6
2018-09-19 12:13:27 -07:00
Hall Liu
bcc49768e2 Merge "Mark old APIs as @removed"
am: 999be29822

Change-Id: I069bbdabe82b030706281bf10cfa8a59ec18a722
2018-09-19 11:48:40 -07:00
Hall Liu
999be29822 Merge "Mark old APIs as @removed" 2018-09-19 18:09:01 +00:00
Youming Ye
9fb304b9b9 Merge "Allow config of wfcSpnFormats to use root locale" am: b9c0115518 am: af72e460a5
am: 805f4e7799

Change-Id: I08eb378443b8f0fb41fc8a4f9439dd2827d6a20e
2018-09-18 15:29:50 -07:00
Youming Ye
af72e460a5 Merge "Allow config of wfcSpnFormats to use root locale"
am: b9c0115518

Change-Id: Ic3a09fd11aa54361ce5fa43fc4c691b4d02c47ac
2018-09-18 15:06:58 -07:00
Nathan Harold
cbf34a2318 Merge "Add function to encode PLMNs" am: f681744863 am: 3e8650c5d1
am: b4df52a9c1

Change-Id: I871e0f517c9fa52a6d9f742c9c82bafb191e8c53
2018-09-18 14:22:03 -07:00
Youming Ye
b9c0115518 Merge "Allow config of wfcSpnFormats to use root locale" 2018-09-18 21:07:01 +00:00
Nathan Harold
3e8650c5d1 Merge "Add function to encode PLMNs"
am: f681744863

Change-Id: I948db19cbc57f549b880d42200ea4164f4132490
2018-09-18 13:53:03 -07:00
Treehugger Robot
f681744863 Merge "Add function to encode PLMNs" 2018-09-18 18:58:03 +00:00
Hall Liu
78b57077d6 Mark old APIs as @removed
Remove deprecated SystemApis as a part of a refactor.

Bug: 115943523
Test: unit, manual
Change-Id: Ic8955be6f57411ba18b5f049c6519d1c1d01d937
2018-09-17 18:10:58 -07:00
Tyler Gunn
d89f52e4ef Merge "Enable enhanced call blocking by default." am: b6d55c2646 am: cecab68b67
am: f79aa13972

Change-Id: I0fff6c36da604146256dda38cf9d80e65f497427
2018-09-17 17:35:11 -07:00
Tyler Gunn
cecab68b67 Merge "Enable enhanced call blocking by default."
am: b6d55c2646

Change-Id: Ifec4eb98397237b80997fa46ef8447025ea57154
2018-09-17 16:56:15 -07:00
Treehugger Robot
b6d55c2646 Merge "Enable enhanced call blocking by default." 2018-09-17 22:47:23 +00:00
Jack Yu
5ee1ff7599 Merge "Use locale language instead of harcoded langauge" 2018-09-17 22:46:21 +00:00
Youming Ye
eb72ec648e Merge "Increase customization options for wfcSpnFormats" am: 34721e16a0 am: 5e88fe2fbc
am: 3b03a305b0

Change-Id: Ifbe7c4e9482b193dad8467ff62e2c900f6c1138c
2018-09-17 14:53:41 -07:00
Youming Ye
5e88fe2fbc Merge "Increase customization options for wfcSpnFormats"
am: 34721e16a0

Change-Id: I5220f302d60874b160177874fc863b79bb46e978
2018-09-17 11:16:29 -07:00
Jack Yu
28e9684705 Use locale language instead of harcoded langauge
Used the locale language instead of the hardcoded language since
ISO 639 is not a stable standard. Some language codes changed before.

This is part of the cell broadcast language filtering feature
added per U.S. FCC requirement.

Test: Manual
Bug: 110754638, 71497689, 110896497
Change-Id: I3cf42eb037cdbb40597c1053fedb36b478277fc9
2018-09-17 11:08:18 -07:00
Youming Ye
34721e16a0 Merge "Increase customization options for wfcSpnFormats" 2018-09-17 16:55:14 +00:00
Torbjorn Eklund
99c11d8ea4 Allow config of wfcSpnFormats to use root locale
Adds carrier config KEY_WFC_SPN_USE_ROOT_LOCALE. If true, the root
locale will be used when reading wfcSpnFormats. This means a
non-translated version of wfcSpnFormats will be used.

strings.xml in values-mcc262-mnc02 was deleted. The same requirement can
now be achieved by setting KEY_WFC_SPN_USE_ROOT_LOCALE to true.

Bug: 114292743
Test: Manual
Change-Id: Ia62976282c5526190d5d04361b1d4fbfc3333068
2018-09-17 15:40:53 +02:00
Nathan Harold
916f8c3618 Merge "Don't Use NPE for Flow Control in getCellLocation" am: 86f991a7bd am: 65e63ce0de
am: dfca0da00e

Change-Id: I1a0c3f4f0b8936dc019f7faef3d69df6d5e86afb
2018-09-14 19:34:59 -07:00
Nathan Harold
65e63ce0de Merge "Don't Use NPE for Flow Control in getCellLocation"
am: 86f991a7bd

Change-Id: I3440e965f8f7edfa86359677e704140f39deb320
2018-09-14 19:15:54 -07:00
Treehugger Robot
86f991a7bd Merge "Don't Use NPE for Flow Control in getCellLocation" 2018-09-15 00:23:28 +00:00
Mathew Inwood
db0657a4f4 Merge "Move some members to the "Q blacklist"." 2018-09-14 13:54:28 +00:00
Mathew Inwood
8c854f86a4 Move some members to the "Q blacklist".
Based on some analysis, these fields/methods are likely false positives.
Set maxTargetSdk=P so that any apps using them are required to migrate off
them in future. See the bug for more details.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: I719b5c94e5b1f4fa562dd5d655953422958ad37e
2018-09-14 13:18:34 +01:00
TreeHugger Robot
beb077d987 Merge "Added new cell broadcast channels" 2018-09-13 16:02:59 +00:00
Pengquan Meng
624ccc3331 Merge "Add New TelephonyManager APIs"
am: b65aca27af

Change-Id: I18c7c905f742e40331dca61efc9c314e6b08ad32
2018-09-12 19:32:41 -07:00
Pengquan Meng
b65aca27af Merge "Add New TelephonyManager APIs" 2018-09-13 01:09:47 +00:00
Tyler Gunn
212c157e32 Enable enhanced call blocking by default.
Enable the enhanced call blocking options by default.  This provides
the ability to block:
- private callers - those who have intentionally blocked their number.
- calls from payphones (they still exist)
- unknown callers (not the same as restricted; network may not be able to
determine the number of the caller)
- numbers not in contacts

These options are available in the blocked number screen (on AOSP
from the dialer app go to settings --> Blocked Numbers).

Test: Manual - confirm enhanced call blocking options are available.
Bug: 63966743
Change-Id: I5aab0714774a5406568d6cd04a4d7074a3261c44
2018-09-12 17:50:49 -07:00
Pengquan Meng
eda353bc52 Merge "Update TelephonyManager document"
am: 14faaf660d

Change-Id: Ib155f7cde84ea033164c99f8e09d9fe797badae8
2018-09-12 16:53:13 -07:00
Jack Yu
78921f0925 Added new cell broadcast channels
Added new cell broadcast channels for public safety messages
and state/local test alert required by FCC of the United States.

Test: Build
Bug: 110754638, 71497689, 110896497
Change-Id: I05c57b66d85ea7f2b67d7fc421230442f5c7694f
2018-09-12 15:07:47 -07:00
Pengquan Meng
efe8adff87 Update TelephonyManager document
Bug: 111453847
Test: build
Merged-In: Ief746e771dc9435782dec75cf2259d5b9f040c27
Change-Id: Ief746e771dc9435782dec75cf2259d5b9f040c27
2018-09-12 10:23:56 -07:00
sqian
62283fddfb Merge "Make SubscriptionManager.isValidSubscriptionId public" am: 241aa86ed6 am: 7dc073995b
am: bd4b87961f

Change-Id: I28d119d30bc48347715f6c0fe3efdb121a3e2340
2018-09-12 09:24:37 -07:00
sqian
7dc073995b Merge "Make SubscriptionManager.isValidSubscriptionId public"
am: 241aa86ed6

Change-Id: Ibbb69ba6e01d21bdd414afc73a90a965244eeae6
2018-09-11 18:31:32 -07:00
Pengquan Meng
97c29e04fa Add New TelephonyManager APIs
Bug:111453847
Test: build test
Merged-In: I83a5f4149f92ce495cd066f7158e7ff37a66894f
Change-Id: I83a5f4149f92ce495cd066f7158e7ff37a66894f
2018-09-11 15:07:56 -07:00
Xiangyu/Malcolm Chen
e3d93a25d6 Merge "Add API to listen to opportunistic subscriptions change."
am: 26e686a973

Change-Id: I20ba8865169a857e73b4094ac170f63bf41a66a3
2018-09-11 13:11:24 -07:00
sqian
00dae7e097 Make SubscriptionManager.isValidSubscriptionId public
And rename subId to subscriptionId.

Test: Treehugger
Bug: 113072551
Change-Id: I4bdf705d7f81bad423ed867972fd1ed7fe5717d0
2018-09-11 11:52:52 -07:00
Malcolm Chen
27829e2d17 Add API to listen to opportunistic subscriptions change.
Add a new set of APIs so that caller can listen to
opportunistic subscriptions changes.

Bug: 92796390
Test: build
Change-Id: Iaa741141bf1bd04c4b1618d5bfeac733a0690ed8
Merged-In: Iaa741141bf1bd04c4b1618d5bfeac733a0690ed8
2018-09-10 15:36:08 -07:00
Pengquan Meng
1e1f0b3e10 Merge "Add New TelephonyManager APIs" 2018-09-08 06:23:16 +00:00
Xiangyu/Malcolm Chen
a1a74cb44d Merge "Add API to listen to opportunistic subscriptions change." 2018-09-07 20:17:17 +00:00
Pengquan Meng
2a949cdd1e Add New TelephonyManager APIs
Bug:111453847
Test: build test
Change-Id: I83a5f4149f92ce495cd066f7158e7ff37a66894f
2018-09-07 11:56:30 -07:00
Nathan Harold
edf6ccaeb3 Don't Use NPE for Flow Control in getCellLocation
Remove catch of NPE from getCellLocation and do explicit
null checks. This will make it easier to differentiate
between actual problems and local NPEs. In pre-P, there
were multiple conditions that would intentionally return
null over the binder interface. In Post-P null is returned
when location is disabled, which means that null is a very
common return value. We shouldn't use NPE to handle the
case where location is disabled.

Bug: 114294321
Test: manual w/ SL4A (no automated tests for TM)
Change-Id: Ie5b3afa56f280ff901ff9fa7c93f958d754f109b
2018-09-07 11:56:08 -07:00
Torbjorn Eklund
576848313a Increase customization options for wfcSpnFormats
Expand wfcSpnFormats with more options, in order to support
requirements from more operators.

Five new options are added in this patch. The list of available options
becomes:
0: %s
1: %s Wi-Fi Calling
2: WLAN Call (New)
3: %s WLAN Call (New)
4: %s Wi-Fi (New)
5: WiFi Calling | %s (New)
6: %s VoWifi (New)

strings.xml in values-mcc302-mnc370 and values-mcc302-mnc720 was deleted.
The same requirement can now be achieved by configuring KEY_WFC_SPN_FORMAT_IDX_INT
or KEY_WFC_DATA_SPN_FORMAT_IDX_INT to 4.

Bug: 114303633
Test: Manual
Change-Id: I5daf6b49c838df823aed4b84f5f80c68f46b2970
2018-09-07 12:58:46 +00:00
Malcolm Chen
13f31af137 Add API to listen to opportunistic subscriptions change.
Add a new set of APIs so that caller can listen to
opportunistic subscriptions changes.

Bug: 92796390
Test: build
Change-Id: Iaa741141bf1bd04c4b1618d5bfeac733a0690ed8
2018-09-06 19:00:06 -07:00
sqian
7fde1c770b resolve merge conflicts of b96891b805 to master
Test: I solemnly swear I tested this conflict resolution.
Bug: 113072551
Change-Id: I0077bfea84e5ff9a37bfc8c84c7d1d38872f3561
2018-09-06 23:05:46 +00:00
Sooraj Sasindran
d71ccc543e Merge "Introduce AlternativeNetworkAccess APIs" 2018-09-06 20:32:01 +00:00
sqian
d88648a475 Merge "Make SubscriptionManager.getSubId public"
am: f9fa9a63bb

Change-Id: I1dbc088c8668df43a18741a58b9c32ef5eae1fc9
2018-09-06 13:26:59 -07:00
Treehugger Robot
f9fa9a63bb Merge "Make SubscriptionManager.getSubId public" 2018-09-06 20:06:02 +00:00
Sooraj Sasindran
165c9e90fb Introduce AlternativeNetworkAccess APIs
Introduce AlternativeNetworkAccess APIs

Bug: 113106744
Test: Verified using test app to make api calls
Change-Id: I7f470cd6028a12cc66a660d58720f803271d38eb
2018-09-06 10:32:56 -07:00
Xiangyu/Malcolm Chen
29f9a240c0 Merge "Add VisibleForTesting to create TelephonyRegistryTest." 2018-09-04 20:26:30 +00:00
Brad Ebinger
77893e4032 Merge "Only make a subset of Call Barring options visible per carrier" am: e310df92db am: 7361cbf56f
am: 6bf2079272

Change-Id: I924bb2732750a7c80e5b44c2ef6fe04cab717ab9
2018-09-04 10:34:46 -07:00