/foundation/ability/idl_tool/test/ts/unittest/ts_code_emitter_stub_test/ |
H A D | ts_code_emitter_stub_test.cpp | 80 EXPECT_NE(data.find("Copyright"), std::string::npos); in HWTEST_F() 81 EXPECT_NE(data.find("import IIdlTest"), std::string::npos); in HWTEST_F() 82 EXPECT_NE(data.find("extends rpc.RemoteObject implements IIdlTest"), std::string::npos); in HWTEST_F() 83 EXPECT_NE(data.find("voidParameterTypeVoid"), std::string::npos); in HWTEST_F() 84 EXPECT_NE(data.find("voidParameterTypeShort"), std::string::npos); in HWTEST_F() 85 EXPECT_NE(data.find("voidParameterTypeByte"), std::string::npos); in HWTEST_F() 86 EXPECT_NE(data.find("voidParameterTypeInt"), std::string::npos); in HWTEST_F() 87 EXPECT_NE(data.find("voidParameterTypeLong"), std::string::npos); in HWTEST_F() 88 EXPECT_NE(data.find("voidParameterTypeFloat"), std::string::npos); in HWTEST_F() 89 EXPECT_NE(data.find("voidParameterTypeBooleanArray"), std::string::npos); in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/pipeline/ |
H A D | rs_render_service_unit_test.cpp | 126 ASSERT_TRUE(dumpResult.find("screen") != std::string::npos);
in HWTEST_F() 129 ASSERT_TRUE(dumpResult.find("surface") != std::string::npos);
in HWTEST_F() 132 ASSERT_TRUE(dumpResult.find("fps") != std::string::npos);
in HWTEST_F() 135 ASSERT_TRUE(dumpResult.find("All Surfaces Memory Size") != std::string::npos);
in HWTEST_F() 138 ASSERT_TRUE(dumpResult.find("RenderServiceTreeDump") != std::string::npos);
in HWTEST_F() 141 ASSERT_TRUE(dumpResult.find("Node Not On Tree") != std::string::npos);
in HWTEST_F() 144 ASSERT_TRUE(dumpResult.find("RenderServiceTreeDump") != std::string::npos);
in HWTEST_F() 147 ASSERT_TRUE(dumpResult.find("EventParamList") != std::string::npos);
in HWTEST_F() 150 ASSERT_TRUE(dumpResult.find("help") != std::string::npos);
in HWTEST_F() 153 ASSERT_TRUE(dumpResult.find("trimMem") != std::string::npos);
in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/pipeline/ |
H A D | rs_render_service_test.cpp | 126 ASSERT_TRUE(dumpResult.find("screen") != std::string::npos);
in HWTEST_F() 129 ASSERT_TRUE(dumpResult.find("surface") != std::string::npos);
in HWTEST_F() 132 ASSERT_TRUE(dumpResult.find("fps") != std::string::npos);
in HWTEST_F() 135 ASSERT_TRUE(dumpResult.find("Node Not On Tree") != std::string::npos);
in HWTEST_F() 138 ASSERT_TRUE(dumpResult.find("All Surfaces Memory Size") != std::string::npos);
in HWTEST_F() 141 ASSERT_TRUE(dumpResult.find("RenderServiceTreeDump") != std::string::npos);
in HWTEST_F() 144 ASSERT_TRUE(dumpResult.find("RenderServiceTreeDump") != std::string::npos);
in HWTEST_F() 147 ASSERT_TRUE(dumpResult.find("EventParamList") != std::string::npos);
in HWTEST_F() 150 ASSERT_TRUE(dumpResult.find("help") != std::string::npos);
in HWTEST_F() 153 ASSERT_TRUE(dumpResult.find("trimMem") != std::string::npos);
in HWTEST_F() [all...] |
/foundation/ability/form_fwk/test/unittest/fms_form_mgr_dump_test/ |
H A D | fms_form_mgr_dump_test.cpp | 78 EXPECT_NE(result.find("error"), string::npos); in HWTEST_F() 98 EXPECT_NE(result.find("options list:"), string::npos); in HWTEST_F() 102 EXPECT_NE(result.find("options list:"), string::npos); in HWTEST_F() 122 EXPECT_EQ(result.find("error"), string::npos); in HWTEST_F() 126 EXPECT_EQ(result.find("error"), string::npos); in HWTEST_F() 146 EXPECT_NE(result.find("error"), string::npos); in HWTEST_F() 166 EXPECT_NE(result.find("error"), string::npos); in HWTEST_F() 186 EXPECT_EQ(result.find("error"), string::npos); in HWTEST_F() 190 EXPECT_EQ(result.find("error"), string::npos); in HWTEST_F() 230 EXPECT_EQ(result.find("error"), string::npos); in HWTEST_F() [all...] |
/foundation/multimedia/media_library/frameworks/services/media_cloud_sync_notify_handle/src/ |
H A D | cloud_sync_notify_handler.cpp | 65 if (pos == string::npos) { in HandleInsertEvent() 83 if (dateTakenPos == string::npos) { in HandleDeleteEvent() 87 if (fileIdPos == string::npos) { in HandleDeleteEvent() 108 if (newDateTakenPos == string::npos) { in HandleTimeUpdateEvent() 112 if (formerDateTakenPos == string::npos) { in HandleTimeUpdateEvent() 116 if (fileIdPos == string::npos) { in HandleTimeUpdateEvent() 164 if (uriString.find("file://cloudsync/Photo/HeightError/") != string::npos) { in MakeResponsibilityChain() 168 if (uriString.find("file://cloudsync/Photo/DownloadSuccessed/") != string::npos) { in MakeResponsibilityChain() 172 if (uriString.find(PhotoColumn::PHOTO_CLOUD_URI_PREFIX) != string::npos) { in MakeResponsibilityChain() 176 if (uriString.find("file://cloudsync/Photo/RebuildCloudData/") != string::npos) { in MakeResponsibilityChain() [all...] |
/foundation/graphic/graphic_3d/lume/LumeEcsSerializer/Util/src/util/ |
H A D | path_util.cpp | 47 if (auto p = res.find_last_of('/'); string::npos != p) { in NormalizePath() 52 if (pos == string::npos) { in NormalizePath() 59 if (pos == string::npos) { in NormalizePath() 72 if (separatorPos == string::npos) { in GetParentPath() 81 size_t queryPos = allowQueryString ? string::npos : uri.find('?'); in ResolvePath() 82 string_view path = (string::npos != queryPos) ? uri.substr(0, queryPos) : uri; in ResolvePath() 94 } else if (path.find("://") != path.npos) { in ResolvePath() 135 while (nextSeparator != string::npos) { in GetRelativePath() 160 if (string::npos != cutPos) { in GetFilename() 170 if (fileExtCut != string::npos) { in GetExtension() [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/ |
H A D | library_ohos.cpp | 67 if (filePath.find(LIB_NAME(LIB_ENGINE_CORE)) == string_view::npos && in Load() 68 filePath.find(LIB_NAME(LIB_RENDER)) == string_view::npos && in Load() 69 filePath.find(LIB_NAME(LIB_CORE3D)) == string_view::npos && in Load() 70 filePath.find("libMotPhysPlugin.z.so") == string_view::npos && in Load() 71 filePath.find("libPluginMetaObject") == string_view::npos && in Load() 72 filePath.find("libPluginSceneWidget") == string_view::npos) { in Load()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_data_manager_utils.cpp | 48 if (found != string::npos) { in GetOperationType() 59 if (lastSlashPosition != string::npos) { in GetDisPlayNameFromPath() 69 if (pos != string::npos) { in ObtionCondition() 79 if (uri.find(PhotoColumn::PHOTO_URI_PREFIX) != string::npos) { in GetTypeUriByUri() 81 } else if (uri.find(PhotoAlbumColumns::ALBUM_URI_PREFIX) != string::npos) { in GetTypeUriByUri() 83 } else if (uri.find(AudioColumn::AUDIO_URI_PREFIX) != string::npos) { in GetTypeUriByUri()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_occlusion_config.cpp | 27 return win.find(leashWin_) != std::string::npos; in IsLeashWindow() 32 return win.find(startWin_) != std::string::npos; in IsStartingWindow() 38 if (win.find(str) != std::string::npos) { in IsAlphaWindow() 47 return win.find(dividerBar_) != std::string::npos; in IsDividerBar()
|
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | asset_loader.h | 63 if (auto p = res.find_last_of('/'); BASE_NS::string::npos != p) { in NormalizePath() 72 if (pos == BASE_NS::string::npos) { in NormalizePath() 79 if (pos == BASE_NS::string::npos) { in NormalizePath() 100 if (separatorPos == BASE_NS::string::npos) { in GetParentPath() 109 size_t queryPos = allowQueryString ? BASE_NS::string::npos : uri.find('?'); in ResolvePath() 110 BASE_NS::string_view path = (BASE_NS::string::npos != queryPos) ? uri.substr(0, queryPos) : uri; in ResolvePath() 122 } else if (path.find("://") != path.npos) { in ResolvePath() 162 while (nextSeparator != BASE_NS::string::npos) { in GetRelativePath() 187 if (BASE_NS::string::npos != cutPos) { in GetFilename() 197 if (fileExtCut != BASE_NS::string::npos) { in GetExtension() [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/ |
H A D | ip_tools.cpp | 42 std::string::size_type npos = tmpAddress.find("."); in ConvertIpv4Address() local 43 if (npos == std::string::npos) { in ConvertIpv4Address() 46 std::string value = tmpAddress.substr(0, npos); in ConvertIpv4Address() 52 tmpAddress = tmpAddress.substr(npos + 1); in ConvertIpv4Address() 94 std::string::size_type npos = tmpAddress.find(":"); in ConvertIpv6Address() local 95 if (npos == std::string::npos) { in ConvertIpv6Address() 99 std::string value = tmpAddress.substr(0, npos); in ConvertIpv6Address() 107 tmpAddress = tmpAddress.substr(npos in ConvertIpv6Address() 236 std::string::size_type npos = tmpExclusionList.find(","); GetExclusionObjectList() local [all...] |
/foundation/filemanagement/app_file_service/interfaces/innerkits/native/file_uri/src/ |
H A D | file_uri.cpp | 58 if (posLast == string::npos) { in GetName() 73 if (bundleName == MEDIA_AUTHORITY && sandboxPath.find(".") != string::npos) { in GetPath() 75 if (pos == string::npos) { in GetPath() 90 uri_.ToString().find(NETWORK_PARA) == string::npos && in GetRealPath() 96 uri_.ToString().find(NETWORK_PARA) != string::npos) { in GetRealPath() 111 uri_.ToString().find(NETWORK_PARA) == string::npos && in GetRealPathBySA() 148 if (pos != string::npos && pos > 0 && pos < uri_.ToString().size() - NETWORK_PARA.size()) { in IsRemoteUri() 149 if (uri_.ToString().substr(pos + NETWORK_PARA.size()).find(BACKFLASH) == string::npos) { in IsRemoteUri()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/navigation/ |
H A D | sem_ver.cpp | 35 if (pos1 != std::string::npos) { in SemVer() 37 } else if (pos2 != std::string::npos) { in SemVer() 44 if (pos1 != std::string::npos) { in SemVer() 45 if (pos2 != std::string::npos) { in SemVer() 51 } else if (pos2 != std::string::npos) { in SemVer()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
H A D | path_tools.cpp | 48 if (index != string_view::npos) { in ParseUri() 82 if (auto p = res.find_last_of('/'); string::npos != p) { in NormalizePath() 91 if (pos == string::npos) { in NormalizePath() 101 if (pos == string::npos) { in NormalizePath() 175 if (lastSlash != string_view::npos) { in SplitPath() 182 if (lastDot != string_view::npos) { in SplitPath()
|
/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | resource_theme_style.cpp | 159 if (attrValue.front() == '#' || attrValue.find(COLOR_VALUE_PREFIX) != std::string::npos) {
in ParseContent() 162 } else if (attrValue.find(MEDIA_VALUE_PREFIX) != std::string::npos) {
in ParseContent() 164 } else if (attrValue.find(REF_ATTR_VALUE_KEY_WORD) != std::string::npos) {
in ParseContent() 176 } else if (number.find(".") == std::string::npos) {
in ParseContent() 204 if (attrValue.find(RES_HAP_PREFIX) == std::string::npos) {
in OnParseResourceMedia() 209 if (pos == std::string::npos) {
in OnParseResourceMedia() 219 if (pos == std::string::npos) {
in OnParseResourceMedia()
|
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/ |
H A D | string_view.h | 49 static const size_type npos = size_type(-1); member in basic_string_view 119 constexpr basic_string_view substr(size_type pos = 0, size_type count = npos) const; 132 constexpr size_type rfind(const CharT str, size_type pos = npos) const noexcept; 133 constexpr size_type rfind(const basic_string_view& str, size_type pos = npos) const noexcept; 138 constexpr size_type find_last_of(const basic_string_view& str, size_type pos = npos) const noexcept; 139 constexpr size_type find_last_of(CharT ch, size_type pos = npos) const noexcept; 278 return npos - 1; 558 return string_view::npos; 570 return string_view::npos; 583 return string_view::npos; [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/ |
H A D | distributeddb_nb_schema_upgrade_test.cpp | 251 EXPECT_NE(stringValue1d.find("\"field1\":\"json\""), std::string::npos); in CheckSchemaVoidFieldDefaultResult() 252 EXPECT_NE(stringValue2d.find("\"field3\":0"), std::string::npos); in CheckSchemaVoidFieldDefaultResult() 253 EXPECT_NE(stringValue3d.find("\"field4\":true"), std::string::npos); in CheckSchemaVoidFieldDefaultResult() 254 EXPECT_NE(stringValue4d.find("\"field5\":2021456"), std::string::npos); in CheckSchemaVoidFieldDefaultResult() 255 EXPECT_NE(stringValue5d.find("\"field6\":2021.2"), std::string::npos); in CheckSchemaVoidFieldDefaultResult() 256 EXPECT_NE(stringValue6d.find("\"field1\":\"json\""), std::string::npos); in CheckSchemaVoidFieldDefaultResult() 257 EXPECT_NE(stringValue6d.find("\"field4\":true"), std::string::npos); in CheckSchemaVoidFieldDefaultResult() 258 EXPECT_NE(stringValue6d.find("\"field6\":2021.2"), std::string::npos); in CheckSchemaVoidFieldDefaultResult() 259 EXPECT_NE(stringValue7d.find("\"field1\":\"json\""), std::string::npos); in CheckSchemaVoidFieldDefaultResult() 260 EXPECT_NE(stringValue7d.find("\"field3\":0"), std::string::npos); in CheckSchemaVoidFieldDefaultResult() [all...] |
/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/dash/mpd_parser/ |
H A D | dash_mpd_util.cpp | 77 if (urlSchemIndex != std::string::npos) { in BuildSrcUrl() 84 if (urlPathIndex != std::string::npos) { in BuildSrcUrl() 107 while (pos != std::string::npos && (pos + identifierLength) < segTmpltStr.length()) { in DashSubstituteTmpltStr() 113 if (posEnd == std::string::npos) { in DashSubstituteTmpltStr() 216 if (separatePosition == std::string::npos) { in DashParseRange() 246 if (descriptor->schemeIdUrl_.find(MPD_SCHEME_CICP_MATRIX_COEFFICIENTS) != std::string::npos) { in DashStreamIsHdr() 248 } else if (descriptor->schemeIdUrl_.find(MPD_SCHEME_CICP_COLOUR_PRIMARIES) != std::string::npos) { in DashStreamIsHdr() 250 } else if (descriptor->schemeIdUrl_.find(MPD_SCHEME_CICP_TRANSFER_CHARACTERISTICS) != std::string::npos) { in DashStreamIsHdr()
|
H A D | dash_mpd_manager.cpp | 82 if (sepCharIndex != std::string::npos) { in GetBaseUrlList() 86 if (mpdUrlBase.find('/') != std::string::npos) { in GetBaseUrlList() 100 if (sepCharIndex != std::string::npos) { in GetBaseUrl() 106 if (schemIndex != std::string::npos) { in GetBaseUrl() 112 if (mpdUrlBase.find('/') != std::string::npos) { in GetBaseUrl() 135 if (beginPathIndex != std::string::npos) { in MakeBaseUrl()
|
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/ |
H A D | utils.cpp | 208 if (posX.find("px") != std::string::npos || posX.find('%') != std::string::npos || in BgImgPositionIsValid() 210 if (posY.find("px") != std::string::npos || posY.find('%') != std::string::npos || in BgImgPositionIsValid() 221 if (posX.find("px") != std::string::npos || posX.find('%') != std::string::npos || in ObjectImgPositionIsValid() 223 if (posY.find("px") != std::string::npos || posY.find('%') != std::string::npos || in ObjectImgPositionIsValid() 295 if (leftEmbracePosition == std::string::npos) { in ParseCurveParam() 443 if (valueX.find("px") != std::string::npos) { in ParseBackgroundImagePosition() [all...] |
/foundation/ability/ability_runtime/test/moduletest/mission_dump_test/ |
H A D | mission_dump_test.cpp | 109 EXPECT_TRUE(idx != string::npos); in HWTEST_F() 113 EXPECT_TRUE(idx1 != string::npos); in HWTEST_F() 117 EXPECT_TRUE(idx2 != string::npos); in HWTEST_F() 167 EXPECT_TRUE(idx != string::npos); in HWTEST_F() 170 EXPECT_TRUE(idx != string::npos); in HWTEST_F() 173 EXPECT_TRUE(idx != string::npos); in HWTEST_F() 223 EXPECT_TRUE(idx != string::npos); in HWTEST_F() 226 EXPECT_TRUE(idx != string::npos); in HWTEST_F() 229 EXPECT_TRUE(idx != string::npos); in HWTEST_F() 279 EXPECT_TRUE(idx != string::npos); in HWTEST_F() [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
H A D | media_file_uri.cpp | 145 if (splitIndex == std::string::npos || splitIndex == (pairString.length() - 1)) { in SetQueryMap() 183 if (index == std::string::npos) { in ParsePathWithExtrPara() 190 if (index == std::string::npos) { in ParsePathWithExtrPara() 195 if (lastStr.find('.') != std::string::npos) { in ParsePathWithExtrPara() 202 if (index == std::string::npos) { in ParsePathWithExtrPara() 223 if (index == std::string::npos || index == path.length() - 1) { in CalFileId() 259 if (questionPosition != string::npos) { in GetTableName() 264 if (uriString.find(iter.first) != std::string::npos) { in GetTableName() 287 if (uriString.find(PhotoColumn::PHOTO_TYPE_URI) != std::string::npos) { in GetFilePath() 363 if ((ToString().find(PhotoColumn::PHOTO_TYPE_URI) != std::string::npos) || in IsApi10() [all...] |
/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/ |
H A D | scanner_utils.cpp | 48 if (lastSlashPosition != string::npos) { in GetFileNameFromUri() 64 if (dotIndex != string::npos) { in GetFileExtension() 122 if (lastSlashPosition != string::npos && path.size() > lastSlashPosition) { in GetParentPath() 139 return (pos == string::npos) ? displayName : displayName.substr(0, pos); in GetFileTitle() 212 if (path.find(pathPrefix) != string::npos) { in CheckSkipScanList()
|
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_native_test/ |
H A D | data_ability_result_test.cpp | 169 if (result != std::string::npos) { in HWTEST_F() 176 EXPECT_NE(result, std::string::npos); in HWTEST_F() 178 if (result != std::string::npos) { in HWTEST_F() 184 EXPECT_NE(result, std::string::npos); in HWTEST_F() 186 if (result != std::string::npos) { in HWTEST_F() 209 if (result != std::string::npos) { in HWTEST_F() 216 EXPECT_NE(result, std::string::npos); in HWTEST_F() 218 if (result != std::string::npos) { in HWTEST_F() 224 EXPECT_NE(result, std::string::npos); in HWTEST_F() 226 if (result != std::string::npos) { in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | clip_path.cpp | 89 if (tmp != std::string::npos && tmp >= boxPosition) { in GetGeometryBoxType() 94 if (tmp != std::string::npos && tmp >= boxPosition) { in GetGeometryBoxType() 99 if (tmp != std::string::npos && tmp >= boxPosition) { in GetGeometryBoxType() 104 if (tmp != std::string::npos && tmp >= boxPosition) { in GetGeometryBoxType() 114 if (tmp != std::string::npos && tmp >= first) { in GetBasicShapeInfo() 120 if (tmp != std::string::npos && tmp >= first) { in GetBasicShapeInfo() 126 if (tmp != std::string::npos && tmp >= first) { in GetBasicShapeInfo() 132 if (tmp != std::string::npos && tmp >= first) { in GetBasicShapeInfo() 138 if (tmp != std::string::npos && tmp >= first) { in GetBasicShapeInfo() 144 if (tmp != std::string::npos in GetBasicShapeInfo() [all...] |