Home
last modified time | relevance | path

Searched refs:strlen (Results 1 - 23 of 23) sorted by relevance

/applications/sample/camera/launcher/launcher/src/main/cpp/
H A Dapp_manage.cpp44 if (memcmp(bundleName, pBundleInfo->bundleName, strlen(pBundleInfo->bundleName)) == 0) { in GetAailityInfosByBundleName()
46 pApp->appName_, sizeof(pApp->appName_), pBundleInfo->bundleName, strlen(pBundleInfo->bundleName)); in GetAailityInfosByBundleName()
47 pApp->appName_[strlen(pBundleInfo->bundleName)] = 0; in GetAailityInfosByBundleName()
50 strlen(pBundleInfo->abilityInfos[0].name)); in GetAailityInfosByBundleName()
51 pApp->abilityName_[strlen(pBundleInfo->abilityInfos[0].name)] = 0; in GetAailityInfosByBundleName()
55 strlen(pBundleInfo->bigIconPath)); in GetAailityInfosByBundleName()
56 pApp->appIconDir_[strlen(pBundleInfo->bigIconPath)] = 0; in GetAailityInfosByBundleName()
99 if (memcpy_s(tmpName, sizeof(tmpName), bundleName, strlen(bundleName)) == LAUNCHER_SUCCESS) { in MyBundleStateCallback()
100 tmpName[strlen(bundleName)] = 0; in MyBundleStateCallback()
147 SetWantData(&want1, "WantData", strlen("WantDat in StartApp()
[all...]
H A Dswipe_view.cpp139 if (memcmp(LAUNCHER_BUNDLE_NAME, pBundleInfos[j].bundleName, strlen(pBundleInfos[j].bundleName)) == 0) { in BundleInfoScan()
142 if (memcmp(SCREENSAVER_BUNDLE_NAME, pBundleInfos[j].bundleName, strlen(pBundleInfos[j].bundleName)) == 0) { in BundleInfoScan()
153 strlen(pBundleInfos[j].bundleName)); in BundleInfoScan()
154 app->appName_[strlen(pBundleInfos[j].bundleName)] = 0; in BundleInfoScan()
158 strlen(pBundleInfos[j].abilityInfos[0].name)); in BundleInfoScan()
159 app->abilityName_[strlen(pBundleInfos[j].abilityInfos[0].name)] = 0; in BundleInfoScan()
163 strlen(pBundleInfos[j].bigIconPath)); in BundleInfoScan()
164 app->appIconDir_[strlen(pBundleInfos[j].bigIconPath)] = 0; in BundleInfoScan()
H A Dview_group_page.cpp146 if (memcmp(app->data_->appName_, pApp->appName_, strlen(pApp->appName_)) == 0) { in FindApp()
158 if (memcmp(app->data_->appName_, pAppName, strlen(pAppName)) == 0) { in RemoveApp()
H A Dtime_weather_view.cpp132 if (memcpy_s(date, size, g_weekDate[i], strlen(g_weekDate[i])) == LAUNCHER_SUCCESS) { in GetWeekdayByYearday()
133 date[strlen(g_weekDate[i])] = 0; in GetWeekdayByYearday()
/applications/standard/contacts_data/ability/common/utils/src/
H A Dsql_analyzer.cpp90 bool SqlAnalyzer::StrCheck(char &ch, std::size_t strlen, std::string sql, std::size_t &pos) in StrCheck() argument
94 while (pos < strlen) { in StrCheck()
114 std::size_t strlen = sql.length(); in FindIllegalWords() local
115 while (pos < strlen) { in FindIllegalWords()
127 if (StrCheck(ch, strlen, sql, pos)) { in FindIllegalWords()
/applications/sample/camera/gallery/src/
H A Dgallery_ability_slice.cpp207 uint16_t imageNameLen = static_cast<uint16_t>(strlen(info->d_name)); in AddAllPictures()
217 uint16_t pathLen = static_cast<uint16_t>(strlen(THUMBNAIL_DIRECTORY)) + imageNameLen + 1; in AddAllPictures()
253 if (strncmp(imageName, PHOTO_PREFIX, strlen(PHOTO_PREFIX)) == 0) { in CreateImageItem()
283 bool ret = SetWantData(&wantData, path, strlen(path) + 1); in GetImageClickListener()
289 if (strncmp(path, PHOTO_PREFIX, strlen(PHOTO_PREFIX)) == 0) { in GetImageClickListener()
328 uint16_t fileNameLen = static_cast<uint16_t>(strlen(info->d_name)); in DeleteAllFilesInDir()
329 uint16_t pathLen = static_cast<uint16_t>(strlen(path)) + fileNameLen + 1; in DeleteAllFilesInDir()
H A Dplayer_ability_slice.cpp172 uint16_t videoPathLen = strlen(VIDEO_SOURCE_DIRECTORY) + strlen(reinterpret_cast<char*>(want.data)) + 1; in SetUpVideoPlayer()
179 ret = sprintf_s(&videoPlayer_->filePath[videoPathLen - strlen(AVAILABEL_SOURCE_TYPE)], in SetUpVideoPlayer()
180 strlen(AVAILABEL_SOURCE_TYPE) + 1, "%s", AVAILABEL_SOURCE_TYPE); in SetUpVideoPlayer()
H A Dpicture_ability_slice.cpp129 uint16_t imagePathLen = strlen(PHOTO_DIRECTORY) + strlen(reinterpret_cast<char*>(want.data)) + 1; in OnStart()
/applications/sample/camera/setting/setting/src/main/cpp/
H A Dapp_info_ability_slice.cpp111 listener->SetPermissionName(permissions.name, strlen(permissions.name)); in SetAppPermissionInfo()
112 listener->SetBundleName(bundleName_, strlen(bundleName_)); in SetAppPermissionInfo()
H A Dwpa_work.c56 return strncmp(a, b, strlen(b)) == 0; in StrMatch()
76 wpa_ctrl_request(ctrlConn, cmd, strlen(cmd), reply, &len, 0); in SendCtrlCommand()
147 if (offset >= strlen(pos)) { in GetCurrentConnInfo()
H A Dapp_ability_slice.cpp64 bool ret = SetWantData(&want1, appName, strlen(appName) + 1); in SetAppButtonListener()
H A Dsetting_wifi_ability_slice.cpp93 bool ret = SetWantData(&want1, ssid, strlen(ssid) + 1); in SetWifiButtonListener()
/applications/sample/camera/communication/wpa_cli/src/
H A Dwpa_cli_sample.c58 return strncmp(a, b, strlen(b)) == 0; in StrMatch()
130 wpa_ctrl_request(g_ctrlConn, cmd, strlen(cmd), reply, &len, 0); in SendCtrlCommand()
/applications/sample/wifi-iot/app/samgr/
H A Dfeature_example.c145 request.len = (uint32_t)(strlen(body) + 1); in AsyncCall()
171 request.len = (uint32_t)(strlen(body) + 1); in AsyncCallBack()
/applications/standard/contacts_data/ability/common/utils/include/
H A Dsql_analyzer.h34 bool StrCheck(char &ch, std::size_t strlen, std::string sql, std::size_t &pos);
/applications/sample/camera/cameraApp/cameraApp/src/main/cpp/
H A Dcamera_manager.cpp366 if (strlen(videoName_) <= 0) in GetVideoName()
368 if (pName == nullptr || length < strlen(videoName_)) in GetVideoName()
H A Dcamera_ability_slice.cpp251 SetWantData(&want1, "WantData", strlen("WantData") + 1); in StartGallery()
/applications/standard/app_samples/code/BasicFeature/Native/NdkNativeWindow/entry/src/main/cpp/
H A DNativeImageAdaptor.cpp40 size_t extLenth = strlen(eglExtension); in CheckEglExtension()
41 const char *endPos = eglExtensions + strlen(eglExtensions); in CheckEglExtension()
/applications/standard/app_samples/code/BasicFeature/Native/NdkRenderNodeDrawing/entry/src/main/cpp/
H A Dnative_bridge.cpp172 int textCount = OH_Drawing_FontCountText(font, TEXT_DEMO, strlen(TEXT_DEMO), TEXT_ENCODING_UTF8); in NativeOnDrawTextBlob()
176 OH_Drawing_FontTextToGlyphs(font, TEXT_DEMO, strlen(TEXT_DEMO), TEXT_ENCODING_UTF8, glyphs, textCount); in NativeOnDrawTextBlob()
/applications/standard/app_samples/code/BasicFeature/Media/ImageEffect/entry/src/main/cpp/utils/
H A Dpixelmap_helper.cpp81 Image_MimeType format = { .data = const_cast<char *>(MIME_TYPE_JPEG), .size = strlen(MIME_TYPE_JPEG) }; in CreatePackingOptions()
/applications/sample/camera/media/
H A Dplayer_sample.cpp855 } else if (strlen(argv[1]) < PATH_MAX) { in ParseInputParam()
856 if (memcpy_s(sample.filePath, PATH_MAX, argv[1], strlen(argv[1]) + 1) != 0) { in ParseInputParam()
/applications/standard/app_samples/code/BasicFeature/Media/ImageEffect/entry/src/main/cpp/backend/
H A Dimage_edit.cpp279 status = napi_create_string_utf8(env, infoStr.c_str(), strlen(infoStr.c_str()), &result); in LookupFilterInfo()
/applications/standard/app_samples/code/BasicFeature/Media/Image/photomodify/src/main/cpp/
H A DImage.cpp76 mimeType.size = strlen(mimeTypeStr); in CreatePackingOpts()

Completed in 15 milliseconds