sm7325-common: gps: Resolve unused parameter warnings
Change-Id: I0acef3da2c3567a28edd0a71dac89a5828f7725d
This commit is contained in:
parent
51bf8f92b4
commit
b124fc1fd7
@ -327,8 +327,8 @@ Return<bool> Gnss::injectLocation(double latitudeDegrees,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Return<bool> Gnss::injectTime(int64_t timeMs, int64_t timeReferenceMs,
|
Return<bool> Gnss::injectTime(int64_t timeMs __unused, int64_t timeReferenceMs __unused,
|
||||||
int32_t uncertaintyMs) {
|
int32_t uncertaintyMs __unused) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ GnssConfiguration::GnssConfiguration(Gnss* gnss) : mGnss(gnss) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Methods from ::android::hardware::gps::V1_0::IGnssConfiguration follow.
|
// Methods from ::android::hardware::gps::V1_0::IGnssConfiguration follow.
|
||||||
Return<bool> GnssConfiguration::setSuplEs(bool enabled) {
|
Return<bool> GnssConfiguration::setSuplEs(bool enabled __unused) {
|
||||||
// deprecated function. Must return false to pass VTS
|
// deprecated function. Must return false to pass VTS
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -125,8 +125,8 @@ void LocAdapterBase::
|
|||||||
const GpsLocationExtended& locationExtended,
|
const GpsLocationExtended& locationExtended,
|
||||||
enum loc_sess_status status,
|
enum loc_sess_status status,
|
||||||
LocPosTechMask loc_technology_mask,
|
LocPosTechMask loc_technology_mask,
|
||||||
GnssDataNotification* pDataNotify,
|
GnssDataNotification* pDataNotify __unused,
|
||||||
int msInWeek)
|
int msInWeek __unused)
|
||||||
{
|
{
|
||||||
if (mLocAdapterProxyBase != NULL) {
|
if (mLocAdapterProxyBase != NULL) {
|
||||||
mLocAdapterProxyBase->reportPositionEvent((UlpLocation&)location,
|
mLocAdapterProxyBase->reportPositionEvent((UlpLocation&)location,
|
||||||
@ -199,7 +199,7 @@ DEFAULT_IMPL(false)
|
|||||||
bool LocAdapterBase::
|
bool LocAdapterBase::
|
||||||
requestNiNotifyEvent(const GnssNiNotification &/*notify*/,
|
requestNiNotifyEvent(const GnssNiNotification &/*notify*/,
|
||||||
const void* /*data*/,
|
const void* /*data*/,
|
||||||
const LocInEmergency emergencyState)
|
const LocInEmergency /*emergencyState*/)
|
||||||
DEFAULT_IMPL(false)
|
DEFAULT_IMPL(false)
|
||||||
|
|
||||||
void LocAdapterBase::
|
void LocAdapterBase::
|
||||||
@ -394,7 +394,7 @@ LocAdapterBase::updateClientsEventMask()
|
|||||||
DEFAULT_IMPL()
|
DEFAULT_IMPL()
|
||||||
|
|
||||||
void
|
void
|
||||||
LocAdapterBase::stopClientSessions(LocationAPI* client)
|
LocAdapterBase::stopClientSessions(LocationAPI* /*client*/)
|
||||||
DEFAULT_IMPL()
|
DEFAULT_IMPL()
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -483,7 +483,7 @@ LocAdapterBase::reportLatencyInfoEvent(const GnssLatencyInfo& /*gnssLatencyInfo*
|
|||||||
DEFAULT_IMPL()
|
DEFAULT_IMPL()
|
||||||
|
|
||||||
bool LocAdapterBase::
|
bool LocAdapterBase::
|
||||||
reportQwesCapabilities(const std::unordered_map<LocationQwesFeatureType, bool> &featureMap)
|
reportQwesCapabilities(const std::unordered_map<LocationQwesFeatureType, bool> &/*featureMap*/)
|
||||||
DEFAULT_IMPL(false)
|
DEFAULT_IMPL(false)
|
||||||
|
|
||||||
} // namespace loc_core
|
} // namespace loc_core
|
||||||
|
@ -902,33 +902,33 @@ void LocApiBase::
|
|||||||
DEFAULT_IMPL()
|
DEFAULT_IMPL()
|
||||||
|
|
||||||
void LocApiBase::
|
void LocApiBase::
|
||||||
getRobustLocationConfig(uint32_t sessionId, LocApiResponse* /*adapterResponse*/)
|
getRobustLocationConfig(uint32_t /*sessionId*/, LocApiResponse* /*adapterResponse*/)
|
||||||
DEFAULT_IMPL()
|
DEFAULT_IMPL()
|
||||||
|
|
||||||
void LocApiBase::
|
void LocApiBase::
|
||||||
configMinGpsWeek(uint16_t minGpsWeek,
|
configMinGpsWeek(uint16_t /*minGpsWeek*/,
|
||||||
LocApiResponse* /*adapterResponse*/)
|
LocApiResponse* /*adapterResponse*/)
|
||||||
DEFAULT_IMPL()
|
DEFAULT_IMPL()
|
||||||
|
|
||||||
void LocApiBase::
|
void LocApiBase::
|
||||||
getMinGpsWeek(uint32_t sessionId, LocApiResponse* /*adapterResponse*/)
|
getMinGpsWeek(uint32_t /*sessionId*/, LocApiResponse* /*adapterResponse*/)
|
||||||
DEFAULT_IMPL()
|
DEFAULT_IMPL()
|
||||||
|
|
||||||
LocationError LocApiBase::
|
LocationError LocApiBase::
|
||||||
setParameterSync(const GnssConfig& gnssConfig)
|
setParameterSync(const GnssConfig& /*gnssConfig*/)
|
||||||
DEFAULT_IMPL(LOCATION_ERROR_SUCCESS)
|
DEFAULT_IMPL(LOCATION_ERROR_SUCCESS)
|
||||||
|
|
||||||
void LocApiBase::
|
void LocApiBase::
|
||||||
getParameter(uint32_t sessionId, GnssConfigFlagsMask flags, LocApiResponse* /*adapterResponse*/)
|
getParameter(uint32_t /*sessionId*/, GnssConfigFlagsMask /*flags*/, LocApiResponse* /*adapterResponse*/)
|
||||||
DEFAULT_IMPL()
|
DEFAULT_IMPL()
|
||||||
|
|
||||||
void LocApiBase::
|
void LocApiBase::
|
||||||
configConstellationMultiBand(const GnssSvTypeConfig& secondaryBandConfig,
|
configConstellationMultiBand(const GnssSvTypeConfig& /*secondaryBandConfig*/,
|
||||||
LocApiResponse* /*adapterResponse*/)
|
LocApiResponse* /*adapterResponse*/)
|
||||||
DEFAULT_IMPL()
|
DEFAULT_IMPL()
|
||||||
|
|
||||||
void LocApiBase::
|
void LocApiBase::
|
||||||
getConstellationMultiBandConfig(uint32_t sessionId, LocApiResponse* /*adapterResponse*/)
|
getConstellationMultiBandConfig(uint32_t /*sessionId*/, LocApiResponse* /*adapterResponse*/)
|
||||||
DEFAULT_IMPL()
|
DEFAULT_IMPL()
|
||||||
|
|
||||||
int64_t ElapsedRealtimeEstimator::getElapsedRealtimeEstimateNanos(int64_t curDataTimeNanos,
|
int64_t ElapsedRealtimeEstimator::getElapsedRealtimeEstimateNanos(int64_t curDataTimeNanos,
|
||||||
|
@ -137,11 +137,11 @@ public:
|
|||||||
inline LocApiProxyBase() {}
|
inline LocApiProxyBase() {}
|
||||||
inline virtual ~LocApiProxyBase() {}
|
inline virtual ~LocApiProxyBase() {}
|
||||||
inline virtual void* getSibling2() { return NULL; }
|
inline virtual void* getSibling2() { return NULL; }
|
||||||
inline virtual double getGloRfLoss(uint32_t left,
|
inline virtual double getGloRfLoss(uint32_t left __unused,
|
||||||
uint32_t center, uint32_t right, uint8_t gloFrequency) { return 0.0; }
|
uint32_t center __unused, uint32_t right __unused, uint8_t gloFrequency __unused) { return 0.0; }
|
||||||
inline virtual float getGeoidalSeparation(double latitude, double longitude) { return 0.0; }
|
inline virtual float getGeoidalSeparation(double latitude __unused, double longitude __unused) { return 0.0; }
|
||||||
inline virtual bool checkFeatureStatus(int* fids, LocFeatureStatus* status,
|
inline virtual bool checkFeatureStatus(int* fids __unused, LocFeatureStatus* status __unused,
|
||||||
uint32_t idCount, bool directQwesCall = false) {return false;}
|
uint32_t idCount __unused, bool directQwesCall = false __unused) {return false;}
|
||||||
};
|
};
|
||||||
|
|
||||||
class LocApiBase {
|
class LocApiBase {
|
||||||
|
@ -167,7 +167,7 @@ GeofenceAdapter::restartGeofences()
|
|||||||
if (LOCATION_ERROR_SUCCESS == err) {
|
if (LOCATION_ERROR_SUCCESS == err) {
|
||||||
if (true == object.paused) {
|
if (true == object.paused) {
|
||||||
mLocApi->pauseGeofence(data.hwId, object.key.id,
|
mLocApi->pauseGeofence(data.hwId, object.key.id,
|
||||||
new LocApiResponse(*getContext(), [] (LocationError err ) {}));
|
new LocApiResponse(*getContext(), [] (LocationError err __unused) {}));
|
||||||
}
|
}
|
||||||
saveGeofenceItem(object.key.client, object.key.id, data.hwId, options, info);
|
saveGeofenceItem(object.key.client, object.key.id, data.hwId, options, info);
|
||||||
}
|
}
|
||||||
@ -245,7 +245,7 @@ GeofenceAdapter::addGeofencesCommand(LocationAPI* client, size_t count, Geofence
|
|||||||
mApi.addToCallQueue(new LocApiResponse(*mAdapter.getContext(),
|
mApi.addToCallQueue(new LocApiResponse(*mAdapter.getContext(),
|
||||||
[&mAdapter = mAdapter, mCount = mCount, mClient = mClient,
|
[&mAdapter = mAdapter, mCount = mCount, mClient = mClient,
|
||||||
mOptions = mOptions, mInfos = mInfos, mIds = mIds, &mApi = mApi,
|
mOptions = mOptions, mInfos = mInfos, mIds = mIds, &mApi = mApi,
|
||||||
errs, i] (LocationError err ) {
|
errs, i] (LocationError err __unused) {
|
||||||
mApi.addGeofence(mIds[i], mOptions[i], mInfos[i],
|
mApi.addGeofence(mIds[i], mOptions[i], mInfos[i],
|
||||||
new LocApiResponseData<LocApiGeofenceData>(*mAdapter.getContext(),
|
new LocApiResponseData<LocApiGeofenceData>(*mAdapter.getContext(),
|
||||||
[&mAdapter = mAdapter, mOptions = mOptions, mClient = mClient,
|
[&mAdapter = mAdapter, mOptions = mOptions, mClient = mClient,
|
||||||
@ -346,7 +346,7 @@ GeofenceAdapter::removeGeofencesCommand(LocationAPI* client, size_t count, uint3
|
|||||||
for (size_t i=0; i < mCount; ++i) {
|
for (size_t i=0; i < mCount; ++i) {
|
||||||
mApi.addToCallQueue(new LocApiResponse(*mAdapter.getContext(),
|
mApi.addToCallQueue(new LocApiResponse(*mAdapter.getContext(),
|
||||||
[&mAdapter = mAdapter, mCount = mCount, mClient = mClient, mIds = mIds,
|
[&mAdapter = mAdapter, mCount = mCount, mClient = mClient, mIds = mIds,
|
||||||
&mApi = mApi, errs, i] (LocationError err ) {
|
&mApi = mApi, errs, i] (LocationError err __unused) {
|
||||||
uint32_t hwId = 0;
|
uint32_t hwId = 0;
|
||||||
errs[i] = mAdapter.getHwIdFromClient(mClient, mIds[i], hwId);
|
errs[i] = mAdapter.getHwIdFromClient(mClient, mIds[i], hwId);
|
||||||
if (LOCATION_ERROR_SUCCESS == errs[i]) {
|
if (LOCATION_ERROR_SUCCESS == errs[i]) {
|
||||||
@ -422,7 +422,7 @@ GeofenceAdapter::pauseGeofencesCommand(LocationAPI* client, size_t count, uint32
|
|||||||
for (size_t i=0; i < mCount; ++i) {
|
for (size_t i=0; i < mCount; ++i) {
|
||||||
mApi.addToCallQueue(new LocApiResponse(*mAdapter.getContext(),
|
mApi.addToCallQueue(new LocApiResponse(*mAdapter.getContext(),
|
||||||
[&mAdapter = mAdapter, mCount = mCount, mClient = mClient, mIds = mIds,
|
[&mAdapter = mAdapter, mCount = mCount, mClient = mClient, mIds = mIds,
|
||||||
&mApi = mApi, errs, i] (LocationError err ) {
|
&mApi = mApi, errs, i] (LocationError err __unused) {
|
||||||
uint32_t hwId = 0;
|
uint32_t hwId = 0;
|
||||||
errs[i] = mAdapter.getHwIdFromClient(mClient, mIds[i], hwId);
|
errs[i] = mAdapter.getHwIdFromClient(mClient, mIds[i], hwId);
|
||||||
if (LOCATION_ERROR_SUCCESS == errs[i]) {
|
if (LOCATION_ERROR_SUCCESS == errs[i]) {
|
||||||
@ -497,7 +497,7 @@ GeofenceAdapter::resumeGeofencesCommand(LocationAPI* client, size_t count, uint3
|
|||||||
for (size_t i=0; i < mCount; ++i) {
|
for (size_t i=0; i < mCount; ++i) {
|
||||||
mApi.addToCallQueue(new LocApiResponse(*mAdapter.getContext(),
|
mApi.addToCallQueue(new LocApiResponse(*mAdapter.getContext(),
|
||||||
[&mAdapter = mAdapter, mCount = mCount, mClient = mClient, mIds = mIds,
|
[&mAdapter = mAdapter, mCount = mCount, mClient = mClient, mIds = mIds,
|
||||||
&mApi = mApi, errs, i] (LocationError err ) {
|
&mApi = mApi, errs, i] (LocationError err __unused) {
|
||||||
uint32_t hwId = 0;
|
uint32_t hwId = 0;
|
||||||
errs[i] = mAdapter.getHwIdFromClient(mClient, mIds[i], hwId);
|
errs[i] = mAdapter.getHwIdFromClient(mClient, mIds[i], hwId);
|
||||||
if (LOCATION_ERROR_SUCCESS == errs[i]) {
|
if (LOCATION_ERROR_SUCCESS == errs[i]) {
|
||||||
@ -580,7 +580,7 @@ GeofenceAdapter::modifyGeofencesCommand(LocationAPI* client, size_t count, uint3
|
|||||||
} else {
|
} else {
|
||||||
mApi.addToCallQueue(new LocApiResponse(*mAdapter.getContext(),
|
mApi.addToCallQueue(new LocApiResponse(*mAdapter.getContext(),
|
||||||
[&mAdapter = mAdapter, mCount = mCount, mClient = mClient, mIds = mIds,
|
[&mAdapter = mAdapter, mCount = mCount, mClient = mClient, mIds = mIds,
|
||||||
&mApi = mApi, mOptions = mOptions, errs, i] (LocationError err ) {
|
&mApi = mApi, mOptions = mOptions, errs, i] (LocationError err __unused) {
|
||||||
uint32_t hwId = 0;
|
uint32_t hwId = 0;
|
||||||
errs[i] = mAdapter.getHwIdFromClient(mClient, mIds[i], hwId);
|
errs[i] = mAdapter.getHwIdFromClient(mClient, mIds[i], hwId);
|
||||||
if (LOCATION_ERROR_SUCCESS == errs[i]) {
|
if (LOCATION_ERROR_SUCCESS == errs[i]) {
|
||||||
|
@ -65,8 +65,8 @@ public:
|
|||||||
inline XtraIpcListener(IOsObserver* observer, const MsgTask* msgTask,
|
inline XtraIpcListener(IOsObserver* observer, const MsgTask* msgTask,
|
||||||
XtraSystemStatusObserver& xsso) :
|
XtraSystemStatusObserver& xsso) :
|
||||||
mSystemStatusObsrvr(observer), mMsgTask(msgTask), mXSSO(xsso) {}
|
mSystemStatusObsrvr(observer), mMsgTask(msgTask), mXSSO(xsso) {}
|
||||||
virtual void onReceive(const char* data, uint32_t length,
|
virtual void onReceive(const char* data, uint32_t length __unused,
|
||||||
const LocIpcRecver* recver) override {
|
const LocIpcRecver* recver __unused) override {
|
||||||
#define STRNCMP(str, constStr) strncmp(str, constStr, sizeof(constStr)-1)
|
#define STRNCMP(str, constStr) strncmp(str, constStr, sizeof(constStr)-1)
|
||||||
if (!STRNCMP(data, "ping")) {
|
if (!STRNCMP(data, "ping")) {
|
||||||
LOC_LOGd("ping received");
|
LOC_LOGd("ping received");
|
||||||
|
@ -84,7 +84,7 @@ static inline size_t memscpy (void *p_Dest, size_t q_DestSize, const void *p_Src
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*API for boot kpi marker prints */
|
/*API for boot kpi marker prints */
|
||||||
inline int loc_boot_kpi_marker(const char * pFmt, ...)
|
inline int loc_boot_kpi_marker(const char * pFmt __unused, ...)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ public:
|
|||||||
}
|
}
|
||||||
virtual void onServiceStatusChange(int sericeId, int instanceId, ServiceStatus status,
|
virtual void onServiceStatusChange(int sericeId, int instanceId, ServiceStatus status,
|
||||||
const LocIpcSender& sender) = 0;
|
const LocIpcSender& sender) = 0;
|
||||||
inline virtual void onClientGone(int nodeId, int portId) {}
|
inline virtual void onClientGone(int nodeId __unused, int portId __unused) {}
|
||||||
inline const unordered_set<int>& getServicesToWatch() { return mServicesToWatch; }
|
inline const unordered_set<int>& getServicesToWatch() { return mServicesToWatch; }
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -166,10 +166,10 @@ public:
|
|||||||
inline bool sendData(const uint8_t data[], uint32_t length, int32_t msgId) const {
|
inline bool sendData(const uint8_t data[], uint32_t length, int32_t msgId) const {
|
||||||
return isSendable() && (send(data, length, msgId) > 0);
|
return isSendable() && (send(data, length, msgId) > 0);
|
||||||
}
|
}
|
||||||
virtual unique_ptr<LocIpcRecver> getRecver(const shared_ptr<ILocIpcListener>& listener) {
|
virtual unique_ptr<LocIpcRecver> getRecver(const shared_ptr<ILocIpcListener>& listener __unused) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
inline virtual void copyDestAddrFrom(const LocIpcSender& otherSender) {}
|
inline virtual void copyDestAddrFrom(const LocIpcSender& otherSender __unused) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class LocIpcRecver {
|
class LocIpcRecver {
|
||||||
|
@ -220,7 +220,7 @@ RETURN VALUE
|
|||||||
N/A
|
N/A
|
||||||
|
|
||||||
===========================================================================*/
|
===========================================================================*/
|
||||||
void log_buffer_insert(char *str, unsigned long buf_size, int level)
|
void log_buffer_insert(char *str, unsigned long buf_size __unused, int level)
|
||||||
{
|
{
|
||||||
timespec tv;
|
timespec tv;
|
||||||
clock_gettime(CLOCK_BOOTTIME, &tv);
|
clock_gettime(CLOCK_BOOTTIME, &tv);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user