/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/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::__anon62a85d9d0111::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/cronet/buildtools/third_party/libc++/trunk/test/support/ |
D | deleter_types.h | 30 int state_; variable 36 TEST_CONSTEXPR_CXX23 Deleter(Deleter&& r) : state_(r.state_) { r.state_ = 0; } in Deleter() 38 state_ = r.state_; 39 r.state_ = 0; 43 TEST_CONSTEXPR_CXX23 Deleter() : state_(0) {} in Deleter() 44 TEST_CONSTEXPR_CXX23 explicit Deleter(int s) : state_(s) {} in Deleter() 46 assert(state_ >= 0); in ~Deleter() 47 state_ = -1; in ~Deleter() 52 : state_(d.state()) { 61 TEST_CONSTEXPR_CXX23 int state() const { return state_; } in state() [all …]
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/val/ |
D | val_state_test.cpp | 40 state_(context_, options_, kFakeBinary, 0, 1) {} in ValidationStateTest() 50 ValidationState_t state_; member in spvtools::val::__anonec953e4a0111::ValidationStateTest 57 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F() 58 state_.RegisterCapability(spv::Capability::Matrix); in TEST_F() 59 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F() 60 state_.RegisterCapability(spv::Capability::ImageMipmap); in TEST_F() 61 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F() 62 state_.RegisterCapability(spv::Capability::Pipes); in TEST_F() 63 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F() 64 state_.RegisterCapability(spv::Capability::StorageImageArrayDynamicIndexing); in TEST_F() [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::__anon04bc41970111::ValidationStateTest 61 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F() 62 state_.RegisterCapability(spv::Capability::Matrix); in TEST_F() 63 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F() 64 state_.RegisterCapability(spv::Capability::ImageMipmap); in TEST_F() 65 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F() 66 state_.RegisterCapability(spv::Capability::Pipes); in TEST_F() 67 EXPECT_TRUE(state_.HasAnyOfCapabilities({})); in TEST_F() 68 state_.RegisterCapability(spv::Capability::StorageImageArrayDynamicIndexing); in TEST_F() [all …]
|
/external/cronet/base/message_loop/ |
D | message_pump_glib.cc | 367 : state_(nullptr), wakeup_gpollfd_(std::make_unique<GPollFD>()) { in MessagePumpGlib() 523 if (!state_) { in HandleObserverPrepare() 527 if (state_->do_work_depth > 0) { in HandleObserverPrepare() 541 if (!state_) { in HandleObserverCheck() 548 if (state_->do_work_depth > 0) { in HandleObserverCheck() 560 if (!state_) in HandlePrepare() 564 GetTimeIntervalMilliseconds(state_->next_work_info.delayed_run_time); in HandlePrepare() 571 state_->delegate->BeforeWait(); in HandlePrepare() 578 if (!state_) // state_ may be null during tests. in HandleCheck() 584 if (state_->do_work_depth > 0) { in HandleCheck() [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/cronet/net/filter/ |
D | gzip_header.cc | 25 state_ = IN_HEADER_ID1; in Reset() 37 switch ( state_ ) { in ReadMore() 41 state_++; in ReadMore() 46 state_++; in ReadMore() 51 state_++; in ReadMore() 57 state_++; in ReadMore() 62 state_++; in ReadMore() 66 state_++; in ReadMore() 70 state_++; in ReadMore() 74 state_++; in ReadMore() [all …]
|
/external/cronet/third_party/quic_trace/src/tools/render/ |
D | trace_program.cc | 38 state_.window.x, in TraceProgram() 39 state_.window.y, in TraceProgram() 43 state_buffer_ = std::make_unique<ProgramState>(&state_); in TraceProgram() 63 state_.viewport.x = renderer_->max_x(); in LoadTrace() 64 state_.viewport.y = renderer_->max_y(); in LoadTrace() 111 state_.offset.x += sign * (1 - zoom_factor) * state_.viewport.x / 2; in Zoom() 112 state_.offset.y += sign * (1 - zoom_factor) * state_.viewport.y / 2; in Zoom() 114 state_.viewport.x *= std::pow(zoom_factor, sign); in Zoom() 115 state_.viewport.y *= std::pow(zoom_factor, sign); in Zoom() 121 state_.window = vec2(width, height); in UpdateWindowSize() [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/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/pigweed/pw_random/public/pw_random/ |
D | xor_shift.h | 37 XorShiftStarRng64(uint64_t initial_seed) : state_(initial_seed) {} in XorShiftStarRng64() 44 size_t copy_size = std::min(dest.size_bytes(), sizeof(state_)); in Get() 62 uint64_t untouched_state = state_ >> (kNumStateBits - num_bits); in InjectEntropyBits() 63 state_ = untouched_state | (state_ << num_bits); in InjectEntropyBits() 67 state_ ^= (data & mask); in InjectEntropyBits() 75 if (state_ == 0) { in Regenerate() 76 state_--; in Regenerate() 78 state_ ^= state_ >> 12; in Regenerate() 79 state_ ^= state_ << 25; in Regenerate() 80 state_ ^= state_ >> 27; in Regenerate() [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::__anonda35a05c0111::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/leveldb/include/leveldb/ |
D | status.h | 27 Status() noexcept : state_(nullptr) {} in Status() 28 ~Status() { delete[] state_; } in ~Status() 33 Status(Status&& rhs) noexcept : state_(rhs.state_) { rhs.state_ = nullptr; } in Status() 57 bool ok() const { return (state_ == nullptr); } in ok() 89 return (state_ == nullptr) ? kOk : static_cast<Code>(state_[4]); in code() 100 const char* state_; variable 104 state_ = (rhs.state_ == nullptr) ? nullptr : CopyState(rhs.state_); in Status() 109 if (state_ != rhs.state_) { 110 delete[] state_; 111 state_ = (rhs.state_ == nullptr) ? nullptr : CopyState(rhs.state_); [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | cancellation.cc | 55 if (state_) { in StartCancelWithStatus() 56 std::swap(state_->callbacks, callbacks_to_run); in StartCancelWithStatus() 59 CancellationManager* child = state_->first_child; in StartCancelWithStatus() 65 state_->first_child = nullptr; in StartCancelWithStatus() 67 cancelled_notification = &state_->cancelled_notification; in StartCancelWithStatus() 117 if (!state_) { in RegisterCallbackConfig() 118 state_ = absl::make_unique<State>(); in RegisterCallbackConfig() 120 std::swap(state_->callbacks[token], config); in RegisterCallbackConfig() 132 state_ ? &state_->cancelled_notification : nullptr; in DeregisterCallback() 143 if (state_) { in DeregisterCallback() [all …]
|
/external/cronet/net/http/ |
D | transport_security_persister_unittest.cc | 62 state_ = std::make_unique<TransportSecurityState>(); in SetUp() 64 state_.get(), std::move(background_runner), in SetUp() 71 std::unique_ptr<TransportSecurityState> state_; member in net::__anon479cfd0c0111::TransportSecurityPersisterTest 82 EXPECT_FALSE(state_->GetDynamicSTSState(kYahooDomain, &sts_state)); in TEST_F() 84 state_->AddHSTS(kYahooDomain, expiry, false /* include subdomains */); in TEST_F() 85 EXPECT_TRUE(state_->GetDynamicSTSState(kYahooDomain, &sts_state)); in TEST_F() 89 EXPECT_FALSE(state_->GetDynamicSTSState(kYahooDomain, &sts_state)); in TEST_F() 111 EXPECT_FALSE(state_->GetDynamicSTSState(kYahooDomain, &sts_state)); in TEST_F() 114 state_->AddHSTS(kYahooDomain, expiry, include_subdomains); in TEST_F() 120 EXPECT_TRUE(state_->GetDynamicSTSState(kYahooDomain, &sts_state)); in TEST_F() [all …]
|
/external/libchrome-gestures/src/ |
D | lookahead_filter_interpreter.cc | 67 next_->SyncInterpret(&(*q_node_iter).state_, &next_timeout); in SyncInterpretImpl() 83 if (q_node.state_.SameFingersAs(*hwstate)) { in SyncInterpretImpl() 85 hwstate->fingers[i].flags = q_node.state_.fingers[i].flags; in SyncInterpretImpl() 138 HardwareState* hs = &tail.state_; in AssignTrackingIds() 151 HardwareState* hs = &tail.state_; in AssignTrackingIds() 153 HardwareState* prev_hs = prev_qs ? &prev_qs->state_ : NULL; in AssignTrackingIds() 155 HardwareState* prev2_hs = prev2_qs ? &prev2_qs->state_ : NULL; in AssignTrackingIds() 295 FingerState* fs = tail.state_.GetFingerState(new_bad_output_id); in AssignTrackingIds() 350 HardwareState& hs = queue_.back().state_; in TapDownOccurringGesture() 351 if (queue_.back().state_.timestamp != now) in TapDownOccurringGesture() [all …]
|
/external/webrtc/rtc_base/ |
D | socket_adapters.cc | 232 state_(PS_ERROR), in AsyncHttpsProxySocket() 244 state_ = PS_INIT; in Connect() 259 state_ = PS_ERROR; in Close() 267 if (state_ < PS_TUNNEL) { in GetState() 269 } else if (state_ == PS_TUNNEL) { in GetState() 279 state_ = PS_TUNNEL; in OnConnectEvent() 288 if ((state_ == PS_WAIT_CLOSE) && (err == 0)) { in OnCloseEvent() 289 state_ = PS_ERROR; in OnCloseEvent() 298 for (size_t pos = start; state_ < PS_TUNNEL && pos < *len;) { in ProcessInput() 299 if (state_ == PS_SKIP_BODY) { in ProcessInput() [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/cronet/third_party/protobuf/objectivec/ |
D | GPBCodedInputStream.m | 322 state_.bytes = (const uint8_t *)[data bytes]; 323 state_.bufferSize = [data length]; 324 state_.currentLimit = state_.bufferSize; 341 return GPBCodedInputStreamReadTag(&state_); 345 GPBCodedInputStreamCheckLastTagWas(&state_, value); 352 GPBCodedInputStreamReadInt32(&state_); 355 SkipRawData(&state_, sizeof(int64_t)); 358 SkipRawData(&state_, ReadRawVarint32(&state_)); 363 &state_, GPBWireFormatMakeTag(GPBWireFormatGetTagFieldNumber(tag), 369 SkipRawData(&state_, sizeof(int32_t)); [all …]
|
/external/protobuf/objectivec/ |
D | GPBCodedInputStream.m | 322 state_.bytes = (const uint8_t *)[data bytes]; 323 state_.bufferSize = [data length]; 324 state_.currentLimit = state_.bufferSize; 341 return GPBCodedInputStreamReadTag(&state_); 345 GPBCodedInputStreamCheckLastTagWas(&state_, value); 352 GPBCodedInputStreamReadInt32(&state_); 355 SkipRawData(&state_, sizeof(int64_t)); 358 SkipRawData(&state_, ReadRawVarint32(&state_)); 363 &state_, GPBWireFormatMakeTag(GPBWireFormatGetTagFieldNumber(tag), 369 SkipRawData(&state_, sizeof(int32_t)); [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 …]
|