/applications/sample/camera/launcher/launcher/src/main/cpp/ |
H A D | app_manage.cpp | 44 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 D | swipe_view.cpp | 139 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 D | view_group_page.cpp | 146 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 D | time_weather_view.cpp | 132 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 D | sql_analyzer.cpp | 90 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 D | gallery_ability_slice.cpp | 207 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 D | player_ability_slice.cpp | 172 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 D | picture_ability_slice.cpp | 129 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 D | app_info_ability_slice.cpp | 111 listener->SetPermissionName(permissions.name, strlen(permissions.name)); in SetAppPermissionInfo() 112 listener->SetBundleName(bundleName_, strlen(bundleName_)); in SetAppPermissionInfo()
|
H A D | wpa_work.c | 56 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 D | app_ability_slice.cpp | 64 bool ret = SetWantData(&want1, appName, strlen(appName) + 1); in SetAppButtonListener()
|
H A D | setting_wifi_ability_slice.cpp | 93 bool ret = SetWantData(&want1, ssid, strlen(ssid) + 1); in SetWifiButtonListener()
|
/applications/sample/camera/communication/wpa_cli/src/ |
H A D | wpa_cli_sample.c | 58 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 D | feature_example.c | 145 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 D | sql_analyzer.h | 34 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 D | camera_manager.cpp | 366 if (strlen(videoName_) <= 0) in GetVideoName() 368 if (pName == nullptr || length < strlen(videoName_)) in GetVideoName()
|
H A D | camera_ability_slice.cpp | 251 SetWantData(&want1, "WantData", strlen("WantData") + 1); in StartGallery()
|
/applications/standard/app_samples/code/BasicFeature/Native/NdkNativeWindow/entry/src/main/cpp/ |
H A D | NativeImageAdaptor.cpp | 40 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 D | native_bridge.cpp | 172 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 D | pixelmap_helper.cpp | 81 Image_MimeType format = { .data = const_cast<char *>(MIME_TYPE_JPEG), .size = strlen(MIME_TYPE_JPEG) }; in CreatePackingOptions()
|
/applications/sample/camera/media/ |
H A D | player_sample.cpp | 855 } 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 D | image_edit.cpp | 279 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 D | Image.cpp | 76 mimeType.size = strlen(mimeTypeStr); in CreatePackingOpts()
|