Loading include/gui/ISensorServer.h +0 −1 Original line number Original line Diff line number Diff line Loading @@ -41,7 +41,6 @@ public: virtual sp<ISensorEventConnection> createSensorEventConnection(const String8& packageName, virtual sp<ISensorEventConnection> createSensorEventConnection(const String8& packageName, int mode, const String16& opPackageName) = 0; int mode, const String16& opPackageName) = 0; virtual int32_t isDataInjectionEnabled() = 0; virtual int32_t isDataInjectionEnabled() = 0; virtual status_t setSensorPhysicalData(const char* physicaldata) = 0; }; }; // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- Loading include/gui/SensorManager.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -58,7 +58,7 @@ public: Sensor const* getDefaultSensor(int type); Sensor const* getDefaultSensor(int type); sp<SensorEventQueue> createEventQueue(String8 packageName = String8(""), int mode = 0); sp<SensorEventQueue> createEventQueue(String8 packageName = String8(""), int mode = 0); bool isDataInjectionEnabled(); bool isDataInjectionEnabled(); bool SetPhysicalData(const char* data); private: private: // DeathRecipient interface // DeathRecipient interface void sensorManagerDied(); void sensorManagerDied(); Loading libs/gui/ISensorServer.cpp +1 −20 Original line number Original line Diff line number Diff line Loading @@ -35,8 +35,7 @@ namespace android { enum { enum { GET_SENSOR_LIST = IBinder::FIRST_CALL_TRANSACTION, GET_SENSOR_LIST = IBinder::FIRST_CALL_TRANSACTION, CREATE_SENSOR_EVENT_CONNECTION, CREATE_SENSOR_EVENT_CONNECTION, ENABLE_DATA_INJECTION, ENABLE_DATA_INJECTION SET_SENSOR_PHYSICAL_DATA, }; }; class BpSensorServer : public BpInterface<ISensorServer> class BpSensorServer : public BpInterface<ISensorServer> Loading Loading @@ -84,16 +83,6 @@ public: remote()->transact(ENABLE_DATA_INJECTION, data, &reply); remote()->transact(ENABLE_DATA_INJECTION, data, &reply); return reply.readInt32(); 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 // Out-of-line virtual method definition to trigger vtable emission in this Loading Loading @@ -135,14 +124,6 @@ status_t BnSensorServer::onTransact( reply->writeInt32(static_cast<int32_t>(ret)); reply->writeInt32(static_cast<int32_t>(ret)); return NO_ERROR; 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); return BBinder::onTransact(code, data, reply, flags); } } Loading libs/gui/SensorManager.cpp +0 −17 Original line number Original line Diff line number Diff line Loading @@ -227,22 +227,5 @@ bool SensorManager::isDataInjectionEnabled() { return false; 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 }; // namespace android services/sensorservice/SensorDevice.cpp +0 −15 Original line number Original line Diff line number Diff line Loading @@ -407,21 +407,6 @@ status_t SensorDevice::setMode(uint32_t mode) { return mSensorModule->set_operation_mode(mode); return mSensorModule->set_operation_mode(mode); } } status_t SensorDevice::setSensorPhysicalData(const char* physicaldata) { //ALOGD("SensorDevice::setSensorPhysicalData(%s)",physicaldata); Mutex::Autolock _l(mLock); if((mSensorModule->set_sensor_physical_data == NULL) || (getHalDeviceVersion() < SENSORS_DEVICE_API_VERSION_1_3_5)) { return NO_INIT; } else { return mSensorModule->set_sensor_physical_data(physicaldata); } } // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- int SensorDevice::Info::numActiveClients() { int SensorDevice::Info::numActiveClients() { Loading Loading
include/gui/ISensorServer.h +0 −1 Original line number Original line Diff line number Diff line Loading @@ -41,7 +41,6 @@ public: virtual sp<ISensorEventConnection> createSensorEventConnection(const String8& packageName, virtual sp<ISensorEventConnection> createSensorEventConnection(const String8& packageName, int mode, const String16& opPackageName) = 0; int mode, const String16& opPackageName) = 0; virtual int32_t isDataInjectionEnabled() = 0; virtual int32_t isDataInjectionEnabled() = 0; virtual status_t setSensorPhysicalData(const char* physicaldata) = 0; }; }; // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- Loading
include/gui/SensorManager.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -58,7 +58,7 @@ public: Sensor const* getDefaultSensor(int type); Sensor const* getDefaultSensor(int type); sp<SensorEventQueue> createEventQueue(String8 packageName = String8(""), int mode = 0); sp<SensorEventQueue> createEventQueue(String8 packageName = String8(""), int mode = 0); bool isDataInjectionEnabled(); bool isDataInjectionEnabled(); bool SetPhysicalData(const char* data); private: private: // DeathRecipient interface // DeathRecipient interface void sensorManagerDied(); void sensorManagerDied(); Loading
libs/gui/ISensorServer.cpp +1 −20 Original line number Original line Diff line number Diff line Loading @@ -35,8 +35,7 @@ namespace android { enum { enum { GET_SENSOR_LIST = IBinder::FIRST_CALL_TRANSACTION, GET_SENSOR_LIST = IBinder::FIRST_CALL_TRANSACTION, CREATE_SENSOR_EVENT_CONNECTION, CREATE_SENSOR_EVENT_CONNECTION, ENABLE_DATA_INJECTION, ENABLE_DATA_INJECTION SET_SENSOR_PHYSICAL_DATA, }; }; class BpSensorServer : public BpInterface<ISensorServer> class BpSensorServer : public BpInterface<ISensorServer> Loading Loading @@ -84,16 +83,6 @@ public: remote()->transact(ENABLE_DATA_INJECTION, data, &reply); remote()->transact(ENABLE_DATA_INJECTION, data, &reply); return reply.readInt32(); 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 // Out-of-line virtual method definition to trigger vtable emission in this Loading Loading @@ -135,14 +124,6 @@ status_t BnSensorServer::onTransact( reply->writeInt32(static_cast<int32_t>(ret)); reply->writeInt32(static_cast<int32_t>(ret)); return NO_ERROR; 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); return BBinder::onTransact(code, data, reply, flags); } } Loading
libs/gui/SensorManager.cpp +0 −17 Original line number Original line Diff line number Diff line Loading @@ -227,22 +227,5 @@ bool SensorManager::isDataInjectionEnabled() { return false; 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 }; // namespace android
services/sensorservice/SensorDevice.cpp +0 −15 Original line number Original line Diff line number Diff line Loading @@ -407,21 +407,6 @@ status_t SensorDevice::setMode(uint32_t mode) { return mSensorModule->set_operation_mode(mode); return mSensorModule->set_operation_mode(mode); } } status_t SensorDevice::setSensorPhysicalData(const char* physicaldata) { //ALOGD("SensorDevice::setSensorPhysicalData(%s)",physicaldata); Mutex::Autolock _l(mLock); if((mSensorModule->set_sensor_physical_data == NULL) || (getHalDeviceVersion() < SENSORS_DEVICE_API_VERSION_1_3_5)) { return NO_INIT; } else { return mSensorModule->set_sensor_physical_data(physicaldata); } } // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- int SensorDevice::Info::numActiveClients() { int SensorDevice::Info::numActiveClients() { Loading