Commit Graph

9884 Commits

Author SHA1 Message Date
Daniel Bright
6779079090 Merge "Call on urls changed callback when callback added" am: 62e4a9516d am: 0c8c709bd5 am: bd7c802dd7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1352923

Change-Id: I75a060de7a5af002dfd5febed456b2bd26785602
2020-06-30 22:55:01 +00:00
Daniel Bright
bd7c802dd7 Merge "Call on urls changed callback when callback added" am: 62e4a9516d am: 0c8c709bd5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1352923

Change-Id: I2bda1a15d0fd774f3022b30a1ef07c166814f4de
2020-06-30 22:39:44 +00:00
Daniel Bright
62e4a9516d Merge "Call on urls changed callback when callback added" 2020-06-30 22:11:43 +00:00
Amit Mahajan
d9b216af12 Remove spammy log line.
Test: TH
Bug: 157172358
Merged-in: Ib76bd317bdd21ef6c1272d38f102f8e40b66d9b8
Change-Id: Ib76bd317bdd21ef6c1272d38f102f8e40b66d9b8
(cherry picked from commit 5c5635ac7d)
2020-06-29 15:51:53 -07:00
Daniel Bright
7310da73a0 Call on urls changed callback when callback added
Now calling onSubscriberAssociatedUriChanged on IImsRegistrationCallback
when the callback is first added to ImsRegistrationImplBase.

Bug: 159301697
Test: Made phone call
Test: Added unit test
Change-Id: Ibfcb8aaae9d410a09ec98e57d77eccd34fcc222f
Merged-In: Ibfcb8aaae9d410a09ec98e57d77eccd34fcc222f
2020-06-29 14:41:30 -07:00
Nathan Harold
62f064fc4d Merge "Abort NetworkScans when Phone Process Crashes" am: ed7cf992a0 am: e78ea75efe am: 5bbd69c45f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1312940

Change-Id: I5b16ad2dc3bc894b6600656c363710c11ef4c42e
2020-06-26 22:51:38 +00:00
Nathan Harold
5bbd69c45f Merge "Abort NetworkScans when Phone Process Crashes" am: ed7cf992a0 am: e78ea75efe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1312940

Change-Id: Ie2ea3b06adb42f8ea7f595907950a5019f7cd5c5
2020-06-26 22:40:21 +00:00
Nathan Harold
ed7cf992a0 Merge "Abort NetworkScans when Phone Process Crashes" 2020-06-26 22:12:28 +00:00
Jack Yu
c216e75c62 Disable DUN APN while roaming for certain carriers am: db897af77d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11988449

Change-Id: I52686107ca9d8958b8ee6aff9d5837fd73f36629
2020-06-25 01:10:01 +00:00
Jack Yu
db897af77d Disable DUN APN while roaming for certain carriers
Some carriers would like to use default APN for
tethering while the device is roaming. Added a new
carrier config to disable DUN APN while the device
is roaming.

Fix: 158546796
Test: DcTrackerTest
Change-Id: I2e633fd764f86b196a6ee0c29af2b97733e82c66
2020-06-24 22:29:23 +00:00
Makoto Onuki
a11035a7eb Remove unnecessarily @System/TestApi annotations
We can't expose APIs if the enclosing class is hidden, so these
annotations are redundant. We need to remove them so that we can enable the
check.

Exempt-From-Owner-Approval: Cherry-pick from goog/master
Bug: 159121253
Test: treehugger (i.e. this shouldn't trigger "API has changed" error.)
Merged-in: Ie1841a670bdf6c6f4b25a1fc5deed8ec2d18cda2
Change-Id: I36e3562b72e64b51e4febd1d42a3bc8e4dc60988
2020-06-24 20:49:20 +00:00
Nathan Harold
e9d38721db Abort NetworkScans when Phone Process Crashes
If the phone process crashes during a network scan, today
the scan hangs indefinitely. This CL adds a binder death
recipient to the wakefulness binder so that if the phone
process crashes, we detect it and cancel the scan.

Because there's no error code for "Telephony crashed" today,
the closest error code is to say that the modem is unavailable.

In addition, fix an issue where onError() did not actually remove
scans from the list of cached scans. This left dangling scan
objects in the cache after an error.

Bug: 155853346
Test: manual -
      1) start scan
      2) crash phone process
      3) verify error is returned to scan request
