summaryrefslogtreecommitdiffstats
path: root/libs/gui/ISensorEventConnection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/gui/ISensorEventConnection.cpp')
-rw-r--r--libs/gui/ISensorEventConnection.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/libs/gui/ISensorEventConnection.cpp b/libs/gui/ISensorEventConnection.cpp
index dc7a35c..28fcb53 100644
--- a/libs/gui/ISensorEventConnection.cpp
+++ b/libs/gui/ISensorEventConnection.cpp
@@ -45,8 +45,6 @@ public:
{
}
- virtual ~BpSensorEventConnection();
-
virtual sp<BitTube> getSensorChannel() const
{
Parcel data, reply;
@@ -87,10 +85,6 @@ public:
}
};
-// Out-of-line virtual method definition to trigger vtable emission in this
-// translation unit (see clang warning -Wweak-vtables)
-BpSensorEventConnection::~BpSensorEventConnection() {}
-
IMPLEMENT_META_INTERFACE(SensorEventConnection, "android.gui.SensorEventConnection");
// ----------------------------------------------------------------------------
@@ -104,7 +98,7 @@ status_t BnSensorEventConnection::onTransact(
sp<BitTube> channel(getSensorChannel());
channel->writeToParcel(reply);
return NO_ERROR;
- }
+ } break;
case ENABLE_DISABLE: {
CHECK_INTERFACE(ISensorEventConnection, data, reply);
int handle = data.readInt32();
@@ -116,21 +110,21 @@ status_t BnSensorEventConnection::onTransact(
maxBatchReportLatencyNs, reservedFlags);
reply->writeInt32(result);
return NO_ERROR;
- }
+ } break;
case SET_EVENT_RATE: {
CHECK_INTERFACE(ISensorEventConnection, data, reply);
int handle = data.readInt32();
- nsecs_t ns = data.readInt64();
+ int ns = data.readInt64();
status_t result = setEventRate(handle, ns);
reply->writeInt32(result);
return NO_ERROR;
- }
+ } break;
case FLUSH_SENSOR: {
CHECK_INTERFACE(ISensorEventConnection, data, reply);
status_t result = flush();
reply->writeInt32(result);
return NO_ERROR;
- }
+ } break;
}
return BBinder::onTransact(code, data, reply, flags);
}