/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/ |
H A D | my_xcomponent.cpp | 78 std::string id(idStr); in OnSurfaceCreatedCB() 109 std::string id(idStr); in OnSurfaceDestroyedCB() 395 DRAWING_LOGI("ID = %{public}s", idStr); in NapiSetTestCount() 396 std::string id(idStr); in NapiSetTestCount() 446 std::string id(idStr); in NapiGetTime() 507 std::string id(idStr); in NapiGetTestNames() 561 std::string id(idStr); in NapiFunctionCpu() 613 std::string id(idStr); in NapiStabilityCpu() 665 std::string id(idStr); in NapiFunctionGpu() 719 std::string id(idStr); in NapiPerformanceCpu() [all …]
|
/ohos5.0/base/msdp/device_status/utils/common/src/ |
H A D | utility.cpp | 121 std::string idStr(id); in Anonymize() local 122 if (idStr.empty() || idStr.length() < SUBSTR_ID_LENGTH) { in Anonymize() 125 return idStr.substr(0, SUBSTR_ID_LENGTH) + std::string(SUBSTR_ID_LENGTH, '*') + in Anonymize() 126 idStr.substr(idStr.length() - SUBSTR_ID_LENGTH); in Anonymize() 134 std::string idStr(id); in DragRadarAnonymize() local 135 if (idStr.empty() || idStr.length() < SUBSTR_ID_LENGTH) { in DragRadarAnonymize() 138 return idStr.substr(0, SUBSTR_ID_LENGTH) + std::string(DRAG_RADAR_MASK_SIZE, '*') + in DragRadarAnonymize() 139 idStr.substr(idStr.length() - SUBSTR_ID_LENGTH); in DragRadarAnonymize()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/opengl/test_eglCreateWindowSurface/entry/src/main/cpp/render/ |
H A D | plugin_render.cpp | 38 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = { '\0' }; in OnSurfaceCreatedCB() local 40 …if (OH_NativeXComponent_GetXComponentId(component, idStr, &idSize) != OH_NATIVEXCOMPONENT_RESULT_S… in OnSurfaceCreatedCB() 46 std::string id(idStr); in OnSurfaceCreatedCB() 65 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = { '\0' }; in OnSurfaceDestroyedCB() local 67 …if (OH_NativeXComponent_GetXComponentId(component, idStr, &idSize) != OH_NATIVEXCOMPONENT_RESULT_S… in OnSurfaceDestroyedCB() 73 std::string id(idStr); in OnSurfaceDestroyedCB() 125 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = {'\0'}; in NapiDrawRectangle() local 127 …if (OH_NativeXComponent_GetXComponentId(nativeXComponent, idStr, &idSize) != OH_NATIVEXCOMPONENT_R… in NapiDrawRectangle() 133 std::string id(idStr); in NapiDrawRectangle()
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/app_network_speed_limit/ |
H A D | speed_limit_configs_writer.cpp | 81 char idStr[MAX_ARRAY_LENGTH]; in SetUidPids() local 87 … ret = snprintf_s(tempStr, sizeof(tempStr), MAX_ARRAY_LENGTH - 1, "%s;%d", idStr, idArray[i]); in SetUidPids() 94 if (strcpy_s(idStr, sizeof(idStr), tempStr) != 0) { in SetUidPids() 99 int len = strlen(idStr); in SetUidPids() 110 if (write(fd, idStr, len) != len) { in SetUidPids()
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/ |
H A D | module.cpp | 73 string idStr; in Export() local 75 bool succ = Util::GetContextInfo(env, exports, idStr, vec); in Export() 88 … static_cast<WebGL2RenderingContext *>(ObjectManager::GetInstance().GetWebGLContext(true, idStr)); in Export() 94 ObjectManager::GetInstance().AddWebGLObject(true, idStr, webGl2RenderingContext); in Export() 101 … static_cast<WebGLRenderingContext *>(ObjectManager::GetInstance().GetWebGLContext(false, idStr)); in Export() 107 ObjectManager::GetInstance().AddWebGLObject(false, idStr, webGlRenderingContext); in Export()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/opengl/test_xComponentContext/entry/src/main/cpp/samples/ |
H A D | sample_bitmap.cpp | 213 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = {'\0'}; in NapiDrawPattern() local 215 …if (OH_NativeXComponent_GetXComponentId(nativeXComponent, idStr, &idSize) != OH_NATIVEXCOMPONENT_R… in NapiDrawPattern() 218 DRAWING_LOGI("ID = %{public}s", idStr); in NapiDrawPattern() 219 std::string id(idStr); in NapiDrawPattern() 297 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = {'\0'}; in OnSurfaceCreatedCB() local 299 …if (OH_NativeXComponent_GetXComponentId(component, idStr, &idSize) != OH_NATIVEXCOMPONENT_RESULT_S… in OnSurfaceCreatedCB() 302 std::string id(idStr); in OnSurfaceCreatedCB() 326 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = {'\0'}; in OnSurfaceDestroyedCB() local 328 …if (OH_NativeXComponent_GetXComponentId(component, idStr, &idSize) != OH_NATIVEXCOMPONENT_RESULT_S… in OnSurfaceDestroyedCB() 331 std::string id(idStr); in OnSurfaceDestroyedCB()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/xcomponent/resource/ |
H A D | native_texture.cpp | 56 void NativeTexture::Create(const std::function<void(int64_t)>& onCreate, const std::string& idStr) in Create() argument 66 platformTaskExecutor.PostTask([weak = WeakClaim(this), onCreate, idStr] { in Create() 69 texture->CreateTexture(onCreate, idStr); in Create() 74 …ativeTexture::CreateTexture(const std::function<void(int64_t)>& onCreate, const std::string& idStr) in CreateTexture() argument 84 XCOMPONENT_PARAM_AND << "id" << XCOMPONENT_PARAM_EQUALS << idStr; in CreateTexture()
|
H A D | native_texture.h | 32 void Create(const std::function<void(int64_t)>& onCreate, const std::string& idStr); 33 void CreateTexture(const std::function<void(int64_t)>& onCreate, const std::string& idStr);
|
/ohos5.0/docs/zh-cn/application-dev/graphics/ |
H A D | displaysoloist-native-guidelines.md | 133 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = {'\0'}; 135 …if (OH_NativeXComponent_GetXComponentId(nativeXComponent, idStr, &idSize) != OH_NATIVEXCOMPONENT_R… 140 std::string id(idStr); 170 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = {'\0'}; 172 …if (OH_NativeXComponent_GetXComponentId(component, idStr, &idSize) != OH_NATIVEXCOMPONENT_RESULT_S… 177 std::string id(idStr); 232 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = {'\0'}; 234 …if (OH_NativeXComponent_GetXComponentId(nativeXComponent, idStr, &idSize) != OH_NATIVEXCOMPONENT_R… 238 SAMPLE_LOGI("RegisterID = %{public}s", idStr); 239 std::string id(idStr);
|
H A D | drawing-guidelines.md | 138 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = {'\0'}; 145 std::string id(idStr); 166 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = {'\0'}; 168 …if (OH_NativeXComponent_GetXComponentId(component, idStr, &idSize) != OH_NATIVEXCOMPONENT_RESULT_S… 172 std::string id(idStr); 189 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = {'\0'}; 191 …if (OH_NativeXComponent_GetXComponentId(component, idStr, &idSize) != OH_NATIVEXCOMPONENT_RESULT_S… 195 std::string id(idStr); 590 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = {'\0'}; 592 …if (OH_NativeXComponent_GetXComponentId(component, idStr, &idSize) != OH_NATIVEXCOMPONENT_RESULT_S… [all …]
|
/ohos5.0/foundation/ability/ability_runtime/js_environment/frameworks/js_environment/src/ |
H A D | js_environment.cpp | 376 std::string idStr = option.substr(pos + 1); in ParseHdcRegisterOption() local 377 pos = idStr.find(DEBUGGER); in ParseHdcRegisterOption() 381 idStr = idStr.substr(0, pos); in ParseHdcRegisterOption() 382 pos = idStr.find("@"); in ParseHdcRegisterOption() 384 idStr = idStr.substr(pos + 1); in ParseHdcRegisterOption() 386 return std::atoi(idStr.c_str()); in ParseHdcRegisterOption()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_manager/src/ |
H A D | media_library_tab_old_photos_client.cpp | 106 std::string idStr = uri.substr(lastSlashPos + 1); in BuildPredicates() local 107 predicates.Or()->EqualTo(TabOldPhotosColumn::MEDIA_OLD_ID, idStr); in BuildPredicates() 170 std::string idStr = uri.substr(lastSlashPos + 1); in Parse() local 171 …if (!(!idStr.empty() && std::all_of(idStr.begin(), idStr.end(), ::isdigit)) || !StoiBoundCheck(idS… in Parse() 176 obj.oldFileId = std::stoi(idStr); in Parse()
|
/ohos5.0/base/global/i18n_lite/frameworks/i18n/src/ |
H A D | locale_info.cpp | 59 std::string idStr(language); in InitIdstr() local 62 idStr = idStr + "-" + script; in InitIdstr() 65 idStr = idStr + "-" + region; in InitIdstr() 68 id = NewArrayAndCopy(idStr.data(), idStr.size()); in InitIdstr()
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | napi-xcomponent-guidelines.md | 165 std::string id(idStr); 264 std::string id(idStr); 290 std::string id(idStr); 311 std::string id(idStr); 329 std::string id(idStr); 348 std::string id(idStr); 367 std::string id(idStr); 386 std::string id(idStr); 405 std::string id(idStr); 423 std::string id(idStr); [all …]
|
/ohos5.0/foundation/distributeddatamgr/udmf/adapter/framework/common/ |
H A D | udmf_utils.cpp | 55 std::stringstream idStr; in GenerateId() local 59 idStr << static_cast<uint8_t>(asc); in GenerateId() 61 return idStr.str(); in GenerateId()
|
/ohos5.0/base/account/os_account/services/accountmgr/include/osaccount/ |
H A D | os_account_control_file_manager.h | 79 ErrCode UpdateBaseOAConstraints(const std::string& idStr, 81 ErrCode UpdateGlobalOAConstraints(const std::string& idStr, 83 ErrCode UpdateSpecificOAConstraints(const std::string& idStr, 100 ErrCode UpdateAccountList(const std::string &idStr, bool isAdd); 112 void GlobalConstraintsDataOperate(const std::string& idStr, 114 void SpecificConstraintsDataOperate(const std::string& idStr, const std::string& targetIdStr,
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | ark_js_runtime.cpp | 133 std::string idStr = option.substr(pos + 1); in ParseHdcRegisterOption() local 134 if (idStr.find(DEBUGGER) == std::string::npos) { in ParseHdcRegisterOption() 137 pos = idStr.find(DEBUGGER); in ParseHdcRegisterOption() 138 idStr = idStr.substr(0, pos); in ParseHdcRegisterOption() 139 if (idStr.find("@") != std::string::npos) { in ParseHdcRegisterOption() 140 pos = idStr.find("@"); in ParseHdcRegisterOption() 141 idStr = idStr.substr(pos + 1); in ParseHdcRegisterOption() 143 return static_cast<uint32_t>(std::atol(idStr.c_str())); in ParseHdcRegisterOption()
|
/ohos5.0/foundation/distributeddatamgr/udmf/framework/common/ |
H A D | udmf_utils.cpp | 57 std::stringstream idStr; in GenerateId() local 61 idStr << static_cast<uint8_t>(asc); in GenerateId() 63 return idStr.str(); in GenerateId()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/plugin/ |
H A D | plugin_manager.cpp | 68 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = {'\0'}; in Export() local 70 …if (OH_NativeXComponent_GetXComponentId(nativeXComponent, idStr, &idSize) != OH_NATIVEXCOMPONENT_R… in Export() 75 std::string id(idStr); in Export()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/opengl/test_eglCreateWindowSurface/entry/src/main/cpp/manager/ |
H A D | plugin_manager.cpp | 66 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = { '\0' }; in Export() local 68 …if (OH_NativeXComponent_GetXComponentId(nativeXComponent, idStr, &idSize) != OH_NATIVEXCOMPONENT_R… in Export() 74 std::string id(idStr); in Export()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_relative_container_modifier.cpp | 30 std::string idStr(values[i].id); in SetGuideLine() local 31 info.id = idStr; in SetGuideLine() 58 std::string idStr(values[i].id); in SetBarrier() local 59 info.id = idStr; in SetBarrier()
|
/ohos5.0/docs/en/application-dev/graphics/ |
H A D | displaysoloist-native-guidelines.md | 134 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = {'\0'}; 136 …if (OH_NativeXComponent_GetXComponentId(nativeXComponent, idStr, &idSize) != OH_NATIVEXCOMPONENT_R… 141 std::string id(idStr); 171 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = {'\0'}; 173 …if (OH_NativeXComponent_GetXComponentId(component, idStr, &idSize) != OH_NATIVEXCOMPONENT_RESULT_S… 178 std::string id(idStr); 233 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = {'\0'}; 235 …if (OH_NativeXComponent_GetXComponentId(nativeXComponent, idStr, &idSize) != OH_NATIVEXCOMPONENT_R… 239 SAMPLE_LOGI("RegisterID = %{public}s", idStr); 240 std::string id(idStr);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/opengl/test_xComponentContext/entry/src/main/cpp/plugin/ |
H A D | plugin_manager.cpp | 88 char idStr[OH_XCOMPONENT_ID_LEN_MAX + 1] = {'\0'}; in Export() local 90 …if (OH_NativeXComponent_GetXComponentId(nativeXComponent, idStr, &idSize) != OH_NATIVEXCOMPONENT_R… in Export() 94 std::string id(idStr); in Export()
|
/ohos5.0/base/account/os_account/services/accountmgr/src/osaccount/ |
H A D | os_account_control_file_manager.cpp | 461 for (const auto &idStr : idStrList) { in GetOsAccountIdList() local 463 if (!StrToInt(idStr, id)) { in GetOsAccountIdList() 559 if (baseOAConstraintsJson.find(idStr) == baseOAConstraintsJson.end()) { in UpdateBaseOAConstraints() 563 baseOAConstraintsJson.emplace(idStr, ConstraintStr); in UpdateBaseOAConstraints() 579 baseOAConstraintsJson[idStr] = baseOAConstraints; in UpdateBaseOAConstraints() 632 constraintSourceList.end(), idStr) == constraintSourceList.end()) { in GlobalConstraintsDataOperate() 633 constraintSourceList.emplace_back(idStr); in GlobalConstraintsDataOperate() 639 constraintSourceList.emplace_back(idStr); in GlobalConstraintsDataOperate() 710 constraintSourceList.emplace_back(idStr); in SpecificConstraintsDataOperate() 716 constraintSourceList.emplace_back(idStr); in SpecificConstraintsDataOperate() [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/common/src/ |
H A D | sandbox_helper.cpp | 243 string idStr; in GetFileIdFromFileName() local 245 ss >> mediaType >> dateTime >> idStr >> other; in GetFileIdFromFileName() 246 if (idStr.empty()) { in GetFileIdFromFileName() 250 if (!std::all_of(idStr.begin(), idStr.end(), ::isdigit)) { in GetFileIdFromFileName() 254 return std::stoi(idStr); in GetFileIdFromFileName()
|