Change-Id: I8bd3823805fcc68623a685848517f2d11555e9c7
2020-06-24 18:35:41 +00:00
Makoto Onuki
d9bdedcf5b Merge "Remove unnecessarily @System/TestApi annotations" into rvc-dev-plus-aosp 2020-06-24 18:02:52 +00:00
Makoto Onuki
42bec243c0 Remove unnecessarily @System/TestApi annotations
We can't expose APIs if the enclosing class is hidden, so these
annotations are redundant. We need to remove them so that we can enable the
check.

Exempt-From-Owner-Approval:Cherry-pick from goog/master
Bug: 159121253
Test: treehugger (i.e. this shouldn't trigger "API has changed" error.)
Merged-in: Ie1841a670bdf6c6f4b25a1fc5deed8ec2d18cda2
Change-Id: Ie1841a670bdf6c6f4b25a1fc5deed8ec2d18cda2
2020-06-24 18:02:10 +00:00
TreeHugger Robot
e71ed27853 Merge "Add additional info to device ID docs in TelephonyManager and Build" into rvc-dev am: 3fa2d86fd0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11980365

Change-Id: I70c91479f8f8557f1e0abbd125c6a4e24c262bd8
2020-06-24 16:29:17 +00:00
TreeHugger Robot
3fa2d86fd0 Merge "Add additional info to device ID docs in TelephonyManager and Build" into rvc-dev 2020-06-24 16:15:32 +00:00
Michael Groover
e0de018109 Add additional info to device ID docs in TelephonyManager and Build
Android 10 introduced additional restrictions to access persistent
device identifiers. This commit updates the javadocs for
TelephonyManager and Build to provide additional details regarding
the requirements and how to check if these requirements are met.

Fixes: 158471988
Test: m docs -j
Change-Id: I02932a22ecc5b761aa1a92d59d09d31863c34235
2020-06-23 19:52:51 -07:00
Treehugger Robot
8d0dfda3ce Merge "[5G settings UI] Add config for the 5G limited VoLTE alert dialog" 2020-06-23 17:45:01 +00:00
SongFerngWang
8c8c3dc81c [5G settings UI] Add config for the 5G limited VoLTE alert dialog
Flag specifying whether to show an alert dialog for 5G disable
when the user disables VoLTE.

Bug: 151313654
Test: build pass. manual test: UI show alert dialog.
Change-Id: I5a5ab9e47722ad2ba28038233c5d2fc5fbe7e667
Merged-In: I5a5ab9e47722ad2ba28038233c5d2fc5fbe7e667
2020-06-23 22:26:24 +08:00
SongFerngWang
bdedfc06ad Add a carrier config for WFC's carrier name override by ef_pnn
To override wifi calling's carrier name string using ef_pnn
from sim card.

Bug: 157108864
Test: UE with TMO sim card to test in Roaming and WFC on, and then
check operator name. (PASS)

Change-Id: Id72ce2a9a0fb8f45efa8a975e8052808f726a971
Merged-In: Id72ce2a9a0fb8f45efa8a975e8052808f726a971
2020-06-23 20:55:39 +08:00
Sarah Chin
de4959769d Merge "Update UL values for NR" 2020-06-22 23:21:08 +00:00
Sarah Chin
95553d14cd Update UL values for NR
Test: build
Bug: 158218596
Change-Id: I2d548711c5de9683b57dc7bbeea9379d23b18343
Merged-In: I2d548711c5de9683b57dc7bbeea9379d23b18343
2020-06-22 15:36:24 -07:00
Sarah Chin
4b42d70d84 Create carrier config for NR enabled setting
Test: build
Bug: 155915216
Change-Id: Ib81bb6b1712fcf53723df04f162c50a89c96e04d
Merged-In: Ib81bb6b1712fcf53723df04f162c50a89c96e04d
2020-06-22 15:24:44 -07:00
Michael Groover
1f121ac74e Merge "Update SubInfo docs for ICC ID / num restrictions in API 30" into rvc-dev am: e219b9196f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11933067

Change-Id: Ia854a42d64318c5e6c98ebeb061ef883aa503276
2020-06-22 21:12:56 +00:00
Michael Groover
e219b9196f Merge "Update SubInfo docs for ICC ID / num restrictions in API 30" into rvc-dev 2020-06-22 20:58:24 +00:00
Michael Groover
0643914d05 Update SubInfo docs for ICC ID / num restrictions in API 30
In Android 11 access to the ICC ID is guarded behind the same access
restrictions as the SIM serial number; the requirements to access the
device phone number have also changed. This commit updates the docs to
reflect that these changes are active starting from API level 30.

Fixes: 159568585
Test: m docs -j
Change-Id: I5ececac6f8dee5281d8bfc6c62408a18c8b3effa
2020-06-21 18:43:23 -07:00
TreeHugger Robot
6f000e189b Merge "Reset cell broadcast config before enabling all channels" into rvc-dev 2020-06-19 22:02:39 +00:00
Brad Ebinger
6b8e4bdf66 Merge "Fix MmTelFeatureConnection Memory Leak" 2020-06-19 20:12:44 +00:00
Jack Yu
e9c44278c5 Reset cell broadcast config before enabling all channels
Before cell broadcast config service enabling all channels, it
reset all channels that were previously enabled. This will make
sure the full channel config can be pushed down to modem. This
also solved the issue that channel config not sending to modem
when SIM is swapped. Note that a hidden API is added and will
be unhide in the next Android release.

Fix: 155027085
Test: Manual
Merged-In: Id571b990f4e45aea5bbab0dbadce48dda7b2bc56
Change-Id: Id571b990f4e45aea5bbab0dbadce48dda7b2bc56
2020-06-19 19:46:31 +00:00
Brad Ebinger
e51d2698ac Merge "Remove IllegalArgumentException for registration of capabilities" 2020-06-19 18:44:09 +00:00
Brad Ebinger
5c91f871d7 Merge "Fix UCE docs" 2020-06-19 18:27:56 +00:00
Brad Ebinger
3afcd20f6a Fix MmTelFeatureConnection Memory Leak
In FeatureConnection, we never cleaned up the ImsFeatureStatusCallback
after it was destroyed, leaving zombie FeatureConnections around.

Bug: 156893040
Fixes: 157948894
Test: atest FrameworksTelephonyTests
Merged-In: Idcf8b558c3807a3f9f5094afee532e76ea6f02cb
Change-Id: Idcf8b558c3807a3f9f5094afee532e76ea6f02cb
2020-06-19 10:57:04 -07:00
Brad Ebinger
aa4d1c60a5 Fix UCE docs
Clarify some of the docs for UCE Intent.

Fixes: 156114453
Fixes: 158014476
Test: docs only
Merged-In: I01617d0741055e347e05bdbd5eb5a6825f896e73
Change-Id: I01617d0741055e347e05bdbd5eb5a6825f896e73
2020-06-19 10:32:59 -07:00
Brad Ebinger
e170706352 Remove IllegalArgumentException for registration of capabilities
We threw an IllegalArgumentException for an invalid subscription,
however this is counter to what this exception should be used for.
Instead, use ImsException#CODE_ERROR_INVALID_SUBSCRIPTION.

Also fixed incorrect ImsException sent when telephony crashed.

Bug: 156402275
Fixes: 159135792
Test: atest FrameworksTelephonyTests; CtsTelephonyTestCases; manual
Change-Id: I3250419a2438afb58922ae653e3f2e4f9628e593
Merged-In: I3250419a2438afb58922ae653e3f2e4f9628e593
2020-06-19 17:20:22 +00:00
TreeHugger Robot
19594796df Merge "Add a carrier config for WFC's carrier name override by ef_pnn" into rvc-dev am: 29db7a6a62
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11874044

Change-Id: I3167d1972dd93c5f76d22c337dd057b01f7a589e
2020-06-18 21:42:34 +00:00
Jack Yu
88fb45c1a9 Reset cell broadcast config before enabling all channels
Before cell broadcast config service enabling all channels, it
reset all channels that were previously enabled. This will make
sure the full channel config can be pushed down to modem. This
also solved the issue that channel config not sending to modem
when SIM is swapped. Note that a hidden API is added and will
be unhide in the next Android release.

Fix: 155027085
Test: Manual
Merged-In: Id571b990f4e45aea5bbab0dbadce48dda7b2bc56
Change-Id: Id571b990f4e45aea5bbab0dbadce48dda7b2bc56
2020-06-17 15:47:23 -07:00
SongFerngWang
d1b164401e Add a carrier config for WFC's carrier name override by ef_pnn
To override wifi calling's carrier name string using ef_pnn
from sim card.

Bug: 157108864
Test: UE with TMO sim card to test in Roaming and WFC on, and then
check operator name. (PASS)

Change-Id: Id72ce2a9a0fb8f45efa8a975e8052808f726a971
2020-06-17 14:40:52 +08:00
Shuo Qian
4455014028 Merge "Change the threshold for RSSNR from 10*db to db" 2020-06-16 21:26:10 +00:00
Shuo Qian
3950d0a631 Change the threshold for RSSNR from 10*db to db
Test: SignalStrengthTest
Bug: 158539126
Change-Id: I9bc4b2f601d7d3f2a32ca34768ecb2a78d59d5bb
Merged-In: I9bc4b2f601d7d3f2a32ca34768ecb2a78d59d5bb
(cherry picked from commit 6775b77bd5)
2020-06-16 20:41:05 +00:00
Sooraj Sasindran
1dfff63b39 Merge "Add hidden API to support allowed networks reason" into rvc-dev am: 06e61f7cd5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11712805

Change-Id: Ia5e38013db7a64afc03b3564c1f336622e834e7c
2020-06-13 03:23:35 +00:00
Sooraj Sasindran
06e61f7cd5 Merge "Add hidden API to support allowed networks reason" into rvc-dev 2020-06-13 03:14:37 +00:00
TreeHugger Robot
faac366840 Merge "Fixed unreadble debug messages" into rvc-dev am: 9ff2625493
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11855413

Change-Id: I7d153d6fecc4f188ca46672c2117d7e3cb26e299
2020-06-13 02:36:47 +00:00
TreeHugger Robot
9ff2625493 Merge "Fixed unreadble debug messages" into rvc-dev 2020-06-13 02:23:16 +00:00
Sooraj Sasindran
7e4cd920e7 Add hidden API to support allowed networks reason
Add hidden API to support allowed networks type for
specific reason like power.

Bug: 156709797
Test: system test
Change-Id: If4424d7d94ac26ad31725a1658dad5751d0d2629
2020-06-12 18:31:37 -07:00
Hall Liu
dd1aa9dc92 Merge "Throw exception from addServiceAnnouncement impl" am: a179e9f6e7 am: 15b0dc5eb3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1322368

Change-Id: I13727534d36ab9925b9e602b8dc31e2a2b082d63
2020-06-12 23:16:01 +00:00
Automerger Merge Worker
5fb38bc9e8 Merge "Merge "Change the threshold for RSSNR from 10*db to db" into rvc-dev am: 46ff383585" into rvc-dev-plus-aosp 2020-06-12 23:15:41 +00:00
Shuo Qian
2a3cc13e14 Merge "Change the threshold for RSSNR from 10*db to db" into rvc-dev am: 46ff383585
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11838961

Change-Id: I1520ad742a9bc4ab0beeb009b5ebfb85f0260cbd
2020-06-12 23:15:15 +00:00
Hall Liu
c6fc7c6ca8 Merge "Rename addServiceAnnouncement-related methods" am: 6f68b4bf53 am: c31fa35b94
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1311925

Change-Id: Ib3d1a0773170168cb3f2a1aa3c906d5a47286fe3
2020-06-12 23:14:46 +00:00
Jack Yu
e7580a7238 Fixed unreadble debug messages
Fix: 158875554
Test: Manual
Change-Id: I8aa45474521e4ef5e2368ab25c6c39445e9f779c
2020-06-12 16:06:47 -07:00
Shuo Qian
6775b77bd5 Change the threshold for RSSNR from 10*db to db
Test: SignalStrengthTest
Bug: 158539126
Change-Id: I9bc4b2f601d7d3f2a32ca34768ecb2a78d59d5bb
2020-06-12 17:39:37 +00:00