| /foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/ |
| D | module.c | 16 #include "platform/include/module.h" 19 static Module *g_modules[MAX_MODULES]; 21 void ModuleRegister(Module *module) in ModuleRegister() argument 25 g_modules[index] = module; in ModuleRegister() 31 Module *ModuleGet(const char *name) in ModuleGet() 33 Module *module = NULL; in ModuleGet() local 37 module = g_modules[index]; in ModuleGet() 41 return module; in ModuleGet() 46 Module *module = ModuleGet(name); in ModuleInit() local 47 if (module != NULL) { in ModuleInit() [all …]
|
| /foundation/communication/dsoftbus/core/connection/common/src/ |
| D | softbus_base_listener.c | 68 ListenerModule module; member 90 static SoftbusListenerNode *CreateSpecifiedListenerModule(ListenerModule module); 98 static SoftbusListenerNode *GetListenerNodeCommon(ListenerModule module, bool create) in GetListenerNodeCommon() argument 102 status == SOFTBUS_OK, NULL, CONN_COMMON, "lock failed, module=%{public}d, error=%{public}d", in GetListenerNodeCommon() 103 module, status); in GetListenerNodeCommon() 104 SoftbusListenerNode *node = g_listenerList[module]; in GetListenerNodeCommon() 108 node = CreateSpecifiedListenerModule(module); in GetListenerNodeCommon() 113 g_listenerList[module] = node; in GetListenerNodeCommon() 117 …CONN_LOGE(CONN_COMMON, "lock listener failed, module=%{public}d, error=%{public}d", module, status… in GetListenerNodeCommon() 128 static SoftbusListenerNode *GetListenerNode(ListenerModule module) in GetListenerNode() argument [all …]
|
| /foundation/communication/bluetooth_service/services/bluetooth/stack/src/btm/ |
| D | btm_snoop_filter.c | 128 cmpInfo->module = srcInfo->module; in BtmFindFilterInfoByInfoUsePsm() 143 cmpInfo->module = srcInfo->module; in BtmFindFilterInfoByInfoUseScn() 170 uint8_t module, uint8_t rfcommScn, uint16_t l2capPsm, bool isLocal, const BtAddr *remoteAddr) in AllocFilterInfo() argument 174 info->module = module; in AllocFilterInfo() 214 void BTM_AddLocalL2capPsmForLogging(uint8_t module, uint16_t psm) in BTM_AddLocalL2capPsmForLogging() argument 221 LOG_INFO("%{public}s: module:%{public}d, local psm:0x%04x", __FUNCTION__, module, psm); in BTM_AddLocalL2capPsmForLogging() 222 BtmSnoopFilterInfo *info = AllocFilterInfo(module, 0, psm, true, NULL); in BTM_AddLocalL2capPsmForLogging() 229 void BTM_AddRemoteL2capPsmForLogging(uint8_t module, uint16_t psm, const BtAddr *remoteAddr) in BTM_AddRemoteL2capPsmForLogging() argument 236 LOG_INFO("%{public}s: module:%{public}d, " BT_ADDR_FMT " local psm:0x%04x", in BTM_AddRemoteL2capPsmForLogging() 238 module, in BTM_AddRemoteL2capPsmForLogging() [all …]
|
| /foundation/distributeddatamgr/pasteboard/utils/native/include/ |
| D | pasteboard_hilog.h | 35 // 0xD001C00: subsystem:PASTEBOARD module:PasteboardManager, 8 bits reserved. 61 // In order to improve performance, do not check the module range. 62 // Besides, make sure module is less than PASTEBOARD_MODULE_BUTT. 63 #define PASTEBOARD_HILOGF(module, ...) … argument 65 …if (HiLogIsLoggable(PASTEBOARD[module].domain, PASTEBOARD[module].tag, LOG_FATAL)) { \ 66 … ((void)HILOG_IMPL(LOG_CORE, LOG_FATAL, PASTEBOARD[module].domain, PASTEBOARD[module].tag, \ 70 #define PASTEBOARD_HILOGE(module, fmt, ...) … argument 72 …if (HiLogIsLoggable(PASTEBOARD[module].domain, PASTEBOARD[module].tag, LOG_ERROR)) { \ 73 … ((void)HILOG_IMPL(LOG_CORE, LOG_ERROR, PASTEBOARD[module].domain, PASTEBOARD[module].tag, \ 77 #define PASTEBOARD_HILOGW(module, fmt, ...) … argument [all …]
|
| /foundation/communication/dsoftbus/core/authentication/src/ |
| D | auth_tcp_connection.c | 46 int32_t module; member 52 .module = MODULE_AUTH_CHANNEL, 56 .module = MODULE_AUTH_MSG, 87 *(uint32_t *)(buf + offset) = SoftBusHtoLl((uint32_t)pktHead->module); in PackSocketPkt() 111 head->module = (int32_t)SoftBusLtoHl(*(uint32_t *)(data + offset)); in UnpackSocketPkt() 121 static void NotifyConnected(ListenerModule module, int32_t fd, bool isClient) in NotifyConnected() argument 124 g_callback.onConnected(module, fd, isClient); in NotifyConnected() 136 static uint32_t ModuleToDataType(int32_t module) in ModuleToDataType() argument 138 switch (module) { in ModuleToDataType() 153 static void NotifyDataReceived(ListenerModule module, int32_t fd, in NotifyDataReceived() argument [all …]
|
| /foundation/CastEngine/castengine_wifi_display/services/configuration/src/ |
| D | config.cpp | 32 int32_t Config::GetConfig(const std::string &module, SharingDataGroupByModule::Ptr &values) in GetConfig() argument 36 if (datas_ == nullptr || !datas_->HasModule(module)) { in GetConfig() 37 SHARING_LOGE("data_s is null or has no module named %{public}s.", module.c_str()); in GetConfig() 41 return datas_->GetSharingValues(values, module); in GetConfig() 44 int32_t Config::GetConfig(const std::string &module, const std::string &tag, SharingDataGroupByTag:… in GetConfig() argument 48 if (GetConfig(module, modelValue) != CONFIGURE_ERROR_NONE) { in GetConfig() 49 SHARING_LOGE("module %{public}s error.", module.c_str()); in GetConfig() 54 return datas_->GetSharingValues(values, module, tag); in GetConfig() 57 int32_t Config::GetConfig(const std::string &module, const std::string &tag, const std::string &key, in GetConfig() argument 62 if (GetConfig(module, tag, tagValue) != CONFIGURE_ERROR_NONE) { in GetConfig() [all …]
|
| D | sharing_data.cpp | 282 …::PutSharingValue(const std::string &key, const SharingValue::Ptr value, const std::string &module, in PutSharingValue() argument 286 auto iter = datass_.find(module); in PutSharingValue() 288 auto moduleData = std::make_shared<SharingDataGroupByModule>(module); in PutSharingValue() 294 datass_.emplace(std::make_pair(module, moduleData)); in PutSharingValue() 300 …aringData::PutSharingValues(const SharingDataGroupByModule::Ptr &values, const std::string &module) in PutSharingValues() argument 303 auto iter = datass_.find(module); in PutSharingValues() 305 datass_.emplace(std::make_pair(module, values)); in PutSharingValues() 314 const std::string &module, const std::string &tag) in PutSharingValues() argument 317 auto iter = datass_.find(module); in PutSharingValues() 319 auto moduleData = std::make_shared<SharingDataGroupByModule>(module); in PutSharingValues() [all …]
|
| /foundation/arkui/ace_engine_lite/frameworks/module_manager/ |
| D | module_manager.h | 31 * @brief module manager for module load. 48 * @brief require javascript module object with given module name. 50 * @param moduleName name of the module required 51 * @returns javascript module object 56 * @brief Release module object created by RequireModule. 121 * @param [in] moduleName module name passed from JS, e.g. system.vibrator 122 * @param [out] category pointer to category which this module belongs to 124 * @param [out] name pointer to module name parsed from moduleName, e.g. vibrator 131 * @brief obtains the module object with the given module name. 133 * @param [in] moduleName module name [all …]
|
| /foundation/resourceschedule/frame_aware_sched/ |
| D | README.md | 43 …ng frames, including frame event processing module, slide scene strategy module, and model process… 45 …Module-frame event processing : responsible for coordinating and dispatching the message informati… 47 …Module-slide scene strategy: responsible for the sliding scene recognize and provide the scenario-… 49 …Module-model processing module: responsible for providing the adjustment and scheduling algorithm … 51 …t processing module, application management module, and RTG (Related-Thread-Group) management modu… 53 …Module-Application state event processing: which is responsible for registering and receiving mess… 55 …Module-Application management: responsible for the unified management of the application messages … 57 …Module-RTG Managerment: the kernel interface set, sets the RTG accoding to the application state t… 59 …Module-Scheduling Parameter Control:responsible for reading the default scheduling prameter config…
|
| /foundation/ability/idl_tool/test/unittest/ast_module_test/ |
| D | ast_module_test.cpp | 60 AutoPtr<ASTModule> module = new ASTModule(); variable 62 AutoPtr<ASTNamespace> result = module->GetNamespace(index); 77 AutoPtr<ASTModule> module = new ASTModule(); variable 79 AutoPtr<ASTInterfaceType> result = module->GetInterface(index); 94 AutoPtr<ASTModule> module = new ASTModule(); variable 96 int result = module->IndexOf(interface); 111 AutoPtr<ASTModule> module = new ASTModule(); variable 113 AutoPtr<ASTSequenceableType> result = module->GetSequenceable(index); 128 AutoPtr<ASTModule> module = new ASTModule(); variable 130 int result = module->IndexOf(sequenceable); [all …]
|
| /foundation/communication/dsoftbus/tests/core/discovery/manager/unittest/ |
| D | disc_manager_test.cpp | 294 * @tc.desc: Test inner module active publish, but softbus discover manager is not init. 306 …* @tc.desc: Test inner module active publish, use wrong Medium and Freq Under the COAP of MODULE_L… 353 * @tc.desc: Inner LNN module active publish, use the normal parameter. 372 * @tc.desc: Inner module active publish, use the wrong parameter. 391 * @tc.desc: Test inner module active publish, but softbus discover manager is not init. 421 void DiscPublishTestAbstract001(DiscModule module, PublishInfo *info) in DiscPublishTestAbstract001() argument 425 int32_t ret = DiscPublish(module, info); in DiscPublishTestAbstract001() 427 DiscUnpublish(module, info->publishId); in DiscPublishTestAbstract001() 430 ret = DiscPublish(module, info); in DiscPublishTestAbstract001() 432 DiscUnpublish(module, info->publishId); in DiscPublishTestAbstract001() [all …]
|
| /foundation/distributeddatamgr/udmf/framework/common/ |
| D | logger.h | 26 UDMF_FRAMEWORK = 0, // for framework core module 27 UDMF_KITS_INNER, // for udmf innerkits module 28 UDMF_KITS_NAPI, // for udmf napi kits module 29 UDMF_CLIENT, // for udmf client module 30 UDMF_SERVICE, // for udmf service module 31 UDMF_CAPI, // for udmf capi module 32 UDMF_TEST, // for udmf test module 35 // 0xD001600: subsystem:distributeddatamgr module:udmf, 8 bits reserved. 41 // In order to improve performance, do not check the module range. 42 // Besides, make sure module is less than UDMF_SERVICE. [all …]
|
| /foundation/arkui/ace_engine_lite/frameworks/module_manager/test/unittest/common/ |
| D | require_module_tdd_test.cpp | 43 * @tc.steps: step1. require a module with module name registered in RequireModuleTest001() 59 * @tc.steps: step1. require a module with module name unregistered in RequireModuleTest002() 75 * @tc.steps: step1. require a module with incorrect category in RequireModuleTest003() 91 * @tc.steps: step1. require a module with illegal module name in RequireModuleTest004() 107 * @tc.steps: step1. require app module in RequireModuleTest005() 141 * @tc.steps: step1. require app module in RequireModuleTest006() 175 * @tc.steps: step1. require router module in RequireModuleTest007() 209 * @tc.steps: step1. require a module with module name registered which is ohos in RequireModuleTest008() 212 JSIValue module = moduleManager_->RequireModule(moduleName); in RequireModuleTest008() local 214 * @tc.expected: step1. module is not undefined in RequireModuleTest008() [all …]
|
| /foundation/communication/dsoftbus/core/connection/interface/ |
| D | softbus_base_listener.h | 45 int32_t (*onConnectEvent)(ListenerModule module, int32_t cfd, const ConnectOption *clientAddr); 46 int32_t (*onDataEvent)(ListenerModule module, int32_t events, int32_t fd); 52 // dynamic module management, mean while static module is already registered in InitBaseListener 54 void DestroyBaseListener(ListenerModule module); 56 int32_t StartBaseClient(ListenerModule module, const SoftbusBaseListener *listener); 58 int32_t StopBaseListener(ListenerModule module); 60 bool IsListenerNodeExist(ListenerModule module); 61 int32_t AddTrigger(ListenerModule module, int32_t fd, TriggerType trigger); 62 int32_t DelTrigger(ListenerModule module, int32_t fd, TriggerType trigger);
|
| /foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/ |
| D | trans_tcp_direct_wifi.c | 42 ListenerModule module) in AddTcpConnAndSessionInfo() argument 57 if (AddTrigger(module, fd, WRITE_TRIGGER) != SOFTBUS_OK) { in AddTcpConnAndSessionInfo() 68 ListenerModule module = UNUSE_BUTT; in GetMoudleType() local 80 return module; in GetMoudleType() 84 module = GetModuleByHmlIp(myIp); in GetMoudleType() 86 module = DIRECT_CHANNEL_SERVER_P2P; in GetMoudleType() 89 module = DIRECT_CHANNEL_SERVER_WIFI; in GetMoudleType() 91 return module; in GetMoudleType() 119 ListenerModule module = GetMoudleType(connInfo->type, connInfo->socketOption.addr); in OpenTcpDirectChannel() local 120 TRANS_LOGI(TRANS_CTRL, "get listener module=%{public}d!", module); in OpenTcpDirectChannel() [all …]
|
| D | trans_tcp_direct_listener.c | 122 .module = MODULE_SESSION, in StartVerifySession() 143 static void TransSetTcpDirectConnectType(int32_t *connectType, ListenerModule module) in TransSetTcpDirectConnectType() argument 145 if (module >= DIRECT_CHANNEL_SERVER_HML_START && module <= DIRECT_CHANNEL_SERVER_HML_END) { in TransSetTcpDirectConnectType() 147 } else if (module == DIRECT_CHANNEL_SERVER_P2P) { in TransSetTcpDirectConnectType() 149 } else if (module == DIRECT_CHANNEL_SERVER_WIFI) { in TransSetTcpDirectConnectType() 154 static int32_t CreateSessionConnNode(ListenerModule module, int fd, int32_t chanId, const ConnectOp… in CreateSessionConnNode() argument 167 conn->listenMod = module; in CreateSessionConnNode() 169 conn->appInfo.routeType = (module == DIRECT_CHANNEL_SERVER_P2P) ? WIFI_P2P : WIFI_STA; in CreateSessionConnNode() 171 TransSetTcpDirectConnectType(&conn->appInfo.connectType, module); in CreateSessionConnNode() 200 ret = AddTrigger(module, fd, READ_TRIGGER); in CreateSessionConnNode() [all …]
|
| /foundation/ability/ability_runtime/frameworks/simulator/ |
| D | BUILD.gn | 31 foreach(module, napi_modules) { 32 deps += [ module ] 33 out_path = get_label_info(module, "root_out_dir") 34 out_name = get_label_info(module, "name") 41 outputs = [ target_path + "/bin/module/ability/{{source_file_part}}" ] 58 foreach(module, napi_modules) { 59 deps += [ module ] 60 out_path = get_label_info(module, "root_out_dir") 61 out_name = get_label_info(module, "name") 68 outputs = [ target_path + "/bin/module/application/{{source_file_part}}" ] [all …]
|
| /foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/bundle_parser/ |
| D | module_profile.cpp | 153 // pair first : if exist in module.json then true, otherwise false 254 struct Module { struct 284 Module module; member 289 TAG_LOGD(AAFwkTag::ABILITY_SIM, "read metadata tag from module.json"); in from_json() 319 TAG_LOGD(AAFwkTag::ABILITY_SIM, "read ability tag from module.json"); in from_json() 594 TAG_LOGD(AAFwkTag::ABILITY_SIM, "read extension tag from module.json"); in from_json() 820 TAG_LOGD(AAFwkTag::ABILITY_SIM, "read app tag from module.json"); in from_json() 1147 void from_json(const nlohmann::json &jsonObject, Module &module) in from_json() argument 1149 TAG_LOGD(AAFwkTag::ABILITY_SIM, "read module tag from module.json"); in from_json() 1154 module.name, in from_json() [all …]
|
| /foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
| D | module_profile.cpp | 123 // pair first : if exist in module.json then true, otherwise false 251 struct Module { struct 290 Module module; member 295 APP_LOGD("read metadata tag from module.json"); in from_json() 325 APP_LOGD("read hnppackage tag from module.json"); in from_json() 347 APP_LOGD("read ability tag from module.json"); in from_json() 670 APP_LOGD("read extension tag from module.json"); in from_json() 942 APP_LOGD("read app tag from module.json"); in from_json() 1345 void from_json(const nlohmann::json &jsonObject, Module &module) in from_json() argument 1347 APP_LOGD("read module tag from module.json"); in from_json() [all …]
|
| /foundation/arkui/napi/interfaces/inner_api/cjffi/ark_interop/ |
| D | ark_interop_module.cpp | 37 // each native register only be available during module loading 44 LOGE("napi module depends on another napi module is forbidden"); in ARKTSInner_ThrowJSErrorToCJ() 54 LOGE("napi module depends on another napi module is forbidden"); in ARKTSInner_ThrowNativeErrorToCJ() 64 LOGE("register empty module callback is senseless"); in ARKTS_SetCJModuleCallback() 99 LOGE("cj module must dependent on ohos_ark_interop"); in ARKTS_LoadModule() 113 LOGE("native ark-interop library has no registered module"); in ARKTSInner_CJArrayBufferDeleter() 123 LOGE("native ark-interop library has no registered module"); in ARKTSInner_CJExternalDeleter() 138 LOGE("native ark-interop library has no registered module"); in ARKTSInner_CJLambdaInvoker() 149 LOGE("native ark-interop library has no registered module"); in ARKTSInner_CJLambdaDeleter() 159 LOGE("native ark-interop library has no registered module"); in ARKTSInner_CJAsyncCallback() [all …]
|
| /foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/ |
| D | trans_tcp_direct_listener_test.cpp | 117 ListenerModule module = UNUSE_BUTT; variable 121 int32_t ret = CreateSessionConnNode(module, fd, chanId, clientAddr); 137 ListenerModule module = UNUSE_BUTT; variable 140 int32_t ret = TdcOnConnectEvent(module, cfd, clientAddr); 156 ListenerModule module = UNUSE_BUTT; variable 159 int32_t ret = TdcOnConnectEvent(module, cfd, clientAddr); 172 ListenerModule module = UNUSE_BUTT; variable 175 int32_t ret = TdcOnDataEvent(module, events, fd); 187 ListenerModule module = DIRECT_CHANNEL_SERVER_HML_START; variable 189 TransSetTcpDirectConnectType(&connectType, module); [all …]
|
| /foundation/communication/dsoftbus/core/common/dfx/event/src/ |
| D | softbus_event.c | 152 static void WriteSoftbusEvent(SoftbusEventModule module, SoftbusEventForm *form) in WriteSoftbusEvent() argument 156 if (module >= 0 && module < EVENT_MODULE_MAX) { in WriteSoftbusEvent() 157 g_eventFunc[module](params, size, form); in WriteSoftbusEvent() 159 COMM_LOGW(COMM_DFX, "invalid module. module=%{public}d", (int32_t)module); in WriteSoftbusEvent() 164 void SoftbusEventInner(SoftbusEventModule module, SoftbusEventForm *form) in SoftbusEventInner() argument 172 WriteSoftbusEvent(module, form); in SoftbusEventInner() 175 static void WriteSoftbusAudit(SoftbusEventModule module, SoftbusEventForm *form) in WriteSoftbusAudit() argument 179 switch (module) { in WriteSoftbusAudit() 209 COMM_LOGW(COMM_DFX, "invalid module. module=%{public}d", (int32_t)module); in WriteSoftbusAudit() 216 void SoftbusAuditInner(SoftbusEventModule module, SoftbusEventForm *form) in SoftbusAuditInner() argument [all …]
|
| /foundation/communication/dsoftbus/tests/core/authentication/unittest/ |
| D | auth_tcp_connection_test.cpp | 73 * @tc.desc: module to data type test 79 int32_t module = MODULE_TRUST_ENGINE; variable 80 uint32_t ret = ModuleToDataType(module); 82 module = MODULE_AUTH_SDK; 83 ret = ModuleToDataType(module); 85 module = MODULE_AUTH_CONNECTION; 86 ret = ModuleToDataType(module); 88 module = MODULE_MESSAGE_SERVICE; 89 ret = ModuleToDataType(module); 120 pktHead.module = MODULE_AUTH_CHANNEL; [all …]
|
| /foundation/communication/dsoftbus/tests/core/connection/common/unittest/ |
| D | softbus_conn_common_test.cpp | 81 int32_t ConnectEvent(ListenerModule module, int32_t cfd, const ConnectOption *clientAddr) in ConnectEvent() argument 86 int32_t DataEvent(ListenerModule module, int32_t events, int32_t fd) in DataEvent() argument 135 int module; variable 142 for (module = PROXY; module < LISTENER_MODULE_DYNAMIC_START; module++) { 144 … EXPECT_EQ(SOFTBUS_INVALID_PARAM, AddTrigger(static_cast<ListenerModule>(module), INVALID_FD, 146 … EXPECT_EQ(SOFTBUS_INVALID_PARAM, DelTrigger(static_cast<ListenerModule>(module), INVALID_FD, 160 int module; variable 163 for (module = PROXY; module < LISTENER_MODULE_DYNAMIC_START; module++) { 165 EXPECT_EQ(SOFTBUS_CONN_FAIL, AddTrigger(static_cast<ListenerModule>(module), 167 EXPECT_EQ(SOFTBUS_OK, DelTrigger(static_cast<ListenerModule>(module), [all …]
|
| /foundation/communication/dsoftbus/core/authentication/src/virtual/ |
| D | auth_tcp_connection_virtual.c | 22 int32_t RegAuthChannelListener(int32_t module, const AuthChannelListener *listener) in RegAuthChannelListener() argument 24 (void)module; in RegAuthChannelListener() 30 void UnregAuthChannelListener(int32_t module) in UnregAuthChannelListener() argument 32 (void)module; in UnregAuthChannelListener() 76 void SocketDisconnectDevice(ListenerModule module, int32_t fd) in SocketDisconnectDevice() argument 78 (void)module; in SocketDisconnectDevice() 99 int32_t StartSocketListening(ListenerModule module, const LocalListenerInfo *info) in StartSocketListening() argument 101 (void)module; in StartSocketListening()
|