/foundation/graphic/graphic_3d/lume/LumeRender/src/loader/ |
H A D | shader_state_loader_util.cpp | 284 // Read rasterization state. in ParseSingleState() 295 // Read depth stencil state in ParseSingleState() 306 // Read depth color blend state. in ParseSingleState() 329 for (auto const& state : allStates) { in LoadStates() 331 SafeGetJsonValue(state, "variantName", ssr.res.error, variant.variantName); in LoadStates() 333 ssr.res.error += "graphics state variant name needs to be given\n"; in LoadStates() 336 if (const json::value* graphicsStateIt = state.find("state"); graphicsStateIt) { in LoadStates() 339 SafeGetJsonValue(state, "baseShaderState", ssr.res.error, variant.baseShaderState); in LoadStates() 340 SafeGetJsonValue(state, "baseVariantNam in LoadStates() [all...] |
/foundation/multimedia/camera_framework/services/camera_service/src/ |
H A D | hcamera_device_manager.cpp | 143 void HCameraDeviceManager::SetStateOfACamera(std::string cameraId, int32_t state)
in SetStateOfACamera() argument 145 MEDIA_INFO_LOG("HCameraDeviceManager::SetStateOfACamera start %{public}s, state: %{public}d",
in SetStateOfACamera() 146 cameraId.c_str(), state);\
in SetStateOfACamera() 147 if (state == 0) {
in SetStateOfACamera() 148 stateOfACamera_.EnsureInsert(cameraId, state);
in SetStateOfACamera() 207 MEDIA_INFO_LOG("HCameraDeviceManager::GetConflictDevices active pid:%{public}d state: %{public}d,"
in GetConflictDevices() 208 "request pid:%{public}d state: %{public}d", pidOfActiveClient, activeState, pidOfOpenRequest, requestState);
in GetConflictDevices() 248 MEDIA_INFO_LOG("Request Open camera ID %{public}s active pid: %{public}d, state: %{public}d,"
in HandleCameraEvictions() 249 "request pid: %{public}d, state: %{public}d", cameraId.c_str(), pidOfActiveClient,
in HandleCameraEvictions() 272 MEDIA_ERR_LOG("Invalid state in HandleCameraEvictions() [all...] |
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/manager/trans_lane_manager_test/ |
H A D | trans_lane_manager_test.cpp | 286 CoreSessionState state; in HWTEST_F() local 287 ret = TransGetSocketChannelStateBySession(sessionName, sessionId, &state); in HWTEST_F() 289 EXPECT_EQ(state, CORE_SESSION_STATE_INIT); in HWTEST_F() 301 ret = TransGetSocketChannelStateByChannel(channelId, channelType, &state); in HWTEST_F() 303 EXPECT_EQ(state, CORE_SESSION_STATE_INIT); in HWTEST_F() 306 ret = TransGetSocketChannelStateBySession(sessionName, sessionId, &state); in HWTEST_F() 308 EXPECT_EQ(state, CORE_SESSION_STATE_CHANNEL_OPENED); in HWTEST_F() 311 ret = TransGetSocketChannelStateByChannel(channelId, channelType, &state); in HWTEST_F() 313 EXPECT_EQ(state, CORE_SESSION_STATE_CANCELLING); in HWTEST_F()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sub_manage/ |
H A D | wifi_p2p_manager.cpp | 55 WIFI_LOGI("AutoStartP2pService, current p2p state:%{public}d", p2pState);
in AutoStartP2pService() 76 WIFI_LOGE("AutoStartP2pService, set p2p mid state opening failed!");
in AutoStartP2pService() 119 WIFI_LOGI("AutoStopP2pService, current p2p state:%{public}d", p2pState);
in AutoStopP2pService() 129 WIFI_LOGE("AutoStopP2pService, set p2p mid state opening failed!");
in AutoStopP2pService() 219 WIFI_LOGI("CloseP2pService, current sta state:%{public}d", staState);
in CloseP2pService() 227 mP2pCallback.OnP2pStateChangedEvent = [this](P2pState state) { this->DealP2pStateChanged(state); };
in InitP2pCallback() 259 void WifiP2pManager::DealP2pStateChanged(P2pState state)
in DealP2pStateChanged() argument 261 WIFI_LOGI("DealP2pStateChanged, state: %{public}d", static_cast<int>(state));
in DealP2pStateChanged() [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/src/ |
H A D | js_cloud_utils.cpp | 65 NAPI_CALL_RETURN_ERR(GetNamedProperty(env, input, "state", output.state, true), napi_invalid_arg); in Convert2Value() 66 if (output.state < CloudData::Confirmation::CFM_NIL || in Convert2Value() 67 output.state >= CloudData::Confirmation::CFM_BUTT) { in Convert2Value() 149 napi_value state = nullptr; in Convert2JSValue() local 150 if (value.state == CloudData::Confirmation::CFM_NIL) { in Convert2JSValue() 151 napi_get_undefined(env, &state); in Convert2JSValue() 153 state = Convert2JSValue(env, value.state); in Convert2JSValue() 162 napi_set_named_property(env, jsValue, "state", stat in Convert2JSValue() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | sbcdec.c | 214 static inline void sbc_synthesize_four(struct sbc_decoder_state *state, in sbc_synthesize_four() argument 219 int32_t *v = state->V[ch]; in sbc_synthesize_four() 220 int *offset = state->offset[ch]; in sbc_synthesize_four() 257 static inline void sbc_synthesize_eight(struct sbc_decoder_state *state, in sbc_synthesize_eight() argument 262 int32_t *v = state->V[ch]; in sbc_synthesize_eight() 263 int *offset = state->offset[ch]; in sbc_synthesize_eight() 304 static void sbc_synthesize_audio(struct sbc_decoder_state *state, in sbc_synthesize_audio() argument 313 sbc_synthesize_four(state, frame, ch, blk, output_frame); in sbc_synthesize_audio() 319 sbc_synthesize_eight(state, frame, ch, blk, output_frame); in sbc_synthesize_audio()
|
/third_party/curl/lib/ |
H A D | cf-https-connect.c | 99 cf_hc_state state; member 148 ctx->state = CF_HC_INIT; in cf_hc_reset() 184 ctx->state = CF_HC_FAILURE; in baller_connected() 195 ctx->state = CF_HC_SUCCESS; in baller_connected() 253 switch(ctx->state) { in cf_hc_connect() 268 ctx->state = CF_HC_CONNECT; in cf_hc_connect() 300 ctx->state = CF_HC_FAILURE; in cf_hc_connect() 511 if(data->state.httpwant == CURL_HTTP_VERSION_3ONLY) { in Curl_cf_https_setup() 518 else if(data->state.httpwant >= CURL_HTTP_VERSION_3) { in Curl_cf_https_setup()
|
/third_party/mbedtls/library/ |
H A D | ssl_ticket.c | 312 unsigned char *state = state_len_bytes + TICKET_CRYPT_LEN_BYTES; in mbedtls_ssl_ticket_write() local 349 /* Dump session state */ in mbedtls_ssl_ticket_write() 351 state, (size_t) (end - state), in mbedtls_ssl_ticket_write() 362 state, clear_len, in mbedtls_ssl_ticket_write() 363 state, end - state, in mbedtls_ssl_ticket_write() 373 state, clear_len, in mbedtls_ssl_ticket_write() 374 state, (size_t) (end - state), in mbedtls_ssl_ticket_write() [all...] |
H A D | psa_crypto_slot_management.c | 119 if ((slot->state == PSA_SLOT_FULL) && in psa_get_and_lock_key_slot_in_memory() 132 /* Only consider slots which are in a full state. */ in psa_get_and_lock_key_slot_in_memory() 133 if ((slot->state == PSA_SLOT_FULL) && in psa_get_and_lock_key_slot_in_memory() 156 * means that all the key slots are in a valid, empty state. The global in psa_initialize_key_slots() 170 slot->state = PSA_SLOT_PENDING_DELETION; in psa_wipe_all_key_slots() 192 if (slot->state == PSA_SLOT_EMPTY) { in psa_reserve_free_key_slot() 198 (slot->state == PSA_SLOT_FULL) && in psa_reserve_free_key_slot() 455 if ((slot->state != PSA_SLOT_FULL) && in psa_unregister_read() 456 (slot->state != PSA_SLOT_PENDING_DELETION)) { in psa_unregister_read() 462 if ((slot->state in psa_unregister_read() [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_opt_constant_folding.c | 183 struct constant_fold_state *state) in try_fold_intrinsic() 230 state->has_load_constant = true; in try_fold_intrinsic() 233 state->has_indirect_load_const = true; in try_fold_intrinsic() 385 struct constant_fold_state state; in nir_opt_constant_folding() local 386 state.has_load_constant = false; in nir_opt_constant_folding() 387 state.has_indirect_load_const = false; in nir_opt_constant_folding() 392 &state); in nir_opt_constant_folding() 397 if (state.has_load_constant && !state.has_indirect_load_const && in nir_opt_constant_folding() 182 try_fold_intrinsic(nir_builder *b, nir_intrinsic_instr *intrin, struct constant_fold_state *state) try_fold_intrinsic() argument
|
/third_party/libwebsockets/lib/system/dhcpclient/ |
H A D | dhcpc4.c | 165 if (r->state != LDHC_BOUND) { in callback_dhcpc4() 166 r->state = LDHC_INIT; in callback_dhcpc4() 200 r->state = LDHC_BOUND; in callback_dhcpc4() 237 switch (r->state) { in callback_dhcpc4() 337 switch (r->state) { in lws_dhcpc4_parse() 445 * for the state of the negotiation in lws_dhcpc4_parse() 447 if (r->state == LDHC_INIT && *p != LWSDHC4POFFER) in lws_dhcpc4_parse() 449 if (r->state == LDHC_REQUESTING && in lws_dhcpc4_parse() 517 if (r->state == LDHC_INIT) { in lws_dhcpc4_parse() 519 r->state in lws_dhcpc4_parse() [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | vdpau.c | 53 GLenum access, state; member 90 if (surf->state == GL_SURFACE_MAPPED_NV) { in unregister_surface() 148 surf->state = GL_SURFACE_REGISTERED_NV; in register_surface() 304 values[0] = surf->state; in _mesa_VDPAUGetSurfaceivNV() 333 if (surf->state == GL_SURFACE_MAPPED_NV) { in _mesa_VDPAUSurfaceAccessNV() 360 if (surf->state == GL_SURFACE_MAPPED_NV) { in _mesa_VDPAUMapSurfacesNV() 391 surf->state = GL_SURFACE_MAPPED_NV; in _mesa_VDPAUMapSurfacesNV() 414 if (surf->state != GL_SURFACE_MAPPED_NV) { in _mesa_VDPAUUnmapSurfacesNV() 442 surf->state = GL_SURFACE_REGISTERED_NV; in _mesa_VDPAUUnmapSurfacesNV()
|
/third_party/icu/icu4c/source/samples/uciter8/ |
H A D | uit_len8.c | 358 i+=4; /* back to behind this supplementary code point for consistent state */ in lenient8IteratorMove() 476 iter->start+=4; /* back to behind this supplementary code point for consistent state */ in lenient8IteratorPrevious() 487 uint32_t state=(uint32_t)(iter->start<<1); in lenient8IteratorGetState() local 489 state|=1; in lenient8IteratorGetState() 491 return state; in lenient8IteratorGetState() 495 lenient8IteratorSetState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCode) { in lenient8IteratorSetState() argument 500 } else if(state==lenient8IteratorGetState(iter)) { in lenient8IteratorSetState() 501 /* setting to the current state: no-op */ in lenient8IteratorSetState() 503 int32_t index=(int32_t)(state>>1); /* UTF-8 index */ in lenient8IteratorSetState() 504 state in lenient8IteratorSetState() [all...] |
/third_party/rust/crates/lazycell/src/ |
H A D | lib.rs | 229 // Tracks the AtomicLazyCell inner state 238 state: AtomicUsize, 245 state: AtomicUsize::new(NONE), 257 if NONE != self.state.compare_and_swap(NONE, LOCK, Ordering::Acquire) { in fill() 263 if LOCK != self.state.compare_and_swap(LOCK, SOME, Ordering::Release) { in fill() 281 match mem::replace(self.state.get_mut(), SOME) { in replace() 283 _ => panic!("cell in inconsistent state"), in replace() 290 self.state.load(Ordering::Acquire) == SOME in filled() 299 match self.state.load(Ordering::Acquire) { in borrow() 321 match self.state in get() [all...] |
/third_party/pulseaudio/src/pulsecore/ |
H A D | card.c | 149 void *state; in pa_card_new() local 185 PA_HASHMAP_FOREACH(profile, c->profiles, state) in pa_card_new() 188 PA_HASHMAP_FOREACH(port, c->ports, state) in pa_card_new() 211 void *state; in pa_card_choose_initial_profile() local 221 PA_HASHMAP_FOREACH(profile, card->profiles, state) { in pa_card_choose_initial_profile() 231 PA_HASHMAP_FOREACH(profile, card->profiles, state) { in pa_card_choose_initial_profile() 321 uint32_t state; in update_port_preferred_profile() local 323 PA_IDXSET_FOREACH(sink, c->sinks, state) in update_port_preferred_profile() 326 PA_IDXSET_FOREACH(source, c->sources, state) in update_port_preferred_profile() 447 pa_log_debug("Card suspend causes/state change in pa_card_suspend() [all...] |
H A D | idxset.c | 337 void *pa_idxset_iterate(pa_idxset *s, void **state, uint32_t *idx) { in pa_idxset_iterate() argument 341 pa_assert(state); in pa_idxset_iterate() 343 if (*state == (void*) -1) in pa_idxset_iterate() 346 if ((!*state && !s->iterate_list_head)) in pa_idxset_iterate() 349 e = *state ? *state : s->iterate_list_head; in pa_idxset_iterate() 352 *state = e->iterate_next; in pa_idxset_iterate() 354 *state = (void*) -1; in pa_idxset_iterate() 362 *state = (void *) -1; in pa_idxset_iterate()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/ |
H A D | SurfaceD3D.cpp | 27 SurfaceD3D::SurfaceD3D(const egl::SurfaceState &state, in SurfaceD3D() argument 34 : SurfaceImpl(state), in SurfaceD3D() 41 mRenderTargetFormat(state.config->renderTargetFormat), in SurfaceD3D() 42 mDepthStencilFormat(state.config->depthStencilFormat), in SurfaceD3D() 46 mNativeWindow(renderer->createNativeWindow(window, state.config, attribs)), in SurfaceD3D() 474 WindowSurfaceD3D::WindowSurfaceD3D(const egl::SurfaceState &state, in WindowSurfaceD3D() argument 479 : SurfaceD3D(state, renderer, display, window, 0, static_cast<EGLClientBuffer>(0), attribs) in WindowSurfaceD3D() 484 PbufferSurfaceD3D::PbufferSurfaceD3D(const egl::SurfaceState &state, in PbufferSurfaceD3D() argument 490 : SurfaceD3D(state, in PbufferSurfaceD3D()
|
/third_party/skia/third_party/externals/icu/source/samples/uciter8/ |
H A D | uit_len8.c | 358 i+=4; /* back to behind this supplementary code point for consistent state */ in lenient8IteratorMove() 476 iter->start+=4; /* back to behind this supplementary code point for consistent state */ in lenient8IteratorPrevious() 487 uint32_t state=(uint32_t)(iter->start<<1); in lenient8IteratorGetState() local 489 state|=1; in lenient8IteratorGetState() 491 return state; in lenient8IteratorGetState() 495 lenient8IteratorSetState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCode) { in lenient8IteratorSetState() argument 500 } else if(state==lenient8IteratorGetState(iter)) { in lenient8IteratorSetState() 501 /* setting to the current state: no-op */ in lenient8IteratorSetState() 503 int32_t index=(int32_t)(state>>1); /* UTF-8 index */ in lenient8IteratorSetState() 504 state in lenient8IteratorSetState() [all...] |
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
H A D | RenderPipelineD3D12.cpp | 181 // explicitly state that they apply to alpha should be treated as their explicitly-alpha 231 D3D12_RENDER_TARGET_BLEND_DESC ComputeColorDesc(const ColorTargetState* state) { in ComputeColorDesc() argument 233 blendDesc.BlendEnable = state->blend != nullptr; in ComputeColorDesc() 235 blendDesc.SrcBlend = D3D12Blend(state->blend->color.srcFactor); in ComputeColorDesc() 236 blendDesc.DestBlend = D3D12Blend(state->blend->color.dstFactor); in ComputeColorDesc() 237 blendDesc.BlendOp = D3D12BlendOperation(state->blend->color.operation); in ComputeColorDesc() 238 blendDesc.SrcBlendAlpha = D3D12AlphaBlend(state->blend->alpha.srcFactor); in ComputeColorDesc() 239 blendDesc.DestBlendAlpha = D3D12AlphaBlend(state->blend->alpha.dstFactor); in ComputeColorDesc() 240 blendDesc.BlendOpAlpha = D3D12BlendOperation(state->blend->alpha.operation); in ComputeColorDesc() 242 blendDesc.RenderTargetWriteMask = D3D12RenderTargetWriteMask(state in ComputeColorDesc() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/ |
H A D | eap_leap.c | 29 } state; member 46 data->state = LEAP_WAIT_CHALLENGE; in eap_leap_init() 131 data->state = LEAP_WAIT_SUCCESS; in eap_leap_process_request() 153 if (data->state != LEAP_WAIT_SUCCESS) { in eap_leap_process_success() 155 "unexpected state (%d) - ignored", data->state); in eap_leap_process_success() 181 data->state = LEAP_WAIT_RESPONSE; in eap_leap_process_success() 266 * of the authentication. Use special variable to transit EAP state in eap_leap_process_response() 267 * machine to SUCCESS state. */ in eap_leap_process_response() 269 data->state in eap_leap_process_response() [all...] |
H A D | eap_psk.c | 22 enum { PSK_INIT, PSK_MAC_SENT, PSK_DONE } state; member 55 data->state = PSK_INIT; in eap_psk_init() 94 wpa_printf(MSG_DEBUG, "EAP-PSK: in INIT state"); in eap_psk_process_1() 171 data->state = PSK_MAC_SENT; in eap_psk_process_1() 191 wpa_printf(MSG_DEBUG, "EAP-PSK: in MAC_SENT state"); in eap_psk_process_3() 359 data->state = PSK_DONE; in eap_psk_process_3() 389 switch (data->state) { in eap_psk_process() 397 wpa_printf(MSG_DEBUG, "EAP-PSK: in DONE state - ignore " in eap_psk_process() 414 return data->state == PSK_DONE; in eap_psk_isKeyAvailable() 423 if (data->state ! in eap_psk_getKey() [all...] |
H A D | eap_tnc.c | 18 enum { WAIT_START, PROC_MSG, WAIT_FRAG_ACK, DONE, FAIL } state; member 44 data->state = WAIT_START; in eap_tnc_init() 141 data->state = WAIT_FRAG_ACK; in eap_tnc_build_msg() 154 data->state = FAIL; in eap_tnc_process_cont() 264 if (data->state == WAIT_FRAG_ACK) { in eap_tnc_process() 267 "WAIT_FRAG_ACK state"); in eap_tnc_process() 272 data->state = PROC_MSG; in eap_tnc_process() 293 if (data->state == WAIT_START) { in eap_tnc_process() 303 data->state = PROC_MSG; in eap_tnc_process() 400 data->state in eap_tnc_process() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/ |
H A D | eap_leap.c | 29 } state; member 46 data->state = LEAP_WAIT_CHALLENGE; in eap_leap_init() 131 data->state = LEAP_WAIT_SUCCESS; in eap_leap_process_request() 153 if (data->state != LEAP_WAIT_SUCCESS) { in eap_leap_process_success() 155 "unexpected state (%d) - ignored", data->state); in eap_leap_process_success() 181 data->state = LEAP_WAIT_RESPONSE; in eap_leap_process_success() 266 * of the authentication. Use special variable to transit EAP state in eap_leap_process_response() 267 * machine to SUCCESS state. */ in eap_leap_process_response() 269 data->state in eap_leap_process_response() [all...] |
H A D | eap_psk.c | 22 enum { PSK_INIT, PSK_MAC_SENT, PSK_DONE } state; member 55 data->state = PSK_INIT; in eap_psk_init() 94 wpa_printf(MSG_DEBUG, "EAP-PSK: in INIT state"); in eap_psk_process_1() 171 data->state = PSK_MAC_SENT; in eap_psk_process_1() 191 wpa_printf(MSG_DEBUG, "EAP-PSK: in MAC_SENT state"); in eap_psk_process_3() 359 data->state = PSK_DONE; in eap_psk_process_3() 389 switch (data->state) { in eap_psk_process() 397 wpa_printf(MSG_DEBUG, "EAP-PSK: in DONE state - ignore " in eap_psk_process() 414 return data->state == PSK_DONE; in eap_psk_isKeyAvailable() 423 if (data->state ! in eap_psk_getKey() [all...] |
H A D | eap_tnc.c | 18 enum { WAIT_START, PROC_MSG, WAIT_FRAG_ACK, DONE, FAIL } state; member 44 data->state = WAIT_START; in eap_tnc_init() 141 data->state = WAIT_FRAG_ACK; in eap_tnc_build_msg() 154 data->state = FAIL; in eap_tnc_process_cont() 264 if (data->state == WAIT_FRAG_ACK) { in eap_tnc_process() 267 "WAIT_FRAG_ACK state"); in eap_tnc_process() 272 data->state = PROC_MSG; in eap_tnc_process() 293 if (data->state == WAIT_START) { in eap_tnc_process() 303 data->state = PROC_MSG; in eap_tnc_process() 400 data->state in eap_tnc_process() [all...] |