Lines Matching refs:cnt
602 int cnt = 0; in processSample() local
606 initEv(&nev[cnt++], timestamp, type, sensor)->pressure = sample->fdata; in processSample()
609 initEv(&nev[cnt++], timestamp, type, sensor)->relative_humidity = sample->fdata; in processSample()
612 initEv(&nev[cnt++], timestamp, type, sensor)->temperature = sample->fdata; in processSample()
615 initEv(&nev[cnt++], timestamp, type, sensor)->temperature = sample->fdata; in processSample()
618 initEv(&nev[cnt++], timestamp, type, sensor)->distance = sample->fdata; in processSample()
621 initEv(&nev[cnt++], timestamp, type, sensor)->light = sample->fdata; in processSample()
627 initEv(&nev[cnt++], timestamp, type, sensor)->u64.step_counter = mLastStepCount; in processSample()
634 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = 1.0f; in processSample()
641 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = sample->idata; in processSample()
649 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = sample->idata; in processSample()
655 if (cnt > 0) in processSample()
656 write(nev, cnt); in processSample()
681 int cnt = 0; in processSample() local
685 sv = &initEv(&nev[cnt], timestamp, type, sensor)->acceleration; in processSample()
691 sendDirectReportEvent(&nev[cnt], 1); in processSample()
709 ++cnt; in processSample()
712 ue = &initEv(&nev[cnt], timestamp, in processSample()
730 sendDirectReportEvent(&nev[cnt], 1); in processSample()
733 ++cnt; in processSample()
738 sv = &initEv(&nev[cnt++], timestamp, in processSample()
748 sv = &initEv(&nev[cnt], timestamp, type, sensor)->magnetic; in processSample()
754 sendDirectReportEvent(&nev[cnt], 1); in processSample()
756 ++cnt; in processSample()
759 ue = &initEv(&nev[cnt], timestamp, in processSample()
769 sendDirectReportEvent(&nev[cnt], 1); in processSample()
772 ++cnt; in processSample()
779 if (cnt > 0) in processSample()
780 write(nev, cnt); in processSample()
791 int cnt = 0; in processSample() local
795 sv = &initEv(&nev[cnt], timestamp, type, sensor)->acceleration; in processSample()
801 sendDirectReportEvent(&nev[cnt], 1); in processSample()
803 ++cnt; in processSample()
806 ue = &initEv(&nev[cnt], timestamp, in processSample()
816 sendDirectReportEvent(&nev[cnt], 1); in processSample()
819 ++cnt; in processSample()
824 sv = &initEv(&nev[cnt], timestamp, in processSample()
831 ++cnt; in processSample()
835 sv = &initEv(&nev[cnt], timestamp, type, sensor)->gyro; in processSample()
841 sendDirectReportEvent(&nev[cnt], 1); in processSample()
843 ++cnt; in processSample()
846 ue = &initEv(&nev[cnt], timestamp, in processSample()
855 sendDirectReportEvent(&nev[cnt], 1); in processSample()
859 ++cnt; in processSample()
864 sv = &initEv(&nev[cnt], timestamp, in processSample()
871 ++cnt; in processSample()
887 sv = &initEv(&nev[cnt], timestamp, type, sensor)->magnetic; in processSample()
892 sendDirectReportEvent(&nev[cnt], 1); in processSample()
895 ++cnt; in processSample()
898 ue = &initEv(&nev[cnt], timestamp, in processSample()
907 sendDirectReportEvent(&nev[cnt], 1); in processSample()
911 ++cnt; in processSample()
925 sv = &initEv(&nev[cnt++], timestamp, type, sensor)->orientation; in processSample()
932 ev = initEv(&nev[cnt++], timestamp, type, sensor); in processSample()
938 ev = initEv(&nev[cnt++], timestamp, type, sensor); in processSample()
952 ev = initEv(&nev[cnt++], timestamp, type, sensor); in processSample()
967 if (cnt > 0) in processSample()
968 write(nev, cnt); in processSample()