/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_command_line_server.py | 26 def __init__(self, msg_type, content): 28 self.content = content 34 def pack_message(msg_type, content, err_code=None): 35 body = bytearray(content, 'utf-8') 69 def _send_back(self, msg_type, content, error_code=None): 70 message_bytes = pack_message(msg_type, content, error_code) 74 def _send_back_success(self, content): 75 self._send_back(Message.TYPE_SUCCESS, content) 77 def _send_back_error(self, error_code, content) [all...] |
H A D | hdf_module_mk_file.py | 42 content = Template(template_str).safe_substitute(data_model) 44 return hdf_utils.SectionContent(begin_flag, content, end_flag)
|
H A D | hdf_vendor_makefile.py | 60 content=self.contents, file_path=self.file_path)
|
/drivers/peripheral/distributed_audio/interface/audio_ext/v1_0/ |
H A D | types.h | 21 std::string content; member 30 std::string content; member
|
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/src/ |
H A D | audio_adapter_interface_impl.cpp | 522 DHLOGI("Notify event: VOLUME_CHANGE, event content: %{public}s.", event.content.c_str()); in Notify() 525 DHLOGI("Notify event: FOCUS_CHANGE, event content: %{public}s.", event.content.c_str()); in Notify() 528 DHLOGI("Notify event: RENDER_STATE_CHANGE, event content: %{public}s.", event.content.c_str()); in Notify() 780 std::string content = condition; in SetAudioVolume() local 781 int32_t type = getEventTypeFromCondition(content); in SetAudioVolume() 794 SetAudioParamStr(content, STREAM_MUTE_STATUS, param); in SetAudioVolume() 798 SetAudioParamStr(content, VOLUME_LEVE in SetAudioVolume() 908 GetRenderImpl(const std::string &content) GetRenderImpl() argument 990 GetVolFromEvent(const std::string &content, const std::string &key, int32_t &vol) GetVolFromEvent() argument [all...] |
H A D | audio_render_ext_impl.cpp | 198 std::string content; in Start() local 201 if (WrapCJsonItem(items, content) != HDF_SUCCESS) { in Start() 205 DAudioEvent event = { HDF_AUDIO_EVENT_CHANGE_PLAY_STATUS, content }; in Start() 211 std::string content; in Start() local 213 if (WrapCJsonItem(items, content) != HDF_SUCCESS) { in Start() 217 DAudioEvent event = { HDF_AUDIO_EVENT_MMAP_START, content }; in Start() 233 std::string content; in Stop() local 235 if (WrapCJsonItem(items, content) != HDF_SUCCESS) { in Stop() 239 DAudioEvent event = { HDF_AUDIO_EVENT_MMAP_STOP, content }; in Stop() 247 if (WrapCJsonItem(items, content) ! in Stop() [all...] |
H A D | audio_capture_ext_impl.cpp | 101 std::string content; in Start() local 103 if (WrapCJsonItem(items, content) != HDF_SUCCESS) { in Start() 107 DAudioEvent event = { HDF_AUDIO_EVENT_MMAP_START_MIC, content }; in Start() 123 std::string content; in Stop() local 125 if (WrapCJsonItem(items, content) != HDF_SUCCESS) { in Stop() 129 DAudioEvent event = { HDF_AUDIO_EVENT_MMAP_STOP_MIC, content }; in Stop()
|
H A D | audio_capture_interface_impl.cpp | 127 std::string content(jsonData); in Start() 130 DAudioEvent event = { HDF_AUDIO_EVENT_START, content }; in Start() 164 std::string content(jsonData); in Stop() 165 DAudioEvent event = { HDF_AUDIO_EVENT_STOP, content }; in Stop()
|
H A D | audio_render_interface_impl.cpp | 214 std::string content(jsonData); in Start() 217 DAudioEvent event = { HDF_AUDIO_EVENT_CHANGE_PLAY_STATUS, content}; in Start() 251 std::string content(jsonData); in Stop() 254 DAudioEvent event = { HDF_AUDIO_EVENT_CHANGE_PLAY_STATUS, content}; in Stop()
|
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
H A D | thermal_hdf_utils.cpp | 35 std::string content; in ReadNodeToInt() local 36 if (!ReadNode(path, content)) { in ReadNodeToInt() 41 StrToInt(content, value); in ReadNodeToInt()
|
/drivers/hdf_core/interfaces/inner_api/utils/ |
H A D | osal_sysevent.h | 45 struct HdfSysEventNotifyNode *self, uint64_t eventClass, uint32_t event, const char *content); 56 __attribute__((weak)) int32_t HdfSysEventSend(uint64_t eventClass, uint32_t event, const char *content, bool sync);
|
/drivers/peripheral/wlan/test/hdi_service/ |
H A D | hostapd_callback_impl.c | 30 HDF_LOGE("HostapdCallbackStaJoin: content=%{public}s, id=%{public}d", apCbParm->content, apCbParm->id);
in HostapdCallbackStaJoin() 42 HDF_LOGE("HostapdCallbackApState: content=%{public}s, id=%{public}d", apCbParm->content, apCbParm->id);
in HostapdCallbackApState()
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/ |
H A D | hdf_utils.py | 79 def __init__(self, begin_flag, content, end_flag): 81 self.content = content 85 return '%s%s%s' % (self.begin_flag, self.content, self.end_flag) 104 file_obj.write(section_content.content) 171 content = file_read.read() 172 return content 193 def write_file(file_path, content): 195 file_write.write(content) 198 def write_file_lines(file_path, content, code_typ [all...] |
/drivers/peripheral/wlan/hostapd/interfaces/hdi_service/service_common/ |
H A D | hostapd_common_cmd.c | 575 hdiApCbParm->content = OsalMemCalloc(WIFI_HOSTAPD_CB_CONTENT_LENGTH); in ProcessEventStaJoin() 576 if (hdiApCbParm->content == NULL) { in ProcessEventStaJoin() 577 HDF_LOGE("%{public}s: hdiApCbParm->content OsalMemCalloc fail", __func__); in ProcessEventStaJoin() 581 if (memcpy_s(hdiApCbParm->content, WIFI_HOSTAPD_CB_CONTENT_LENGTH, in ProcessEventStaJoin() 582 apCbParm->content, WIFI_HOSTAPD_CB_CONTENT_LENGTH) != 0) { in ProcessEventStaJoin() 589 HDF_LOGI("%{public}s: OnEventStaJoin send success, content is %{private}s", __func__, in ProcessEventStaJoin() 590 hdiApCbParm->content); in ProcessEventStaJoin() 612 hdiApCbParm->content = OsalMemCalloc(WIFI_HOSTAPD_CB_CONTENT_LENGTH); in ProcessEventApState() 613 if (hdiApCbParm->content == NULL) { in ProcessEventApState() 614 HDF_LOGE("%{public}s: hdiApCbParm->content OsalMemCallo in ProcessEventApState() [all...] |
/drivers/peripheral/thermal/test/unittest/ |
H A D | hdf_thermal_log_test.cpp | 41 std::string content; in CheckThread() local 42 OHOS::LoadStringFromFile(file, content); in CheckThread() 43 return (std::string::npos != content.find(threadName)); in CheckThread()
|
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/ |
H A D | wpa_supplicant_hal.c | 1165 if ((infoElem->content == NULL) || ((unsigned int)infoElem->size < VHT_INFO_SIZE)) { in GetChanWidthCenterFreqVht() 1168 int channelType = infoElem->content[COLUMN_INDEX_ZERO] & UINT8_MASK; in GetChanWidthCenterFreqVht() 1169 int centerFrequencyIndex1 = infoElem->content[COLUMN_INDEX_ONE] & UINT8_MASK; in GetChanWidthCenterFreqVht() 1170 int centerFrequencyIndex2 = infoElem->content[COLUMN_INDEX_TWO] & UINT8_MASK; in GetChanWidthCenterFreqVht() 1187 if ((infoElem->content == NULL) || ((unsigned int)infoElem->size < (HE_OPER_BASIC_LEN + 1))) { in GetChanWidthCenterFreqHe() 1190 if (infoElem->content[0] != EXT_HE_OPER_EID) { in GetChanWidthCenterFreqHe() 1193 char* content = infoElem->content + 1; in GetChanWidthCenterFreqHe() local 1194 bool isVhtInfoExist = (content[COLUMN_INDEX_ONE] & VHT_OPER_INFO_EXTST_MASK) != 0; in GetChanWidthCenterFreqHe() 1195 bool is6GhzInfoExist = (content[COLUMN_INDEX_TW in GetChanWidthCenterFreqHe() [all...] |
/drivers/peripheral/distributed_audio/hdi_service/audio_ext/v1_0/test/fuzztest/notifyevent_fuzzer/ |
H A D | notifyevent_fuzzer.cpp | 41 .content = std::string(reinterpret_cast<const char*>(data), size), in NotifyEventFuzzTest()
|
/drivers/peripheral/wlan/hostapd/client/include/ |
H A D | hostapd_client.h | 46 unsigned char content[WIFI_HOSTAPD_CB_CONTENT_LENGTH]; member
|
/drivers/peripheral/battery/interfaces/hdi_service/test/unittest/src/ |
H A D | hdi_interface_test.cpp | 53 std::string CreateFile(std::string path, std::string content) in CreateFile() argument 60 stream << content.c_str() << std::endl; in CreateFile()
|
/drivers/hdf_core/adapter/khdf/linux/manager/src/ |
H A D | hdf_kevent.c | 83 struct HdfKeventWait **wait, uint64_t class, int32_t eventId, const char *content, bool sync) in PrepareEvent() 113 if (!HdfSbufWriteString(eventBuf, content)) { in PrepareEvent() 123 struct HdfKeventModule *keventModule, uint16_t class, int32_t event, const char *content, bool sync) in SendKevent() 134 eventBuf = PrepareEvent(&wait, class, event, content, sync); in SendKevent() 174 int32_t HdfSysEventSend(uint64_t eventClass, uint32_t event, const char *content, bool sync) in HdfSysEventSend() argument 181 return SendKevent(keventmodule, eventClass, event, content, sync); in HdfSysEventSend() 82 PrepareEvent( struct HdfKeventWait **wait, uint64_t class, int32_t eventId, const char *content, bool sync) PrepareEvent() argument 122 SendKevent( struct HdfKeventModule *keventModule, uint16_t class, int32_t event, const char *content, bool sync) SendKevent() argument
|
/drivers/hdf_core/adapter/uhdf2/manager/src/ |
H A D | devmgr_service_stub.c | 246 struct HdfSysEventNotifyNode *self, uint64_t eventClass, uint32_t event, const char *content) in ModuleSysEventHandle() 248 if (self == NULL || (eventClass & HDF_SYSEVENT_CLASS_MODULE) == 0 || content == NULL) { in ModuleSysEventHandle() 253 HDF_LOGI("handle driver module: %{public}s", content); in ModuleSysEventHandle() 255 int32_t ret = MakeModulePath(modulePath, content); in ModuleSysEventHandle() 245 ModuleSysEventHandle( struct HdfSysEventNotifyNode *self, uint64_t eventClass, uint32_t event, const char *content) ModuleSysEventHandle() argument
|
/drivers/peripheral/distributed_audio/hdi_service/common/utils/src/ |
H A D | daudio_utils.cpp | 244 int32_t WrapCJsonItem(const std::initializer_list<std::pair<std::string, std::string>> &keys, std::string &content) in WrapCJsonItem() argument 258 content = std::string(jsonData); in WrapCJsonItem() 301 std::string content(dhIdItem->valuestring); in ParseStringFromArgs() 303 DHLOGD("Parsed string is: %{public}s.", content.c_str()); in ParseStringFromArgs() 304 return content; in ParseStringFromArgs()
|
/drivers/peripheral/power/interfaces/hdi_service/src/ |
H A D | power_interface_impl.cpp | 82 static void LoadStringFd(int32_t fd, std::string &content); 377 void LoadStringFd(int32_t fd, std::string &content) in LoadStringFd() argument 394 content.resize(fileLength); in LoadStringFd() 395 const int32_t len = static_cast<int32_t>(read(fd, content.data(), fileLength)); in LoadStringFd() 398 content.clear(); in LoadStringFd()
|
/drivers/peripheral/distributed_audio/hdi_service/audio_ext/v1_0/test/unittest/src/ |
H A D | daudio_manager_interface_impl_test.cpp | 110 event.content = "hello_world"; in HWTEST_F()
|
/drivers/hdf_core/adapter/uhdf2/host/src/ |
H A D | devhost_service_full.c | 138 struct HdfSysEventNotifyNode *self, uint64_t eventClass, uint32_t event, const char *content) in OnSysEventReceived() 140 (void)(content); in OnSysEventReceived() 137 OnSysEventReceived( struct HdfSysEventNotifyNode *self, uint64_t eventClass, uint32_t event, const char *content) OnSysEventReceived() argument
|