Home
last modified time | relevance | path

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

123456

/system/iorap/src/perfetto/
Drx_producer.cc36 std::ostream& operator<<(std::ostream& os, State state) { in operator <<()
38 case State::kTraceFailed: in operator <<()
41 case State::kConnectionError: in operator <<()
44 case State::kSessionNotFound: in operator <<()
47 case State::kIdle: in operator <<()
50 case State::kConnecting: in operator <<()
53 case State::kConfigured: in operator <<()
56 case State::kTracing: in operator <<()
59 case State::kTraceEnded: in operator <<()
161 using State = ::perfetto::consumer::State; typedef
[all …]
/system/vold/model/
DVolumeBase.cpp40 mState(State::kUnmounted), in VolumeBase()
47 void VolumeBase::setState(State state) { in setState()
77 if ((mState != State::kUnmounted) && (mState != State::kUnmountable)) { in setMountFlags()
87 if ((mState != State::kUnmounted) && (mState != State::kUnmountable)) { in setMountUserId()
117 if (mState != State::kChecking) { in setPath()
131 if (mState != State::kChecking) { in setInternalPath()
193 setState(State::kUnmounted); in create()
204 if (mState == State::kMounted) { in destroy()
206 setState(State::kBadRemoval); in destroy()
208 setState(State::kRemoved); in destroy()
[all …]
/system/extras/perf2cfg/perf2cfg/
Dedit.py40 class State(enum.Enum): class
128 self.state = State.START
150 if self.state != State.END:
172 if self.state == State.START:
174 self.state = State.END
176 self.state = State.PARSE_METHOD_NAME
181 elif self.state == State.PARSE_METHOD_NAME:
188 self.state = State.SKIP_TO_CFG
192 self.state = State.SKIP_METHOD
194 elif self.state == State.SKIP_METHOD:
[all …]
/system/bt/common/
Dstate_machine.h38 class State {
48 State(StateMachine& sm, int state_id) : sm_(sm), state_id_(state_id) {} in State() function
50 virtual ~State() = default;
94 void TransitionTo(StateMachine::State* dest_state) { in TransitionTo()
169 State* dest_state = it->second; in TransitionTo()
178 void TransitionTo(StateMachine::State* dest_state) { in TransitionTo()
194 void AddState(State* state) { in AddState()
203 void SetInitialState(State* initial_state) { initial_state_ = initial_state; } in SetInitialState()
206 State* initial_state_;
207 State* previous_state_;
[all …]
/system/unwinding/libunwindstack/benchmarks/
DSymbolBenchmark.cpp32 static void BenchmarkSymbolLookup(benchmark::State& state, std::vector<uint64_t> offsets, in BenchmarkSymbolLookup()
84 static void BenchmarkSymbolLookup(benchmark::State& state, uint64_t pc, std::string elf_file, in BenchmarkSymbolLookup()
89 void BM_elf_and_symbol_not_present(benchmark::State& state) { in BM_elf_and_symbol_not_present()
94 void BM_elf_and_symbol_find_single(benchmark::State& state) { in BM_elf_and_symbol_find_single()
99 void BM_elf_and_symbol_find_single_many_times(benchmark::State& state) { in BM_elf_and_symbol_find_single_many_times()
104 void BM_elf_and_symbol_find_multiple(benchmark::State& state) { in BM_elf_and_symbol_find_multiple()
111 void BM_elf_and_symbol_not_present_from_sorted(benchmark::State& state) { in BM_elf_and_symbol_not_present_from_sorted()
116 void BM_elf_and_symbol_find_single_from_sorted(benchmark::State& state) { in BM_elf_and_symbol_find_single_from_sorted()
121 void BM_elf_and_symbol_find_single_many_times_from_sorted(benchmark::State& state) { in BM_elf_and_symbol_find_single_many_times_from_sorted()
126 void BM_elf_and_symbol_find_multiple_from_sorted(benchmark::State& state) { in BM_elf_and_symbol_find_multiple_from_sorted()
DMapsBenchmark.cpp56 static void ReparseBenchmark(benchmark::State& state, const char* maps1, size_t maps1_total, in ReparseBenchmark()
79 void BM_local_updatable_maps_reparse_double_initial_small(benchmark::State& state) { in BM_local_updatable_maps_reparse_double_initial_small()
90 void BM_local_updatable_maps_reparse_double_initial_large(benchmark::State& state) { in BM_local_updatable_maps_reparse_double_initial_large()
101 void BM_local_updatable_maps_reparse_same_maps_small(benchmark::State& state) { in BM_local_updatable_maps_reparse_same_maps_small()
110 void BM_local_updatable_maps_reparse_same_maps_large(benchmark::State& state) { in BM_local_updatable_maps_reparse_same_maps_large()
118 void BM_local_updatable_maps_reparse_few_extra_small(benchmark::State& state) { in BM_local_updatable_maps_reparse_few_extra_small()
129 void BM_local_updatable_maps_reparse_few_extra_large(benchmark::State& state) { in BM_local_updatable_maps_reparse_few_extra_large()
140 void BM_local_updatable_maps_reparse_few_less_small(benchmark::State& state) { in BM_local_updatable_maps_reparse_few_less_small()
151 void BM_local_updatable_maps_reparse_few_less_large(benchmark::State& state) { in BM_local_updatable_maps_reparse_few_less_large()
Dlocal_unwind_benchmarks.cpp60 static void Run(benchmark::State& state, size_t (*func)(void*), void* data) { in Run()
85 static void BM_local_unwind_uncached_process_memory(benchmark::State& state) { in BM_local_unwind_uncached_process_memory()
97 static void BM_local_unwind_cached_process_memory(benchmark::State& state) { in BM_local_unwind_cached_process_memory()
109 static void BM_local_unwind_local_updatable_maps_uncached(benchmark::State& state) { in BM_local_unwind_local_updatable_maps_uncached()
121 static void BM_local_unwind_local_updatable_maps_cached(benchmark::State& state) { in BM_local_unwind_local_updatable_maps_cached()
133 static void BM_local_unwind_local_updatable_maps_thread_cached(benchmark::State& state) { in BM_local_unwind_local_updatable_maps_thread_cached()
145 static void BM_local_unwind_local_unwinder(benchmark::State& state) { in BM_local_unwind_local_unwinder()
155 static void BM_local_unwind_uncached_process_memory_no_func_names(benchmark::State& state) { in BM_local_unwind_uncached_process_memory_no_func_names()
167 static void BM_local_unwind_cached_process_memory_no_func_names(benchmark::State& state) { in BM_local_unwind_cached_process_memory_no_func_names()
179 static void BM_local_unwind_local_updatable_maps_uncached_no_func_names(benchmark::State& state) { in BM_local_unwind_local_updatable_maps_uncached_no_func_names()
[all …]
/system/extras/memory_replay/
DTraceBenchmark.cpp152 static void RunTrace(benchmark::State& state, TraceDataType* trace_data) { in RunTrace()
252 static void BenchmarkTrace(benchmark::State& state, const char* filename, bool enable_decay_time) { in BenchmarkTrace()
280 static void BM_angry_birds2(benchmark::State& state) { in BM_angry_birds2()
286 static void BM_angry_birds2_no_decay(benchmark::State& state) { in BM_angry_birds2_no_decay()
292 static void BM_camera(benchmark::State& state) { in BM_camera()
298 static void BM_camera_no_decay(benchmark::State& state) { in BM_camera_no_decay()
304 static void BM_candy_crush_saga(benchmark::State& state) { in BM_candy_crush_saga()
310 static void BM_candy_crush_saga_no_decay(benchmark::State& state) { in BM_candy_crush_saga_no_decay()
316 void BM_gmail(benchmark::State& state) { in BM_gmail()
322 void BM_gmail_no_decay(benchmark::State& state) { in BM_gmail_no_decay()
[all …]
/system/bt/common/benchmark/
Dthread_performance_benchmark.cc31 using ::benchmark::State;
68 void SetUp(State& st) override { in SetUp()
74 void TearDown(State& st) override { in TearDown()
116 void SetUp(State& st) override { in SetUp()
124 void TearDown(State& st) override { in TearDown()
135 BENCHMARK_F(BM_MessageLoopOsiThread, batch_enque_dequeue)(State& state) { in BENCHMARK_F()
149 BENCHMARK_F(BM_MessageLoopOsiThread, sequential_execution)(State& state) { in BENCHMARK_F()
163 void SetUp(State& st) override { in SetUp()
170 void TearDown(State& st) override { in TearDown()
182 BENCHMARK_F(BM_MessageLoopStlThread, batch_enque_dequeue)(State& state) { in BENCHMARK_F()
[all …]
Dtimer_performance_benchmark.cc29 using ::benchmark::State;
63 void SetUp(State& st) override { in SetUp()
69 void TearDown(State& st) override { in TearDown()
78 BENCHMARK_DEFINE_F(BM_OsiAlarmTimer, timer_performance_ms)(State& state) { in BENCHMARK_DEFINE_F()
103 void SetUp(State& st) override { in SetUp()
113 void TearDown(State& st) override { in TearDown()
130 BENCHMARK_DEFINE_F(BM_AlarmTaskTimer, timer_performance_ms)(State& state) { in BENCHMARK_DEFINE_F()
158 void SetUp(State& st) override { in SetUp()
169 void TearDown(State& st) override { in TearDown()
178 BENCHMARK_DEFINE_F(BM_OsiPeriodicAlarmTimer, periodic_accuracy)(State& state) { in BENCHMARK_DEFINE_F()
[all …]
/system/bt/gd/rust/linux/mgmt/src/bin/btmanagerd/
Dstate_machine.rs11 pub enum State { enum
57 state: Arc<Mutex<State>>,
73 pub async fn get_state(&self) -> State { in get_state() argument
268 state: Arc<Mutex<State>>,
295 state: Arc::new(Mutex::new(State::Off)), in new()
307 State::Off => { in action_start_bluetooth()
308 *state = State::TurningOn; in action_start_bluetooth()
327 State::On | State::TurningOn => { in action_stop_bluetooth()
328 *state = State::TurningOff; in action_stop_bluetooth()
344 if *state != State::TurningOn { in action_on_bluetooth_started()
[all …]
/system/libbase/
Dformat_benchmark.cpp27 static void BenchmarkFormatInt(benchmark::State& state) { in BenchmarkFormatInt()
36 static void BenchmarkStringPrintfInt(benchmark::State& state) { in BenchmarkStringPrintfInt()
45 static void BenchmarkFormatFloat(benchmark::State& state) { in BenchmarkFormatFloat()
54 static void BenchmarkStringPrintfFloat(benchmark::State& state) { in BenchmarkStringPrintfFloat()
63 static void BenchmarkFormatStrings(benchmark::State& state) { in BenchmarkFormatStrings()
71 static void BenchmarkStringPrintfStrings(benchmark::State& state) { in BenchmarkStringPrintfStrings()
/system/update_engine/update_manager/
Dupdate_manager.h49 State*,
61 State* state);
83 EvaluationContext*, State*, std::string*, R*, ExpectedArgs...) const,
99 EvaluationContext*, State*, std::string*, R*, ExpectedArgs...) const,
106 State*,
115 State* state() { return state_.get(); } in state()
132 EvaluationContext*, State*, std::string*, R*, Args...) const,
147 EvaluationContext*, State*, std::string*, R*, Args...) const,
162 std::unique_ptr<State> state_;
Dstate.h32 class State {
34 virtual ~State() {} in ~State()
46 State() {} in State() function
49 DISALLOW_COPY_AND_ASSIGN(State);
Dchromeos_policy.h58 State* state,
64 State* state,
70 State* state,
76 State* state,
81 State* state,
147 State* state,
165 State* state,
Dpolicy_utils.h50 State* state, in ConsultPolicies()
72 State* state, in UpdateCheckAllowed()
80 State* state, in UpdateCanBeApplied()
88 State* state, in UpdateCanStart()
96 State* state, in P2PEnabled()
103 State* state, in P2PEnabledChanged()
Dmock_policy.h62 EvalStatus(EvaluationContext*, State*, std::string*, UpdateCheckParams*));
66 State*,
73 State*,
80 EvalStatus(EvaluationContext*, State*, std::string*, bool*));
83 P2PEnabled, EvalStatus(EvaluationContext*, State*, std::string*, bool*));
87 EvalStatus(EvaluationContext*, State*, std::string*, bool*, bool));
Ddefault_policy.h67 State* state,
73 State* state,
79 State* state,
85 State* state,
90 State* state,
/system/media/audio_utils/benchmarks/
Dstatistics_benchmark.cpp36 static void BM_MeanVariance(benchmark::State& state, int iterlimit, int alphalimit) { in BM_MeanVariance()
72 static void BM_MeanVariance_float_float_float(benchmark::State &state) { in BM_MeanVariance_float_float_float()
80 static void BM_RefMeanVariance_float_float(benchmark::State &state) { in BM_RefMeanVariance_float_float()
88 static auto BM_MeanVariance_float_double_double(benchmark::State &state) { in BM_MeanVariance_float_double_double()
96 static auto BM_RefMeanVariance_float_double(benchmark::State &state) { in BM_RefMeanVariance_float_double()
104 static auto BM_MeanVariance_float_float_Kahan(benchmark::State &state) { in BM_MeanVariance_float_float_Kahan()
113 static auto BM_MeanVariance_float_float_Neumaier(benchmark::State &state) { in BM_MeanVariance_float_float_Neumaier()
133 static auto BM_MeanVariance_float_float_float_alpha(benchmark::State &state) { in BM_MeanVariance_float_float_float_alpha()
141 static auto BM_MeanVariance_float_double_double_alpha(benchmark::State &state) { in BM_MeanVariance_float_double_double_alpha()
/system/chre/apps/test/chqts/src/general_test/
Dbasic_sensor_test_base.cc85 mState(State::kPreStart), in BasicSensorTestBase()
100 mState = State::kPreStart; in sendStartTestMessage()
181 mState = State::kPreConfigure; in startTest()
283 mState = State::kExpectingLastDataEvent; in startTest()
289 mState = State::kExpectingInitialDataEvent; in startTest()
335 mState = State::kFinished; in finishTest()
359 if (mState == State::kExpectingInitialDataEvent) { in verifyEventHeader()
362 } else if (mState == State::kExpectingLastDataEvent) { in verifyEventHeader()
388 if ((mState == State::kFinished) && in verifyEventHeader()
457 if (mState != State::kFinished) { in handleSamplingChangeEvent()
[all …]
/system/incremental_delivery/incfs/tests/
Dhardening_benchmark.cpp42 static void TestEmpty(benchmark::State& state) { in TestEmpty()
50 static void TestSignal(benchmark::State& state) { in TestSignal()
62 static void TestRead(benchmark::State& state) { in TestRead()
73 static void TestMapPtrRaw(benchmark::State& state) { in TestMapPtrRaw()
87 static void TestMapPtr(benchmark::State& state) { in TestMapPtr()
98 static void TestAccess(benchmark::State& state) { in TestAccess()
108 static void TestAccessFast(benchmark::State& state) { in TestAccessFast()
120 static void TestAccessVal(benchmark::State& state) { in TestAccessVal()
130 static void TestAccessNested(benchmark::State& state) { in TestAccessNested()
142 static void TestAccessDoubleNested(benchmark::State& state) { in TestAccessDoubleNested()
[all …]
/system/bt/gd/os/
Dthread_benchmark.cc26 using ::benchmark::State;
35 void SetUp(State& st) override { in SetUp()
40 void TearDown(State& st) override { in TearDown()
61 void SetUp(State& st) override { in SetUp()
66 void TearDown(State& st) override { in TearDown()
76 BENCHMARK_DEFINE_F(BM_ReactorThread, batch_enque_dequeue)(State& state) { in BENCHMARK_DEFINE_F()
98 BENCHMARK_DEFINE_F(BM_ReactorThread, sequential_execution)(State& state) { in BENCHMARK_DEFINE_F()
/system/core/libutils/
DVector_benchmark.cpp21 void BM_fill_android_vector(benchmark::State& state) { in BM_fill_android_vector()
29 void BM_fill_std_vector(benchmark::State& state) { in BM_fill_std_vector()
37 void BM_prepend_android_vector(benchmark::State& state) { in BM_prepend_android_vector()
45 void BM_prepend_std_vector(benchmark::State& state) { in BM_prepend_std_vector()
/system/extras/simpleperf/app_api/java/com/android/simpleperf/
DProfileSession.java67 enum State { enum in ProfileSession
74 private State mState = State.NOT_YET_STARTED;
134 if (mState != State.NOT_YET_STARTED) { in startRecording()
146 mState = State.STARTED; in startRecording()
153 if (mState != State.STARTED) { in pauseRecording()
161 mState = State.PAUSED; in pauseRecording()
168 if (mState != State.PAUSED) { in resumeRecording()
172 mState = State.STARTED; in resumeRecording()
179 if (mState != State.STARTED && mState != State.PAUSED) { in stopRecording()
198 mState = State.STOPPED; in stopRecording()
/system/bt/gd/l2cap/classic/internal/
Dchannel_configuration_state.h29 enum State { enum
50 State state_ = State::WAIT_CONFIG_REQ_RSP;

123456