Lines Matching refs:state
568 Mutexed<State>::Locked state(mState); in initiateAllocateComponent() local
569 if (state->get() != RELEASED) { in initiateAllocateComponent()
572 state->set(ALLOCATING); in initiateAllocateComponent()
614 Mutexed<State>::Locked state(mState); in allocate() local
615 state->set(RELEASED); in allocate()
616 state.unlock(); in allocate()
618 state.lock(); in allocate()
624 Mutexed<State>::Locked state(mState); in allocate() local
625 if (state->get() != ALLOCATING) { in allocate()
626 state->set(RELEASED); in allocate()
629 state->set(ALLOCATED); in allocate()
630 state->comp = comp; in allocate()
652 Mutexed<State>::Locked state(mState); in initiateConfigureComponent() local
653 return (state->get() != ALLOCATED) ? UNKNOWN_ERROR : OK; in initiateConfigureComponent()
667 Mutexed<State>::Locked state(mState); in configure() local
668 if (state->get() != ALLOCATED) { in configure()
669 state->set(RELEASED); in configure()
672 comp = state->comp; in configure()
926 Mutexed<State>::Locked state(mState); in initiateCreateInputSurface() local
927 if (state->get() != ALLOCATED) { in initiateCreateInputSurface()
931 if (state->comp->getName().find("encoder") == std::string::npos) { in initiateCreateInputSurface()
1074 Mutexed<State>::Locked state(mState); in initiateStart() local
1075 if (state->get() != ALLOCATED) { in initiateStart()
1078 state->set(STARTING); in initiateStart()
1091 Mutexed<State>::Locked state(mState); in start() local
1092 if (state->get() != STARTING) { in start()
1095 comp = state->comp; in start()
1130 Mutexed<State>::Locked state(mState); in start() local
1131 if (state->get() != STARTING) { in start()
1134 state->set(RUNNING); in start()
1155 Mutexed<State>::Locked state(mState); in initiateStop() local
1156 if (state->get() == ALLOCATED in initiateStop()
1157 || state->get() == RELEASED in initiateStop()
1158 || state->get() == STOPPING in initiateStop()
1159 || state->get() == RELEASING) { in initiateStop()
1161 state.unlock(); in initiateStop()
1163 state.lock(); in initiateStop()
1166 state->set(STOPPING); in initiateStop()
1176 Mutexed<State>::Locked state(mState); in stop() local
1177 if (state->get() == RELEASING) { in stop()
1178 state.unlock(); in stop()
1181 state.lock(); in stop()
1183 } else if (state->get() != STOPPING) { in stop()
1184 state.unlock(); in stop()
1186 state.lock(); in stop()
1189 comp = state->comp; in stop()
1205 Mutexed<State>::Locked state(mState); in stop() local
1206 if (state->get() == STOPPING) { in stop()
1207 state->set(ALLOCATED); in stop()
1216 Mutexed<State>::Locked state(mState); in initiateRelease() local
1217 if (state->get() == RELEASED || state->get() == RELEASING) { in initiateRelease()
1220 state.unlock(); in initiateRelease()
1222 state.lock(); in initiateRelease()
1226 if (state->get() == ALLOCATING) { in initiateRelease()
1227 state->set(RELEASING); in initiateRelease()
1230 state.unlock(); in initiateRelease()
1232 state.lock(); in initiateRelease()
1236 if (state->get() == STARTING in initiateRelease()
1237 || state->get() == RUNNING in initiateRelease()
1238 || state->get() == STOPPING) { in initiateRelease()
1242 state->set(RELEASING); in initiateRelease()
1262 Mutexed<State>::Locked state(mState); in release() local
1263 if (state->get() == RELEASED) { in release()
1265 state.unlock(); in release()
1267 state.lock(); in release()
1271 comp = state->comp; in release()
1276 Mutexed<State>::Locked state(mState); in release() local
1277 state->set(RELEASED); in release()
1278 state->comp.reset(); in release()
1291 Mutexed<State>::Locked state(mState); in signalFlush() local
1292 if (state->get() == FLUSHED) { in signalFlush()
1295 if (state->get() != RUNNING) { in signalFlush()
1298 state->set(FLUSHING); in signalFlush()
1319 Mutexed<State>::Locked state(mState); in flush() local
1320 if (state->get() != FLUSHING) { in flush()
1323 comp = state->comp; in flush()
1345 Mutexed<State>::Locked state(mState); in flush() local
1346 state->set(FLUSHED); in flush()
1353 Mutexed<State>::Locked state(mState); in signalResume() local
1354 if (state->get() != FLUSHED) { in signalResume()
1357 state->set(RESUMING); in signalResume()
1367 Mutexed<State>::Locked state(mState); in signalResume() local
1368 if (state->get() != RESUMING) { in signalResume()
1369 state.unlock(); in signalResume()
1371 state.lock(); in signalResume()
1374 state->set(RUNNING); in signalResume()
1387 Mutexed<State>::Locked state(mState); in setParameters() local
1388 if (state->get() == RELEASED) { in setParameters()
1391 comp = state->comp; in setParameters()
1449 Mutexed<State>::Locked state(mState); in signalRequestIDRFrame() local
1450 if (state->get() == RELEASED) { in signalRequestIDRFrame()
1454 comp = state->comp; in signalRequestIDRFrame()