/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/src/ |
H A D | distributed_hardware_fwk_kit.cpp | 119 bool DistributedHardwareFwkKit::IsQueryLocalSysSpecTypeValid(QueryLocalSysSpecType spec) in IsQueryLocalSysSpecTypeValid() argument 121 return spec > QueryLocalSysSpecType::MIN && spec < QueryLocalSysSpecType::MAX; in IsQueryLocalSysSpecTypeValid() 124 std::string DistributedHardwareFwkKit::QueryLocalSysSpec(enum QueryLocalSysSpecType spec) in QueryLocalSysSpec() argument 126 DHLOGI("Query Local Sys Spec, %{public}d", (uint32_t)spec); in QueryLocalSysSpec() 127 if (!IsQueryLocalSysSpecTypeValid(spec)) { in QueryLocalSysSpec() 128 DHLOGE("Topic invalid, topic: %{public}" PRIu32, (uint32_t)spec); in QueryLocalSysSpec() 137 return DHFWKSAManager::GetInstance().GetDHFWKProxy()->QueryLocalSysSpec(spec); in QueryLocalSysSpec()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/distributedhardwarestub/src/ |
H A D | distributed_hardware_stub_test.cpp | 350 uint32_t spec = 1; in HWTEST_F() local 351 EXPECT_EQ(true, stubTest_->ValidQueryLocalSpec(spec)); in HWTEST_F() 365 uint32_t spec = 0; in HWTEST_F() local 366 EXPECT_EQ(false, stubTest_->ValidQueryLocalSpec(spec)); in HWTEST_F() 367 spec = 5; in HWTEST_F() 368 EXPECT_EQ(false, stubTest_->ValidQueryLocalSpec(spec)); in HWTEST_F()
|
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/test/unittest/common/ipc/dhfwk_sa_manager/include/ |
H A D | dhfwk_sa_manager_test.h | 67 std::string QueryLocalSysSpec(QueryLocalSysSpecType spec) in QueryLocalSysSpec() argument 69 (void)spec; in QueryLocalSysSpec()
|
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/include/ |
H A D | distributed_hardware_fwk_kit.h | 84 * @param spec specification type 87 API_EXPORT std::string QueryLocalSysSpec(QueryLocalSysSpecType spec); 173 bool IsQueryLocalSysSpecTypeValid(QueryLocalSysSpecType spec);
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/distributedhardwarestub/include/ |
H A D | distributed_hardware_stub_test.h | 59 std::string QueryLocalSysSpec(QueryLocalSysSpecType spec) in QueryLocalSysSpec() argument 61 (void)spec; in QueryLocalSysSpec()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/ |
H A D | distributed_hardware_stub.cpp | 180 QueryLocalSysSpecType spec = (QueryLocalSysSpecType)specInt; in QueryLocalSysSpecInner() local 181 DHLOGI("Query Local Sys Spec: %{public}" PRIu32, (uint32_t)spec); in QueryLocalSysSpecInner() 182 std::string res = QueryLocalSysSpec(spec); in QueryLocalSysSpecInner() 183 DHLOGI("Get Local spec: %{public}s", res.c_str()); in QueryLocalSysSpecInner() 324 bool DistributedHardwareStub::ValidQueryLocalSpec(uint32_t spec) in ValidQueryLocalSpec() argument 326 if (spec <= (uint32_t)QueryLocalSysSpecType::MIN || spec >= (uint32_t)QueryLocalSysSpecType::MAX) { in ValidQueryLocalSpec()
|
H A D | distributed_hardware_service.cpp | 182 std::string DistributedHardwareService::QueryLocalSysSpec(const QueryLocalSysSpecType spec) in QueryLocalSysSpec() argument 189 switch (spec) { in QueryLocalSysSpec()
|
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/test/unittest/common/ipc/distributed_hardware_proxy/include/ |
H A D | distributed_hardware_proxy_test.h | 68 std::string QueryLocalSysSpec(QueryLocalSysSpecType spec) in QueryLocalSysSpec() argument 70 (void)spec; in QueryLocalSysSpec()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/fuzztest/distributedfwkservices_fuzzer/ |
H A D | distributedfwkservices_fuzzer.cpp | 59 QueryLocalSysSpecType spec = SPEC_TYPE[sysSpec % QUERY_LOCAL_SYS_SIZE]; in FwkServicesQueryLocalSysSpecFuzzTest() local 61 service.QueryLocalSysSpec(spec); in FwkServicesQueryLocalSysSpecFuzzTest()
|
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/utils/ |
H A D | hgm_one_shot_timer.cpp | 37 void CalculateTimeoutTime(std::chrono::nanoseconds timestamp, timespec* spec) in CalculateTimeoutTime() argument 40 spec->tv_sec = static_cast<time_t>(timeout / NS_TO_SECONDS); in CalculateTimeoutTime() 41 spec->tv_nsec = timeout % NS_TO_SECONDS; in CalculateTimeoutTime()
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/node/ |
H A D | render_node_compute_generic.cpp | 188 const auto* spec = reinterpret_cast<const ShaderSpecializationRenderPod*>(dataView.data()); in GetPsoHandle() local 192 Math::min((uint32_t)shaderSpecializationData_.constants.size(), spec->specializationConstantCount)); in GetPsoHandle() 198 if (shaderSpecializationData_.data[constantId] != spec->specializationFlags[specId].value) { in GetPsoHandle() 199 shaderSpecializationData_.data[constantId] = spec->specializationFlags[specId].value; in GetPsoHandle()
|
H A D | render_node_fullscreen_generic.cpp | 170 const auto* spec = reinterpret_cast<const ShaderSpecializationRenderPod*>(dataView.data()); in GetPsoHandle() local 173 Math::min(spec->specializationConstantCount, (uint32_t)shaderSpecializationData_.constants.size()), in GetPsoHandle() 180 if (shaderSpecializationData_.data[constantId] != spec->specializationFlags[specId].value) { in GetPsoHandle() 181 shaderSpecializationData_.data[constantId] = spec->specializationFlags[specId].value; in GetPsoHandle()
|
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/test/unittest/common/distributedhardwarefwkkit/src/ |
H A D | distributed_hardware_fwk_kit_test.cpp | 278 QueryLocalSysSpecType spec = QueryLocalSysSpecType::MIN; in HWTEST_F() local 279 std::string ret = dhfwkPtr_->QueryLocalSysSpec(spec); in HWTEST_F() 294 QueryLocalSysSpecType spec = QueryLocalSysSpecType::HISTREAMER_AUDIO_ENCODER; in HWTEST_F() local 295 std::string ret = dhfwkPtr_->QueryLocalSysSpec(spec); in HWTEST_F()
|
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/src/ipc/ |
H A D | distributed_hardware_proxy.cpp | 183 std::string DistributedHardwareProxy::QueryLocalSysSpec(QueryLocalSysSpecType spec) in QueryLocalSysSpec() argument 190 if (spec < QueryLocalSysSpecType::MIN || spec > QueryLocalSysSpecType::MAX) { in QueryLocalSysSpec() 191 DHLOGE("Sys spec type is invalid!"); in QueryLocalSysSpec() 203 if (!data.WriteUint32((uint32_t)spec)) { in QueryLocalSysSpec() 204 DHLOGE("DistributedHardwareProxy write local sys spec failed"); in QueryLocalSysSpec() 216 DHLOGI("Query local sys spec %{public}" PRIu32 ", get: %{public}s", (uint32_t)spec, specStr.c_str()); in QueryLocalSysSpec()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/ |
H A D | distributed_hardware_stub.h | 46 bool ValidQueryLocalSpec(uint32_t spec);
|
H A D | distributed_hardware_service.h | 43 std::string QueryLocalSysSpec(const QueryLocalSysSpecType spec) override;
|
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/test/unittest/common/ipc/distributed_hardware_proxy/src/ |
H A D | distributed_hardware_proxy_test.cpp | 208 QueryLocalSysSpecType spec = QueryLocalSysSpecType::MIN; in HWTEST_F() local 209 std::string ret = hardwareProxy_->QueryLocalSysSpec(spec); in HWTEST_F()
|
/foundation/distributedhardware/distributed_hardware_fwk/common/utils/include/ |
H A D | idistributed_hardware.h | 40 virtual std::string QueryLocalSysSpec(QueryLocalSysSpecType spec) = 0;
|
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/include/ipc/ |
H A D | distributed_hardware_proxy.h | 39 std::string QueryLocalSysSpec(QueryLocalSysSpecType spec) override;
|
/foundation/arkui/napi/native_engine/ |
H A D | native_engine.cpp | 521 struct timespec spec; in UVThreadRunner() local 525 spec.tv_sec = timeout / mSec; in UVThreadRunner() 526 spec.tv_nsec = (timeout % mSec) * uSec; in UVThreadRunner() 528 result = kevent(fd, NULL, 0, events, 1, timeout == -1 ? NULL : &spec); in UVThreadRunner()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/ |
H A D | render_node_default_depth_render_slot.cpp | 477 const auto spec = GetShaderSpecializationView(gfxState, submeshMaterialFlags, submeshFlags); in CreateNewPso() local 479 shaderMgr.GetVertexInputDeclarationView(currVid), spec, dynamicStatesView); in CreateNewPso() 482 const auto spec = GetShaderSpecializationView(gfxState, submeshMaterialFlags, submeshFlags); in CreateNewPso() local 483 psoHandle = psoMgr.GetGraphicsPsoHandle(currShader, currState, currPl, currVid, spec, dynamicStatesView); in CreateNewPso()
|
H A D | render_node_default_material_render_slot.cpp | 762 const auto spec = in CreateNewPso() local 765 shaderMgr.GetVertexInputDeclarationView(currVid), spec, GetDynamicStates()); in CreateNewPso() 768 const auto spec = in CreateNewPso() local 770 psoHandle = psoMgr.GetGraphicsPsoHandle(currShader, currState, currPl, currVid, spec, GetDynamicStates()); in CreateNewPso()
|
H A D | render_node_default_shadow_render_slot.cpp | 546 const ShaderSpecializationConstantDataView spec { { allShaderData_.defaultSpecilizationConstants.data(), in GetSubmeshPso() 550 return CreateNewPso(ssd, spec, submeshFlags); in GetSubmeshPso()
|
/foundation/multimedia/audio_framework/frameworks/native/pulseaudio/modules/hdi/ |
H A D | hdi_source.c | 1023 static void InitSampleSpec(pa_sample_spec *spec, const uint32_t sampleRate, in InitSampleSpec() argument 1026 pa_sample_spec_init(spec); in InitSampleSpec() 1027 spec->rate = sampleRate; in InitSampleSpec() 1028 spec->channels = (uint8_t)channels; in InitSampleSpec() 1029 spec->format = format; in InitSampleSpec()
|
/foundation/multimedia/audio_framework/frameworks/native/pulseaudio/modules/capturer/ |
H A D | module_inner_capturer_sink.c | 146 static void SinkReconfigureCb(pa_sink *s, pa_sample_spec *spec, bool passthrough) in SinkReconfigureCb() argument 148 s->sample_spec = *spec; in SinkReconfigureCb()
|