Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/drivers/st_acc44/
Dst_acc44.c286 static bool trySwitchState(enum st_acc44_SensorState newState) { in trySwitchState() argument
288 bool ret = atomicCmpXchgByte(&mTask.state, SENSOR_IDLE, newState); in trySwitchState()
291 getStateName(prevState), getStateName(newState), ret ? "ok" : "failed"); in trySwitchState()
294 return atomicCmpXchgByte(&mTask.state, SENSOR_IDLE, newState); in trySwitchState()
/device/generic/goldfish/camera/
DEmulatedFakeCamera2.h365 void updateAfState(uint8_t newState, int32_t triggerId);
372 void updateAeState(uint8_t newState, int32_t triggerId);
DEmulatedFakeCamera2.cpp1961 void EmulatedFakeCamera2::ControlThread::updateAfState(uint8_t newState, in updateAfState() argument
1964 if (mAfState != newState) { in updateAfState()
1966 newState, triggerId); in updateAfState()
1967 mAfState = newState; in updateAfState()
1969 newState, triggerId, 0); in updateAfState()
2055 void EmulatedFakeCamera2::ControlThread::updateAeState(uint8_t newState, in updateAeState() argument
2058 if (mAeState != newState) { in updateAeState()
2060 newState, triggerId); in updateAeState()
2061 mAeState = newState; in updateAeState()
2063 newState, triggerId, 0); in updateAeState()
/device/google/cuttlefish_common/guest/hals/camera/
DEmulatedFakeCamera2.h351 void updateAfState(uint8_t newState, int32_t triggerId);
358 void updateAeState(uint8_t newState, int32_t triggerId);
DEmulatedFakeCamera2.cpp1926 void EmulatedFakeCamera2::ControlThread::updateAfState(uint8_t newState, in updateAfState() argument
1929 if (mAfState != newState) { in updateAfState()
1930 ALOGV("%s: Autofocus state now %d, id %d", __FUNCTION__, newState, in updateAfState()
1932 mAfState = newState; in updateAfState()
1933 mParent->sendNotification(CAMERA2_MSG_AUTOFOCUS, newState, triggerId, 0); in updateAfState()
2021 void EmulatedFakeCamera2::ControlThread::updateAeState(uint8_t newState, in updateAeState() argument
2024 if (mAeState != newState) { in updateAeState()
2025 ALOGV("%s: Autoexposure state now %d, id %d", __FUNCTION__, newState, in updateAeState()
2027 mAeState = newState; in updateAeState()
2028 mParent->sendNotification(CAMERA2_MSG_AUTOEXPOSURE, newState, triggerId, 0); in updateAeState()
/device/google/contexthub/firmware/os/drivers/st_mag40/
Dst_mag40.c273 static bool trySwitchState(enum st_mag40_SensorState newState) { in trySwitchState() argument
275 bool ret = atomicCmpXchgByte(&mTask.state, SENSOR_IDLE, newState); in trySwitchState()
278 getStateName(prevState), getStateName(newState), ret ? "ok" : "failed"); in trySwitchState()
281 return atomicCmpXchgByte(&mTask.state, SENSOR_IDLE, newState); in trySwitchState()
/device/generic/goldfish/ril/
Dreference-ril.c281 static void setRadioState(RIL_RadioState newState);
3068 setRadioState(RIL_RadioState newState) argument
3070 RLOGD("setRadioState(%d)", newState);
3083 newState = RADIO_STATE_UNAVAILABLE;
3086 if (sState != newState || s_closed > 0) {
3087 sState = newState;
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/
Dinvensense_icm40600.c758 static bool trySwitchState_(TASK, enum SensorState newState) { argument
760 bool ret = atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState);
763 getStateName(prevState), getStateName(newState), ret ? "ok" : "failed");
766 return atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState);
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/
Dbosch_bmi160.c718 static bool trySwitchState_(TASK, enum SensorState newState) { argument
720 bool ret = atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState);
723 getStateName(prevState), getStateName(newState), ret ? "ok" : "failed");
726 return atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState);
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/
Dst_lsm6dsm.c952 static bool trySwitchState_(TASK, enum SensorState newState) in trySwitchState_() argument
954 return atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState); in trySwitchState_()