adsf
public SystemSensorManager(
context context, Looper m
ainLooper) { mMainLooper = mainLooper; mTargetSdkLevel = context.get
APPlicationInfo().targetSdkVersion; synchronized(sSensorModuleLock) { if (!sSensorModuleInitialized) { sSensorModuleInitialized = true; nativeClassInit();
// initialize the sensor list
final ArrayList fullList = sFullSensorsList; int i = 0; do { Sensor sensor = new Sensor(); i = nativeGetNextSensor(sensor, i); if (i>=0) { //Log.d(TAG, "found sensor: " + sensor.getName() + // ",
handle=" + sensor.getHandle());
fullList.add(sensor); sHandleToSensor.
append(sensor.getHandle(), sensor); } }
while (i>0); } } }
相关阅读