Revert "DO NOT MERGE ANYWHERE Add new interface for sensor physical data"
This reverts commit d4db70a7b8b2d136c46c50f89b276f8150be5fc2.
Change-Id: Ifb52d5595970a5178e12c2a90da4aac0e38f5942
diff --git a/libs/gui/ISensorServer.cpp b/libs/gui/ISensorServer.cpp
index 8cd1725..f581b5c 100644
--- a/libs/gui/ISensorServer.cpp
+++ b/libs/gui/ISensorServer.cpp
@@ -35,8 +35,7 @@
enum {
GET_SENSOR_LIST = IBinder::FIRST_CALL_TRANSACTION,
CREATE_SENSOR_EVENT_CONNECTION,
- ENABLE_DATA_INJECTION,
- SET_SENSOR_PHYSICAL_DATA,
+ ENABLE_DATA_INJECTION
};
class BpSensorServer : public BpInterface<ISensorServer>
@@ -84,16 +83,6 @@
remote()->transact(ENABLE_DATA_INJECTION, data, &reply);
return reply.readInt32();
}
-
- virtual status_t setSensorPhysicalData(const char* physicaldata)
- {
- Parcel data, reply;
- //ALOGD("ISensorManager::SetSensorPhysicalData(%s)",physicaldata);
- data.writeInterfaceToken(ISensorServer::getInterfaceDescriptor());
- data.writeCString(physicaldata);
- remote()->transact(SET_SENSOR_PHYSICAL_DATA, data, &reply);
- return reply.readInt32();
- }
};
// Out-of-line virtual method definition to trigger vtable emission in this
@@ -135,14 +124,6 @@
reply->writeInt32(static_cast<int32_t>(ret));
return NO_ERROR;
}
- case SET_SENSOR_PHYSICAL_DATA: {
- CHECK_INTERFACE(ISensorServer, data, reply);
- const char* physicaldata = data.readCString();
- //ALOGD("ISensorManager, BnSensorServer::onTransact, physicaldata is: (%s)",physicaldata);
- status_t result = setSensorPhysicalData(physicaldata);
- reply->writeInt32(result);
- return NO_ERROR;
- }
}
return BBinder::onTransact(code, data, reply, flags);
}
diff --git a/libs/gui/SensorManager.cpp b/libs/gui/SensorManager.cpp
index 343131f..33608b5 100644
--- a/libs/gui/SensorManager.cpp
+++ b/libs/gui/SensorManager.cpp
@@ -227,22 +227,5 @@
return false;
}
-bool SensorManager::SetPhysicalData(const char* data)
-{
- status_t reply;
- //ALOGD("SensorManager::SetPhysicalData(%s)",data);
-
- reply = mSensorServer->setSensorPhysicalData(data);
-
- if(reply == NO_ERROR)
- {
- return true;
- }
- else
- {
- return false;
- }
-}
-
// ----------------------------------------------------------------------------
}; // namespace android