/kernel/linux/linux-6.6/drivers/acpi/acpica/ |
H A D | exstorob.c | 76 * truncated if the string is smaller than the buffer. However, "other" in acpi_ex_store_buffer_to_buffer() 84 * If the original source was a string, we must truncate the buffer, in acpi_ex_store_buffer_to_buffer() 141 /* We know that source_desc is a string by now */ in acpi_ex_store_string_to_string() 143 buffer = ACPI_CAST_PTR(u8, source_desc->string.pointer); in acpi_ex_store_string_to_string() 144 length = source_desc->string.length; in acpi_ex_store_string_to_string() 147 * Replace existing string value if it will fit and the string in acpi_ex_store_string_to_string() 150 if ((length < target_desc->string.length) && in acpi_ex_store_string_to_string() 154 * Clear old string and copy in the new one in acpi_ex_store_string_to_string() 156 memset(target_desc->string in acpi_ex_store_string_to_string() [all...] |
H A D | dbconvert.c | 90 * PARAMETERS: string - Input string to be converted 95 * DESCRIPTION: Convert a string to a buffer object. String is treated a list 101 acpi_db_convert_to_buffer(char *string, union acpi_object *object) in acpi_db_convert_to_buffer() argument 111 acpi_ut_remove_whitespace(&string); in acpi_db_convert_to_buffer() 115 for (i = 0, length = 0; string[i];) { in acpi_db_convert_to_buffer() 119 while (string[i] && ((string[i] == ',') || (string[i] == ' '))) { in acpi_db_convert_to_buffer() 131 for (i = 0, j = 0; string[ in acpi_db_convert_to_buffer() 165 acpi_db_convert_to_package(char *string, union acpi_object *object) acpi_db_convert_to_package() argument 222 acpi_db_convert_to_object(acpi_object_type type, char *string, union acpi_object *object) acpi_db_convert_to_object() argument [all...] |
H A D | utids.c | 22 * return_id - Where the string HID is returned 28 * Integer or a String. A string is always returned. An EISAID 29 * is converted to a string. 57 length = obj_desc->string.length + 1; in acpi_ut_execute_HID() 70 /* Area for the string starts after PNP_DEVICE_ID struct */ in acpi_ut_execute_HID() 72 hid->string = in acpi_ut_execute_HID() 75 /* Convert EISAID to a string or simply copy existing string */ in acpi_ut_execute_HID() 78 acpi_ex_eisa_id_to_string(hid->string, obj_desc->integer.value); in acpi_ut_execute_HID() 80 strcpy(hid->string, obj_des in acpi_ut_execute_HID() [all...] |
/test/testfwk/arkxtest/uitest/record/ |
H A D | pointer_info.h | 18 #include <string> 39 std::string WriteWindowData(std::string actionType); 101 static const std::string EVENT_TYPE; 102 static std::map <int32_t, std::string> OP_TYPE; 105 std::string WriteWindowData(); 147 void SetBundleName(std::string name) in SetBundleName() 152 std::string GetBundleName() in GetBundleName() 157 void SetAbilityName(std::string name) in SetAbilityName() 162 std::string GetAbilityNam [all...] |
/test/xts/dcts/distributedhardware/distributedinputtest/ |
H A D | distributed_input_test.h | 58 void OnResult(const std::string& deviceId, const int32_t& status); 66 void OnResult(const std::string& deviceId, const int32_t& status); 74 void OnResult(const std::string& deviceId, const uint32_t& inputTypes, const int32_t& status); 82 void OnResult(const std::string& deviceId, const uint32_t& inputTypes, const int32_t& status); 90 void OnResultDhids(const std::string &devId, const int32_t &status); 98 void OnNodeOnLine(const std::string &srcDevId, const std::string &sinkDevId, 99 const std::string &sinkNodeId, const std::string &sinkNodeDesc); 101 void OnNodeOffLine(const std::string [all...] |
/test/xts/dcts/distributedhardware/distributedaudiotest/ |
H A D | daudio_automat_test.cpp | 24 std::string res = "true";
57 std::string ret = HandleAudioEvent(9);
in HWTEST_F() 72 std::string ret = HandleAudioEvent(1);
in HWTEST_F() 88 std::string ret = HandleAudioEvent(3);
in HWTEST_F() 103 std::string ret = HandleAudioEvent(4);
in HWTEST_F() 118 std::string ret = HandleAudioEvent(11);
in HWTEST_F() 133 std::string ret = HandleAudioEvent(12);
in HWTEST_F() 148 std::string ret = HandleAudioEvent(2);
in HWTEST_F() 163 std::string ret = HandleAudioEvent(5);
in HWTEST_F() 178 std::string re in HWTEST_F() [all...] |
/kernel/linux/linux-5.10/drivers/acpi/acpica/ |
H A D | dbconvert.c | 90 * PARAMETERS: string - Input string to be converted 95 * DESCRIPTION: Convert a string to a buffer object. String is treated a list 101 acpi_db_convert_to_buffer(char *string, union acpi_object *object) in acpi_db_convert_to_buffer() argument 111 acpi_ut_remove_whitespace(&string); in acpi_db_convert_to_buffer() 115 for (i = 0, length = 0; string[i];) { in acpi_db_convert_to_buffer() 119 while (string[i] && ((string[i] == ',') || (string[i] == ' '))) { in acpi_db_convert_to_buffer() 131 for (i = 0, j = 0; string[ in acpi_db_convert_to_buffer() 165 acpi_db_convert_to_package(char *string, union acpi_object *object) acpi_db_convert_to_package() argument 222 acpi_db_convert_to_object(acpi_object_type type, char *string, union acpi_object *object) acpi_db_convert_to_object() argument [all...] |
H A D | utids.c | 22 * return_id - Where the string HID is returned 28 * Integer or a String. A string is always returned. An EISAID 29 * is converted to a string. 57 length = obj_desc->string.length + 1; in acpi_ut_execute_HID() 70 /* Area for the string starts after PNP_DEVICE_ID struct */ in acpi_ut_execute_HID() 72 hid->string = in acpi_ut_execute_HID() 75 /* Convert EISAID to a string or simply copy existing string */ in acpi_ut_execute_HID() 78 acpi_ex_eisa_id_to_string(hid->string, obj_desc->integer.value); in acpi_ut_execute_HID() 80 strcpy(hid->string, obj_des in acpi_ut_execute_HID() [all...] |
/kernel/linux/linux-5.10/security/smack/ |
H A D | smack_access.c | 281 * readable string 282 * @string : the string to fill 286 static inline void smack_str_from_perm(char *string, int access) in smack_str_from_perm() argument 291 string[i++] = 'r'; in smack_str_from_perm() 293 string[i++] = 'w'; in smack_str_from_perm() 295 string[i++] = 'x'; in smack_str_from_perm() 297 string[i++] = 'a'; in smack_str_from_perm() 299 string[i++] = 't'; in smack_str_from_perm() 301 string[ in smack_str_from_perm() 420 smk_find_entry(const char *string) smk_find_entry() argument 443 smk_parse_smack(const char *string, int len) smk_parse_smack() argument 557 smk_import_entry(const char *string, int len) smk_import_entry() argument [all...] |
/kernel/linux/linux-6.6/security/smack/ |
H A D | smack_access.c | 281 * readable string 282 * @string : the string to fill 286 static inline void smack_str_from_perm(char *string, int access) in smack_str_from_perm() argument 291 string[i++] = 'r'; in smack_str_from_perm() 293 string[i++] = 'w'; in smack_str_from_perm() 295 string[i++] = 'x'; in smack_str_from_perm() 297 string[i++] = 'a'; in smack_str_from_perm() 299 string[i++] = 't'; in smack_str_from_perm() 301 string[ in smack_str_from_perm() 421 smk_find_entry(const char *string) smk_find_entry() argument 444 smk_parse_smack(const char *string, int len) smk_parse_smack() argument 557 smk_import_entry(const char *string, int len) smk_import_entry() argument [all...] |
/test/testfwk/arkxtest/uitest/test/ |
H A D | mock_element_node_iterator.h | 28 std::string accessibilityId = "-1"; 29 std::string inspectorKey = ""; 30 std::string content = ""; 31 std::string componentType = ""; 32 std::string bundleName = ""; 33 std::string hierarchy = ""; 39 std::string windowId = "12"; 45 static void StringSplit(const string &str, const char split, std::vector<string> &res) in StringSplit() 50 string str in StringSplit() [all...] |
/test/testfwk/arkxtest/uitest/core/ |
H A D | ui_model.h | 28 const std::string ROOT_HIERARCHY = "ROOT"; 29 /**Enumerates the supported string value match rules.*/ 154 std::string Describe() const in Describe() 163 WidgetMatchModel(UiAttr name, string value, ValueMatchPattern matchPattern) in WidgetMatchModel() 168 std::string Describe() const in Describe() 178 string attrValue; 251 std::string GetHierarchy() const in GetHierarchy() 258 std::string ToStr() const; 262 std::vector<std::string> GetAttrVec() const; 269 void SetAttr(UiAttr attrId, string valu [all...] |
/test/testfwk/developer_test/aw/cxx/hwext/ |
H A D | perf.cpp | 27 #include <string> 57 BaseLineManager::BaseLineManager(const string path) in BaseLineManager() 71 bool BaseLineManager::LoadConfig(const string path) in LoadConfig() 84 void ParseProperties(const xmlNode currNode, map<string, string>& properties) in ParseProperties() 95 string propName(reinterpret_cast<const char*>(name)); in ParseProperties() 96 string propValue(reinterpret_cast<char*>(value)); in ParseProperties() 102 bool BaseLineManager::ReadXmlFile(string baselinePath) in ReadXmlFile() 116 map<string, string> propertie in ReadXmlFile() [all...] |
/test/xts/acts/global_lite/i18n_lite/number_posix/src/ |
H A D | UnitNumberTest.cpp | 124 std::string numberFormOut1 = numberForm->Format(doubleNum1, NumberFormatType::DECIMAL, status);
in HWTEST_P() 125 std::string numberFormOut2 = numberForm->Format(doubleNum2, NumberFormatType::DECIMAL, status);
in HWTEST_P() 126 std::string numberFormOut3 = numberForm->Format(doubleNum3, NumberFormatType::DECIMAL, status);
in HWTEST_P() 148 std::string numberFormOut1 = numberForm->Format(percentNum1, NumberFormatType::PERCENT, status);
in HWTEST_P() 149 std::string numberFormOut2 = numberForm->Format(percentNum2, NumberFormatType::PERCENT, status);
in HWTEST_P() 172 std::string numberFormOut1 = numberForm->Format(intNum1, status);
in HWTEST_P() 173 std::string numberFormOut2 = numberForm->Format(intNum2, status);
in HWTEST_P() 174 std::string numberFormOut3 = numberForm->Format(intNum3, status);
in HWTEST_P() 197 std::string numberFormOut1 = numberForm->FormatNoGroup(doubleNum1, NumberFormatType::DECIMAL, status);
in HWTEST_P() 198 std::string numberFormOut in HWTEST_P() [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/text/ |
H A D | text_backgroundimage_test.cpp | 24 srcItem.string = "resource://media/icon.png"; in TestTextBackgroundImage001() 27 ASSERT_STREQ(nodeAPI->getAttribute(text, NODE_BACKGROUND_IMAGE)->string, "resource://media/icon.png"); in TestTextBackgroundImage001() 36 srcItem.string = "resource://media/icon.png"; in TestTextBackgroundImage002() 39 ASSERT_STREQ(nodeAPI->getAttribute(text, NODE_BACKGROUND_IMAGE)->string, "resource://media/icon.png"); in TestTextBackgroundImage002() 49 srcItem.string = "resource://media/icon.png"; in TestTextBackgroundImage003() 52 ASSERT_STREQ(nodeAPI->getAttribute(text, NODE_BACKGROUND_IMAGE)->string, "resource://media/icon.png"); in TestTextBackgroundImage003() 62 srcItem.string = "resource://media/icon.png"; in TestTextBackgroundImage004() 65 ASSERT_STREQ(nodeAPI->getAttribute(text, NODE_BACKGROUND_IMAGE)->string, "resource://media/icon.png"); in TestTextBackgroundImage004() 75 srcItem.string = "resource://media/icon.png"; in TestTextBackgroundImage005() 78 ASSERT_STREQ(nodeAPI->getAttribute(text, NODE_BACKGROUND_IMAGE)->string, "resourc in TestTextBackgroundImage005() [all...] |
/test/ostest/wukong/report/src/ |
H A D | filter_category.cpp | 28 void FilterCategory::FilterDetail(std::string type, std::map<std::string, std::string> data, in FilterDetail() 29 std::vector<std::map<std::string, std::string>> &dataVector) in FilterDetail() 32 std::map<std::string, std::string>::iterator it = data.find(type); in FilterDetail()
|
H A D | table.cpp | 21 Table::Table(std::vector<std::string> cloumn_header, std::vector<std::vector<std::string>> record) in Table() 36 void Table::SetName(std::string name) in SetName() 41 std::string Table::GetName() in GetName() 46 void Table::SetDetail(std::string detail) in SetDetail() 51 std::string Table::GetDetail() in GetDetail() 56 std::vector<std::string> Table::GetHeader() in GetHeader() 61 std::vector<std::vector<std::string>> Table::GetRecord() in GetRecord()
|
/test/xts/acts/distributed_schedule_lite/distributed_schedule_posix/src/ |
H A D | MsgParserLenFuncTest.cpp | 68 std::string tLenStr = GetStringByLen(BYTE_CAPA - 1); // - \0
in HWTEST_F() 69 std::string bundleName = tLenStr;
in HWTEST_F() 70 std::string abilityName = tLenStr;
in HWTEST_F() 71 std::string signature = tLenStr;
in HWTEST_F() 102 std::string tLenStr = GetStringByLen(BYTE_CAPA);
in HWTEST_F() 103 std::string bundleName = tLenStr;
in HWTEST_F() 104 std::string abilityName = tLenStr;
in HWTEST_F() 105 std::string signature = tLenStr;
in HWTEST_F() 135 std::string bundleName = GetStringByLen(NODE_MAX_LENGTH);
in HWTEST_F() 136 std::string abilityNam in HWTEST_F() [all...] |
/test/xts/hats/kernel/prctl/ |
H A D | PrctlApiTest.cpp | 24 #include <string> 30 #include <string> 66 static bool handle_error(const std::string &msg) in handle_error() 72 static std::vector<std::string> str_split(const std::string &s, const std::string &delimiters) in str_split() 77 std::vector<std::string> result; in str_split() 92 static bool read_fd_to_string(const std::string &path, std::string *content) in read_fd_to_string() 127 std::string file_dat in SetVmaAnonName() [all...] |
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/ |
H A D | It_process_plimits_ipc_008.cpp | 44 std::string plimitsPath = "/proc/plimits/test"; in ItProcessPlimitsIpc008() 45 std::string configFileMqCount = "/proc/plimits/test/ipc.mq_limit"; in ItProcessPlimitsIpc008() 46 std::string mqLimitCount_0 = "111*"; in ItProcessPlimitsIpc008() 47 std::string mqLimitCount_1 = "123abc"; in ItProcessPlimitsIpc008() 48 std::string mqLimitCount_2 = "\"123 456\""; in ItProcessPlimitsIpc008() 49 std::string mqLimitCount_3 = "\123"; in ItProcessPlimitsIpc008() 50 std::string mqLimitCount_4 = "10000000000000000000000000000000001"; in ItProcessPlimitsIpc008() 51 std::string mqLimitCount_5 = "\1\2\3"; in ItProcessPlimitsIpc008()
|
H A D | It_process_plimits_ipc_012.cpp | 44 std::string plimitsPath = "/proc/plimits/test"; in ItProcessPlimitsIpc012() 45 std::string configFileShmSize = "/proc/plimits/test/ipc.shm_limit"; in ItProcessPlimitsIpc012() 46 std::string shmLimitSize_0 = "111*"; in ItProcessPlimitsIpc012() 47 std::string shmLimitSize_1 = "123abc"; in ItProcessPlimitsIpc012() 48 std::string shmLimitSize_2 = "\"123 456\""; in ItProcessPlimitsIpc012() 49 std::string shmLimitSize_3 = "\123"; in ItProcessPlimitsIpc012() 50 std::string shmLimitSize_4 = "10000000000000000000000000000000001"; in ItProcessPlimitsIpc012() 51 std::string shmLimitSize_5 = "\1\2\3"; in ItProcessPlimitsIpc012()
|
/test/ostest/wukong/test_flow/include/ |
H A D | special_test_flow.h | 19 #include <string> 45 virtual const struct option *GetOptionArguments(std::string &shortOpts) override; 90 ErrCode CheckPosition(std::vector<std::string> argumentlist); 116 std::string specialRecordName_; 119 std::vector<std::string> touchParam_; 122 std::vector<std::string> swapStartPoint_; 125 std::vector<std::string> bundleName_; 128 std::vector<std::string> swapEndPoint_;
|
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/datepicker/ |
H A D | datepicker_selected_test.cpp | 22 ArkUI_AttributeItem value_item = {.string = "2024-5-1"}; in TestDatePickerSelected001() 25 ASSERT_STREQ(nodeAPI->getAttribute(datePicker, NODE_DATE_PICKER_SELECTED)->string, "2024-5-1"); in TestDatePickerSelected001() 32 ArkUI_AttributeItem value_item = {.string = ""}; in TestDatePickerSelected002() 35 ASSERT_STRNE(nodeAPI->getAttribute(datePicker, NODE_DATE_PICKER_SELECTED)->string, ""); in TestDatePickerSelected002() 42 ArkUI_AttributeItem value_item = {.string = "1111-1-1"}; in TestDatePickerSelected003() 45 ASSERT_STRNE(nodeAPI->getAttribute(datePicker, NODE_DATE_PICKER_SELECTED)->string, "1111-1-1"); in TestDatePickerSelected003() 52 ArkUI_AttributeItem value_item = {.string = "9999-1-1"}; in TestDatePickerSelected004() 55 ASSERT_STRNE(nodeAPI->getAttribute(datePicker, NODE_DATE_PICKER_SELECTED)->string, "9999-1-1"); in TestDatePickerSelected004()
|
/test/xts/acts/distributed_schedule_lite/distributed_schedule_posix/src/utils/ |
H A D | dms_packet.h | 20 #include <string>
37 std::string calleePkgName;
38 std::string calleeAbilityName;
39 std::string callerSignature;
41 DmsMsgInfo(DMSLITE_COMMAND cmdId, std::string pkgName, std::string abilityName, std::string callerSignature)
in DmsMsgInfo() 54 bool MarshallStringField(const std::string& field, MSG_TYPE_SEQ type, uint16_t& dataLength);
57 bool StringToHex(const std::string& stringValue);
|
/test/testfwk/arkxtest/uitest/cj/ |
H A D | uitest_ffi.cpp | 26 #include <string> 46 static queue<string> g_backendObjsAboutToDelete; 52 char *MallocCString(const string &origin) in MallocCString() 76 OHOS::testserver::TestServerClient::GetInstance().SetPasteData(string(text)); in SetPasteBoardData() 84 if (paramList.at(INDEX_ZERO).type() == nlohmann::detail::value_t::string) { in PreprocessTransaction() 85 SetPasteBoardData(paramList.at(INDEX_ZERO).get<string>()); in PreprocessTransaction() 88 if (paramList.at(INDEX_ONE).type() == nlohmann::detail::value_t::string) { in PreprocessTransaction() 89 SetPasteBoardData(paramList.at(INDEX_ONE).get<string>()); in PreprocessTransaction() 92 if (paramList.size() < 1 || paramList.at(0).type() != nlohmann::detail::value_t::string) { in PreprocessTransaction() 97 auto path = paramList.at(INDEX_ZERO).get<string>(); in PreprocessTransaction() [all...] |