Home
last modified time | relevance | path

Searched refs:keyword (Results 1 - 25 of 46) sorted by relevance

12

/base/print/print_fwk/services/print_service/src/
H A Dprint_cups_attribute.cpp25 bool ParseAttributeToValue(ipp_t *response, const std::string &keyword, T &value, in ParseAttributeToValue() argument
32 ipp_attribute_t *attrPtr = ippFindAttribute(response, keyword.c_str(), IPP_TAG_KEYWORD); in ParseAttributeToValue()
51 bool ParseAttributesToList(ipp_t *response, const std::string &keyword, std::vector<T> &list, in ParseAttributesToList() argument
58 ipp_attribute_t *attrPtr = ippFindAttribute(response, keyword.c_str(), IPP_TAG_KEYWORD); in ParseAttributesToList()
99 std::string ConvertIppAttributesToJsonString(ipp_t *response, const std::string &keyword) in ConvertIppAttributesToJsonString() argument
101 ipp_attribute_t *attrPtr = ippFindAttribute(response, keyword.c_str(), IPP_TAG_KEYWORD); in ConvertIppAttributesToJsonString()
133 std::string keyword = "sides-supported"; in ParseDuplexModeAttributes() local
135 ParseAttributesToList(response, keyword, list, ConvertDuplexModeCode); in ParseDuplexModeAttributes()
137 printerCaps.SetPrinterAttrNameAndValue(keyword.c_str(), duplexModeJson.c_str()); in ParseDuplexModeAttributes()
146 keyword in ParseDuplexModeAttributes()
156 std::string keyword = "print-color-mode-supported"; ParseColorModeAttributes() local
179 std::string keyword = "media-supported"; ParsePageSizeAttributes() local
195 std::string keyword = "print-quality-supported"; ParseQualityAttributes() local
239 std::string keyword = "printer-resolution-supported"; ParseSupportedResolutionAttribute() local
279 std::string keyword = "printer-resolution-default"; ParseDefaultResolutionAttribute() local
375 std::string keyword = "orientation-requested-default"; ParseOrientationAttributes() local
404 std::string keyword = "media-source-supported"; ParseOtherAttributes() local
432 std::string keyword = "media-type-supported"; SetOptionAttribute() local
[all...]
/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/utils/
H A Dvalue_parser.py19 def get_sub_str(input_str, keyword, value_separator_count=0, is_last=False):
20 if input_str is None or keyword is None:
22 index = input_str.find(keyword)
25 start_index = index + len(keyword)
43 print("no result for ", keyword, " in input string: ", input_str)
51 def get_value_as_int(input_str, keyword, value_separator_count=0, is_last=False):
52 sub_str = get_sub_str(input_str, keyword, value_separator_count, is_last)
58 def get_value_as_float(input_str, keyword, value_separator_count=0, is_last=False):
59 sub_str = get_sub_str(input_str, keyword, value_separator_count, is_last)
65 def get_value_as_str(input_str, keyword, value_separator_coun
[all...]
/base/print/print_fwk/frameworks/ohprint/src/
H A Dprint_helper.cpp53 void AddJsonFieldStringToJsonObject(const nlohmann::json &cupsOpt, const std::string &keyword, in AddJsonFieldStringToJsonObject() argument
56 PRINT_HILOGD("AddJsonFieldStringToJsonObject %{public}s", keyword.c_str()); in AddJsonFieldStringToJsonObject()
57 if (!cupsOpt.contains(keyword)) { in AddJsonFieldStringToJsonObject()
58 PRINT_HILOGW("missing keyword"); in AddJsonFieldStringToJsonObject()
61 if (!cupsOpt[keyword].is_string()) { in AddJsonFieldStringToJsonObject()
65 std::string optionString = cupsOpt[keyword].get<std::string>(); in AddJsonFieldStringToJsonObject()
67 advancedCapJson[keyword] = optionString; in AddJsonFieldStringToJsonObject()
341 std::string keyword = "orientation-requested-supported"; in ParsePrinterOpt() local
342 if (cupsOpt.contains(keyword) && cupsOpt[keyword] in ParsePrinterOpt()
392 std::string keyword = "sides-supported"; ParseCupsCopyOpt() local
425 std::string keyword = "supportedPageSizeArray"; ParseCupsOptions() local
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/
H A Dquery_helper.cpp63 std::string keyword = words.at(pointer); in StringToDbQuery() local
64 if (keyword == DataQuery::EQUAL_TO) { in StringToDbQuery()
66 } else if (keyword == DataQuery::NOT_EQUAL_TO) { in StringToDbQuery()
68 } else if (keyword == DataQuery::GREATER_THAN) { in StringToDbQuery()
70 } else if (keyword == DataQuery::LESS_THAN) { in StringToDbQuery()
72 } else if (keyword == DataQuery::GREATER_THAN_OR_EQUAL_TO) { in StringToDbQuery()
74 } else if (keyword == DataQuery::LESS_THAN_OR_EQUAL_TO) { in StringToDbQuery()
89 std::string keyword = words.at(pointer); in Handle() local
90 if (keyword == DataQuery::IS_NULL) { in Handle()
92 } else if (keyword in Handle()
119 std::string keyword = words.at(pointer); HandleExtra() local
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Dpng_image_chunk_utils.cpp59 DataBuf keyword = GetKeywordFromChunk(chunkData); in ParseTextChunk() local
60 if (keyword.Empty()) { in ParseTextChunk()
61 IMAGE_LOGE("Failed to read the keyword from the chunk data. Chunk data size: %{public}zu", chunkData.Size()); in ParseTextChunk()
65 bool foundExifKeyword = FindExifKeyword(keyword.CData(), keyword.Size()); in ParseTextChunk()
70 DataBuf rawText = GetRawTextFromChunk(chunkData, keyword.Size(), chunkType, isCompressed); in ParseTextChunk()
88 auto keyword = std::find(chunkData.CBegin(), chunkData.CEnd(), 0); in GetKeywordFromChunk() local
89 if (keyword == chunkData.CEnd()) { in GetKeywordFromChunk()
90 IMAGE_LOGE("Keyword lookup failed: keyword not found in chunk data. " in GetKeywordFromChunk()
95 const size_t keywordLength = static_cast<size_t>(std::distance(chunkData.CBegin(), keyword)); in GetKeywordFromChunk()
243 FindExifKeyword(const byte *keyword, size_t size) FindExifKeyword() argument
257 DataBuf keyword = GetKeywordFromChunk(chunkData); FindExifFromTxt() local
[all...]
/kernel/linux/linux-5.10/fs/orangefs/
H A Dorangefs-debugfs.c58 * An array of client_debug_mask will be built to hold debug keyword/mask
62 char *keyword; member
413 * Map the keyword string from userspace into a valid debug mask. in orangefs_debug_write()
534 cdm_array[i].keyword = kzalloc(keyword_len + 1, GFP_KERNEL); in orangefs_prepare_cdm_array()
535 if (!cdm_array[i].keyword) { in orangefs_prepare_cdm_array()
542 cdm_array[i].keyword, in orangefs_prepare_cdm_array()
546 if (!strcmp(cdm_array[i].keyword, ORANGEFS_VERBOSE)) in orangefs_prepare_cdm_array()
549 if (!strcmp(cdm_array[i].keyword, ORANGEFS_ALL)) in orangefs_prepare_cdm_array()
617 * fill the client keyword/mask array and remember in orangefs_prepare_debugfs_help_string()
629 strlcat(new, cdm_array[i].keyword, string_siz in orangefs_prepare_debugfs_help_string()
773 keyword_is_amalgam(char *keyword) keyword_is_amalgam() argument
[all...]
H A Dorangefs-debug.h48 const char *keyword; member
58 * keyword mask_val index
/kernel/linux/linux-6.6/fs/orangefs/
H A Dorangefs-debugfs.c58 * An array of client_debug_mask will be built to hold debug keyword/mask
62 char *keyword; member
413 * Map the keyword string from userspace into a valid debug mask. in orangefs_debug_write()
534 cdm_array[i].keyword = kzalloc(keyword_len + 1, GFP_KERNEL); in orangefs_prepare_cdm_array()
535 if (!cdm_array[i].keyword) { in orangefs_prepare_cdm_array()
542 cdm_array[i].keyword, in orangefs_prepare_cdm_array()
546 if (!strcmp(cdm_array[i].keyword, ORANGEFS_VERBOSE)) in orangefs_prepare_cdm_array()
549 if (!strcmp(cdm_array[i].keyword, ORANGEFS_ALL)) in orangefs_prepare_cdm_array()
617 * fill the client keyword/mask array and remember in orangefs_prepare_debugfs_help_string()
629 strlcat(new, cdm_array[i].keyword, string_siz in orangefs_prepare_debugfs_help_string()
773 keyword_is_amalgam(char *keyword) keyword_is_amalgam() argument
[all...]
H A Dorangefs-debug.h48 const char *keyword; member
58 * keyword mask_val index
/kernel/linux/linux-5.10/drivers/accessibility/speakup/
H A Dvarhandlers.c64 int spk_chartab_get_value(char *keyword) in spk_chartab_get_value() argument
68 if (!strcmp(keyword, "ALPHA")) in spk_chartab_get_value()
70 else if (!strcmp(keyword, "B_CTL")) in spk_chartab_get_value()
72 else if (!strcmp(keyword, "WDLM")) in spk_chartab_get_value()
74 else if (!strcmp(keyword, "A_PUNC")) in spk_chartab_get_value()
76 else if (!strcmp(keyword, "PUNC")) in spk_chartab_get_value()
78 else if (!strcmp(keyword, "NUM")) in spk_chartab_get_value()
80 else if (!strcmp(keyword, "A_CAP")) in spk_chartab_get_value()
82 else if (!strcmp(keyword, "B_CAPSYM")) in spk_chartab_get_value()
84 else if (!strcmp(keyword, "B_SY in spk_chartab_get_value()
[all...]
H A Dspeakup.h55 int spk_chartab_get_value(char *keyword);
/kernel/linux/linux-6.6/drivers/accessibility/speakup/
H A Dvarhandlers.c66 int spk_chartab_get_value(char *keyword) in spk_chartab_get_value() argument
70 if (!strcmp(keyword, "ALPHA")) in spk_chartab_get_value()
72 else if (!strcmp(keyword, "B_CTL")) in spk_chartab_get_value()
74 else if (!strcmp(keyword, "WDLM")) in spk_chartab_get_value()
76 else if (!strcmp(keyword, "A_PUNC")) in spk_chartab_get_value()
78 else if (!strcmp(keyword, "PUNC")) in spk_chartab_get_value()
80 else if (!strcmp(keyword, "NUM")) in spk_chartab_get_value()
82 else if (!strcmp(keyword, "A_CAP")) in spk_chartab_get_value()
84 else if (!strcmp(keyword, "B_CAPSYM")) in spk_chartab_get_value()
86 else if (!strcmp(keyword, "B_SY in spk_chartab_get_value()
[all...]
H A Dspeakup.h55 int spk_chartab_get_value(char *keyword);
/foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include/
H A Ddata_query.h660 void AppendCommon(const std::string &keyword, const std::string &fieldType, std::string &field, const T &value);
662 void AppendCommonString(const std::string &keyword, const std::string &fieldType, std::string &field,
665 void AppendCommonBoolean(const std::string &keyword, const std::string &fieldType, std::string &field,
668 void AppendCommonString(const std::string &keyword, std::string &field, std::string &value);
671 void AppendCommonList(const std::string &keyword, const std::string &fieldType, std::string &field,
674 void AppendCommonListString(const std::string &keyword, const std::string &fieldType, std::string &field,
/kernel/linux/linux-5.10/scripts/
H A Dunifdef.c151 * Sometimes when editing a keyword the replacement text is longer, so
191 static char *keyword; /* used for editing #elif's */ variable
453 static void Mpass (void) { memcpy(keyword, "if ", 4); Pelif(); } in Mpass()
522 snprintf(keyword, tline + sizeof(tline) - keyword, in keywordedit()
669 keyword = tline + (cp - tline); in parseline()
671 kwlen = cp - keyword; in parseline()
672 /* no way can we deal with a continuation inside a keyword */ in parseline()
676 if (strlcmp("ifdef", keyword, kwlen) == 0 || in parseline()
677 strlcmp("ifndef", keyword, kwle in parseline()
[all...]
/kernel/linux/linux-6.6/scripts/
H A Dunifdef.c151 * Sometimes when editing a keyword the replacement text is longer, so
191 static char *keyword; /* used for editing #elif's */ variable
453 static void Mpass (void) { memcpy(keyword, "if ", 4); Pelif(); } in Mpass()
522 snprintf(keyword, tline + sizeof(tline) - keyword, in keywordedit()
669 keyword = tline + (cp - tline); in parseline()
671 kwlen = cp - keyword; in parseline()
672 /* no way can we deal with a continuation inside a keyword */ in parseline()
676 if (strlcmp("ifdef", keyword, kwlen) == 0 || in parseline()
677 strlcmp("ifndef", keyword, kwle in parseline()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/src/
H A Ddata_query.cpp667 void DataQuery::AppendCommon(const std::string &keyword, const std::string &fieldType, in AppendCommon() argument
671 str_.append(keyword); in AppendCommon()
681 void DataQuery::AppendCommonString(const std::string &keyword, const std::string &fieldType, in AppendCommonString() argument
685 str_.append(keyword); in AppendCommonString()
696 void DataQuery::AppendCommonBoolean(const std::string &keyword, const std::string &fieldType, in AppendCommonBoolean() argument
700 str_.append(keyword); in AppendCommonBoolean()
714 void DataQuery::AppendCommonString(const std::string &keyword, std::string &field, std::string &value) in AppendCommonString() argument
717 str_.append(keyword); in AppendCommonString()
727 void DataQuery::AppendCommonList(const std::string &keyword, const std::string &fieldType, in AppendCommonList() argument
731 str_.append(keyword); in AppendCommonList()
747 AppendCommonListString(const std::string &keyword, const std::string &fieldType, std::string &field, std::vector<std::string> &valueList) AppendCommonListString() argument
[all...]
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/
H A Dpvrusb2-debugifc.c106 const char *keyword) in debugifc_match_keyword()
109 if (!keyword) return 0; in debugifc_match_keyword()
110 kl = strlen(keyword); in debugifc_match_keyword()
112 return !memcmp(buf,keyword,kl); in debugifc_match_keyword()
105 debugifc_match_keyword(const char *buf,unsigned int count, const char *keyword) debugifc_match_keyword() argument
/kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/
H A Dpvrusb2-debugifc.c106 const char *keyword) in debugifc_match_keyword()
109 if (!keyword) return 0; in debugifc_match_keyword()
110 kl = strlen(keyword); in debugifc_match_keyword()
112 return !memcmp(buf,keyword,kl); in debugifc_match_keyword()
105 debugifc_match_keyword(const char *buf,unsigned int count, const char *keyword) debugifc_match_keyword() argument
/kernel/linux/linux-5.10/security/keys/encrypted-keys/
H A Dencrypted.c179 char *p, *keyword; in datablob_parse() local
181 keyword = strsep(&datablob, " \t"); in datablob_parse()
182 if (!keyword) { in datablob_parse()
186 key_cmd = match_token(keyword, key_tokens, args); in datablob_parse()
230 pr_info("encrypted_key: keyword \'%s\' not allowed " in datablob_parse()
231 "when called from .update method\n", keyword); in datablob_parse()
238 pr_info("encrypted_key: keyword \'%s\' not allowed " in datablob_parse()
239 "when called from .update method\n", keyword); in datablob_parse()
251 pr_info("encrypted_key: keyword \'%s\' not allowed " in datablob_parse()
253 keyword); in datablob_parse()
[all...]
/kernel/linux/linux-6.6/security/keys/encrypted-keys/
H A Dencrypted.c184 char *p, *keyword; in datablob_parse() local
186 keyword = strsep(&datablob, " \t"); in datablob_parse()
187 if (!keyword) { in datablob_parse()
191 key_cmd = match_token(keyword, key_tokens, args); in datablob_parse()
235 pr_info("encrypted_key: keyword \'%s\' not allowed " in datablob_parse()
236 "when called from .update method\n", keyword); in datablob_parse()
244 pr_info("encrypted_key: keyword \'%s\' not allowed " in datablob_parse()
245 "when called from .update method\n", keyword); in datablob_parse()
257 pr_info("encrypted_key: keyword \'%s\' not allowed " in datablob_parse()
259 keyword); in datablob_parse()
[all...]
/base/telephony/call_manager/test/unittest/call_earthquake_alarm_test/src/
H A Dcall_earthquake_alarm_test.cpp228 const char* keyword = "switchtest"; in HWTEST_F() local
244 want.SetParam(keyword, value1); in HWTEST_F()
247 want.SetParam(keyword, value2); in HWTEST_F()
/kernel/liteos_a/fs/fat/virpart/src/
H A Dvirpartff.c66 TCHAR keyword[FF_MAX_LFN + 1] = {0}; in follow_virentry() local
71 (void)memset_s(keyword, sizeof(keyword), 0, sizeof(keyword)); in follow_virentry()
74 keyword[len] = *path; in follow_virentry()
89 if (memcmp((CHILDFS(fs, i))->namelabel, keyword, _MAX_ENTRYLENGTH + 1) == 0) { in follow_virentry()
782 /* Following the entry keyword, decide to replace the PARENT FATFS to CHILD FATFS or not */ in f_getvirfree()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/include/
H A Dpng_image_chunk_utils.h42 // lookup text chunk's exif keyword "raw profile xxx"
45 // get keyword from png txt chunk
63 // lookup exif keyword
64 static bool FindExifKeyword(const byte *keyword, size_t size);
/kernel/linux/linux-5.10/tools/power/acpi/os_specific/service_layers/
H A Doslinuxtbl.c47 osl_find_rsdp_via_efi_by_keyword(FILE * file, const char *keyword);
391 * PARAMETERS: keyword - Character string indicating ACPI GUID version
396 * DESCRIPTION: Find RSDP address via EFI using keyword indicating the ACPI
402 osl_find_rsdp_via_efi_by_keyword(FILE * file, const char *keyword) in osl_find_rsdp_via_efi_by_keyword() argument
408 snprintf(format, 32, "%s=%s", keyword, "%llx"); in osl_find_rsdp_via_efi_by_keyword()

Completed in 20 milliseconds

12