OSDN Git Service

Add an onError() method to CellInfoCallback
authorNathan Harold <nharold@google.com>
Tue, 18 Dec 2018 23:37:05 +0000 (15:37 -0800)
committerNathan Harold <nharold@google.com>
Fri, 11 Jan 2019 22:42:54 +0000 (14:42 -0800)
commit7484270560f0366bc192319be46aedb1a07049d4
treefb2a14fc706ce2a389f211c230543c288c19a4ba
parentd2715b7c70453fc9a77fc1b1a957652db4624a4b
Add an onError() method to CellInfoCallback

There are 2 known types of failures that result in
CellInfo requests to fail:
1) timeout waiting for a response from the modem
2) errors returned from the modem (including the RIL).

This patch adds an explicit onError() callback to
ensure that callers can get detailed error information.

Bug: 120488917
Test: manually tested both error cases by modifying
    RadioResponse.java and forcing both the timeout
    and an explicit error.
Change-Id: Ieb499dc220718aa99a552ea081eb4b4b5c1424aa
api/current.txt
telephony/java/android/telephony/ICellInfoCallback.aidl
telephony/java/android/telephony/TelephonyManager.java