Home
last modified time | relevance | path

Searched refs:State (Results 1 – 25 of 129) sorted by relevance

123456

/hardware/interfaces/audio/aidl/default/
DStream.cpp170 mState = StreamDescriptor::State::ERROR; in cycle()
204 if (mState == StreamDescriptor::State::STANDBY || in cycle()
205 mState == StreamDescriptor::State::DRAINING) { in cycle()
208 mState = mState == StreamDescriptor::State::STANDBY in cycle()
209 ? StreamDescriptor::State::IDLE in cycle()
210 : StreamDescriptor::State::ACTIVE; in cycle()
213 mState = StreamDescriptor::State::ERROR; in cycle()
223 if (mState == StreamDescriptor::State::IDLE || in cycle()
224 mState == StreamDescriptor::State::ACTIVE || in cycle()
225 mState == StreamDescriptor::State::PAUSED || in cycle()
[all …]
DEffectImpl.cpp29 using aidl::android::hardware::audio::effect::State;
34 State state; in destroyEffect()
36 if (!status.isOk() || State::INIT != state) { in destroyEffect()
55 RETURN_OK_IF(mState != State::INIT); in open()
70 mState = State::IDLE; in open()
80 RETURN_IF(mState == State::INIT, EX_ILLEGAL_STATE, "alreadyClosed"); in reopen()
91 RETURN_OK_IF(mState == State::INIT); in close()
92 RETURN_IF(mState == State::PROCESSING, EX_ILLEGAL_STATE, "closeAtProcessing"); in close()
93 mState = State::INIT; in close()
230 ndk::ScopedAStatus EffectImpl::getState(State* state) NO_THREAD_SAFETY_ANALYSIS { in getState()
[all …]
/hardware/google/gfxstream/host/
DRenderChannelImpl.cpp32 using State = RenderChannel::State; typedef
54 mState = (State)loadStream->getBe32(); in RenderChannelImpl()
55 mWantedEvents = (State)loadStream->getBe32(); in RenderChannelImpl()
74 void RenderChannelImpl::setWantedEvents(State state) { in setWantedEvents()
81 RenderChannel::State RenderChannelImpl::state() const { in state()
131 mEventCallback = [](State state) {}; in stop()
167 mState |= State::Stopped; in stopFromHost()
169 mEventCallback = [](State state) {}; in stopFromHost()
174 return (mState & State::Stopped) != 0; in isStopped()
199 State state = RenderChannel::State::Empty; in updateStateLocked()
[all …]
DRenderChannelImpl.h47 virtual void setWantedEvents(State state) override final;
50 virtual State state() const override final;
117 State mState = State::Empty;
118 State mWantedEvents = State::Empty;
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DConcurrentQueue.h90 enum class State { enum
98 BatchingConsumer() : mState(State::INIT) {} in BatchingConsumer()
116 mState = State::STOP_REQUESTED; in requestStop()
127 if (mState.exchange(State::RUNNING) == State::INIT) { in runInternal()
128 while (State::RUNNING == mState) { in runInternal()
130 if (State::STOP_REQUESTED == mState) break; in runInternal()
133 if (State::STOP_REQUESTED == mState) break; in runInternal()
143 mState = State::STOPPED; in runInternal()
149 std::atomic<State> mState;
/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/include/
DConcurrentQueue.h111 enum class State { enum
119 BatchingConsumer() : mState(State::INIT) {} in BatchingConsumer()
134 void requestStop() { mState = State::STOP_REQUESTED; } in requestStop()
144 if (mState.exchange(State::RUNNING) == State::INIT) { in runInternal()
145 while (State::RUNNING == mState) { in runInternal()
147 if (State::STOP_REQUESTED == mState) break; in runInternal()
150 if (State::STOP_REQUESTED == mState) break; in runInternal()
160 mState = State::STOPPED; in runInternal()
166 std::atomic<State> mState;
/hardware/libhardware/modules/camera/3_4/metadata/
Dstate.h29 class State : public PartialMetadataInterface {
31 State(int32_t tag, std::unique_ptr<StateDelegateInterface<T>> delegate) in State() function
57 int State<T>::PopulateStaticFields(android::CameraMetadata* /*metadata*/) const { in PopulateStaticFields()
63 int State<T>::PopulateDynamicFields(android::CameraMetadata* metadata) const { in PopulateDynamicFields()
75 int State<T>::PopulateTemplateRequest(int /*template_type*/, in PopulateTemplateRequest()
82 bool State<T>::SupportsRequestValues( in SupportsRequestValues()
89 int State<T>::SetRequestValues(const android::CameraMetadata& /*metadata*/) { in SetRequestValues()
/hardware/interfaces/audio/aidl/vts/
DVtsHalAudioEffectTargetTest.cpp46 using aidl::android::hardware::audio::effect::State;
203 ASSERT_NO_FATAL_FAILURE(expectState(mEffect, State::INIT)); in TEST_P()
211 ASSERT_NO_FATAL_FAILURE(expectState(mEffect, State::IDLE)); in TEST_P()
219 ASSERT_NO_FATAL_FAILURE(expectState(mEffect, State::INIT)); in TEST_P()
221 ASSERT_NO_FATAL_FAILURE(expectState(mEffect, State::IDLE)); in TEST_P()
223 ASSERT_NO_FATAL_FAILURE(expectState(mEffect, State::PROCESSING)); in TEST_P()
234 ASSERT_NO_FATAL_FAILURE(expectState(mEffect, State::PROCESSING)); in TEST_P()
236 ASSERT_NO_FATAL_FAILURE(expectState(mEffect, State::IDLE)); in TEST_P()
246 ASSERT_NO_FATAL_FAILURE(expectState(mEffect, State::PROCESSING)); in TEST_P()
248 ASSERT_NO_FATAL_FAILURE(expectState(mEffect, State::IDLE)); in TEST_P()
[all …]
DVtsHalAudioCoreModuleTargetTest.cpp746 virtual std::set<StreamDescriptor::State> getExpectedStates() = 0;
747 virtual void advance(StreamDescriptor::State state) = 0;
752 using StateTransitionFrom = std::pair<StreamDescriptor::State, TransitionTrigger>;
784 Node makeNode(StreamDescriptor::State s, TransitionTrigger t, Next&&... next) { in makeNode()
794 Node makeNodes(StreamDescriptor::State s, TransitionTrigger t, size_t count, Node last) { in makeNodes()
801 Node makeNodes(const std::vector<StateTransitionFrom>& v, StreamDescriptor::State f) { in makeNodes()
804 Node makeFinalNode(StreamDescriptor::State s) { in makeFinalNode()
818 std::set<StreamDescriptor::State> getExpectedStates() override { in getExpectedStates()
819 std::set<StreamDescriptor::State> result; in getExpectedStates()
826 void advance(StreamDescriptor::State state) override { in advance()
[all …]
/hardware/google/pixel/powerstats/include/dataproviders/
DPixelStateResidencyDataProvider.h38 void addEntity(std::string name, std::vector<State> states);
44 std::unordered_map<std::string, std::vector<State>> getInfo() override;
60 const std::vector<State> &in_states) override { in registerCallbackByStates()
74 Entry(std::string name, std::vector<State> states) in Entry()
77 std::vector<State> mStates;
82 std::function<void(const std::string &, const std::vector<State> &)>
92 const std::vector<State> &in_states);
104 std::function<void(const std::string &, const std::vector<State> &)> mStatesUpdateCallback;
/hardware/google/gfxstream/guest/android-emu/aemu/base/threads/
DAndroidWorkPool.cpp196 enum State { enum in gfxstream::guest::WorkPoolThread
215 case State::Unacquired: in acquire()
216 mState = State::Acquired; in acquire()
218 case State::Acquired: in acquire()
219 case State::Scheduled: in acquire()
220 case State::Exiting: in acquire()
230 case State::Unacquired: in run()
232 case State::Acquired: { in run()
233 mState = State::Scheduled; in run()
245 case State::Scheduled: in run()
[all …]
/hardware/interfaces/audio/aidl/default/include/core-impl/
DStreamSwitcher.h83 virtual StreamDescriptor::State getStatePriorToClosing() const = 0;
91 StreamDescriptor::State getStatePriorToClosing() const override { return mStatePriorToClosing; } in getStatePriorToClosing()
96 void onClose(StreamDescriptor::State statePriorToClosing) override { in onClose()
100 StreamDescriptor::State mStatePriorToClosing = StreamDescriptor::State::STANDBY;
162 virtual void onClose(StreamDescriptor::State streamPriorToClosing) = 0;
170 static constexpr bool isValidClosingStreamState(StreamDescriptor::State state) { in isValidClosingStreamState()
171 return state == StreamDescriptor::State::STANDBY || state == StreamDescriptor::State::ERROR; in isValidClosingStreamState()
/hardware/interfaces/uwb/aidl/default/src/
Duwb_chip.rs22 enum State { enum
36 state: Arc<Mutex<State>>,
44 state: Arc::new(Mutex::new(State::Closed)), in new()
49 impl State { impl
52 if let State::Opened { in close()
85 *self = State::Closed; in close()
143 if matches!(*state, State::Opened { .. }) { in open()
161 if let State::Opened { ref mut token, .. } = *state { in open()
163 *state = State::Closed; in open()
251 *state = State::Opened { in open()
[all …]
/hardware/google/gfxstream/include/render-utils/
DRenderChannel.h55 enum class State { enum
71 using EventCallback = std::function<void(State)>;
83 virtual void setWantedEvents(State state) = 0;
86 virtual State state() const = 0;
/hardware/interfaces/graphics/composer/2.1/utils/hwc2onfbadapter/include/hwc2onfbadapter/
DHWC2OnFbAdapter.h62 enum class State { enum
67 void setState(State state);
68 State getState() const;
90 State mState{State::MODIFIED};
/hardware/google/pixel/vibrator/drv2624/bench/
Dbenchmark.cpp52 void SetUp(::benchmark::State &state) override { in SetUp()
83 std::string getDynamicConfig(const ::benchmark::State &state) const { in getDynamicConfig()
87 auto getOtherArg(const ::benchmark::State &state, std::size_t index) const { in getOtherArg()
99 (benchmark::State & state){code} BENCHMARK_REGISTER_F(fixt, test) \
159 auto getEffect(const ::benchmark::State &state) const { in getEffect()
163 auto getStrength(const ::benchmark::State &state) const { in getStrength()
/hardware/interfaces/vibrator/bench/
Dbenchmark.cpp34 using ::benchmark::State;
58 void SetUp(State& /*state*/) override { in SetUp() argument
63 void TearDown(State& /*state*/) override { in TearDown() argument
75 auto getOtherArg(const State& state, std::size_t index) const { return state.range(index + 0); } in getOtherArg()
84 void SetUp(State& state) override { in SetUp()
90 bool shouldSkipWithError(State& state, const android::hardware::Return<V1_0::Status>&& ret) { in shouldSkipWithError()
135 void performBench(State* state, Return<void> (I::*performApi)(Effect, EffectStrength, in performBench()
171 auto getEffect(const State& state) const { in getEffect()
175 auto getStrength(const State& state) const { in getStrength()
183 (State & state) { \
[all …]
/hardware/interfaces/power/stats/aidl/android/hardware/power/stats/
DPowerEntity.aidl19 import android.hardware.power.stats.State;
34 State[] states;
/hardware/interfaces/audio/aidl/android/hardware/audio/core/
DStreamDescriptor.aidl154 enum State { enum
415 State state = State.STANDBY;
/hardware/interfaces/power/stats/aidl/default/
DFakeStateResidencyDataProvider.h31 FakeStateResidencyDataProvider(const std::string& name, std::vector<State> states) in FakeStateResidencyDataProvider()
55 std::unordered_map<std::string, std::vector<State>> getInfo() override { in getInfo()
78 const std::vector<State> mStates;
/hardware/google/pixel/powerstats/aidl/android/vendor/powerstats/
DIPixelStateResidencyProvider.aidl19 import android.hardware.power.stats.State;
28 in State[] states); in registerCallbackByStates()
/hardware/interfaces/bluetooth/hci/
Dhci_packetizer.h35 enum State { HCI_HEADER, HCI_PAYLOAD }; enum
36 State state_{HCI_HEADER};
/hardware/google/graphics/common/libhwc2.1/libvrr/Power/
DDisplayStateResidencyProvider.h31 using aidl::android::hardware::power::stats::State;
44 const std::vector<State>& getStates();
83 std::vector<State> mStates;
/hardware/google/pixel/powerstats/dataproviders/
DPixelStateResidencyDataProvider.cpp32 void PixelStateResidencyDataProvider::addEntity(std::string name, std::vector<State> states) { in addEntity()
99 std::unordered_map<std::string, std::vector<State>> PixelStateResidencyDataProvider::getInfo() { in getInfo()
102 std::unordered_map<std::string, std::vector<State>> ret; in getInfo()
111 std::function<void(const std::string &, const std::vector<State> &in_states)> in registerStatesUpdateCallback()
119 const std::vector<State> &in_states) { in registerCallbackByStates()
/hardware/interfaces/bluetooth/1.0/default/
Dhci_packetizer.h41 enum State { HCI_PREAMBLE, HCI_PAYLOAD }; enum
42 State state_{HCI_PREAMBLE};

123456