fix: 删除getThumbnail中的其余项

Signed-off-by: dengjun <dengjun39@huawei.com>
This commit is contained in:
dengjun 2024-01-17 14:41:53 +08:00
parent 84a1d39ce3
commit 6c0a50251f
11 changed files with 0 additions and 24 deletions

View File

@ -68,7 +68,6 @@ ohos_shared_library("fileaccess") {
"file_api:filemgmt_libhilog",
"file_api:filemgmt_libn",
"hilog:libhilog",
"image_framework:image",
"ipc:ipc_core",
"napi:ace_napi",
]

View File

@ -19,7 +19,6 @@
#include <utility>
#include <vector>
#include "file_access_extension_info.h"
#include "file_access_framework_errno.h"
#include "file_access_helper.h"
#include "file_info_entity.h"
@ -30,7 +29,6 @@
#include "napi_file_info_exporter.h"
#include "napi_observer_callback.h"
#include "napi_root_iterator_exporter.h"
#include "pixel_map_napi.h"
#include "root_iterator_entity.h"
#include "securec.h"
#include "uri.h"
@ -1121,10 +1119,6 @@ napi_value NAPI_GetFileInfoFromRelativePath(napi_env env, napi_callback_info inf
return NAsyncWorkCallback(env, thisVar, cb).Schedule(procedureName, cbExec, cbComplete).val_;
}
struct PixelMapWrapper {
std::shared_ptr<PixelMap> pixelMap = nullptr;
};
struct FileObserverCallbackWrapper {
sptr<IFileAccessObserver> callback;
};

View File

@ -99,7 +99,6 @@ ohos_shared_library("file_access_extension_ability_kit") {
"c_utils:utils",
"hilog:libhilog",
"hitrace:hitrace_meter",
"image_framework:image_native",
"init:libbegetutil",
"ipc:ipc_core",
"napi:ace_napi",

View File

@ -20,14 +20,12 @@
#include "file_access_extension_info.h"
#include "file_access_observer_common.h"
#include "file_filter.h"
#include "image_source.h"
namespace OHOS {
namespace AbilityRuntime {
class Runtime;
}
namespace FileAccessFwk {
using namespace Media;
using namespace AbilityRuntime;
class FileAccessExtAbility;
using CreatorFunc = std::function<FileAccessExtAbility* (const std::unique_ptr<Runtime>& runtime)>;

View File

@ -22,7 +22,6 @@
#include "file_access_extension_info.h"
#include "ifile_access_ext_base.h"
#include "image_source.h"
#include "iremote_broker.h"
#include "iremote_object.h"
#include "iremote_proxy.h"
@ -31,7 +30,6 @@
namespace OHOS {
namespace FileAccessFwk {
using namespace Media;
class FileAccessExtProxy : public IRemoteProxy<IFileAccessExtBase> {
public:
explicit FileAccessExtProxy(const sptr<IRemoteObject> &remote) : IRemoteProxy<IFileAccessExtBase>(remote) {}

View File

@ -22,13 +22,11 @@
#include "file_access_ext_ability.h"
#include "file_access_ext_stub.h"
#include "file_access_extension_info.h"
#include "image_source.h"
#include "js_native_api_types.h"
#include "uri.h"
namespace OHOS {
namespace FileAccessFwk {
using namespace Media;
class FileAccessExtStubImpl : public FileAccessExtStub {
public:
explicit FileAccessExtStubImpl(const std::shared_ptr<FileAccessExtAbility>& extension, napi_env env)

View File

@ -28,7 +28,6 @@
#include "file_access_ext_connection.h"
#include "file_access_extension_info.h"
#include "ifile_access_ext_base.h"
#include "image_source.h"
#include "iobserver_callback.h"
#include "iremote_object.h"
#include "refbase.h"
@ -39,7 +38,6 @@ using Uri = OHOS::Uri;
namespace OHOS {
namespace FileAccessFwk {
using namespace Media;
using string = std::string;
namespace {

View File

@ -25,12 +25,10 @@
#include "file_access_framework_errno.h"
#include "file_filter.h"
#include "file_info_shared_memory.h"
#include "image_source.h"
#include "uri.h"
namespace OHOS {
namespace FileAccessFwk {
using namespace Media;
class IFileAccessExtBase : public IRemoteBroker {
public:
@ -51,7 +49,6 @@ public:
CMD_QUERY,
CMD_GET_ROOTS,
CMD_ACCESS,
CMD_GET_THUMBNAIL,
CMD_GET_FILEINFO_FROM_URI,
CMD_GET_FILEINFO_FROM_RELATIVE_PATH,
CMD_COPY_FILE,

View File

@ -26,7 +26,6 @@
#include "accesstoken_kit.h"
#include "file_access_extension_info.h"
#include "file_access_framework_errno.h"
#include "image_source.h"
#include "hilog_wrapper.h"
#include "hitrace_meter.h"
#include "ipc_object_stub.h"
@ -37,7 +36,6 @@
namespace OHOS {
namespace FileAccessFwk {
using namespace Media;
namespace {
const std::string FILE_ACCESS_PERMISSION = "ohos.permission.FILE_ACCESS_MANAGER";
}

View File

@ -29,14 +29,12 @@
#include "ifile_access_ext_base.h"
#include "ipc_skeleton.h"
#include "iservice_registry.h"
#include "image_source.h"
#include "system_ability_definition.h"
#include "tokenid_kit.h"
#include "n_error.h"
namespace OHOS {
namespace FileAccessFwk {
using namespace Media;
using json = nlohmann::json;
namespace {
constexpr int COPY_EXCEPTION = -1;

View File

@ -53,7 +53,6 @@ ohos_unittest("medialibrary_file_access_test") {
"access_token:libnativetoken",
"access_token:libtoken_setproc",
"c_utils:utils",
"image_framework:image_native",
"ipc:ipc_core",
"ipc:ipc_js",
"samgr:samgr_proxy",