OSDN Git Service

simplify some unnecessary complex code
authorMathias Agopian <mathias@google.com>
Mon, 8 Jul 2013 19:50:39 +0000 (12:50 -0700)
committerMathias Agopian <mathias@google.com>
Mon, 8 Jul 2013 19:50:39 +0000 (12:50 -0700)
commit7438fd1a0132bc6de101e2a5f75040a119b6f29b
tree42e79cd430a11ee083cb583a5fdb0a66594e79fa
parent9c3e2dd97e100a3effe617cacb00cf163577ba13
simplify some unnecessary complex code

getSensorType() ran in O(n) instead of O(1). fix that.

Change-Id: Idcf29e46fc34db32604a0d8e5a9156486783b74f
include/android/sensor.h
services/sensorservice/SensorService.cpp
services/sensorservice/SensorService.h