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 c6ce2e8fd6cbff4227bd0033fa30f8251cf47f3c..3edfc9ed85fa0d76363cd160b6b51aec351ce491 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 display_name = ?', - selectionArgs : [ fileType.toString(), '01.mp4' ], + selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', + selectionArgs : [ fileType.toString(), 'Camera/' ], }; 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 display_name = ?', - selectionArgs : [ type.toString(), '01.mp4' ], + selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', + selectionArgs : [ type.toString(), 'Camera/' ], }; 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 display_name = ?', - selectionArgs : [ type.toString(), '01.mp4' ], + selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', + selectionArgs : [ type.toString(), 'Camera/' ], }; 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 ecaf75eb33715138cc6f9eef5567aa3ee9bff247..edb924525e3b92c7103ef2d0f2806434ae867bb5 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 display_name = ?', - selectionArgs : [ fileType.toString(), '01.mp4' ], + selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', + selectionArgs : [ fileType.toString(), 'Camera/' ], }; 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 display_name = ?', - selectionArgs : [ type.toString(), '01.mp4' ], + selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', + selectionArgs : [ fileType.toString(), 'Camera/' ], }; 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 display_name = ?', - selectionArgs : [ type.toString(), '01.mp4' ], + selections : mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', + selectionArgs : [ fileType.toString(), 'Camera/' ], }; 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 72cfe83440646015872a73007d0e9578bec5ed2e..706bdd03183975d91fb042cbef512965e8e0da84 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 display_name = ?', - selectionArgs: [videoType.toString(), '01.mp4'], + selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', + selectionArgs: [videoType.toString(), 'Camera/'], }; 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 af33f957c450eec698f38f011d6b03e5946593bb..cf55fca8da949e9fdd31f16d34a53aa350b0ad5f 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 display_name = ?', - selectionArgs: [videoType.toString(), '01.mp4'], + selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', + selectionArgs: [videoType.toString(), 'Camera/'], }; 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 25be293f38bae31d0f24392330b7376e2bbd5b09..cf44933e25dfca9ac78d79748bdfcc4eca86953a 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 display_name = ?', - selectionArgs: [videoType.toString(), '01.mp4'], + selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND relative_path = ?', + selectionArgs: [videoType.toString(), 'Camera/'], }; let audiosfetchOp = { selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? AND bucket_display_name = ?',