/build/hb/util/loader/ |
H A D | load_bundle_file.py | 51 _component_info = self.bundle_info.get('component') 61 _bundle_build = _component_info.get('build') 69 _module_groups = _bundle_build.get('group_type') 76 _component_info = self.bundle_info.get('component') 77 _subsystem_name = _component_info.get('subsystem') 78 _part_name = _component_info.get('name') 79 _bundle_build = _component_info.get('build') 85 if _component_info.get('build').__contains__('sub_component'): 86 _part_info['module_list'] = _component_info.get('build').get( [all...] |
H A D | subsystem_info.py | 34 for key, val in subsystem_configs.get('subsystem').items(): 35 src_subsystem[key] = val.get('path') 43 subsystem_configs.get('no_src_subsystem')) 52 overlay_path = subsystem_config_overlay.get('subsystem').get(subsystem)['path'] 57 subsystem_configs.get('subsystem').get(subsystem)['path'] += \ 58 subsystem_config_overlay.get('subsystem').get(subsystem)['path'] 59 subsystem_configs.get('subsyste [all...] |
H A D | load_ohos_build.py | 92 part_name = bundle_config.get('component').get('name') 93 part_syscap = bundle_config.get('component').get('syscap') 134 lib_type = kit_lib.get('type') 137 label = kit_lib.get('name') 143 header = kit_lib.get('header') 144 header_files = header.get('header_files') 150 header_base = header.get('header_base') 154 javadoc_val = kit_lib.get('javado [all...] |
/foundation/multimedia/audio_framework/services/audio_policy/test/unittest/audio_affinity_parser_test/src/ |
H A D | audio_affinity_parser_test.cpp | 37 auto audioAffinity_ = std::make_shared<audioAffinityParser>(affinityManager.get()); in HWTEST() 55 auto audioAffinity_ = std::make_shared<audioAffinityParser>(affinityManager.get()); in HWTEST() 74 auto audioAffinity_ = std::make_shared<audioAffinityParser>(affinityManager.get()); in HWTEST() 93 auto audioAffinity_ = std::make_shared<audioAffinityParser>(affinityManager.get()); in HWTEST() 95 audioAffinity_->ParseInternal(node.get()); in HWTEST() 98 node.get()->type = XML_ELEMENT_NODE; in HWTEST() 99 audioAffinity_->ParseInternal(node.get()); in HWTEST() 111 auto audioAffinity_ = std::make_shared<audioAffinityParser>(affinityManager.get()); in HWTEST() 114 audioAffinity_->ParserAffinityGroups(node.get(), DeviceFlag::ALL_DEVICES_FLAG); in HWTEST() 117 node.get() in HWTEST() [all...] |
/build/hb/resolver/ |
H A D | set_args_resolver.py | 49 config.product = product_info.get('name') 50 config.product_path = product_info.get('product_path') 51 config.version = product_info.get('version') 52 config.os_level = product_info.get('os_level') 53 config.product_json = product_info.get('config') 54 config.component_type = product_info.get('component_type') 55 if product_info.get('product_config_path'): 56 config.product_config_path = product_info.get( 59 config.product_config_path = product_info.get('path') 62 config.board = device_info.get('boar [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
H A D | nouveau_dma.c | 101 uint32_t get = nvif_rd32(&chan->user, 0x88); in nv50_dma_push_wait() local 102 if (get != prev_get) { in nv50_dma_push_wait() 103 prev_get = get; in nv50_dma_push_wait() 113 chan->dma.ib_free = get - chan->dma.ib_put; in nv50_dma_push_wait() 132 int get = READ_GET(chan, &prev_get, &cnt); in nv50_dma_wait() local 133 if (unlikely(get < 0)) { in nv50_dma_wait() 134 if (get == -EINVAL) in nv50_dma_wait() 137 return get; in nv50_dma_wait() 140 if (get <= chan->dma.cur) { in nv50_dma_wait() 147 get in nv50_dma_wait() 168 int cnt = 0, get; nouveau_dma_wait() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/ |
H A D | nouveau_dma.c | 104 uint32_t get = nvif_rd32(chan->userd, 0x88); in nv50_dma_push_wait() local 105 if (get != prev_get) { in nv50_dma_push_wait() 106 prev_get = get; in nv50_dma_push_wait() 116 chan->dma.ib_free = get - chan->dma.ib_put; in nv50_dma_push_wait() 135 int get = READ_GET(chan, &prev_get, &cnt); in nv50_dma_wait() local 136 if (unlikely(get < 0)) { in nv50_dma_wait() 137 if (get == -EINVAL) in nv50_dma_wait() 140 return get; in nv50_dma_wait() 143 if (get <= chan->dma.cur) { in nv50_dma_wait() 150 get in nv50_dma_wait() 171 int cnt = 0, get; nouveau_dma_wait() local [all...] |
/build/hb/util/ |
H A D | product_util.py | 50 product_name = info.get('product_name') 51 if info.get('product_path'): 53 config.root_path, info.get('product_path')) 65 'version': info.get('version', '3.0'), 66 'os_level': info.get('type', "mini"), 67 'build_out_path': info.get('build_out_path'), 69 info.get('subsystem_config_json'), 73 'component_type': info.get('component_type', '') 81 'version': info.get('version', '3.0'), 82 'os_level': info.get('typ [all...] |
/build/hb/util/preloader/ |
H A D | preloader_process_data.py | 102 self._version = self._config.get('version', '3.0') 117 product_name = self._config.get('product_name') 120 os_level = self._config.get('type') 123 api_version = self._config.get('api_version') 126 manufacturer_id = self._config.get('manufacturer_id') 135 device_name = self._config.get('product_device') 141 device_name = self._config.get('board') 160 os_level = self._config.get("type", "standard") 162 os_level = self._config.get("type", "mini") 164 based_on_mininum_system = self._config.get( [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | openssl_crypto.cpp | 42 if (EVP_DecryptInit_ex(ctx.get(), EVP_aes_256_gcm(), NULL, reinterpret_cast<const uint8_t*>(shield.data.get()), in AESDecrypt() 43 reinterpret_cast<const uint8_t*>(keyContext_.rndEnc.data.get())) != in AESDecrypt() 50 if (EVP_DecryptUpdate(ctx.get(), reinterpret_cast<uint8_t*>(plainText.data.get()), &outlen, in AESDecrypt() 51 reinterpret_cast<const uint8_t*>(keyContext_.rndEnc.data.get() + GCM_NONCE_BYTES), in AESDecrypt() 60 if (EVP_CIPHER_CTX_ctrl(ctx.get(), EVP_CTRL_GCM_SET_TAG, GCM_MAC_BYTES, in AESDecrypt() 62 keyContext_.rndEnc.data.get() + GCM_NONCE_BYTES + plainText.size))) != in AESDecrypt() 67 if (EVP_DecryptFinal_ex(ctx.get(), reinterpret_cast<uint8_t*>(plainText.data.get() in AESDecrypt() [all...] |
/foundation/communication/netstack/frameworks/js/builtin/fetch/src/ |
H A D | fetch_module.cpp | 77 req->SetUrl(urlString.get()); in JsObjectToRequestData() 86 if (jsHeaders != nullptr && !JSI::ValueIsUndefined(jsHeaders.get()) && JSI::ValueIsObject(jsHeaders.get())) { in JsObjectToRequestData() 87 GetNameValue(jsHeaders.get(), const_cast<std::map<std::string, std::string> &>(req->GetHeader())); in JsObjectToRequestData() 98 if (keys == nullptr || JSI::ValueIsUndefined(keys.get()) || !JSI::ValueIsArray(keys.get())) { in GetNameValue() 99 HTTP_REQUEST_ERROR("get name value failed"); in GetNameValue() 103 uint32_t length = JSI::GetArrayLength(keys.get()); in GetNameValue() 105 std::unique_ptr<JSIVal, decltype(&JSI::ReleaseValue)> key(JSI::GetPropertyByIndex(keys.get(), index), in GetNameValue() 107 if (key == nullptr || JSI::ValueIsUndefined(key.get()) || !JS in GetNameValue() [all...] |
/build/templates/common/ |
H A D | generate_component_package.py | 56 label = _innerapi.get("label") 80 part_data = data.get(part) 105 data_list = json_data.get(json_key) 106 if isinstance(data_list, list) and len(json_data.get(json_key)) >= 1: 109 desc_list.append(json_data.get(json_key)) 113 value_depth = len(json_data.get(json_key)) 115 _include_dirs = json_data.get(json_key)[i].get('include_dirs') 121 json_path = os.path.join(args.get("out_path"), 122 args.get("subsystem_nam [all...] |
H A D | external_deps_handler.py | 28 toolchain = platform_toolchain.get(current_variant) 32 toolchain = platform_toolchain.get(current_variant) 43 external_module_array = components_info_dict.get("innerapis") 45 if external_module.get("name") == external_module_name: 53 _inner_kits_info_dict = parts_inner_kits_info.get(external_part_name) 58 external_module_desc_info = _inner_kits_info_dict.get( 61 _new_kits_info_dict = parts_inner_kits_info.get(adapted_part_name) 65 external_module_desc_info = _new_kits_info_dict.get( 72 _components_info_dict = components_info.get(external_part_name) 93 sdk_module_info = subsystem_sdk_info.get(external_module_nam [all...] |
/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/ |
H A D | metadata.cpp | 117 id_ = std::get<int32_t>(id); in SetFileId() 127 uri_ = std::get<string>(uri); in SetUri() 137 filePath_ = std::get<string>(filePath); in SetFilePath() 147 relativePath_ = std::get<string>(relativePath); in SetRelativePath() 157 mimeType_ = std::get<string>(mimeType); in SetFileMimeType() 167 mediaType_ = static_cast<MediaType>(std::get<int32_t>(mediaType)); in SetFileMediaType() 177 name_ = std::get<string>(name); in SetFileName() 187 size_ = std::get<int64_t>(size); in SetFileSize() 197 dateAdded_ = std::get<int64_t>(dateAdded); in SetFileDateAdded() 207 dateModified_ = std::get<int64_ in SetFileDateModified() [all...] |
/foundation/multimedia/av_codec/test/unittest/video_test/video_test/capbilities/video_codec/video_decoder/ |
H A D | video_decoder.cpp | 53 ret = OH_VideoDecoder_SetSurface(codec_.get(), sampleInfo.window.get());
in Config() 64 ret = OH_VideoDecoder_Prepare(codec_.get());
in Config() 74 int ret = OH_VideoDecoder_Start(codec_.get());
in Start() 83 int ret = OH_VideoDecoder_Flush(codec_.get());
in Flush() 92 int32_t ret = OH_VideoDecoder_Stop(codec_.get());
in Stop() 101 int32_t ret = OH_VideoDecoder_Reset(codec_.get());
in Reset() 109 return std::shared_ptr<OH_AVFormat>(OH_VideoDecoder_GetOutputDescription(codec_.get()), OH_AVFormat_Destroy);
in GetFormat() 117 OH_AVFormat_SetIntValue(format.get(), OH_MD_KEY_WIDTH, sampleInfo.videoWidth);
in Configure() 118 OH_AVFormat_SetIntValue(format.get(), OH_MD_KEY_HEIGH in Configure() [all...] |
/kernel/linux/linux-5.10/drivers/gpio/ |
H A D | gpio-raspberrypi-exp.c | 57 struct gpio_get_config get; in rpi_exp_gpio_get_polarity() local 62 get.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ in rpi_exp_gpio_get_polarity() 65 &get, sizeof(get)); in rpi_exp_gpio_get_polarity() 66 if (ret || get.gpio != 0) { in rpi_exp_gpio_get_polarity() 67 dev_err(gc->parent, "Failed to get GPIO %u config (%d %x)\n", in rpi_exp_gpio_get_polarity() 68 off, ret, get.gpio); in rpi_exp_gpio_get_polarity() 71 return get.polarity; in rpi_exp_gpio_get_polarity() 135 struct gpio_get_config get; in rpi_exp_gpio_get_direction() local 140 get in rpi_exp_gpio_get_direction() 159 struct gpio_get_set_state get; rpi_exp_gpio_get() local [all...] |
/kernel/linux/linux-6.6/drivers/gpio/ |
H A D | gpio-raspberrypi-exp.c | 57 struct gpio_get_config get; in rpi_exp_gpio_get_polarity() local 62 get.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ in rpi_exp_gpio_get_polarity() 65 &get, sizeof(get)); in rpi_exp_gpio_get_polarity() 66 if (ret || get.gpio != 0) { in rpi_exp_gpio_get_polarity() 67 dev_err(gc->parent, "Failed to get GPIO %u config (%d %x)\n", in rpi_exp_gpio_get_polarity() 68 off, ret, get.gpio); in rpi_exp_gpio_get_polarity() 71 return get.polarity; in rpi_exp_gpio_get_polarity() 135 struct gpio_get_config get; in rpi_exp_gpio_get_direction() local 140 get in rpi_exp_gpio_get_direction() 159 struct gpio_get_set_state get; rpi_exp_gpio_get() local [all...] |
/build/tools/component_tools/ |
H A D | full_components_generator.py | 62 ret["subsystem"] = data.get("subsystem") 63 for k, _ in data.get("parts").items(): 64 ret.get("components").append(k) 72 ret["subsystem"] = data.get("component").get("subsystem") 73 ret.get("components").append(data.get("component").get("name")) 85 if data.get("subsystem") == subsys: 86 ret = ret.union(set(data.get("component [all...] |
/foundation/communication/netstack/test/unittest/tlssocket/client/ |
H A D | TlsContextTest.cpp | 76 TLSContext::SetMinAndMaxProtocol(tlsContext.get()); in HWTEST_F() 77 bool isInitTlsContext = TLSContext::InitTlsContext(tlsContext.get(), configuration); in HWTEST_F() 79 bool isSetCipherList = TLSContext::SetCipherList(tlsContext.get(), configuration); in HWTEST_F() 81 bool isSetSignatureAlgorithms = TLSContext::SetSignatureAlgorithms(tlsContext.get(), configuration); in HWTEST_F() 83 TLSContext::GetCiphers(tlsContext.get()); in HWTEST_F() 84 TLSContext::UseRemoteCipher(tlsContext.get()); in HWTEST_F() 85 bool setCaAndVerify = TLSContext::SetCaAndVerify(tlsContext.get(), configuration); in HWTEST_F() 87 bool setLocalCert = TLSContext::SetLocalCertificate(tlsContext.get(), configuration); in HWTEST_F() 89 bool setKeyAndCheck = TLSContext::SetKeyAndCheck(tlsContext.get(), configuration); in HWTEST_F() 91 TLSContext::SetVerify(tlsContext.get()); in HWTEST_F() [all...] |
/foundation/communication/netstack/test/unittest/tls_test/client/ |
H A D | TlsContextTest.cpp | 76 TLSContext::SetMinAndMaxProtocol(tlsContext.get());
in HWTEST_F() 77 bool isInitTlsContext = TLSContext::InitTlsContext(tlsContext.get(), configuration);
in HWTEST_F() 79 bool isSetCipherList = TLSContext::SetCipherList(tlsContext.get(), configuration);
in HWTEST_F() 81 bool isSetSignatureAlgorithms = TLSContext::SetSignatureAlgorithms(tlsContext.get(), configuration);
in HWTEST_F() 83 TLSContext::GetCiphers(tlsContext.get());
in HWTEST_F() 84 TLSContext::UseRemoteCipher(tlsContext.get());
in HWTEST_F() 85 bool setCaAndVerify = TLSContext::SetCaAndVerify(tlsContext.get(), configuration);
in HWTEST_F() 87 bool setLocalCert = TLSContext::SetLocalCertificate(tlsContext.get(), configuration);
in HWTEST_F() 89 bool setKeyAndCheck = TLSContext::SetKeyAndCheck(tlsContext.get(), configuration);
in HWTEST_F() 91 TLSContext::SetVerify(tlsContext.get());
in HWTEST_F() [all...] |
/foundation/distributedhardware/device_manager/services/implementation/src/authentication/ |
H A D | auth_message_processor.cpp | 242 groupId = jsonObject[TAG_GROUP_ID].get<std::string>(); in CreateResponseAuthMessage() 270 int32_t msgType = jsonObject[TAG_MSG_TYPE].get<int32_t>(); in ParseMessage() 305 authResponseContext_->publicKey = json[TAG_PUBLICKEY].get<std::string>(); in ParsePublicKeyMessageExt() 313 authResponseContext_->reply = json[TAG_REPLY].get<int32_t>(); in ParseAuthResponseMessageExt() 316 authResponseContext_->token = json[TAG_TOKEN].get<std::string>(); in ParseAuthResponseMessageExt() 319 authResponseContext_->confirmOperation = json[TAG_CONFIRM_OPERATION].get<int32_t>(); in ParseAuthResponseMessageExt() 322 authResponseContext_->requestId = json[TAG_REQUEST_ID].get<int64_t>(); in ParseAuthResponseMessageExt() 329 authResponseContext_->reply = json[TAG_REPLY].get<int32_t>(); in ParseResponseFinishMessage() 332 authResponseContext_->isFinish = json[TAG_AUTH_FINISH].get<bool>(); in ParseResponseFinishMessage() 339 authResponseContext_->authType = json[TAG_AUTH_TYPE].get<int32_ in GetAuthReqMessage() [all...] |
/foundation/multimedia/av_codec/test/unittest/video_test/video_test/capbilities/video_codec/video_encoder/ |
H A D | video_encoder.cpp | 60 ret = OH_VideoEncoder_Prepare(codec_.get());
in Config() 70 int ret = OH_VideoEncoder_Start(codec_.get());
in Start() 79 int ret = OH_VideoEncoder_Flush(codec_.get());
in Flush() 88 int32_t ret = OH_VideoEncoder_Stop(codec_.get());
in Stop() 97 int32_t ret = OH_VideoEncoder_Reset(codec_.get());
in Reset() 105 return std::shared_ptr<OH_AVFormat>(OH_VideoEncoder_GetInputDescription(codec_.get()), OH_AVFormat_Destroy);
in GetFormat() 112 int32_t ret = OH_VideoEncoder_NotifyEndOfStream(codec_.get());
in NotifyEndOfStream() 123 OH_AVFormat_SetIntValue(format.get(), OH_MD_KEY_WIDTH, sampleInfo.videoWidth);
in Configure() 124 OH_AVFormat_SetIntValue(format.get(), OH_MD_KEY_HEIGHT, sampleInfo.videoHeight);
in Configure() 125 OH_AVFormat_SetDoubleValue(format.get(), OH_MD_KEY_FRAME_RAT in Configure() [all...] |
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/inner_model/ |
H A D | inner_model_test.cpp | 945 OHOS::HDI::Nnrt::V2_0::Model * model = LiteGraph_To_HDIModel(liteGraph.get(), tensorBuffer); in HWTEST_F() 970 liteGraph.get()->all_tensors_.emplace_back(tp); in HWTEST_F() 971 liteGraph.get()->sub_graphs_.emplace_back(subGraph); in HWTEST_F() 975 OHOS::HDI::Nnrt::V2_0::Model * model = LiteGraph_To_HDIModel(liteGraph.get(), tensorBuffer); in HWTEST_F() 992 liteGraph.get()->all_nodes_.emplace_back(nullptr); in HWTEST_F() 994 OHOS::HDI::Nnrt::V2_0::Model * model = LiteGraph_To_HDIModel(liteGraph.get(), tensorBuffer); in HWTEST_F() 1008 liteGraph.get()->all_nodes_.emplace_back(node); in HWTEST_F() 1010 OHOS::HDI::Nnrt::V2_0::Model * model = LiteGraph_To_HDIModel(liteGraph.get(), tensorBuffer); in HWTEST_F() 1033 liteGraph.get()->all_nodes_.emplace_back(getNode(primitive)); in HWTEST_F() 1035 OHOS::HDI::Nnrt::V2_0::Model * model = LiteGraph_To_HDIModel(liteGraph.get(), tensorBuffe in HWTEST_F() [all...] |
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/device_manager/ |
H A D | device_manager_test.cpp | 88 OHOS::HDI::Nnrt::V1_0::Model * model = LiteGraph_To_HDIModel(liteGraph.get(), tensorBuffer); in HWTEST_F() 113 liteGraph.get()->all_tensors_.emplace_back(tp); in HWTEST_F() 114 liteGraph.get()->sub_graphs_.emplace_back(subGraph); in HWTEST_F() 118 OHOS::HDI::Nnrt::V1_0::Model * model = LiteGraph_To_HDIModel(liteGraph.get(), tensorBuffer); in HWTEST_F() 135 liteGraph.get()->all_nodes_.emplace_back(nullptr); in HWTEST_F() 137 OHOS::HDI::Nnrt::V1_0::Model * model = LiteGraph_To_HDIModel(liteGraph.get(), tensorBuffer); in HWTEST_F() 151 liteGraph.get()->all_nodes_.emplace_back(node); in HWTEST_F() 153 OHOS::HDI::Nnrt::V1_0::Model * model = LiteGraph_To_HDIModel(liteGraph.get(), tensorBuffer); in HWTEST_F() 176 liteGraph.get()->all_nodes_.emplace_back(getNode(primitive)); in HWTEST_F() 178 OHOS::HDI::Nnrt::V1_0::Model * model = LiteGraph_To_HDIModel(liteGraph.get(), tensorBuffe in HWTEST_F() [all...] |
/kernel/liteos_m/tools/ |
H A D | mem_analysis.py | 64 c.value = values.get('offsets')
66 c.value = values.get('section')
68 c.value = values.get('sizeH')
70 c.value = values.get('sizeD')
72 c.value = values.get('symbol')
74 c.value = values.get('lib')
76 c.value = values.get('obj')
85 target_list.append('{:<10s}'.format(values.get('offsets')))
86 target_list.append('{:<30s}'.format(values.get('section')))
87 target_list.append('{:<10}'.format(values.get('size [all...] |