Lines Matching refs:state
519 Mutexed<State>::Locked state(mState); in initiateAllocateComponent() local
520 if (state->get() != RELEASED) { in initiateAllocateComponent()
523 state->set(ALLOCATING); in initiateAllocateComponent()
565 Mutexed<State>::Locked state(mState); in allocate() local
566 state->set(RELEASED); in allocate()
567 state.unlock(); in allocate()
569 state.lock(); in allocate()
575 Mutexed<State>::Locked state(mState); in allocate() local
576 if (state->get() != ALLOCATING) { in allocate()
577 state->set(RELEASED); in allocate()
580 state->set(ALLOCATED); in allocate()
581 state->comp = comp; in allocate()
603 Mutexed<State>::Locked state(mState); in initiateConfigureComponent() local
604 return (state->get() != ALLOCATED) ? UNKNOWN_ERROR : OK; in initiateConfigureComponent()
618 Mutexed<State>::Locked state(mState); in configure() local
619 if (state->get() != ALLOCATED) { in configure()
620 state->set(RELEASED); in configure()
623 comp = state->comp; in configure()
823 Mutexed<State>::Locked state(mState); in initiateCreateInputSurface() local
824 if (state->get() != ALLOCATED) { in initiateCreateInputSurface()
828 if (state->comp->getName().find("encoder") == std::string::npos) { in initiateCreateInputSurface()
955 Mutexed<State>::Locked state(mState); in initiateStart() local
956 if (state->get() != ALLOCATED) { in initiateStart()
959 state->set(STARTING); in initiateStart()
972 Mutexed<State>::Locked state(mState); in start() local
973 if (state->get() != STARTING) { in start()
976 comp = state->comp; in start()
1003 Mutexed<State>::Locked state(mState); in start() local
1004 if (state->get() != STARTING) { in start()
1007 state->set(RUNNING); in start()
1026 Mutexed<State>::Locked state(mState); in initiateStop() local
1027 if (state->get() == ALLOCATED in initiateStop()
1028 || state->get() == RELEASED in initiateStop()
1029 || state->get() == STOPPING in initiateStop()
1030 || state->get() == RELEASING) { in initiateStop()
1032 state.unlock(); in initiateStop()
1034 state.lock(); in initiateStop()
1037 state->set(STOPPING); in initiateStop()
1047 Mutexed<State>::Locked state(mState); in stop() local
1048 if (state->get() == RELEASING) { in stop()
1049 state.unlock(); in stop()
1052 state.lock(); in stop()
1054 } else if (state->get() != STOPPING) { in stop()
1055 state.unlock(); in stop()
1057 state.lock(); in stop()
1060 comp = state->comp; in stop()
1069 Mutexed<State>::Locked state(mState); in stop() local
1070 if (state->get() == STOPPING) { in stop()
1071 state->set(ALLOCATED); in stop()
1079 Mutexed<State>::Locked state(mState); in initiateRelease() local
1080 if (state->get() == RELEASED || state->get() == RELEASING) { in initiateRelease()
1083 state.unlock(); in initiateRelease()
1085 state.lock(); in initiateRelease()
1089 if (state->get() == ALLOCATING) { in initiateRelease()
1090 state->set(RELEASING); in initiateRelease()
1093 state.unlock(); in initiateRelease()
1095 state.lock(); in initiateRelease()
1099 state->set(RELEASING); in initiateRelease()
1109 Mutexed<State>::Locked state(mState); in release() local
1110 if (state->get() == RELEASED) { in release()
1112 state.unlock(); in release()
1114 state.lock(); in release()
1118 comp = state->comp; in release()
1123 Mutexed<State>::Locked state(mState); in release() local
1124 state->set(RELEASED); in release()
1125 state->comp.reset(); in release()
1138 Mutexed<State>::Locked state(mState); in signalFlush() local
1139 if (state->get() == FLUSHED) { in signalFlush()
1142 if (state->get() != RUNNING) { in signalFlush()
1145 state->set(FLUSHING); in signalFlush()
1166 Mutexed<State>::Locked state(mState); in flush() local
1167 if (state->get() != FLUSHING) { in flush()
1170 comp = state->comp; in flush()
1187 Mutexed<State>::Locked state(mState); in flush() local
1188 state->set(FLUSHED); in flush()
1195 Mutexed<State>::Locked state(mState); in signalResume() local
1196 if (state->get() != FLUSHED) { in signalResume()
1199 state->set(RESUMING); in signalResume()
1209 Mutexed<State>::Locked state(mState); in signalResume() local
1210 if (state->get() != RESUMING) { in signalResume()
1211 state.unlock(); in signalResume()
1213 state.lock(); in signalResume()
1216 state->set(RUNNING); in signalResume()
1229 Mutexed<State>::Locked state(mState); in setParameters() local
1230 if (state->get() == RELEASED) { in setParameters()
1233 comp = state->comp; in setParameters()