Home
last modified time | relevance | path

Searched refs:mSteps (Results 1 – 1 of 1) sorted by relevance

/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/
DBatchStepSensorFragment.java93 private int mSteps = 0; field in BatchStepSensorFragment
303 mSteps = 0; in resetCounter()
327 mSteps += event.values.length;
331 .setTitle(getString(R.string.counting_title, mSteps))
336 "New step detected by STEP_DETECTOR sensor. Total step count: " + mSteps);
351 mSteps = (int) event.values[0] - mCounterSteps;
355 mSteps = mSteps + mPreviousCounterSteps;
359 .setTitle(getString(R.string.counting_title, mSteps))
362 Log.i(TAG, "New step detected by STEP_COUNTER sensor. Total step count: " + mSteps);
426 outState.putInt(BUNDLE_STEPS, mSteps); in onSaveInstanceState()
[all …]