Home
last modified time | relevance | path

Searched refs:rawDir (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/base/global/resource_management/interfaces/native/resource/include/
H A Draw_dir.h71 const char *OH_ResourceManager_GetRawFileName(RawDir *rawDir, int index);
83 int OH_ResourceManager_GetRawFileCount(RawDir *rawDir);
95 void OH_ResourceManager_CloseRawDir(RawDir *rawDir);
/ohos5.0/docs/zh-cn/application-dev/reference/apis-localization-kit/
H A Drawfile.md45 …GetRawFileName](#oh_resourcemanager_getrawfilename) ([RawDir](#rawdir) \*rawDir, int index) | 通过索引…
46 …tRawFileCount](#oh_resourcemanager_getrawfilecount) ([RawDir](#rawdir) \*rawDir) | 获取[RawDir](#raw…
47 …nager_CloseRawDir](#oh_resourcemanager_closerawdir) ([RawDir](#rawdir) \*rawDir) | 关闭已打开的[RawDir](…
135 void OH_ResourceManager_CloseRawDir (RawDir * rawDir)
148 | rawDir | 表示指向[RawDir](#rawdir)的指针。 |
204 int OH_ResourceManager_GetRawFileCount (RawDir * rawDir)
219 | rawDir | 表示指向[RawDir](#rawdir)的指针。 |
227 返回rawDir下的文件个数。如果rawDir为空时返回0。
285 const char* OH_ResourceManager_GetRawFileName (RawDir * rawDir, int index )
298 | rawDir | 表示指向[RawDir](#rawdir)的指针。 |
H A Draw__dir_8h.md31 …ile.md#oh_resourcemanager_getrawfilename) ([RawDir](rawfile.md#rawdir) \*rawDir, int index) | 通过索引…
32 …le.md#oh_resourcemanager_getrawfilecount) ([RawDir](rawfile.md#rawdir) \*rawDir) | 获取[RawDir](rawf…
33 …awfile.md#oh_resourcemanager_closerawdir) ([RawDir](rawfile.md#rawdir) \*rawDir) | 关闭已打开的[RawDir](…
/ohos5.0/docs/en/application-dev/reference/apis-localization-kit/
H A Draw__dir_8h.md31 …ile.md#oh_resourcemanager_getrawfilename) ([RawDir](rawfile.md#rawdir) \*rawDir, int index) | Obta…
32 …le.md#oh_resourcemanager_getrawfilecount) ([RawDir](rawfile.md#rawdir) \*rawDir) | Obtains the num…
33 …awfile.md#oh_resourcemanager_closerawdir) ([RawDir](rawfile.md#rawdir) \*rawDir) | Closes a [RawDi…
H A Drawfile.md45 …GetRawFileName](#oh_resourcemanager_getrawfilename) ([RawDir](#rawdir) \*rawDir, int index) | Obta…
46 …tRawFileCount](#oh_resourcemanager_getrawfilecount) ([RawDir](#rawdir) \*rawDir) | Obtains the num…
47 …nager_CloseRawDir](#oh_resourcemanager_closerawdir) ([RawDir](#rawdir) \*rawDir) | Closes a [RawDi…
135 void OH_ResourceManager_CloseRawDir (RawDir * rawDir)
148 | rawDir | Pointer to the [RawDir](#rawdir).|
204 int OH_ResourceManager_GetRawFileCount (RawDir * rawDir)
219 | rawDir | Pointer to the [RawDir](#rawdir).|
227 Number of files in **rawDir**. If **rawDir** is empty, **0** is returned.
285 const char* OH_ResourceManager_GetRawFileName (RawDir * rawDir, int index )
298 | rawDir | Pointer to the [RawDir](#rawdir).|
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/
H A Draw_file_manager.cpp237 int OH_ResourceManager_GetRawFileCount(RawDir *rawDir) in OH_ResourceManager_GetRawFileCount() argument
239 if (rawDir == nullptr) { in OH_ResourceManager_GetRawFileCount()
242 return rawDir->fileNameCache.names.size(); in OH_ResourceManager_GetRawFileCount()
245 const char *OH_ResourceManager_GetRawFileName(RawDir *rawDir, int index) in OH_ResourceManager_GetRawFileName() argument
247 if (rawDir == nullptr || index < 0) { in OH_ResourceManager_GetRawFileName()
250 uint32_t rawFileCount = rawDir->fileNameCache.names.size(); in OH_ResourceManager_GetRawFileName()
254 return rawDir->fileNameCache.names[index].c_str(); in OH_ResourceManager_GetRawFileName()
257 void OH_ResourceManager_CloseRawDir(RawDir *rawDir) in OH_ResourceManager_CloseRawDir() argument
260 if (rawDir != nullptr) { in OH_ResourceManager_CloseRawDir()
261 delete rawDir; in OH_ResourceManager_CloseRawDir()
[all …]
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Drawfile-guidelines.md14 | int OH_ResourceManager_GetRawFileCount(RawDir *rawDir) | 获取指定rawfile目录下的rawfile文件数量。 |
15 | const char *OH_ResourceManager_GetRawFileName(RawDir *rawDir, int index) | 获取rawfile名字。 …
23 | void OH_ResourceManager_CloseRawDir(RawDir *rawDir) | 释放rawfile目录相关资源。 |
115 // 获取对应的rawDir指针对象
116 RawDir* rawDir = OH_ResourceManager_OpenRawDir(mNativeResMgr, dirName.c_str());
118 // 获取rawDir下文件及文件夹数量
119 int count = OH_ResourceManager_GetRawFileCount(rawDir);
124 std::string filename = OH_ResourceManager_GetRawFileName(rawDir, i);
137 OH_ResourceManager_CloseRawDir(rawDir);
/ohos5.0/docs/en/application-dev/napi/
H A Drawfile-guidelines.md15 | int OH_ResourceManager_GetRawFileCount(RawDir *rawDir) | Obtains the number of raw files in…
16 | const char *OH_ResourceManager_GetRawFileName(RawDir *rawDir, int index) | Obtains the name of a …
24 | void OH_ResourceManager_CloseRawDir(RawDir *rawDir) | Closes a raw file directory to rel…
116 // Obtain the corresponding rawDir pointer object.
117 RawDir* rawDir = OH_ResourceManager_OpenRawDir(mNativeResMgr, dirName.c_str());
119 // Obtain the number of files and folders in rawDir.
120 int count = OH_ResourceManager_GetRawFileCount(rawDir);
122 // Traverse rawDir to obtain the list of file names and save it.
125 std::string filename = OH_ResourceManager_GetRawFileName(rawDir, i);
137 // Close the rawDir pointer object.
[all …]
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.1-Release/
H A Dnative-apidiff-v3.1-release.md173 | 全球化-resmgr | const char *OH_ResourceManager_GetRawFileName(RawDir *rawDir, int index) | 新增 …
174 | 全球化-resmgr | int OH_ResourceManager_GetRawFileCount(RawDir *rawDir) | 新增 | 新增获取指定rawf…
175 | 全球化-resmgr | void OH_ResourceManager_CloseRawDir(RawDir *rawDir) | 新增 | 新增释放rawfil…
/ohos5.0/docs/en/release-notes/api-diff/v3.1-Release/
H A Dnative-apidiff-v3.1-release.md173 | Globalization - resmgr | const char *OH_ResourceManager_GetRawFileName(RawDir *rawDir, int index…
174 | Globalization - resmgr | int OH_ResourceManager_GetRawFileCount(RawDir *rawDir) | Added …
175 | Globalization - resmgr | void OH_ResourceManager_CloseRawDir(RawDir *rawDir) | Added …