Home
last modified time | relevance | path

Searched refs:state_ (Results 1 – 20 of 20) sorted by relevance

/frameworks/libs/binary_translation/interpreter/riscv64/
Dinterpreter_test.cc95 : state_{ in Riscv64InterpreterTest()
99 state_.cpu.insn_addr = ToGuestAddr(&insn_bytes); in InterpretFence()
100 InterpretInsn(&state_); in InterpretFence()
108 state_.cpu.v[24] = state_.cpu.v[16] = state_.cpu.v[8] = in TestFPExceptions()
110 state_.cpu.v[25] = state_.cpu.v[17] = state_.cpu.v[9] = in TestFPExceptions()
112 state_.cpu.v[26] = state_.cpu.v[18] = state_.cpu.v[10] = SIMD128Register{ in TestFPExceptions()
115 state_.cpu.f[1] = 0xffff'ffff'3f80'0000; in TestFPExceptions()
116 state_.cpu.f[2] = 0x3ff0'0000'0000'0000; in TestFPExceptions()
118 state_.cpu.vtype = (BitUtilLog2(sizeof(ElementType)) << 3) | /*vlmul=*/1; in TestFPExceptions()
122 state_.cpu.vstart = 0; in TestFPExceptions()
[all …]
Dinterpreter.h79 : state_(state), branch_taken_(false), exception_raised_(false) {} in Interpreter()
148 return MemoryRegionReservation::Load<IntType>(&state_->cpu, addr, AqRlToStdMemoryOrder(aq, rl)); in Lr()
159 &state_->cpu, addr, val, AqRlToStdMemoryOrder(aq, rl))); in Sc()
283 uint64_t pc = state_->cpu.insn_addr; in Auipc()
306 RunGuestSyscall(state_); in Ecall()
307 return state_->cpu.x[A0]; in Ecall()
406 state_->cpu.insn_addr += offset; in Branch()
412 state_->cpu.insn_addr = (base + offset) & ~uint64_t{1}; in BranchRegister()
510 state_->cpu.v[args.dst + index] = ptr[index]; in OpVector()
530 ptr[index] = state_->cpu.v[args.data + index]; in OpVector()
[all …]
/frameworks/av/media/libeffects/loudness/dsp/core/
Ddynamic_range_compression.cpp58 state_ = 0.0f; in Initialize()
86 const float prev_state = state_; in Compress()
87 if (cv <= state_) { in Compress()
88 state_ = alpha_attack_ * state_ + (1.0f - alpha_attack_) * cv; in Compress()
90 state_ = alpha_release_ * state_ + (1.0f - alpha_release_) * cv; in Compress()
92 compressor_gain_ *= expf(state_ - prev_state); in Compress()
114 const float prev_state = state_; in Compress()
115 if (cv <= state_) { in Compress()
116 state_ = alpha_attack_ * state_ + (1.0f - alpha_attack_) * cv; in Compress()
118 state_ = alpha_release_ * state_ + (1.0f - alpha_release_) * cv; in Compress()
[all …]
Dinterpolator_linear.h58 using BaseClass::state_;
73 state_ = NULL; in SetInternalState()
Dinterpolator_base-inl.h43 state_ = NULL; in InterpolatorBase()
48 delete [] state_; in ~InterpolatorBase()
105 state_ = NULL; in Initialize()
Ddynamic_range_compression.h97 float state_; variable
Dinterpolator_base.h100 double *state_; variable
/frameworks/libs/binary_translation/lite_translator/riscv64_to_x86_64/
Dlite_translate_region_exec_tests.cc37 state_.cpu.insn_addr = ToGuestAddr(code); in Reset()
47 bool success = LiteTranslateRange(state_.cpu.insn_addr, in Run()
58 TestingRunGeneratedCode(&state_, exec.get(), expected_stop_addr); in Run()
61 EXPECT_EQ(state_.cpu.insn_addr, expected_stop_addr); in Run()
66 ThreadState state_; member in berberis::__anoncf7dff080111::Riscv64LiteTranslateRegionTest
74 SetXReg<1>(state_.cpu, 0); in TEST_F()
75 SetXReg<2>(state_.cpu, 1); in TEST_F()
76 SetXReg<3>(state_.cpu, 1); in TEST_F()
78 EXPECT_EQ(GetXReg<3>(state_.cpu), 3ULL); in TEST_F()
90 SetXReg<A0>(state_.cpu, 1); in TEST_F()
[all …]
Dlite_translator_exec_tests.cc37 state_{}, in Riscv64LiteTranslatorExecTest()
45 berberis_RunGeneratedCode(&state_, exec.get()); in Run()
61 ThreadState state_; member in berberis::__anon40ffc1a10111::Riscv64LiteTranslatorExecTest
66 state_.cpu.x[1] = 0; in TEST_F()
76 EXPECT_EQ(state_.cpu.x[1], 33ULL); in TEST_F()
80 state_.cpu.f[1] = 0; in TEST_F()
92 EXPECT_EQ(state_.cpu.f[1], 33ULL); in TEST_F()
/frameworks/av/services/audiopolicy/permission/include/media/
DValidatedAttributionSourceState.h55 operator AttributionSourceState() const { return state_; } in AttributionSourceState()
57 operator const AttributionSourceState&() const { return state_; }
59 AttributionSourceState unwrapInto() && { return std::move(state_); } in unwrapInto()
62 return operator==(other.state_);
65 bool operator==(const AttributionSourceState& other) const { return state_ == other; }
68 ValidatedAttributionSourceState(AttributionSourceState attr) : state_(attr) {} in ValidatedAttributionSourceState()
70 AttributionSourceState state_; variable
/frameworks/native/libs/vr/libpdx/
Dclient.cpp132 client_.GetChannel()->FreeTransactionState(state_); in ~Transaction()
137 state_ = client_.GetChannel()->AllocateTransactionState(); in EnsureStateAllocated()
157 state_, opcode, send_vector, send_count, receive_vector, receive_count); in SendTransaction()
183 state_, opcode, send_vector, send_count, receive_vector, receive_count); in SendTransaction()
204 state_, opcode, send_vector, send_count, receive_vector, receive_count); in SendTransaction()
225 state_, opcode, send_vector, send_count, receive_vector, receive_count); in SendTransaction()
232 return client_.GetChannel()->PushFileHandle(state_, handle); in PushFileHandle()
239 return client_.GetChannel()->PushFileHandle(state_, handle); in PushFileHandle()
250 return client_.GetChannel()->PushChannelHandle(state_, handle); in PushChannelHandle()
257 return client_.GetChannel()->PushChannelHandle(state_, handle); in PushChannelHandle()
[all …]
Dservice.cpp29 state_ = svc->endpoint()->AllocateMessageState();
44 std::swap(state_, other.state_); in operator =()
61 svc->endpoint()->FreeMessageState(state_); in Destroy()
63 state_ = nullptr; in Destroy()
/frameworks/libs/binary_translation/guest_os_primitives/
Dguest_thread.cc75 thread->state_ = CreateThreadState(); in Create()
76 if (!thread->state_) { in Create()
81 SetGuestThread(*thread->state_, thread); in Create()
157 thread->state_ = state; in CreateForTest()
165 if (ArePendingSignalsPresent(*thread->state_)) { in Destroy()
185 if (thread->state_) { in Destroy()
186 DestroyThreadState(thread->state_); in Destroy()
310 GetTls()[TLS_SLOT_NATIVE_BRIDGE_GUEST_STATE] = GetThreadStateStorage(*state_); in InitStaticTls()
311 SetTlsAddr(*state_, ToGuestAddr(tls)); in InitStaticTls()
315 SetTlsAddr(*state_, GettidSyscall()); in InitStaticTls()
Dguest_signal_handling.cc186 guest_info->si_addr = ToHostAddr<void>(GetInsnAddr(GetCPUState(*state_))); in SetSignalFromHost()
199 uint8_t old_status = GetPendingSignalsStatusAtomic(*state_).exchange(kPendingSignalsPresent, in SetSignalFromHost()
247 SetStackRegister(GetCPUState(*state_), ToGuestAddr(sig_alt_stack_) + sig_alt_stack_size_ - 16); in SwitchToSigAltStack()
254 const char* ss_curr = ToHostAddr<const char>(GetStackRegister(GetCPUState(*state_))); in IsOnSigAltStack()
261 uint8_t status = GetPendingSignalsStatusAtomic(*state_).load(std::memory_order_acquire); in ProcessPendingSignals()
275 if (GetPendingSignalsStatusAtomic(*state_).compare_exchange_weak( in ProcessAndDisablePendingSignals()
290 return !GetPendingSignalsStatusAtomic(*state_).compare_exchange_strong( in TestAndEnablePendingSignals()
301 GetPendingSignalsStatusAtomic(*state_).store(kPendingSignalsEnabled, std::memory_order_relaxed); in ProcessPendingSignalsImpl()
/frameworks/native/services/vr/virtual_touchpad/
DEvdevInjector.cpp61 state_ = State::CLOSED; in Close()
82 state_ = State::CLOSED; in ConfigureBegin()
85 state_ = State::CONFIGURING; in ConfigureBegin()
226 state_ = State::READY; in ConfigureEnd()
310 if (state_ != required_state) { in RequireState()
311 ALOGE("in state %d but require state %d", static_cast<int>(state_), in RequireState()
334 result.appendFormat("injector_state = %d\n", static_cast<int>(state_)); in dumpInternal()
DEvdevInjector.h135 State state_ = State::NEW; variable
/frameworks/libs/binary_translation/guest_os_primitives/include/berberis/guest_os_primitives/
Dguest_thread.h87 const ThreadState* state() const { return state_; } in state()
88 ThreadState* state() { return state_; } in state()
138 ThreadState* state_ = nullptr; variable
/frameworks/base/cmds/idmap2/libidmap2/
DResourceContainer.cpp323 mutable std::variant<std::unique_ptr<ZipAssetsProvider>, ResState> state_; member
329 : state_(std::move(zip_assets)), path_(std::move(path)) { in ApkResourceContainer()
343 if (auto state = std::get_if<ResState>(&state_); state != nullptr) { in GetState()
347 auto state = ResState::Initialize(std::move(std::get<std::unique_ptr<ZipAssetsProvider>>(state_)), in GetState()
353 state_ = std::move(*state); in GetState()
354 return &std::get<ResState>(state_); in GetState()
358 if (auto zip = std::get_if<std::unique_ptr<ZipAssetsProvider>>(&state_); zip != nullptr) { in GetZipAssets()
361 return std::get<ResState>(state_).zip_assets; in GetZipAssets()
/frameworks/native/libs/vr/libpdx/private/pdx/
Dservice.h345 const void* GetState() const { return state_; } in GetState()
346 void* GetState() { return state_; } in GetState()
358 void* state_{nullptr};
Dclient.h295 void* state_{nullptr};