/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/llvm-project/libcxx/test/support/ |
D | deleter_types.h | 30 int state_; variable 36 Deleter(Deleter&& r) : state_(r.state_) {r.state_ = 0;} in Deleter() 39 state_ = r.state_; 40 r.state_ = 0; 45 Deleter() : state_(0) {} in Deleter() 46 explicit Deleter(int s) : state_(s) {} in Deleter() 47 ~Deleter() {assert(state_ >= 0); state_ = -1;} in ~Deleter() 52 : state_(d.state()) {d.set_state(0);} 59 int state() const {return state_;} in state() 60 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::__anon39fe75f90111::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::__anonc84fae7f0111::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/angle/third_party/vulkan-deps/spirv-tools/src/test/val/ |
D | val_state_test.cpp | 44 state_(context_, options_, kFakeBinary, 0, 1) {} in ValidationStateTest() 54 ValidationState_t state_; member in spvtools::val::__anonfea5d52c0111::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/perfetto/src/trace_processor/types/ |
D | task_state.cc | 38 state_ = 0; in TaskState() 40 state_ |= kValid; in TaskState() 44 state_ |= raw_state; in TaskState() 48 state_ |= raw_state & (kTaskDead - 1); in TaskState() 54 state_ |= kParked; in TaskState() 57 state_ |= kTaskDead; in TaskState() 60 state_ |= max_state_; in TaskState() 74 state_ |= max_state_; in TaskState() 85 if (state_ != 0) { in TaskState() 96 state_ |= Atom::kInterruptibleSleep; in TaskState() [all …]
|
/external/webrtc/pc/ |
D | rtcp_mux_filter.cc | 17 RtcpMuxFilter::RtcpMuxFilter() : state_(ST_INIT), offer_enable_(false) {} in RtcpMuxFilter() 20 return state_ == ST_ACTIVE; in IsFullyActive() 24 return state_ == ST_SENTPRANSWER || state_ == ST_RECEIVEDPRANSWER; in IsProvisionallyActive() 32 state_ = ST_ACTIVE; in SetActive() 36 if (state_ == ST_ACTIVE) { in SetOffer() 47 state_ = (src == CS_LOCAL) ? ST_SENTOFFER : ST_RECEIVEDOFFER; in SetOffer() 53 if (state_ == ST_ACTIVE) { in SetProvisionalAnswer() 66 state_ = ST_RECEIVEDPRANSWER; in SetProvisionalAnswer() 68 state_ = ST_SENTPRANSWER; in SetProvisionalAnswer() 74 state_ = ST_SENTOFFER; in SetProvisionalAnswer() [all …]
|
/external/libtextclassifier/native/utils/intents/ |
D | jni-lua.cc | 87 lua_setglobal(state_, "external"); in Initialize() 105 lua_setfield(state_, /*idx=*/-2, "user_restrictions"); in SetupExternalHook() 110 lua_setfield(state_, /*idx=*/-2, "R"); in SetupExternalHook() 112 lua_setfield(state_, /*idx=*/-2, "android"); in SetupExternalHook() 125 lua_error(state_); in HandleExternalCallback() 134 lua_newtable(state_); in HandleAndroidCallback() 137 lua_pushinteger(state_, i + 1); in HandleAndroidCallback() 138 lua_newtable(state_); in HandleAndroidCallback() 140 lua_setfield(state_, -2, "language"); in HandleAndroidCallback() 142 lua_setfield(state_, -2, "region"); in HandleAndroidCallback() [all …]
|
/external/pigweed/pw_random/public/pw_random/ |
D | xor_shift.h | 36 XorShiftStarRng64(uint64_t initial_seed) : state_(initial_seed) {} in XorShiftStarRng64() 44 size_t copy_size = std::min(dest.size_bytes(), sizeof(state_)); in Get() 64 uint64_t untouched_state = state_ >> (kNumStateBits - num_bits); in InjectEntropyBits() 65 state_ = untouched_state | (state_ << num_bits); in InjectEntropyBits() 68 state_ ^= (data & mask); in InjectEntropyBits() 76 if (state_ == 0) { in Regenerate() 77 state_--; in Regenerate() 79 state_ ^= state_ >> 12; in Regenerate() 80 state_ ^= state_ << 25; in Regenerate() 81 state_ ^= state_ >> 27; in Regenerate() [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/libtextclassifier/native/utils/ |
D | lua-utils.cc | 56 LuaEnvironment::LuaEnvironment() { state_ = luaL_newstate(); } in LuaEnvironment() 59 if (state_ != nullptr) { in ~LuaEnvironment() 60 lua_close(state_); in ~LuaEnvironment() 74 const char* field_name = lua_tostring(state_, /*idx=*/kIndexStackTop); in GetField() 77 lua_error(state_); in GetField() 194 lua_error(state_); in GetField() 201 lua_error(state_); in GetField() 211 lua_error(state_); in ReadFlatbuffer() 214 if (lua_type(state_, /*idx=*/index) != LUA_TTABLE) { in ReadFlatbuffer() 216 << lua_type(state_, /*idx=*/kIndexStackTop); in ReadFlatbuffer() [all …]
|
D | lua-utils.h | 87 new (lua_newuserdata(state_, sizeof(func))) F(func); in PushFunction() 90 lua_newtable(state_); in PushFunction() 91 lua_pushcfunction(state_, &ReleaseFunction<F>); in PushFunction() 92 lua_setfield(state_, -2, kGcKey); in PushFunction() 93 lua_setmetatable(state_, -2); in PushFunction() 96 lua_pushcclosure(state_, &CallFunction<F>, 1); in PushFunction() 108 lua_newtable(state_); in PushLazyObject() 109 lua_newtable(state_); in PushLazyObject() 111 lua_setfield(state_, -2, kIndexKey); in PushLazyObject() 112 lua_setmetatable(state_, -2); in PushLazyObject() [all …]
|
D | regex-match.cc | 71 lua_setglobal(state_, "context"); in Initialize() 79 lua_setglobal(state_, "match"); in Initialize() 97 if (lua_type(state_, /*idx=*/-1) != LUA_TNUMBER) { in GetCapturingGroup() 99 << lua_type(state_, /*idx=*/-1); in GetCapturingGroup() 100 lua_error(state_); in GetCapturingGroup() 103 const int group_id = static_cast<int>(lua_tonumber(state_, /*idx=*/-1)); in GetCapturingGroup() 110 lua_error(state_); in GetCapturingGroup() 113 lua_newtable(state_); in GetCapturingGroup() 114 lua_pushinteger(state_, span.first); in GetCapturingGroup() 115 lua_setfield(state_, /*idx=*/-2, "begin"); in GetCapturingGroup() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/json/ |
D | json_reader.cc | 115 State state_ = State::GRPC_JSON_STATE_VALUE_BEGIN; member in grpc_core::__anon4d835ffe0111::JsonReader 260 return (stack_.empty() && (state_ == State::GRPC_JSON_STATE_END || in IsComplete() 261 state_ == State::GRPC_JSON_STATE_VALUE_END)); in IsComplete() 292 switch (state_) { in Run() 314 state_ = State::GRPC_JSON_STATE_VALUE_END; in Run() 326 switch (state_) { in Run() 349 state_ = State::GRPC_JSON_STATE_VALUE_END; in Run() 357 if (state_ != State::GRPC_JSON_STATE_VALUE_END) { in Run() 362 state_ = State::GRPC_JSON_STATE_OBJECT_KEY_BEGIN; in Run() 365 state_ = State::GRPC_JSON_STATE_VALUE_BEGIN; in Run() [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | cancellation.cc | 48 if (state_) { in StartCancel() 49 std::swap(state_->callbacks, callbacks_to_run); in StartCancel() 52 CancellationManager* child = state_->first_child; in StartCancel() 58 state_->first_child = nullptr; in StartCancel() 60 cancelled_notification = &state_->cancelled_notification; in StartCancel() 90 if (!state_) { in RegisterCallback() 91 state_ = absl::make_unique<State>(); in RegisterCallback() 93 std::swap(state_->callbacks[token], callback); in RegisterCallback() 105 state_ ? &state_->cancelled_notification : nullptr; in DeregisterCallback() 116 if (state_) { in DeregisterCallback() [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/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_mutex.h | 25 atomic_store(&state_, 0, memory_order_relaxed); in Init() 35 return atomic_exchange(&state_, 1, memory_order_acquire) == 0; in TryLock() 39 atomic_store(&state_, 0, memory_order_release); in Unlock() 43 CHECK_EQ(atomic_load(&state_, memory_order_relaxed), 1); in CheckLocked() 47 atomic_uint8_t state_; 55 if (atomic_load(&state_, memory_order_relaxed) == 0 in LockSlow() 56 && atomic_exchange(&state_, 1, memory_order_acquire) == 0) in LockSlow() 100 atomic_store(&state_, kUnlocked, memory_order_relaxed); in RWMutex() 104 CHECK_EQ(atomic_load(&state_, memory_order_relaxed), kUnlocked); in ~RWMutex() 109 if (atomic_compare_exchange_strong(&state_, &cmp, kWriteLock, in Lock() [all …]
|
/external/webrtc/rtc_base/deprecated/ |
D | signal_thread.cc | 27 : main_(Thread::Current()), worker_(this), state_(kInit), refcount_(1) { in DEPRECATED_SignalThread() 43 RTC_DCHECK(kInit == state_); in SetName() 51 if (kInit == state_ || kComplete == state_) { in Start() 52 state_ = kRunning; in Start() 67 if ((kInit == state_) || (kComplete == state_)) { in Destroy() 69 } else if (kRunning == state_ || kReleasing == state_) { in Destroy() 70 state_ = kStopping; in Destroy() 91 if (kComplete == state_) { in Release() 93 } else if (kRunning == state_) { in Release() 94 state_ = kReleasing; in Release() [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/webrtc/rtc_base/ |
D | socket_adapters.cc | 225 state_(PS_ERROR), in AsyncHttpsProxySocket() 237 state_ = PS_INIT; in Connect() 252 state_ = PS_ERROR; in Close() 260 if (state_ < PS_TUNNEL) { in GetState() 262 } else if (state_ == PS_TUNNEL) { in GetState() 272 state_ = PS_TUNNEL; in OnConnectEvent() 281 if ((state_ == PS_WAIT_CLOSE) && (err == 0)) { in OnCloseEvent() 282 state_ = PS_ERROR; in OnCloseEvent() 291 for (size_t pos = start; state_ < PS_TUNNEL && pos < *len;) { in ProcessInput() 292 if (state_ == PS_SKIP_BODY) { in ProcessInput() [all …]
|
/external/marisa-trie/lib/marisa/ |
D | agent.cc | 8 Agent::Agent() : query_(), key_(), state_() {} in Agent() 14 if (state_.get() != NULL) { in set_query() 15 state_->reset(); in set_query() 22 if (state_.get() != NULL) { in set_query() 23 state_->reset(); in set_query() 29 if (state_.get() != NULL) { in set_query() 30 state_->reset(); in set_query() 36 MARISA_THROW_IF(state_.get() != NULL, MARISA_STATE_ERROR); in init_state() 37 state_.reset(new (std::nothrow) grimoire::State); in init_state() 38 MARISA_THROW_IF(state_.get() == NULL, MARISA_MEMORY_ERROR); in init_state() [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 …]
|
/external/perfetto/src/perfetto_cmd/ |
D | rate_limiter.cc | 81 bool loaded_state = LoadState(&state_); in ShouldTrace() 87 if (!loaded_state || now_in_s < state_.first_trace_timestamp() || in ShouldTrace() 88 now_in_s < state_.last_trace_timestamp() || in ShouldTrace() 89 state_.last_trace_timestamp() < state_.first_trace_timestamp()) { in ShouldTrace() 97 if ((now_in_s - state_.first_trace_timestamp()) > in ShouldTrace() 99 state_.set_first_trace_timestamp(0); in ShouldTrace() 100 state_.set_last_trace_timestamp(0); in ShouldTrace() 101 state_.set_total_bytes_uploaded(0); in ShouldTrace() 116 uint64_t uploaded_so_far = state_.total_bytes_uploaded(); in ShouldTrace() 119 for (const auto& session_state : state_.session_state()) { in ShouldTrace() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/ |
D | lockfree_event.cc | 72 gpr_atm_no_barrier_store(&state_, kClosureNotReady); in InitEvent() 78 curr = gpr_atm_no_barrier_load(&state_); in DestroyEvent() 87 } while (!gpr_atm_no_barrier_cas(&state_, curr, in DestroyEvent() 97 gpr_atm curr = gpr_atm_acq_load(&state_); in NotifyOn() 112 if (gpr_atm_rel_cas(&state_, kClosureNotReady, in NotifyOn() 129 if (gpr_atm_no_barrier_cas(&state_, kClosureReady, kClosureNotReady)) { in NotifyOn() 166 gpr_atm curr = gpr_atm_no_barrier_load(&state_); in SetShutdown() 170 &state_, curr, grpc_error_string(shutdown_error)); in SetShutdown() 177 if (gpr_atm_full_cas(&state_, curr, new_state)) { in SetShutdown() 196 if (gpr_atm_full_cas(&state_, curr, new_state)) { in SetShutdown() [all …]
|
/external/perfetto/src/trace_processor/importers/systrace/ |
D | systrace_trace_parser.cc | 69 if (state_ == ParseState::kEndOfSystrace) in Parse() 73 if (state_ == ParseState::kBeforeParse) { in Parse() 74 state_ = partial_buf_[0] == '<' ? ParseState::kHtmlBeforeSystrace in Parse() 91 if (state_ == ParseState::kHtmlBeforeSystrace) { in Parse() 93 state_ = ParseState::kTraceDataSection; in Parse() 95 } else if (state_ == ParseState::kTraceDataSection) { in Parse() 97 state_ = ParseState::kSystrace; in Parse() 99 state_ = ParseState::kProcessDumpLong; in Parse() 101 state_ = ParseState::kCgroupDump; in Parse() 103 state_ = ParseState::kHtmlBeforeSystrace; in Parse() [all …]
|