Home
last modified time | relevance | path

Searched refs:keyStr (Results 1 - 25 of 80) sorted by relevance

1234

/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/
H A Djsi_stepper_bridge.cpp40 std::string keyStr = key->ToString(runtime); in GetAttrLabel() local
48 if (keyStr == DOM_STEPPER_LEFT_LABEL) { in GetAttrLabel()
50 } else if (keyStr == DOM_STEPPER_RIGHT_LABEL) { in GetAttrLabel()
52 } else if (keyStr == DOM_STEPPER_INITIAL_STATUS) { in GetAttrLabel()
H A Djsi_chart_bridge.cpp41 std::string keyStr = key->ToString(runtime); in GetAttrOptionsAxis() local
59 auto iter = BinarySearchFindIndex(chartOptionsAxisMap, ArraySize(chartOptionsAxisMap), keyStr.c_str()); in GetAttrOptionsAxis()
84 std::string keyStr = key->ToString(runtime); in GetAttrOptionsSeriesPoint() local
113 auto iter = BinarySearchFindIndex(chartOptionsPointMap, ArraySize(chartOptionsPointMap), keyStr.c_str()); in GetAttrOptionsSeriesPoint()
137 std::string keyStr = key->ToString(runtime); in GetChartAttrOptionsSeriesLineStyle() local
156 chartOptionsSeriesLineStyleMap, ArraySize(chartOptionsSeriesLineStyleMap), keyStr.c_str()); in GetChartAttrOptionsSeriesLineStyle()
181 std::string keyStr = key->ToString(runtime); in GetChartAttrOptionsSeriesLoop() local
198 BinarySearchFindIndex(chartOptionsSeriesLoopMap, ArraySize(chartOptionsSeriesLoopMap), keyStr.c_str()); in GetChartAttrOptionsSeriesLoop()
222 std::string keyStr = key->ToString(runtime); in GetChartAttrOptionsSeries() local
265 auto iter = BinarySearchFindIndex(chartOptionsSeriesMap, ArraySize(chartOptionsSeriesMap), keyStr in GetChartAttrOptionsSeries()
331 std::string keyStr = key->ToString(runtime); ParseAttrDataStyle() local
413 std::string keyStr = key->ToString(runtime); GetAttrDataset() local
449 std::string keyStr = key->ToString(runtime); ParseAttrSegment() local
489 std::string keyStr = key->ToString(runtime); GetAttrOptionsObject() local
[all...]
H A Djsi_input_bridge.cpp36 std::string keyStr = key->ToString(runtime); in GetInputOption() local
37 if (keyStr.empty()) { in GetInputOption()
46 if (strcmp(keyStr.c_str(), DOM_INPUT_OPTION_ICON) == 0) { in GetInputOption()
48 } else if (strcmp(keyStr.c_str(), DOM_INPUT_OPTION_CONTENT) == 0) { in GetInputOption()
H A Djsi_badge_bridge.cpp39 std::string keyStr = key->ToString(runtime); in ParseBadgeConfig() local
67 BinarySearchFindIndex(badgeConfigOperators, ArraySize(badgeConfigOperators), keyStr.c_str()); in ParseBadgeConfig()
H A Djsi_clock_bridge.cpp39 std::string keyStr = key->ToString(runtime); in ParseClockConfig() local
99 BinarySearchFindIndex(clockConfigOperators, ArraySize(clockConfigOperators), keyStr.c_str()); in ParseClockConfig()
/foundation/ability/dmsfwk/services/dtbschedmgr/src/mission/
H A Ddistributed_data_change_listener.cpp69 string keyStr = GetAnonymStr(keyInfo->uuid) + "_" + to_string(keyInfo->missionId); in OnChange() local
70 HILOGI("insertEntries Key:%{public}s, Value:%{public}s", keyStr.c_str(), entry.value.ToString().c_str()); in OnChange()
84 string keyStr = GetAnonymStr(keyInfo->uuid) + "_" + to_string(keyInfo->missionId); in OnChange() local
85 HILOGI("deleteEntries Key:%{public}s, Value:%{public}s", keyStr.c_str(), entry.value.ToString().c_str()); in OnChange()
95 string keyStr = GetAnonymStr(keyInfo->uuid) + "_" + to_string(keyInfo->missionId); in OnChange() local
96 HILOGI("updateEntries Key:%{public}s, Value:%{public}s", keyStr.c_str(), entry.value.ToString().c_str()); in OnChange()
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/src/
H A Dnapi_values_bucket.cpp58 std::string keyStr = JSUtils::Convert2String(env, key); in NAPI_OHOS_Data_RdbJsKit_ValuesBucketProxy_GetNativeObject() local
65 valuesBucket->PutString(keyStr, valueString); in NAPI_OHOS_Data_RdbJsKit_ValuesBucketProxy_GetNativeObject()
69 valuesBucket->PutDouble(keyStr, valueNumber); in NAPI_OHOS_Data_RdbJsKit_ValuesBucketProxy_GetNativeObject()
73 valuesBucket->PutBool(keyStr, valueBool); in NAPI_OHOS_Data_RdbJsKit_ValuesBucketProxy_GetNativeObject()
75 valuesBucket->PutNull(keyStr); in NAPI_OHOS_Data_RdbJsKit_ValuesBucketProxy_GetNativeObject()
79 valuesBucket->PutBlob(keyStr, val); in NAPI_OHOS_Data_RdbJsKit_ValuesBucketProxy_GetNativeObject()
/foundation/communication/dsoftbus/tests/core/adapter/unittest/
H A Dlnn_kv_adapter_wrapper_test.cpp78 string keyStr = "aaa"; in HWTEST_F() local
80 EXPECT_EQ(LnnPutDBData(dbId, keyStr.c_str(), 3, valueStr.c_str(), 3), SOFTBUS_OK); in HWTEST_F()
82 EXPECT_EQ(LnnPutDBData(dbId, keyStr.c_str(), MAX_STRING_LEN, valueStr.c_str(), MAX_STRING_LEN), in HWTEST_F()
85 EXPECT_EQ(LnnPutDBData(dbId, keyStr.c_str(), MAX_STRING_LEN, valueStr.c_str(), MAX_STRING_LEN), in HWTEST_F()
87 EXPECT_EQ(LnnPutDBData(dbId, keyStr.c_str(), MAX_STRING_LEN, valueStr.c_str(), MAX_STRING_LEN + 1), in HWTEST_F()
89 EXPECT_EQ(LnnPutDBData(dbId, keyStr.c_str(), MAX_STRING_LEN, valueStr.c_str(), MIN_STRING_LEN - 1), in HWTEST_F()
92 EXPECT_EQ(LnnPutDBData(dbId, keyStr.c_str(), MAX_STRING_LEN, valuePtr, MIN_STRING_LEN - 1), in HWTEST_F()
94 EXPECT_EQ(LnnPutDBData(dbId, keyStr.c_str(), MAX_STRING_LEN + 1, valuePtr, MIN_STRING_LEN - 1), in HWTEST_F()
96 EXPECT_EQ(LnnPutDBData(dbId, keyStr.c_str(), MIN_STRING_LEN - 1, valuePtr, MIN_STRING_LEN - 1), in HWTEST_F()
111 string keyStr in HWTEST_F() local
138 string keyStr = "aa11"; HWTEST_F() local
169 string keyStr = "aaa"; HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Daccessibility_property_helper.h31 * @param keyStr The key of extraElementValueStr.
34 int32_t SetExtraElementInfo(const std::string& keyStr, const std::string& valueStr) in SetExtraElementInfo() argument
41 * @param keyStr The key of extraElementValueInt.
44 int32_t SetExtraElementInfo(const std::string keyStr, const int32_t valueInt) in SetExtraElementInfo() argument
/foundation/arkui/ace_engine/adapter/ohos/services/uiservice/src/
H A Dui_mgr_service.cpp198 std::string keyStr = GetCallBackKeyStr(want); in HandleRegister() local
199 bool exist = CheckCallBackFromMap(keyStr); in HandleRegister()
201 callbackMap_.erase(keyStr); in HandleRegister()
203 callbackMap_.emplace(keyStr, uiService); in HandleRegister()
210 std::string keyStr = GetCallBackKeyStr(want); in HandleUnregister() local
211 bool exist = CheckCallBackFromMap(keyStr); in HandleUnregister()
215 callbackMap_.erase(keyStr); in HandleUnregister()
223 std::string keyStr = bundleName; in GetCallBackKeyStr() local
224 return keyStr; in GetCallBackKeyStr()
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
H A Dlnn_lane_common.c198 char keyStr[UINT_TO_STR_MAX_LEN] = {0}; in LnnCreateData() local
199 if (sprintf_s(keyStr, UINT_TO_STR_MAX_LEN, "%u", key) < 0) { in LnnCreateData()
203 int32_t ret = LnnMapSet(map, (const char *)keyStr, value, valueSize); in LnnCreateData()
213 char keyStr[UINT_TO_STR_MAX_LEN] = {0}; in LnnReadData() local
214 if (sprintf_s(keyStr, UINT_TO_STR_MAX_LEN, "%u", key) < 0) { in LnnReadData()
218 void *data = LnnMapGet(map, (const char *)keyStr); in LnnReadData()
224 char keyStr[UINT_TO_STR_MAX_LEN] = {0}; in LnnDeleteData() local
225 if (sprintf_s(keyStr, UINT_TO_STR_MAX_LEN, "%u", key) < 0) { in LnnDeleteData()
229 if (LnnMapErase(map, (const char *)keyStr) != SOFTBUS_OK) { in LnnDeleteData()
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/protocol/
H A Djson_protocol.cpp35 auto keyStr = NegotiateMessage::keyStringTable_[NegotiateMessageKey(key)]; in Write() local
38 jsonObject_[keyStr] = *(bool *)value; in Write()
41 jsonObject_[keyStr] = *(int32_t *)value; in Write()
44 jsonObject_[keyStr] = (char *)value; in Write()
/foundation/communication/dsoftbus/core/adapter/bus_center/src/
H A Dlnn_kv_adapter_wrapper.cpp130 std::string keyStr(key, keyLen); in LnnPutDBData()
137 putRet = kvAdapter->Put(keyStr, valueStr); in LnnPutDBData()
157 std::string keyStr(key, keyLen); in LnnDeleteDBData()
163 deleteRet = kvAdapter->Delete(keyStr); in LnnDeleteDBData()
184 std::string keyStr(key, keyLen); in LnnGetDBData()
190 getRet = kvAdapter->Get(keyStr, valueStr); in LnnGetDBData()
/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dace_trace.cpp97 std::string keyStr(key); in AceCountTrace()
98 CountTrace(HITRACE_TAG_ACE, keyStr, count); in AceCountTrace()
/foundation/distributeddatamgr/data_share/frameworks/js/napi/common/src/
H A Dnapi_datashare_values_bucket.cpp61 std::string keyStr = DataShareJSUtils::UnwrapStringFromJS(env, key); in UnWrapValuesBucket() local
71 valuesBucket.Put(keyStr, valueObject); in UnWrapValuesBucket()
/foundation/ability/ability_base/test/unittest/want/
H A Dwant_params_test.cpp81 std::string keyStr = "12345667"; in HWTEST_F() local
83 wantParamsIn_->SetParam(keyStr, String::Box(valueStr)); in HWTEST_F()
89 EXPECT_EQ(valueStr, String::Unbox(IString::Query(wantParamsOut_->GetParam(keyStr)))); in HWTEST_F()
100 std::string keyStr = "12345667"; in HWTEST_F() local
102 wantParamsIn_->SetParam(keyStr, Boolean::Box(valueBool)); in HWTEST_F()
108 EXPECT_EQ(valueBool, Boolean::Unbox(IBoolean::Query(wantParamsOut_->GetParam(keyStr)))); in HWTEST_F()
119 std::string keyStr = "12345667"; in HWTEST_F() local
121 wantParamsIn_->SetParam(keyStr, Integer::Box(valueInteger)); in HWTEST_F()
122 int right = Integer::Unbox(IInteger::Query(wantParamsIn_->GetParam(keyStr))); in HWTEST_F()
128 right = Integer::Unbox(IInteger::Query(wantParamsOut_->GetParam(keyStr))); in HWTEST_F()
142 std::string keyStr = "12345667"; HWTEST_F() local
1117 std::string keyStr = "vlan"; HWTEST_F() local
1246 std::string keyStr = "FD"; HWTEST_F() local
[all...]
H A Dskills_test.cpp90 std::string keyStr = "12345667"; in HWTEST_F() local
92 wantParams.SetParam(keyStr, Boolean::Box(valueBool)); in HWTEST_F()
100 EXPECT_EQ(valueBool, Boolean::Unbox(IBoolean::Query(SkillsOut_->GetWantParams().GetParam(keyStr)))); in HWTEST_F()
124 std::string keyStr = "@#¥#3243adsafdf_中文"; in HWTEST_F() local
126 wantParams.SetParam(keyStr, Long::Box(valueLong)); in HWTEST_F()
127 EXPECT_EQ(valueLong, Long::Unbox(ILong::Query(wantParams.GetParam(keyStr)))); in HWTEST_F()
137 long result = Long::Unbox(ILong::Query(SkillsOut_->GetWantParams().GetParam(keyStr))); in HWTEST_F()
162 std::string keyStr = ""; in HWTEST_F() local
164 wantParams.SetParam(keyStr, Integer::Box(valueInt)); in HWTEST_F()
167 EXPECT_EQ(valueInt, Integer::Unbox(IInteger::Query(wantParams.GetParam(keyStr)))); in HWTEST_F()
212 std::string keyStr = "12345667"; HWTEST_F() local
1215 std::string keyStr = std::get<0>(GetParam()); HWTEST_P() local
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/
H A Ddistributeddb_cloud_kv_test.cpp924 std::string keyStr = "k_" + std::to_string(i); in HWTEST_F() local
926 Key key(keyStr.begin(), keyStr.end()); in HWTEST_F()
939 std::string keyStr = "k_" + std::to_string(i); in HWTEST_F() local
941 Key key(keyStr.begin(), keyStr.end()); in HWTEST_F()
1416 std::string keyStr = "k_" + std::to_string(i); in HWTEST_F() local
1418 Key key(keyStr.begin(), keyStr.end()); in HWTEST_F()
1521 std::string keyStr in HWTEST_F() local
1872 std::string keyStr = "k_" + std::to_string(i); HWTEST_F() local
1933 std::string keyStr = "k_" + std::to_string(i); HWTEST_F() local
2045 std::string keyStr = "k_" + std::to_string(i); HWTEST_F() local
2140 std::string keyStr = "k_" + std::to_string(i); HWTEST_F() local
2232 std::string keyStr = "k_" + std::to_string(i); HWTEST_F() local
2257 std::string keyStr = "k_" + std::to_string(i); HWTEST_F() local
2270 std::string keyStr = "k_" + std::to_string(i); HWTEST_F() local
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/oh_adapter/src/
H A Dsqlite_store_executor_impl.cpp229 void AssignValueToData(std::string &keyStr, const std::string &valueStr, std::pair<std::string, std::string> &values, in AssignValueToData() argument
232 keyStr.pop_back(); // get id from really key. in AssignValueToData()
233 values.first = keyStr; in AssignValueToData()
252 std::string keyStr(key.begin(), key.end()); in GetDataByFilter()
265 std::string keyStr(keyResult.begin(), keyResult.end()); in GetDataByFilter()
274 (void)AssignValueToData(keyStr, valueStr, values, innerErrorCode, isMatchOneData); in GetDataByFilter()
/foundation/graphic/graphic_surface/surface/test/fuzztest/surfacebuffer_fuzzer/
H A Dsurfacebuffer_fuzzer.cpp102 std::string keyStr = GetStringFromData(STR_LEN); in DoSomethingInterestingWithMyAPI()
116 bedata->ExtraSet(keyStr, valueStr); in DoSomethingInterestingWithMyAPI()
/foundation/communication/netstack/frameworks/js/builtin/fetch/src/
H A Dfetch_module.cpp111 std::unique_ptr<char, decltype(&FreeString)> keyStr(JSI::ValueToString(key.get()), FreeString); in GetNameValue()
112 if (keyStr == nullptr) { in GetNameValue()
117 std::unique_ptr<char, decltype(&FreeString)> valStr(JSI::GetStringProperty(nv, keyStr.get()), FreeString); in GetNameValue()
123 map[keyStr.get()] = valStr.get(); in GetNameValue()
/foundation/ability/ability_runtime/frameworks/js/napi/featureAbility/
H A Dnapi_data_ability_helper.cpp268 std::string keyStr = UnwrapStringFromJS(env, key); in AnalysisValuesBucket() local
272 SetValuesBucketObject(valuesBucket, env, keyStr, value); in AnalysisValuesBucket()
277 NativeRdb::ValuesBucket &valuesBucket, const napi_env &env, std::string keyStr, napi_value value) in SetValuesBucketObject()
285 keyStr.c_str(), in SetValuesBucketObject()
287 valuesBucket.PutString(keyStr, valueString); in SetValuesBucketObject()
291 valuesBucket.PutDouble(keyStr, valueNumber); in SetValuesBucketObject()
293 keyStr.c_str(), valueNumber); in SetValuesBucketObject()
298 keyStr.c_str(), valueBool); in SetValuesBucketObject()
299 valuesBucket.PutBool(keyStr, valueBool); in SetValuesBucketObject()
301 valuesBucket.PutNull(keyStr); in SetValuesBucketObject()
276 SetValuesBucketObject( NativeRdb::ValuesBucket &valuesBucket, const napi_env &env, std::string keyStr, napi_value value) SetValuesBucketObject() argument
1150 SetPacMapObject(AppExecFwk::PacMap &pacMap, const napi_env &env, std::string keyStr, napi_value value) SetPacMapObject() argument
1187 std::string keyStr = UnwrapStringFromJS(env, key); AnalysisPacMap() local
[all...]
/foundation/ability/dmsfwk/services/dtbschedmgr/test/unittest/distributedWant/
H A Ddistributed_want_params_test.cpp85 std::string keyStr = "12345667"; in HWTEST_F() local
87 wantParamsIn_->SetParam(keyStr, String::Box(valueStr)); in HWTEST_F()
92 EXPECT_EQ(valueStr, String::Unbox(IString::Query(wantParamsOut_->GetParam(keyStr)))); in HWTEST_F()
104 std::string keyStr = "12345667"; in HWTEST_F() local
106 wantParamsIn_->SetParam(keyStr, Boolean::Box(valueBool)); in HWTEST_F()
112 EXPECT_EQ(valueBool, Boolean::Unbox(IBoolean::Query(wantParamsOut_->GetParam(keyStr)))); in HWTEST_F()
124 std::string keyStr = "12345667"; in HWTEST_F() local
126 wantParamsIn_->SetParam(keyStr, Integer::Box(valueInteger)); in HWTEST_F()
127 Integer::Unbox(IInteger::Query(wantParamsIn_->GetParam(keyStr))); in HWTEST_F()
133 int right = Integer::Unbox(IInteger::Query(wantParamsOut_->GetParam(keyStr))); in HWTEST_F()
147 std::string keyStr = "12345667"; HWTEST_F() local
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_storage_encrypt_test.cpp189 string keyStr(key.begin(), key.end()); in PutValue()
191 int errCode = sqlite3_exec(g_db, ("INSERT OR REPLACE INTO data VALUES('" + keyStr + "','" + valueStr + in PutValue()
204 string keyStr(key.begin(), key.end()); in DeleteValue()
205 int errCode = sqlite3_exec(g_db, ("DELETE FROM data WHERE key='" + keyStr + "';").c_str(), nullptr, in DeleteValue()
218 string keyStr(key.begin(), key.end()); in UpdateValue()
220 int errCode = sqlite3_exec(g_db, ("INSERT OR REPLACE INTO data VALUES('" + keyStr + "','" + valueStr + in UpdateValue()
233 string keyStr(key.begin(), key.end()); in GetValue()
234 int errCode = sqlite3_exec(g_db, ("SELECT value from data WHERE key='" + keyStr + "';").c_str(), in GetValue()
/foundation/barrierfree/accessibility/frameworks/common/src/
H A Daccessibility_element_info.cpp853 RetError ExtraElementInfo::SetExtraElementInfo(const std::string keyStr, const std::string valueStr) in SetExtraElementInfo() argument
855 auto extraElementInfoIter = setOfExtraElementInfo.find(keyStr); in SetExtraElementInfo()
857 extraElementValueStr_[keyStr] = valueStr; in SetExtraElementInfo()
866 RetError ExtraElementInfo::SetExtraElementInfo(const std::string keyStr, const int32_t valueInt) in SetExtraElementInfo() argument
868 auto extraElementInfoIter = setOfExtraElementInfo.find(keyStr); in SetExtraElementInfo()
870 extraElementValueInt_[keyStr] = valueInt; in SetExtraElementInfo()

Completed in 20 milliseconds

1234