• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef OHOS_FILEMANAGEMENT_USERFILEMGR_URI_H
17 #define OHOS_FILEMANAGEMENT_USERFILEMGR_URI_H
18 
19 #include <string>
20 #include "base_data_uri.h"
21 
22 namespace OHOS {
23 namespace Media {
24 const std::string MEDIA_OPERN_KEYWORD = "operation";
25 const std::string MEDIA_TRIGGER_MODE_KEYWORD = "trigger_mode";
26 const std::string MEDIA_MOVING_PHOTO_OPRN_KEYWORD = "moving_photo_operation";
27 const std::string OPRN_SYS_CREATE = "sys_create";
28 const std::string OPRN_CUSTOM_RESTORE = "custom_restore";
29 const std::string OPRN_CUSTOM_RESTORE_CANCEL = "custom_restore_cancel";
30 const std::string OPRN_CREATE_COMPONENT = "create_component";
31 const std::string OPRN_QUERY_ORDER = "query_order";
32 const std::string OPRN_UPDATE_ORDER = "update_order";
33 const std::string OPRN_SAVE_CAMERA_PHOTO_COMPONENT = "save_camera_photo_component";
34 const std::string OPRN_TRASH = "trash";
35 const std::string OPRN_SYS_TRASH = "sys_trash";
36 const std::string OPRN_PENDING = "update_pending";
37 const std::string OPRN_SCAN = "scan";
38 const std::string OPRN_INDEX = "index";
39 const std::string OPRN_ANALYSIS_INDEX = "analysis_index";
40 const std::string OPRN_HIDE = "hide";
41 const std::string OPRN_BATCH_UPDATE_FAV = "batch_update_favorite";
42 const std::string OPRN_BATCH_UPDATE_USER_COMMENT = "batch_update_user_comment";
43 const std::string OPRN_BATCH_UPDATE_OWNER_ALBUM_ID = "batch_update_owner_album_id";
44 const std::string OPRN_BATCH_UPDATE_RECENT_SHOW = "batch_update_recent_show";
45 const std::string OPRN_QUERY_HIDDEN = "query_hidden";
46 const std::string OPRN_STORE_FORM_ID = "store_form_id";
47 const std::string OPRN_REMOVE_FORM_ID = "remove_form_id";
48 const std::string OPRN_ALBUM_ADD_PHOTOS = "add_photos";
49 const std::string OPRN_ALBUM_REMOVE_PHOTOS = "remove_photos";
50 const std::string OPRN_RECOVER_PHOTOS = "recover_photos";
51 // Delete non-trashed photos directly from system for api9 MediaLibrary.delete compatibility
52 const std::string OPRN_COMPAT_DELETE_PHOTOS = "compat_delete_photos_permanently";
53 const std::string OPRN_DELETE_BY_TOOL = "delete_by_tool";
54 const std::string OPRN_SET_USER_COMMENT = "set_user_comment";
55 const std::string OPRN_COMMIT_EDIT = "operation_commit_edit";
56 const std::string OPRN_REVERT_EDIT = "operation_revert_edit";
57 const std::string OPRN_ORDER_ALBUM = "order_album";
58 const std::string OPRN_PORTRAIT_DISPLAY_LEVEL = "display_level";
59 const std::string OPRN_PORTRAIT_IS_ME = "is_me";
60 const std::string OPRN_PORTRAIT_ALBUM_NAME = "album_name";
61 const std::string OPRN_PORTRAIT_MERGE_ALBUM = "merge_album";
62 const std::string OPRN_HIGHLIGHT_ALBUM_NAME = "highlight_name";
63 const std::string OPRN_HIGHLIGHT_COVER_URI = "highlight_cover_uri";
64 const std::string OPRN_HIGHLIGHT_SUBTITLE = "highlight_subtitle";
65 const std::string OPRN_QUERY_HIGHLIGHT_DIRECTORY_SIZE = "query_highlight_directory_size";
66 const std::string OPRN_DISMISS_ASSET = "dismiss_asset";
67 const std::string UPDATE_DISMISS_ASSET = "dismiss_asset_update";
68 const std::string OPRN_PORTRAIT_COVER_URI = "cover_uri";
69 const std::string OPRN_SUBMIT_CACHE = "operation_submit_cache";
70 const std::string OPRN_ADD_IMAGE = "add_image";
71 const std::string OPRN_PROCESS_IMAGE = "process_image";
72 const std::string OPRN_SET_LOCATION = "set_location";
73 const std::string OPRN_SET_PHOTO_QUALITY = "set_photo_quality";
74 const std::string OPRN_CANCEL_PROCESS_IMAGE = "cancel_process_image";
75 const std::string OPRN_MOVING_PHOTO_SCAN = "moving_photo_scan";
76 const std::string OPRN_DEGENERATE_MOVING_PHOTO = "degenerate_moving_photo";
77 const std::string OPRN_START_GENERATE_THUMBNAILS = "start_generate_thumbnails";
78 const std::string OPRN_STOP_GENERATE_THUMBNAILS = "stop_generate_thumbnails";
79 const std::string OPRN_GENERATE_THUMBNAILS_RESTORE = "generate_thumbnails_restore";
80 const std::string OPRN_LOCAL_THUMBNAIL_GENERATION = "local_thumbnail_generation";
81 const std::string OPRN_ADD_FILTERS = "add_filters";
82 const std::string OPRN_DISCARD_CAMERA_PHOTO = "discard_camera_photo";
83 const std::string OPRN_SAVE_CAMERA_PHOTO = "save_camera_photo";
84 const std::string OPRN_SAVE_PICTURE = "save_picture";
85 const std::string OPRN_CLONE_ASSET = "clone_asset";
86 const std::string OPRN_REMOVE_MSC_TASK = "remove_msc_task"; // remove multistages capture task
87 const std::string OPRN_GROUP_DISMISS = "dismiss";
88 const std::string OPRN_GROUP_ALBUM_NAME = "group_album_name";
89 const std::string OPRN_GROUP_COVER_URI = "group_cover_uri";
90 const std::string OPRN_SCAN_WITHOUT_ALBUM_UPDATE = "scan_without_album_update";
91 const std::string OPRN_ADD_LOWQUALITY_IMAGE = "add_lowquality_image";
92 const std::string OPRN_SET_VIDEO_ENHANCEMENT_ATTR = "set_video_enhancement_attr";
93 const std::string OPRN_FIND_ALL_DUPLICATE_ASSETS = "all_duplicate_assets";
94 const std::string URI_FIND_ALL_DUPLICATE_ASSETS = "/" + OPRN_FIND_ALL_DUPLICATE_ASSETS;
95 const std::string OPRN_FIND_ALL_DUPLICATE_ASSETS_TO_DELETE = "can_del_duplicate_assets";
96 const std::string URI_FIND_ALL_DUPLICATE_ASSETS_TO_DELETE = "/" + OPRN_FIND_ALL_DUPLICATE_ASSETS_TO_DELETE;
97 const std::string OPRN_UPDATE_SUPPORTED_WATERMARK_TYPE = "update_supported_watermark_type";
98 // Asset operations constants
99 const std::string MEDIA_FILEOPRN = "file_operation";
100 const std::string MEDIA_PHOTOOPRN = "photo_operation";
101 const std::string MEDIA_AUDIOOPRN = "audio_operation";
102 const std::string MEDIA_APP_URI_PERMISSIONOPRN = "app_uri_permission_operation";
103 const std::string MEDIA_DOCUMENTOPRN = "document_operation";
104 const std::string MEDIA_FILEOPRN_CREATEASSET = "create_asset";
105 const std::string MEDIA_FILEOPRN_MODIFYASSET = "modify_asset";
106 const std::string MEDIA_FILEOPRN_DELETEASSET = "delete_asset";
107 const std::string MEDIA_FILEOPRN_TRASHASSET = "trash_asset";
108 const std::string MEDIA_FILEOPRN_OPENASSET = "open_asset";
109 const std::string MEDIA_FILEOPRN_CLOSEASSET = "close_asset";
110 
111 // API9 compat photo operations constants
112 const std::string URI_CREATE_PHOTO = MEDIALIBRARY_DATA_URI + "/" + MEDIA_PHOTOOPRN + "/" + MEDIA_FILEOPRN_CREATEASSET;
113 const std::string URI_CLOSE_PHOTO = MEDIALIBRARY_DATA_URI + "/" + MEDIA_PHOTOOPRN + "/" + MEDIA_FILEOPRN_CLOSEASSET;
114 const std::string URI_UPDATE_PHOTO = MEDIALIBRARY_DATA_URI + "/" + MEDIA_PHOTOOPRN + "/" + OPRN_UPDATE;
115 const std::string URI_QUERY_PHOTO = MEDIALIBRARY_DATA_URI + "/" + MEDIA_PHOTOOPRN + "/" + OPRN_QUERY;
116 // API9 compat audio operations constants
117 const std::string URI_QUERY_AUDIO = MEDIALIBRARY_DATA_URI + "/" + MEDIA_AUDIOOPRN + "/" + OPRN_QUERY;
118 const std::string URI_CLOSE_AUDIO = MEDIALIBRARY_DATA_URI + "/" + MEDIA_AUDIOOPRN + "/" + MEDIA_FILEOPRN_CLOSEASSET;
119 const std::string URI_UPDATE_AUDIO = MEDIALIBRARY_DATA_URI + "/" + MEDIA_AUDIOOPRN + "/" + OPRN_UPDATE;
120 const std::string URI_CREATE_AUDIO = MEDIALIBRARY_DATA_URI + "/" + MEDIA_AUDIOOPRN + "/" + MEDIA_FILEOPRN_CREATEASSET;
121 const std::string URI_CLOSE_FILE = MEDIALIBRARY_DATA_URI + "/" + MEDIA_FILEOPRN + "/" + MEDIA_FILEOPRN_CLOSEASSET;
122 const std::string URI_UPDATE_FILE = MEDIALIBRARY_DATA_URI + "/" + MEDIA_FILEOPRN + "/" + MEDIA_FILEOPRN_MODIFYASSET;
123 const std::string URI_CREATE_FILE = MEDIALIBRARY_DATA_URI + "/" + MEDIA_FILEOPRN + "/" + MEDIA_FILEOPRN_CREATEASSET;
124 
125 // Thumbnail operations constants
126 const std::string DISTRIBUTE_THU_OPRN_GENERATES = "thumbnail_distribute_generate_operation";
127 const std::string BUNDLE_PERMISSION_INSERT = "bundle_permission_insert_operation";
128 const std::string MTH_AND_YEAR_ASTC = "month_and_year_astc";
129 
130 // Album operations constants
131 const std::string MEDIA_ALBUMOPRN = "album_operation";
132 const std::string MEDIA_ALBUMOPRN_CREATEALBUM = "create_album";
133 const std::string MEDIA_ALBUMOPRN_MODIFYALBUM = "modify_album";
134 const std::string MEDIA_ALBUMOPRN_DELETEALBUM = "delete_album";
135 const std::string MEDIA_ALBUMOPRN_QUERYALBUM = "query_album";
136 const std::string MEDIA_FILEOPRN_GETALBUMCAPACITY = "get_album_capacity";
137 
138 // Photo album operations constants
139 const std::string PHOTO_ALBUM_OPRN = "photo_album_v10_operation";
140 const std::string URI_QUERY_PHOTO_ALBUM = MEDIALIBRARY_DATA_URI + "/" + PHOTO_ALBUM_OPRN + "/" + OPRN_QUERY;
141 const std::string URI_DELETE_PHOTOS = MEDIALIBRARY_DATA_URI + "/" + PHOTO_ALBUM_OPRN + "/" + OPRN_DELETE_PHOTOS;
142 const std::string URI_COMPAT_DELETE_PHOTOS = MEDIALIBRARY_DATA_URI + "/" + PHOTO_ALBUM_OPRN + "/" +
143         OPRN_COMPAT_DELETE_PHOTOS;
144 
145 // Photo map operations constants
146 const std::string PHOTO_MAP_OPRN = "photo_map_v10_operation";
147 const std::string URI_QUERY_PHOTO_MAP = MEDIALIBRARY_DATA_URI + "/" + PHOTO_MAP_OPRN + "/" + OPRN_QUERY;
148 
149 // SmartAlbum operations constants
150 const std::string MEDIA_SMARTALBUMOPRN = "albumsmart_operation";
151 const std::string MEDIA_SMARTALBUMMAPOPRN = "smartalbummap_operation";
152 const std::string MEDIA_SMARTALBUMOPRN_CREATEALBUM = "create_smartalbum";
153 const std::string MEDIA_SMARTALBUMOPRN_MODIFYALBUM = "modify_smartalbum";
154 const std::string MEDIA_SMARTALBUMOPRN_DELETEALBUM = "delete_smartalbum";
155 const std::string MEDIA_SMARTALBUMMAPOPRN_ADDSMARTALBUM = "add_smartalbum_map";
156 const std::string MEDIA_SMARTALBUMMAPOPRN_REMOVESMARTALBUM = "remove_smartalbum_map";
157 const std::string MEDIA_SMARTALBUMMAPOPRN_AGEINGSMARTALBUM = "ageing_smartalbum_map";
158 
159 //UriPermission operations constants
160 const std::string CHECK_URI_PERMISSION = "phaccess_checkuripermission";
161 const std::string GRANT_URI_PERMISSION = "phaccess_granturipermission";
162 
163 // Direcotry operations constants
164 const std::string MEDIA_DIROPRN = "dir_operation";
165 const std::string MEDIA_DIROPRN_DELETEDIR = "delete_dir";
166 const std::string MEDIA_DIROPRN_CHECKDIR_AND_EXTENSION = "check_dir_and_extension";
167 const std::string MEDIA_DIROPRN_FMS_CREATEDIR = "fms_create_dir";
168 const std::string MEDIA_DIROPRN_FMS_DELETEDIR = "fms_delete_dir";
169 const std::string MEDIA_DIROPRN_FMS_TRASHDIR = "fms_trash_dir";
170 const std::string MEDIA_QUERYOPRN_QUERYVOLUME = "query_media_volume";
171 
172 // Query editData exists
173 const std::string MEDIA_QUERYOPRN_QUERYEDITDATA = "query_edit_data";
174 
175 // Query moving photo video ready
176 const std::string MEDIA_QUERY_OPRN_MOVING_PHOTO_VIDEO_READY = "query_moving_photo_video_ready";
177 
178 // File operations constants
179 const std::string MEDIA_FILEOPRN_COPYASSET = "copy_asset";
180 
181 // Distribution operations constants
182 const std::string MEDIA_BOARDCASTOPRN = "boardcast";
183 const std::string MEDIA_SCAN_OPERATION = "boardcast_scan";
184 const std::string MEDIA_DEVICE_QUERYALLDEVICE = "query_all_device";
185 const std::string MEDIA_DEVICE_QUERYACTIVEDEVICE = "query_active_device";
186 
187 // Scanner tool operation constants
188 const std::string SCANNER_OPRN = "scanner";
189 const std::string URI_SCANNER = MEDIALIBRARY_DATA_URI + "/" + SCANNER_OPRN + "/" + OPRN_SCAN;
190 
191 // Mediatool delete operation constants
192 const std::string DELETE_TOOL_OPRN = "delete_tool";
193 const std::string URI_DELETE_TOOL = MEDIALIBRARY_DATA_URI + "/" + DELETE_TOOL_OPRN + "/" + OPRN_DELETE_BY_TOOL;
194 
195 // UserFileManager operation constants
196 const std::string UFM_PHOTO = "userfilemgr_photo_operation";
197 const std::string UFM_AUDIO = "userfilemgr_audio_operation";
198 const std::string UFM_ALBUM = "userfilemgr_photo_album_operation";
199 const std::string UFM_MAP = "userfilemgr_photo_map_operation";
200 
201 // UserFileManager photo operation constants
202 const std::string UFM_CREATE_PHOTO = MEDIALIBRARY_DATA_URI + "/" + UFM_PHOTO + "/" + OPRN_CREATE;
203 const std::string UFM_CREATE_PHOTO_COMPONENT = MEDIALIBRARY_DATA_URI + "/" + UFM_PHOTO + "/" + OPRN_CREATE_COMPONENT;
204 const std::string UFM_CLOSE_PHOTO = MEDIALIBRARY_DATA_URI + "/" + UFM_PHOTO + "/" + OPRN_CLOSE;
205 const std::string UFM_UPDATE_PHOTO = MEDIALIBRARY_DATA_URI + "/" + UFM_PHOTO + "/" + OPRN_UPDATE;
206 const std::string UFM_QUERY_PHOTO = MEDIALIBRARY_DATA_URI + "/" + UFM_PHOTO + "/" + OPRN_QUERY;
207 const std::string UFM_SET_USER_COMMENT = MEDIALIBRARY_DATA_URI + "/" + UFM_PHOTO + "/" + OPRN_SET_USER_COMMENT;
208 const std::string UFM_GET_INDEX = MEDIALIBRARY_DATA_URI + "/" + UFM_PHOTO + "/" + OPRN_INDEX;
209 const std::string UFM_HIDE_PHOTO = MEDIALIBRARY_DATA_URI + "/" + UFM_PHOTO + "/" + OPRN_HIDE;
210 
211 // UserFileManager audio operation constants
212 const std::string UFM_CREATE_AUDIO = MEDIALIBRARY_DATA_URI + "/" + UFM_AUDIO + "/" + OPRN_CREATE;
213 const std::string UFM_CREATE_AUDIO_COMPONENT = MEDIALIBRARY_DATA_URI + "/" + UFM_AUDIO + "/" + OPRN_CREATE_COMPONENT;
214 const std::string UFM_CLOSE_AUDIO = MEDIALIBRARY_DATA_URI + "/" + UFM_AUDIO + "/" + OPRN_CLOSE;
215 const std::string UFM_QUERY_AUDIO = MEDIALIBRARY_DATA_URI + "/" + UFM_AUDIO + "/" + OPRN_QUERY;
216 const std::string UFM_UPDATE_AUDIO = MEDIALIBRARY_DATA_URI + "/" + UFM_AUDIO + "/" + OPRN_UPDATE;
217 const std::string URI_DELETE_AUDIO = MEDIALIBRARY_DATA_URI + "/" + MEDIA_AUDIOOPRN + "/" + OPRN_DELETE;
218 
219 // UserFileManager album operation constants
220 const std::string UFM_CREATE_PHOTO_ALBUM = MEDIALIBRARY_DATA_URI + "/" + UFM_ALBUM + "/" + OPRN_CREATE;
221 const std::string UFM_DELETE_PHOTO_ALBUM = MEDIALIBRARY_DATA_URI + "/" + UFM_ALBUM + "/" + OPRN_DELETE;
222 const std::string UFM_UPDATE_PHOTO_ALBUM = MEDIALIBRARY_DATA_URI + "/" + UFM_ALBUM + "/" + OPRN_UPDATE;
223 const std::string UFM_QUERY_PHOTO_ALBUM = MEDIALIBRARY_DATA_URI + "/" + UFM_ALBUM + "/" + OPRN_QUERY;
224 const std::string UFM_QUERY_HIDDEN_ALBUM = MEDIALIBRARY_DATA_URI + "/" + UFM_ALBUM + "/" + OPRN_QUERY_HIDDEN;
225 const std::string UFM_PHOTO_ALBUM_ADD_ASSET = MEDIALIBRARY_DATA_URI + "/" + UFM_MAP + "/" +
226         OPRN_ALBUM_ADD_PHOTOS;
227 const std::string UFM_PHOTO_ALBUM_REMOVE_ASSET = MEDIALIBRARY_DATA_URI + "/" + UFM_MAP + "/" +
228         OPRN_ALBUM_REMOVE_PHOTOS;
229 const std::string UFM_QUERY_PHOTO_MAP = MEDIALIBRARY_DATA_URI + "/" + UFM_MAP + "/" + OPRN_QUERY;
230 const std::string UFM_RECOVER_PHOTOS = MEDIALIBRARY_DATA_URI + "/" + UFM_ALBUM + "/" + OPRN_RECOVER_PHOTOS;
231 const std::string UFM_DELETE_PHOTOS = MEDIALIBRARY_DATA_URI + "/" + UFM_ALBUM + "/" + OPRN_DELETE_PHOTOS;
232 
233 // PhotoAccessHelper operation constants
234 const std::string PAH_ANA_MAP = "phaccess_ana_map_operation";
235 const std::string PAH_ANA_OCR = "phaccess_ana_ocr_operation";
236 const std::string PAH_ANA_ATTS = "phaccess_ana_atts_operation";
237 const std::string PAH_ANA_VIDEO_ATTS = "phaccess_ana_video_atts_operation";
238 const std::string PAH_ANA_LABEL = "phaccess_ana_label_operation";
239 const std::string PAH_ANA_VIDEO_LABEL = "phaccess_ana_video_label_operation";
240 const std::string PAH_ANA_FACE = "phaccess_ana_face_operation";
241 const std::string PAH_ANA_FACE_TAG = "phaccess_ana_face_tag_operation";
242 const std::string PAH_ANA_OBJECT = "phaccess_ana_object_operation";
243 const std::string PAH_ANA_RECOMMENDATION = "phaccess_ana_recommendation_operation";
244 const std::string PAH_ANA_SEGMENTATION = "phaccess_ana_segmentation_operation";
245 const std::string PAH_ANA_COMPOSITION = "phaccess_ana_composition_operation";
246 const std::string PAH_ANA_HEAD = "phaccess_ana_head_operation";
247 const std::string PAH_ANA_POSE = "phaccess_ana_pose_operation";
248 const std::string PAH_ANA_SALIENCY = "phaccess_ana_sal_operation";
249 const std::string PAH_FORM_MAP = "phaccess_store_form_operation";
250 const std::string PAH_ANA_TOTAL = "phaccess_ana_total_operation";
251 const std::string PAH_ANA_ADDRESS = "phaccess_ana_address_operation";
252 const std::string PAH_ANA_ADDRESS_ASSETS = "phaccess_ana_address_assets_operation";
253 const std::string PAH_ANA_ADDRESS_ASSETS_ACTIVE = "phaccess_ana_address_assets_active_operation";
254 const std::string PAH_GEO_PHOTOS = "phaccess_geo_photos_operation";
255 const std::string PAH_CONVERT_PHOTOS = "phaccess_convert_photos_operation";
256 const std::string PAH_MULTISTAGES_CAPTURE = "phaccess_multistages_capture_operation";
257 const std::string PAH_HIGHLIGHT_COVER = "phaccess_highlight_cover_operation";
258 const std::string PAH_HIGHLIGHT_PLAY = "phaccess_highlight_play_operation";
259 const std::string PAH_HIGHLIGHT_DELETE = "phaccess_highlight_delete";
260 const std::string PAH_HIGHLIGHT_ADD_ASSETS = "phaccess_highlight_add_assets";
261 const std::string PAH_BATCH_THUMBNAIL_OPERATE = "phaccess_batch_thumbnail_operation";
262 const std::string SEARCH_INDEX_CONSTRUCTION_STATUS = "phaccess_search_index_construction_operation";
263 const std::string PAH_ANA_MULTI_CROP = "phaccess_ana_multi_crop_operation";
264 const std::string PAH_ANA_ASSET_SD = "tab_analysis_asset_sd_map";
265 const std::string PAH_ANA_ALBUM_ASSET = "tab_analysis_album_asset_map";
266 const std::string PAH_ANA_FOREGROUND = "phaccess_ana_foreground_operation";
267 // PhotoAccessHelper photo operation constants
268 const std::string PAH_CREATE_PHOTO = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_CREATE;
269 const std::string PAH_SYS_CREATE_PHOTO = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_SYS_CREATE;
270 const std::string PAH_CREATE_PHOTO_COMPONENT = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_CREATE_COMPONENT;
271 const std::string PAH_CLOSE_PHOTO = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_CLOSE;
272 const std::string PAH_UPDATE_PHOTO = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_UPDATE;
273 const std::string PAH_UPDATE_PHOTO_COMPONENT = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" +
274     OPRN_SAVE_CAMERA_PHOTO_COMPONENT;
275 const std::string PAH_TRASH_PHOTO = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_TRASH;
276 const std::string PAH_SYS_TRASH_PHOTO = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_SYS_TRASH;
277 const std::string PAH_QUERY_PHOTO = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_QUERY;
278 const std::string PAH_EDIT_USER_COMMENT_PHOTO = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_SET_USER_COMMENT;
279 const std::string PAH_HIDE_PHOTOS = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_HIDE;
280 const std::string PAH_SUBMIT_CACHE = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_SUBMIT_CACHE;
281 const std::string PAH_ADD_FILTERS = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_ADD_FILTERS;
282 const std::string PAH_BATCH_UPDATE_FAVORITE = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_BATCH_UPDATE_FAV;
283 const std::string PAH_BATCH_UPDATE_USER_COMMENT =
284     MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_BATCH_UPDATE_USER_COMMENT;
285 const std::string PAH_BATCH_UPDATE_RECENT_SHOW =
286     MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_BATCH_UPDATE_RECENT_SHOW;
287 const std::string PAH_BATCH_UPDATE_OWNER_ALBUM_ID =
288     MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_BATCH_UPDATE_OWNER_ALBUM_ID;
289 const std::string PAH_GET_ANALYSIS_INDEX = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_ANALYSIS_INDEX;
290 const std::string PAH_DISCARD_CAMERA_PHOTO = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_DISCARD_CAMERA_PHOTO;
291 const std::string PAH_SAVE_CAMERA_PHOTO = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_SAVE_CAMERA_PHOTO;
292 const std::string PAH_SCAN_WITHOUT_ALBUM_UPDATE = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" +
293     OPRN_SCAN_WITHOUT_ALBUM_UPDATE;
294 const std::string PATH_SAVE_PICTURE = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_SAVE_PICTURE;
295 const std::string PAH_FIND_ALL_DUPLICATE_ASSETS = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO +
296     URI_FIND_ALL_DUPLICATE_ASSETS;
297 const std::string PAH_FIND_DUPLICATE_ASSETS_TO_DELETE = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO +
298     URI_FIND_ALL_DUPLICATE_ASSETS_TO_DELETE;
299 const std::string PAH_CLONE_ASSET = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_CLONE_ASSET;
300 const std::string PAH_CUSTOM_RESTORE = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_CUSTOM_RESTORE;
301 const std::string PAH_CUSTOM_RESTORE_CANCEL =
302     MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" + OPRN_CUSTOM_RESTORE_CANCEL;
303 const std::string PAH_UPDATE_PHOTO_SUPPORTED_WATERMARK_TYPE = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" +
304     OPRN_UPDATE_SUPPORTED_WATERMARK_TYPE;
305 
306 // MultiStages capture related operation uri
307 const std::string PAH_SET_PHOTO_QUALITY = MEDIALIBRARY_DATA_URI + "/ "+ PAH_PHOTO + "/" + OPRN_SET_PHOTO_QUALITY;
308 const std::string PAH_PROCESS_IMAGE = MEDIALIBRARY_DATA_URI + "/" + PAH_MULTISTAGES_CAPTURE + "/" + OPRN_PROCESS_IMAGE;
309 const std::string PAH_ADD_IMAGE = MEDIALIBRARY_DATA_URI + "/" + PAH_MULTISTAGES_CAPTURE + "/" + OPRN_ADD_IMAGE;
310 const std::string PAH_SET_LOCATION = MEDIALIBRARY_DATA_URI + "/" + PAH_MULTISTAGES_CAPTURE + "/" + OPRN_SET_LOCATION;
311 const std::string PAH_CANCEL_PROCESS_IMAGE =
312     MEDIALIBRARY_DATA_URI + "/" + PAH_MULTISTAGES_CAPTURE + "/" + OPRN_CANCEL_PROCESS_IMAGE;
313 const std::string PAH_REMOVE_MSC_TASK =
314     MEDIALIBRARY_DATA_URI + "/" + PAH_MULTISTAGES_CAPTURE + "/" + OPRN_REMOVE_MSC_TASK;
315 
316 // Video
317 const std::string PAH_VIDEO = "video_operation";
318 
319 // Video
320 const std::string PAH_SET_VIDEO_ENHANCEMENT_ATTR =
321     MEDIALIBRARY_DATA_URI + "/" + PAH_VIDEO + "/" + OPRN_SET_VIDEO_ENHANCEMENT_ATTR;
322 
323 // Generate thumbnails in batches operation uri
324 const std::string PAH_START_GENERATE_THUMBNAILS =
325     MEDIALIBRARY_DATA_URI + "/" + PAH_BATCH_THUMBNAIL_OPERATE + "/" + OPRN_START_GENERATE_THUMBNAILS;
326 const std::string PAH_STOP_GENERATE_THUMBNAILS =
327     MEDIALIBRARY_DATA_URI + "/" + PAH_BATCH_THUMBNAIL_OPERATE + "/" + OPRN_STOP_GENERATE_THUMBNAILS;
328 const std::string PAH_ADD_LOWQUALITY_IMAGE = MEDIALIBRARY_DATA_URI + "/" +
329     PAH_MULTISTAGES_CAPTURE + "/" + OPRN_ADD_LOWQUALITY_IMAGE;
330 
331 // Generate thumbnails after clone or upgrade restore operation uri
332 const std::string PAH_GENERATE_THUMBNAILS_RESTORE =
333     MEDIALIBRARY_DATA_URI + "/" + PAH_BATCH_THUMBNAIL_OPERATE + "/" + OPRN_GENERATE_THUMBNAILS_RESTORE;
334 
335 // Generate local thumbnail from cloud trigger
336 const std::string PAH_GENERATE_LOCAL_THUMBNAIL =
337     MEDIALIBRARY_DATA_URI + "/" + PAH_BATCH_THUMBNAIL_OPERATE + "/" + OPRN_LOCAL_THUMBNAIL_GENERATION;
338 
339 const std::string PAH_QUERY_ANA_PHOTO_ALBUM = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_ALBUM + "/" + OPRN_QUERY;
340 const std::string PAH_QUERY_ANA_PHOTO_MAP = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_MAP + "/" + OPRN_QUERY;
341 const std::string PAH_INSERT_ANA_PHOTO_ALBUM = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_ALBUM + "/" + OPRN_CREATE;
342 const std::string PAH_UPDATE_ANA_PHOTO_ALBUM = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_ALBUM + "/" + OPRN_UPDATE;
343 const std::string PAH_INSERT_ANA_PHOTO_MAP = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_MAP + "/" + OPRN_CREATE;
344 const std::string PAH_QUERY_ORDER_ANA_ALBUM = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_MAP + "/" + OPRN_QUERY_ORDER;
345 const std::string PAH_UPDATE_ORDER_ANA_ALBUM = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_MAP + "/" + OPRN_UPDATE_ORDER;
346 
347 const std::string PAH_QUERY_ANA_OCR = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_OCR + "/" + OPRN_QUERY;
348 const std::string PAH_QUERY_ANA_ATTS = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_ATTS + "/" + OPRN_QUERY;
349 const std::string PAH_QUERY_ANA_VIDEO_ATTS = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_VIDEO_ATTS + "/" + OPRN_QUERY;
350 const std::string PAH_QUERY_ANA_LABEL = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_LABEL + "/" + OPRN_QUERY;
351 const std::string PAH_QUERY_ANA_VIDEO_LABEL = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_VIDEO_LABEL + "/" + OPRN_QUERY;
352 const std::string PAH_QUERY_ANA_FACE = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_FACE + "/" + OPRN_QUERY;
353 const std::string PAH_QUERY_ANA_FACE_TAG = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_FACE_TAG + "/" + OPRN_QUERY;
354 const std::string PAH_QUERY_ANA_OBJECT = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_OBJECT + "/" + OPRN_QUERY;
355 const std::string PAH_QUERY_ANA_RECOMMENDATION = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_RECOMMENDATION + "/" +
356     OPRN_QUERY;
357 const std::string PAH_QUERY_ANA_SEGMENTATION = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_SEGMENTATION + "/" + OPRN_QUERY;
358 const std::string PAH_QUERY_ANA_COMPOSITION = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_COMPOSITION + "/" + OPRN_QUERY;
359 const std::string PAH_QUERY_ANA_HEAD = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_HEAD + "/" + OPRN_QUERY;
360 const std::string PAH_QUERY_ANA_POSE = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_POSE + "/" + OPRN_QUERY;
361 const std::string PAH_STORE_FORM_MAP = MEDIALIBRARY_DATA_URI + "/" + PAH_FORM_MAP + "/" + OPRN_STORE_FORM_ID;
362 const std::string PAH_REMOVE_FORM_MAP = MEDIALIBRARY_DATA_URI + "/" + PAH_FORM_MAP + "/" + OPRN_REMOVE_FORM_ID;
363 const std::string PAH_QUERY_ANA_SAL = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_SALIENCY + "/" + OPRN_QUERY;
364 const std::string PAH_QUERY_ANA_ADDRESS = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_ADDRESS + "/" + OPRN_QUERY;
365 const std::string PAH_QUERY_ANA_ADDRESS_ASSETS = MEDIALIBRARY_DATA_URI + "/" +
366     PAH_ANA_ADDRESS_ASSETS + "/" + OPRN_QUERY;
367 const std::string PAH_QUERY_ANA_ADDRESS_ASSETS_ACTIVE = MEDIALIBRARY_DATA_URI + "/" +
368     PAH_ANA_ADDRESS_ASSETS_ACTIVE + "/" + OPRN_QUERY;
369 const std::string PAH_QUERY_GEO_PHOTOS = MEDIALIBRARY_DATA_URI + "/" + PAH_GEO_PHOTOS + "/" + OPRN_QUERY;
370 const std::string PAH_QUERY_CONVERT_PHOTOS = MEDIALIBRARY_DATA_URI + "/" + PAH_CONVERT_PHOTOS + "/" + OPRN_QUERY;
371 const std::string PAH_QUERY_HIGHLIGHT_COVER = MEDIALIBRARY_DATA_URI + "/" + PAH_HIGHLIGHT_COVER + "/" + OPRN_QUERY;
372 const std::string PAH_QUERY_HIGHLIGHT_PLAY = MEDIALIBRARY_DATA_URI + "/" + PAH_HIGHLIGHT_PLAY + "/" + OPRN_QUERY;
373 const std::string PAH_QUERY_ANA_TOTAL = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_TOTAL + "/" + OPRN_QUERY;
374 const std::string PAH_QUERY_MULTI_CROP = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_MULTI_CROP + "/" + OPRN_QUERY;
375 const std::string PAH_UPDATE_ANA_FACE = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_FACE + "/" + OPRN_UPDATE;
376 const std::string PAH_DELETE_HIGHLIGHT_ALBUM = MEDIALIBRARY_DATA_URI + "/" + PAH_HIGHLIGHT_DELETE + "/" + OPRN_DELETE;
377 const std::string PAH_INSERT_HIGHLIGHT_ALBUM = MEDIALIBRARY_DATA_URI + "/" + PAH_HIGHLIGHT_ADD_ASSETS;
378 const std::string PAH_QUERY_ANA_FOREGROUND = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_FOREGROUND + "/" + OPRN_QUERY;
379 
380 // PhotoAccessHelper moving photo
381 const std::string PAH_MOVING_PHOTO_SCAN = MEDIALIBRARY_DATA_URI + "/" + MEDIA_MOVING_PHOTO_OPRN_KEYWORD + "/" +
382     OPRN_MOVING_PHOTO_SCAN;
383 const std::string PAH_DEGENERATE_MOVING_PHOTO = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/" +
384     OPRN_DEGENERATE_MOVING_PHOTO;
385 
386 // Miscellaneous operation constants
387 const std::string MISC_OPERATION = "miscellaneous_operation";
388 
389 const std::string OPRN_LOG_MOVING_PHOTO = "log_moving_photo";
390 const std::string OPRN_QUERY_ACTIVE_USER_ID = "query_active_user_id";
391 
392 const std::string LOG_MOVING_PHOTO = MEDIALIBRARY_DATA_URI + "/" + MISC_OPERATION + "/" + OPRN_LOG_MOVING_PHOTO;
393 const std::string QUERY_ACTIVE_USER_ID = MEDIALIBRARY_DATA_URI + "/" + MISC_OPERATION + "/" + OPRN_QUERY_ACTIVE_USER_ID;
394 
395 const std::string OPRN_FINISH_REQUEST_PICTURE = "finish_request_picture";
396 const std::string PAH_FINISH_REQUEST_PICTURE = MEDIALIBRARY_DATA_URI + "/" + PAH_PHOTO + "/"
397     + OPRN_FINISH_REQUEST_PICTURE;
398 
399 const std::string MEDIATYPE_DIRECTORY_OBJ = "MediaTypeDirectory";
400 
401 const std::string TAB_OLD_PHOTO = "tab_old_photos_operation";
402 const std::string QUERY_TAB_OLD_PHOTO = MEDIALIBRARY_DATA_URI + "/" + TAB_OLD_PHOTO + "/" + OPRN_QUERY;
403 
404 const std::string TAB_FACARD_PHOTO = "tab_facard_photos_operation";
405 const std::string PAH_STORE_FACARD_PHOTO = MEDIALIBRARY_DATA_URI + "/" + TAB_FACARD_PHOTO + "/" + OPRN_STORE_FORM_ID;
406 const std::string PAH_REMOVE_FACARD_PHOTO = MEDIALIBRARY_DATA_URI + "/" + TAB_FACARD_PHOTO + "/" + OPRN_REMOVE_FORM_ID;
407 
408 const std::string ASSET_ALBUM_OPERATION = "tab_asset_and_album_operation";
409 
410 } // namespace Media
411 } // namespace OHOS
412 
413 #endif // OHOS_FILEMANAGEMENT_USERFILEMGR_URI_H
414