Lines Matching defs:what

641     // developers could choose what they want
2601 int what = -1, err = 0;
2606 what = StepCounter;
2645 what = Accelerometer;
2649 what = MagneticField;
2653 what = RawMagneticField;
2657 what = Orientation;
2661 what = Gyro;
2665 what = RawGyro;
2669 what = Gravity;
2673 what = RotationVector;
2677 what = GameRotationVector;
2681 what = LinearAccel;
2685 what = GeomagneticRotationVector;
2689 what = Pressure;
2693 what = handle;
2698 if (uint32_t(what) >= NumSensors)
2706 ((mEnabled & (1 << what)) ? "en" : "dis"),
2707 ((uint32_t(newState) << what) ? "en" : "dis"));
2709 "HAL:%s sensor state change what=%d", sname.string(), what);
2714 if ((uint32_t(newState) << what) != (mEnabled & (1 << what))) {
2719 mEnabled &= ~(1 << what);
2720 mEnabled |= (uint32_t(flags) << what);
2731 switch (what) {
2737 ((lastEnabled & (1 << what)) != (mEnabled & (1 << what)))) {
2738 changed |= (1 << what);
2741 changed |= (1 << what);
2747 ((lastEnabled & (1 << what)) != (mEnabled & (1 << what)))) {
2748 changed |= (1 << what);
2752 if ((lastEnabled & (1 << what)) != (mEnabled & (1 << what))) {
2753 changed |= (1 << what);
2828 void MPLSensor::getHandle(int32_t handle, int &what, android::String8 &sname)
2832 what = -1;
2836 what = StepDetector;
2840 what = StepCounter;
2844 what = SignificantMotion;
2848 what = handle;
2851 what = Accelerometer;
2855 what = MagneticField;
2859 what = RawMagneticField;
2863 what = Orientation;
2867 what = Gyro;
2871 what = RawGyro;
2875 what = Gravity;
2879 what = RotationVector;
2883 what = GameRotationVector;
2887 what = LinearAccel;
2891 what = Pressure;
2895 what = handle;
2900 LOGI_IF(EXTRA_VERBOSE, "HAL:getHandle - what=%d, sname=%s", what, sname.string());
2909 int what = -1;
2914 if (!(mEnabled & (1 << what))) {
2926 getHandle(handle, what, sname);
2927 if (uint32_t(what) >= NumSensors)
2942 mDelays[what] = ns;
2944 switch (what) {
2961 if (i != what && (mEnabled & (1 << i)) && ns > mDelays[i]) {
2995 if (i != what && (mEnabled & (1 << i)) && ns > mDelays[i]) {
5171 int what = -1;
5185 getHandle(handle, what, sname);
5186 if(uint32_t(what) >= NumSensors) {
5187 LOGE("HAL:batch sensors %d not found", what);
5193 tempBatch = mBatchEnabled | (1 << what);
5195 tempBatch = mBatchEnabled & ~(1 << what);
5205 switch (what) {
5264 mBatchEnabled &= ~(1 << what);
5265 mBatchDelays[what] = 1000000000L;
5266 mBatchTimeouts[what] = 30000000000LL;
5271 mBatchEnabled |= (1 << what);
5272 mBatchDelays[what] = period_ns;
5273 mBatchTimeouts[what] = timeout;