/external/libcxx/test/support/ |
D | deleter_types.h | 31 int state_; variable 37 Deleter(Deleter&& r) : state_(r.state_) {r.state_ = 0;} in Deleter() 40 state_ = r.state_; 41 r.state_ = 0; 46 Deleter() : state_(0) {} in Deleter() 47 explicit Deleter(int s) : state_(s) {} in Deleter() 48 ~Deleter() {assert(state_ >= 0); state_ = -1;} in ~Deleter() 53 : state_(d.state()) {d.set_state(0);} 60 int state() const {return state_;} in state() 61 void set_state(int i) {state_ = i;} in set_state() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/test/val/ |
D | val_state_test.cpp | 44 state_(context_, options_, kFakeBinary, 0, 1) {} in ValidationStateTest() 54 ValidationState_t state_; member in spvtools::val::__anondb1092120111::ValidationStateTest 61 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F() 62 state_.RegisterCapability(SpvCapabilityMatrix); in TEST_F() 63 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F() 64 state_.RegisterCapability(SpvCapabilityImageMipmap); in TEST_F() 65 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F() 66 state_.RegisterCapability(SpvCapabilityPipes); in TEST_F() 67 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F() 68 state_.RegisterCapability(SpvCapabilityStorageImageArrayDynamicIndexing); in TEST_F() [all …]
|
/external/deqp-deps/SPIRV-Tools/test/val/ |
D | val_state_test.cpp | 44 state_(context_, options_, kFakeBinary, 0, 1) {} in ValidationStateTest() 54 ValidationState_t state_; member in spvtools::val::__anon9b31a2d80111::ValidationStateTest 61 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F() 62 state_.RegisterCapability(SpvCapabilityMatrix); in TEST_F() 63 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F() 64 state_.RegisterCapability(SpvCapabilityImageMipmap); in TEST_F() 65 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F() 66 state_.RegisterCapability(SpvCapabilityPipes); in TEST_F() 67 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F() 68 state_.RegisterCapability(SpvCapabilityStorageImageArrayDynamicIndexing); in TEST_F() [all …]
|
/external/epid-sdk/epid/common-testhelper/ |
D | finite_field_wrapper-testhelper.cc | 107 FiniteFieldObj::FiniteFieldObj() : state_(new State()) { in FiniteFieldObj() 114 state_->ff_.reset(temp, finite_field_deleter); in FiniteFieldObj() 115 state_->size_ = sizeof(max_prime); in FiniteFieldObj() 119 : state_(new State) { in FiniteFieldObj() 120 state_->ff_ = other.state_->ff_; in FiniteFieldObj() 121 state_->size_ = other.state_->size_; in FiniteFieldObj() 122 state_->SetInnerState(other.state_->inner_state); in FiniteFieldObj() 126 state_->ff_ = other.state_->ff_; in operator =() 127 state_->size_ = other.state_->size_; in operator =() 128 state_->SetInnerState(other.state_->inner_state); in operator =() [all …]
|
D | bignum_wrapper-testhelper.cc | 64 BigNumObj::BigNumObj() : state_(new State) { in BigNumObj() 65 state_->write(nullptr, 0, sizeof(BigNumStr)); in BigNumObj() 68 BigNumObj::BigNumObj(BigNumObj const& other) : state_(new State) { in BigNumObj() 69 bool orig_has_data = other.state_->bn_.get() != nullptr; in BigNumObj() 72 buf.resize(other.state_->size); in BigNumObj() 73 THROW_ON_EPIDERR(WriteBigNum(other.state_->bn_.get(), buf.size(), &buf[0])); in BigNumObj() 75 state_->write(&buf[0], other.state_->size, buf.size()); in BigNumObj() 79 bool orig_has_data = other.state_->bn_.get() != nullptr; in operator =() 82 buf.resize(other.state_->size); in operator =() 83 THROW_ON_EPIDERR(WriteBigNum(other.state_->bn_.get(), buf.size(), &buf[0])); in operator =() [all …]
|
D | ffelement_wrapper-testhelper.cc | 65 FfElementObj::FfElementObj() : state_(new State) {} in FfElementObj() 67 FfElementObj::FfElementObj(FfElementObj const& other) : state_(new State) { in FfElementObj() 69 state_->write(&other.state_->ff_, &buf[0], buf.size()); in FfElementObj() 74 state_->write(&other.state_->ff_, &buf[0], buf.size()); in operator =() 78 FfElementObj::FfElementObj(FiniteFieldObj* ff) : state_(new State) { in FfElementObj() 79 state_->write(ff, nullptr, 0); in FfElementObj() 83 : state_(new State) { in FfElementObj() 88 : state_(new State) { in FfElementObj() 93 : state_(new State) { in FfElementObj() 98 : state_(new State) { in FfElementObj() [all …]
|
D | ecgroup_wrapper-testhelper.cc | 59 EcGroupObj::EcGroupObj() : state_(new State()) { in EcGroupObj() 88 state_->group_.reset(temp, ecgroup_deleter); in EcGroupObj() 89 state_->fintefield_ = fq; in EcGroupObj() 92 EcGroupObj::EcGroupObj(EcGroupObj const& other) : state_(new State) { in EcGroupObj() 93 state_->group_ = other.state_->group_; in EcGroupObj() 94 state_->fintefield_ = other.state_->fintefield_; in EcGroupObj() 98 state_->group_ = other.state_->group_; in operator =() 99 state_->fintefield_ = other.state_->fintefield_; in operator =() 107 : state_(new State) { in EcGroupObj() 110 state_->group_.reset(temp, ecgroup_deleter); in EcGroupObj() [all …]
|
D | ecpoint_wrapper-testhelper.cc | 62 EcPointObj::EcPointObj() : state_(new State) {} in EcPointObj() 64 EcPointObj::EcPointObj(EcPointObj const& other) : state_(new State) { in EcPointObj() 66 state_->write(&other.state_->group_, &buf[0], buf.size()); in EcPointObj() 71 state_->write(&other.state_->group_, &buf[0], buf.size()); in operator =() 75 EcPointObj::EcPointObj(EcGroupObj* group) : state_(new State) { in EcPointObj() 76 state_->write(group, nullptr, 0); in EcPointObj() 80 : state_(new State) { in EcPointObj() 85 : state_(new State) { in EcPointObj() 90 : state_(new State) { in EcPointObj() 96 : state_(new State) { in EcPointObj() [all …]
|
/external/libtextclassifier/utils/intents/ |
D | intent-generator.cc | 158 lua_setglobal(state_, "external"); in Initialize() 180 lua_setfield(state_, /*idx=*/-2, "user_restrictions"); in SetupExternalHook() 186 lua_setfield(state_, /*idx=*/-2, "R"); in SetupExternalHook() 188 lua_setfield(state_, /*idx=*/-2, "android"); in SetupExternalHook() 201 lua_error(state_); in HandleExternalCallback() 210 lua_newtable(state_); in HandleAndroidCallback() 213 lua_pushinteger(state_, i + 1); in HandleAndroidCallback() 214 lua_newtable(state_); in HandleAndroidCallback() 216 lua_setfield(state_, -2, "language"); in HandleAndroidCallback() 218 lua_setfield(state_, -2, "region"); in HandleAndroidCallback() [all …]
|
/external/webrtc/talk/session/media/ |
D | rtcpmuxfilter.cc | 34 RtcpMuxFilter::RtcpMuxFilter() : state_(ST_INIT), offer_enable_(false) { in RtcpMuxFilter() 38 return state_ == ST_SENTPRANSWER || in IsActive() 39 state_ == ST_RECEIVEDPRANSWER || in IsActive() 40 state_ == ST_ACTIVE; in IsActive() 44 state_ = ST_ACTIVE; in SetActive() 48 if (state_ == ST_ACTIVE) { in SetOffer() 59 state_ = (src == CS_LOCAL) ? ST_SENTOFFER : ST_RECEIVEDOFFER; in SetOffer() 65 if (state_ == ST_ACTIVE) { in SetProvisionalAnswer() 78 state_ = ST_RECEIVEDPRANSWER; in SetProvisionalAnswer() 80 state_ = ST_SENTPRANSWER; in SetProvisionalAnswer() [all …]
|
/external/perfetto/src/trace_processor/ |
D | ftrace_utils.cc | 49 state_ |= kMaxState; in TaskState() 60 if (state_ != 0) { in TaskState() 71 state_ |= Atom::kInterruptibleSleep; in TaskState() 73 state_ |= Atom::kUninterruptibleSleep; in TaskState() 75 state_ |= Atom::kStopped; in TaskState() 77 state_ |= Atom::kTraced; in TaskState() 79 state_ |= Atom::kExitDead; in TaskState() 81 state_ |= Atom::kExitZombie; in TaskState() 83 state_ |= Atom::kTaskDead; in TaskState() 85 state_ |= Atom::kWakeKill; in TaskState() [all …]
|
/external/libchrome/base/message_loop/ |
D | message_pump_glib.cc | 179 : state_(nullptr), in MessagePumpGlib() 217 if (state_ && // state_ may be null during tests. in HandlePrepare() 218 state_->has_work) in HandlePrepare() 227 if (!state_) // state_ may be null during tests. in HandleCheck() 246 state_->has_work = true; in HandleCheck() 249 if (state_->has_work) in HandleCheck() 262 state_->has_work = false; in HandleDispatch() 263 if (state_->delegate->DoWork()) { in HandleDispatch() 268 state_->has_work = true; in HandleDispatch() 271 if (state_->should_quit) in HandleDispatch() [all …]
|
/external/webrtc/webrtc/base/ |
D | transformadapter.cc | 25 direction_read_(direction_read), state_(ST_PROCESSING), len_(0) { in TransformAdapter() 39 while (state_ != ST_ERROR) { in Read() 40 if (state_ == ST_COMPLETE) in Read() 44 if ((state_ == ST_PROCESSING) && (len_ < sizeof(buffer_))) { in Read() 54 state_ = ST_ERROR; in Read() 57 state_ = ST_FLUSHING; in Read() 68 (state_ == ST_FLUSHING)); in Read() 72 state_ = ST_COMPLETE; in Read() 74 state_ = ST_ERROR; in Read() 77 } else if ((out_len == 0) && (state_ == ST_FLUSHING)) { in Read() [all …]
|
D | socketadapters.cc | 256 user_(username), pass_(password), force_connect_(false), state_(PS_ERROR), in AsyncHttpsProxySocket() 269 state_ = PS_INIT; in Connect() 284 state_ = PS_ERROR; in Close() 292 if (state_ < PS_TUNNEL) { in GetState() 294 } else if (state_ == PS_TUNNEL) { in GetState() 304 state_ = PS_TUNNEL; in OnConnectEvent() 313 if ((state_ == PS_WAIT_CLOSE) && (err == 0)) { in OnCloseEvent() 314 state_ = PS_ERROR; in OnCloseEvent() 323 for (size_t pos = start; state_ < PS_TUNNEL && pos < *len;) { in ProcessInput() 324 if (state_ == PS_SKIP_BODY) { in ProcessInput() [all …]
|
D | signalthread.cc | 24 state_(kInit), in SignalThread() 38 ASSERT(kInit == state_); in SetName() 45 if (kInit == state_ || kComplete == state_) { in Start() 46 state_ = kRunning; in Start() 57 if ((kInit == state_) || (kComplete == state_)) { in Destroy() 59 } else if (kRunning == state_ || kReleasing == state_) { in Destroy() 60 state_ = kStopping; in Destroy() 80 if (kComplete == state_) { in Release() 82 } else if (kRunning == state_) { in Release() 83 state_ = kReleasing; in Release() [all …]
|
/external/libtextclassifier/utils/ |
D | lua-utils.cc | 49 LuaEnvironment::LuaEnvironment() { state_ = luaL_newstate(); } in LuaEnvironment() 52 if (state_ != nullptr) { in ~LuaEnvironment() 53 lua_close(state_); in ~LuaEnvironment() 165 if (lua_type(state_, /*idx=*/-1) != LUA_TTABLE) { in ReadFlatbuffer() 167 << lua_type(state_, /*idx=*/-1); in ReadFlatbuffer() 168 lua_error(state_); in ReadFlatbuffer() 172 lua_pushnil(state_); in ReadFlatbuffer() 173 while (lua_next(state_, /*idx=*/-2)) { in ReadFlatbuffer() 178 lua_error(state_); in ReadFlatbuffer() 186 static_cast<bool>(lua_toboolean(state_, /*idx=*/-1))); in ReadFlatbuffer() [all …]
|
D | regex-match.cc | 68 lua_setglobal(state_, "context"); in Initialize() 76 lua_setglobal(state_, "match"); in Initialize() 94 if (lua_type(state_, /*idx=*/-1) != LUA_TNUMBER) { in GetCapturingGroup() 96 << lua_type(state_, /*idx=*/-1); in GetCapturingGroup() 97 lua_error(state_); in GetCapturingGroup() 100 const int group_id = static_cast<int>(lua_tonumber(state_, /*idx=*/-1)); in GetCapturingGroup() 107 lua_error(state_); in GetCapturingGroup() 110 lua_newtable(state_); in GetCapturingGroup() 111 lua_pushinteger(state_, span.first); in GetCapturingGroup() 112 lua_setfield(state_, /*idx=*/-2, "begin"); in GetCapturingGroup() [all …]
|
/external/webrtc/webrtc/libjingle/xmpp/ |
D | xmppengineimpl.cc | 40 state_(STATE_START), in XmppEngineImpl() 66 if (state_ != STATE_START) in SetOutputHandler() 76 if (state_ != STATE_START) in SetSessionHandler() 86 if (state_ < STATE_OPENING || state_ > STATE_OPEN) in HandleInput() 98 if (state_ != STATE_CLOSED) { in ConnectionClosed() 112 if (state_ != STATE_START) in SetTls() 121 if (state_ != STATE_START) in SetTlsServer() 135 if (state_ != STATE_START) in SetUser() 148 if (state_ != STATE_START) in SetSaslHandler() 157 if (state_ != STATE_START) in SetRequestedResource() [all …]
|
/external/protobuf/objectivec/ |
D | GPBCodedInputStream.m | 307 state_.bytes = (const uint8_t *)[data bytes]; 308 state_.bufferSize = [data length]; 309 state_.currentLimit = state_.bufferSize; 320 return GPBCodedInputStreamReadTag(&state_); 324 GPBCodedInputStreamCheckLastTagWas(&state_, value); 330 GPBCodedInputStreamReadInt32(&state_); 333 SkipRawData(&state_, sizeof(int64_t)); 336 SkipRawData(&state_, ReadRawVarint32(&state_)); 341 &state_, GPBWireFormatMakeTag(GPBWireFormatGetTagFieldNumber(tag), 347 SkipRawData(&state_, sizeof(int32_t)); [all …]
|
/external/libtextclassifier/actions/ |
D | lua-ranker.cc | 55 state_); in Initialize() 56 lua_setglobal(state_, "actions"); in Initialize() 60 &conversation_.messages, state_); in Initialize() 61 lua_setglobal(state_, "messages"); in Initialize() 67 if (lua_type(state_, /*idx=*/-1) != LUA_TTABLE) { in ReadActionsRanking() 69 << lua_type(state_, /*idx=*/-1); in ReadActionsRanking() 70 lua_pop(state_, 1); in ReadActionsRanking() 71 lua_error(state_); in ReadActionsRanking() 75 lua_pushnil(state_); in ReadActionsRanking() 76 while (lua_next(state_, /*idx=*/-2)) { in ReadActionsRanking() [all …]
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_mutex.h | 26 atomic_store(&state_, 0, memory_order_relaxed); in Init() 36 return atomic_exchange(&state_, 1, memory_order_acquire) == 0; in TryLock() 40 atomic_store(&state_, 0, memory_order_release); in Unlock() 44 CHECK_EQ(atomic_load(&state_, memory_order_relaxed), 1); in CheckLocked() 48 atomic_uint8_t state_; 56 if (atomic_load(&state_, memory_order_relaxed) == 0 in LockSlow() 57 && atomic_exchange(&state_, 1, memory_order_acquire) == 0) in LockSlow() 96 atomic_store(&state_, kUnlocked, memory_order_relaxed); in RWMutex() 100 CHECK_EQ(atomic_load(&state_, memory_order_relaxed), kUnlocked); in ~RWMutex() 105 if (atomic_compare_exchange_strong(&state_, &cmp, kWriteLock, in Lock() [all …]
|
/external/perfetto/src/perfetto_cmd/ |
D | rate_limiter.cc | 93 bool loaded_state = LoadState(&state_); in ShouldTrace() 99 if (!loaded_state || now_in_s < state_.first_trace_timestamp() || in ShouldTrace() 100 now_in_s < state_.last_trace_timestamp() || in ShouldTrace() 101 state_.last_trace_timestamp() < state_.first_trace_timestamp()) { in ShouldTrace() 109 if ((now_in_s - state_.last_trace_timestamp()) < kCooldownInSeconds) { in ShouldTrace() 116 if ((now_in_s - state_.first_trace_timestamp()) > in ShouldTrace() 118 state_.set_first_trace_timestamp(0); in ShouldTrace() 119 state_.set_last_trace_timestamp(0); in ShouldTrace() 120 state_.set_total_bytes_uploaded(0); in ShouldTrace() 129 if (state_.total_bytes_uploaded() > max_upload_guardrail) { in ShouldTrace() [all …]
|
/external/webrtc/webrtc/common_audio/ |
D | sparse_fir_filter.cc | 24 state_(sparsity_ * (num_nonzero_coeffs - 1) + offset_, 0.f) { in SparseFIRFilter() 40 out[i] += state_[i + (nonzero_coeffs_.size() - j - 1) * sparsity_] * in Filter() 46 if (state_.size() > 0u) { in Filter() 47 if (length >= state_.size()) { in Filter() 48 std::memcpy(&state_[0], in Filter() 49 &in[length - state_.size()], in Filter() 50 state_.size() * sizeof(*in)); in Filter() 52 std::memmove(&state_[0], in Filter() 53 &state_[length], in Filter() 54 (state_.size() - length) * sizeof(state_[0])); in Filter() [all …]
|
/external/grpc-grpc/src/core/lib/gprpp/ |
D | thd.h | 53 Thread() : state_(FAKE), impl_(nullptr) {} in Thread() 65 Thread(Thread&& other) : state_(other.state_), impl_(other.impl_) { in Thread() 66 other.state_ = MOVED; in Thread() 80 state_ = other.state_; 82 other.state_ = MOVED; 95 GPR_ASSERT(state_ == ALIVE); in Start() 96 state_ = STARTED; in Start() 99 GPR_ASSERT(state_ == FAILED); in Start() 107 state_ = DONE; in Join() 110 GPR_ASSERT(state_ == FAILED); in Join() [all …]
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | lockfree_event.cc | 71 gpr_atm_no_barrier_store(&state_, kClosureNotReady); in InitEvent() 77 curr = gpr_atm_no_barrier_load(&state_); in DestroyEvent() 86 } while (!gpr_atm_no_barrier_cas(&state_, curr, in DestroyEvent() 96 gpr_atm curr = gpr_atm_acq_load(&state_); in NotifyOn() 110 if (gpr_atm_rel_cas(&state_, kClosureNotReady, (gpr_atm)closure)) { in NotifyOn() 126 if (gpr_atm_no_barrier_cas(&state_, kClosureReady, kClosureNotReady)) { in NotifyOn() 162 gpr_atm curr = gpr_atm_no_barrier_load(&state_); in SetShutdown() 165 &state_, (void*)curr, grpc_error_string(shutdown_err)); in SetShutdown() 172 if (gpr_atm_full_cas(&state_, curr, new_state)) { in SetShutdown() 191 if (gpr_atm_full_cas(&state_, curr, new_state)) { in SetShutdown() [all …]
|