Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4f4a1971 authored by yinxu's avatar yinxu
Browse files

Handles the RIL error from the CommandException

In RadioResponse.java, all the RIL errors will be converted into
CommandException and sent back to the caller with the callback message.
So the AsyncResult in the callback message of 'EVENT_START_NETWORK_SCAN_DONE'
and 'EVENT_START_NETWORK_SCAN_DONE' will either contains a NetworkScanResult
without any exception, or contains an exception without any NetworkScanResult.
So if there is any error when trying to start/stop a scan, the error
code must be extracted from the CommandException.

Cherry-picked cleanly from:
https://android-review.git.corp.google.com/#/c/415900/

Test: Telephony sanity tests
Merged-in: I9766b7fd530e9146e6d9867478ed79ad8f7ba1fc
Change-Id: I9766b7fd530e9146e6d9867478ed79ad8f7ba1fc
(cherry picked from commit a234d03c)
parent 9a0052ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment