2016-09-22 23:07:22 +02:00
|
|
|
package android.hardware.gnss@1.0;
|
|
|
|
import IGnssXtraCallback;
|
|
|
|
|
2017-03-29 01:19:16 +02:00
|
|
|
/**
|
2016-09-22 23:07:22 +02:00
|
|
|
* This interface is used by the GNSS HAL to request the framework
|
|
|
|
* to download XTRA data.
|
|
|
|
*/
|
|
|
|
interface IGnssXtra {
|
2017-03-29 01:19:16 +02:00
|
|
|
/**
|
2016-09-22 23:07:22 +02:00
|
|
|
* Opens the XTRA interface and provides the callback routines
|
|
|
|
* to the implementation of this interface.
|
|
|
|
*
|
|
|
|
* @param callback Handle to the IGnssXtraCallback interface.
|
|
|
|
*
|
|
|
|
* @return success True if the operation is successful.
|
|
|
|
*/
|
|
|
|
setCallback(IGnssXtraCallback callback) generates (bool success);
|
|
|
|
|
2017-03-29 01:19:16 +02:00
|
|
|
/**
|
2016-09-22 23:07:22 +02:00
|
|
|
* Inject the downloaded XTRA data into the GNSS receiver.
|
|
|
|
*
|
|
|
|
* @param xtraData GNSS XTRA data.
|
|
|
|
*
|
|
|
|
* @return success True if the operation is successful.
|
|
|
|
*/
|
|
|
|
injectXtraData(string xtraData) generates (bool success);
|
|
|
|
};
|