diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetTestCallback.test.js b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetTestCallback.test.js index 3edfc9ed85fa0d76363cd160b6b51aec351ce491..19df02ba0b6cc6807447305831d0b20362fbedf6 100644 --- a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetTestCallback.test.js +++ b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetTestCallback.test.js @@ -639,8 +639,8 @@ describe('fileAssetTestCallback.test.js', async function() { try { let fileType = mediaLibrary.MediaType.VIDEO; let fileFetchOp = { - selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', - selectionArgs : [ fileType.toString(), 'Camera/' ], + selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?', + selectionArgs : [ fileType.toString(), '01.mp4' ], }; let fetchFileResult = await media.getFileAssets(fileFetchOp); const dataList = await fetchFileResult.getAllObject(); @@ -708,8 +708,8 @@ describe('fileAssetTestCallback.test.js', async function() { try { let type = mediaLibrary.MediaType.VIDEO; let fetchOp = { - selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', - selectionArgs : [ type.toString(), 'Camera/' ], + selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?', + selectionArgs : [ type.toString(), '01.mp4' ], }; let fetchFileResult = await media.getFileAssets(fetchOp); const dataList = await fetchFileResult.getAllObject(); @@ -773,8 +773,8 @@ describe('fileAssetTestCallback.test.js', async function() { try { let type = mediaLibrary.MediaType.VIDEO; let fetchOp = { - selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', - selectionArgs : [ type.toString(), 'Camera/' ], + selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?', + selectionArgs : [ type.toString(), '01.mp4' ], }; let fetchFileResult = await media.getFileAssets(fetchOp); const dataList = await fetchFileResult.getAllObject(); diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetTestPromise.test.js b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetTestPromise.test.js index edb924525e3b92c7103ef2d0f2806434ae867bb5..b007c29bd0dfc58b9ffdfe2ff888de8c8eda452d 100644 --- a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetTestPromise.test.js +++ b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileAssetTestPromise.test.js @@ -458,8 +458,8 @@ describe('fileAssetTestPromise.test.js', async function() { try { let fileType = mediaLibrary.MediaType.VIDEO; let fileFetchOp = { - selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', - selectionArgs : [ fileType.toString(), 'Camera/' ], + selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?', + selectionArgs : [ fileType.toString(), '01.mp4' ], }; let fetchFileResult = await media.getFileAssets(fileFetchOp); const dataList = await fetchFileResult.getAllObject(); @@ -517,8 +517,8 @@ describe('fileAssetTestPromise.test.js', async function() { try { let type = mediaLibrary.MediaType.VIDEO; let fetchOp = { - selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', - selectionArgs : [ fileType.toString(), 'Camera/' ], + selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?', + selectionArgs : [ type.toString(), '01.mp4' ], }; let fetchFileResult = await media.getFileAssets(fetchOp); const dataList = await fetchFileResult.getAllObject(); @@ -561,8 +561,8 @@ describe('fileAssetTestPromise.test.js', async function() { try { let type = mediaLibrary.MediaType.VIDEO; let fetchOp = { - selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', - selectionArgs : [ fileType.toString(), 'Camera/' ], + selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?', + selectionArgs : [ type.toString(), '01.mp4' ], }; let fetchFileResult = await media.getFileAssets(fetchOp); const dataList = await fetchFileResult.getAllObject(); diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileTestPromise.test.js b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileTestPromise.test.js index 706bdd03183975d91fb042cbef512965e8e0da84..361013f5d50a7e3ba6df4346d5cc02d2768916e1 100644 --- a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileTestPromise.test.js +++ b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/fileTestPromise.test.js @@ -29,8 +29,8 @@ let imagesfetchOp = { selectionArgs: [imageType.toString()], }; let videosfetchOp = { - selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', - selectionArgs: [videoType.toString(), 'Camera/'], + selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?', + selectionArgs: [videoType.toString(), '01.mp4'], }; let audiosfetchOp = { selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND bucket_display_name = ?', diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/mediaLibraryTestCallBack.test.js b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/mediaLibraryTestCallBack.test.js index cf55fca8da949e9fdd31f16d34a53aa350b0ad5f..e055c4cb07f38cd186a3b0eff9486bb36299b240 100644 --- a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/mediaLibraryTestCallBack.test.js +++ b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/mediaLibraryTestCallBack.test.js @@ -40,8 +40,8 @@ let imagesfetchOp = { selectionArgs: [imageType.toString()], }; let videosfetchOp = { - selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', - selectionArgs: [videoType.toString(), 'Camera/'], + selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?', + selectionArgs: [videoType.toString(), '01.mp4'], }; let audiosfetchOp = { selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND bucket_display_name = ?', diff --git a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/mediaLibraryTestPromise.test.js b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/mediaLibraryTestPromise.test.js index cf44933e25dfca9ac78d79748bdfcc4eca86953a..da849cec904818c8a50c4f9080bc03d9eccdbbeb 100644 --- a/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/mediaLibraryTestPromise.test.js +++ b/multimedia/medialibrary/mediaLibrary_js_standard/src/main/js/test/mediaLibraryTestPromise.test.js @@ -40,8 +40,8 @@ let imagesfetchOp = { selectionArgs: [imageType.toString()], }; let videosfetchOp = { - selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', - selectionArgs: [videoType.toString(), 'Camera/'], + selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND ' + mediaLibrary.FileKey.DISPLAY_NAME + ' = ?', + selectionArgs: [videoType.toString(), '01.mp4'], }; let audiosfetchOp = { selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND bucket_display_name = ?',