Home
last modified time | relevance | path

Searched refs:rawFile (Results 1 – 15 of 15) sorted by relevance

/test/xts/acts/global/global_napi_test/entry/src/main/cpp/napi/
Dglobal_napi_test.cpp146 RawFile *rawFile = OH_ResourceManager_OpenRawFile(mNativeResMgr, filename.c_str()); in GetRawFileContent() local
147 if (rawFile != nullptr) { in GetRawFileContent()
150 long len = OH_ResourceManager_GetRawFileSize(rawFile); in GetRawFileContent()
153 long offset = OH_ResourceManager_GetRawFileOffset(rawFile); in GetRawFileContent()
158 long size = OH_ResourceManager_SeekRawFile(rawFile, 1, 0); in GetRawFileContent()
164 while (OH_ResourceManager_GetRawFileRemainingLength(rawFile) > 0) { in GetRawFileContent()
165 OH_ResourceManager_ReadRawFile(rawFile, data.get() + offset1, SUBLEN); in GetRawFileContent()
169 OH_ResourceManager_CloseRawFile(rawFile); in GetRawFileContent()
186 RawFile64 *rawFile = OH_ResourceManager_OpenRawFile64(mNativeResMgr, filename.c_str()); in GetRawFileContent64() local
187 if (rawFile != nullptr) { in GetRawFileContent64()
[all …]
/test/testfwk/arkxtest/jsunit/src/testrunner/
DOpenHarmonyTestRunner.ts53 let rawFile: Uint8Array;
55 rawFile = resourceManager.getRawFileContentSync(jsonPath);
57 … mockStr: string = util.TextDecoder.create("utf-8", { ignoreBOM: true }).decodeWithStream(rawFile);
/test/xts/acts/telephony/telephonyjstest/netmanager_base/network_netmanager/network_netmanagerndk/entry/src/ohosTest/ets/testrunner/
DOpenHarmonyTestRunner.ts75 let rawFile: Uint8Array;
77 rawFile = resourceManager.getRawFileContentSync(jsonPath);
79 … mockStr: string = util.TextDecoder.create("utf-8", { ignoreBOM: true }).decodeWithStream(rawFile);
/test/xts/acts/telephony/networkmanager/ndk/networkndk/entry/src/ohosTest/ets/testrunner/
DOpenHarmonyTestRunner.ts75 let rawFile: Uint8Array;
77 rawFile = resourceManager.getRawFileContentSync(jsonPath);
79 … mockStr: string = util.TextDecoder.create("utf-8", { ignoreBOM: true }).decodeWithStream(rawFile);
/test/xts/acts/security/security_guard/security_guard_notsystemapp/src/main/ets/TestRunner/
DOpenHarmonyTestRunner.ets62 let rawFile: Uint8Array;
64 rawFile = resourceManager.getRawFileContentSync(jsonPath);
66 … mockStr: string = util.TextDecoder.create("utf-8", { ignoreBOM: true }).decodeWithStream(rawFile);
/test/xts/acts/security/security_guard/security_guard_permission/src/main/ets/TestRunner/
DOpenHarmonyTestRunner.ets62 let rawFile: Uint8Array;
64 rawFile = resourceManager.getRawFileContentSync(jsonPath);
66 … mockStr: string = util.TextDecoder.create("utf-8", { ignoreBOM: true }).decodeWithStream(rawFile);
/test/xts/acts/multimedia/image_effect/OHImageEffectNDK/entry/src/ohosTest/ets/testrunner/
DOpenHarmonyTestRunner.ets75 let rawFile: Uint8Array;
77 rawFile = resourceManager.getRawFileContentSync(jsonPath);
79 … mockStr: string = util.TextDecoder.create("utf-8", { ignoreBOM: true }).decodeWithStream(rawFile);
/test/xts/acts/arkcompiler/esmodule/esmodule_dynamicimport/entry/src/ohosTest/ets/testrunner/
DOpenHarmonyTestRunner.ets75 let rawFile: Uint8Array;
77 rawFile = resourceManager.getRawFileContentSync(jsonPath);
79 … mockStr: string = util.TextDecoder.create("utf-8", { ignoreBOM: true }).decodeWithStream(rawFile);
/test/xts/acts/commonlibrary/ets_utils/sendable_lib_worker/entry/src/ohosTest/ets/testrunner/
DOpenHarmonyTestRunner.ets74 let rawFile: Uint8Array;
76 rawFile = resourceManager.getRawFileContentSync(jsonPath);
78 … mockStr: string = util.TextDecoder.create("utf-8", { ignoreBOM: true }).decodeWithStream(rawFile);
/test/xts/acts/arkcompiler/arkts_module_test/napi_load/entry/src/ohosTest/ets/testrunner/
DOpenHarmonyTestRunner.ets75 let rawFile: Uint8Array;
77 rawFile = resourceManager.getRawFileContentSync(jsonPath);
79 … mockStr: string = util.TextDecoder.create("utf-8", { ignoreBOM: true }).decodeWithStream(rawFile);
/test/xts/acts/arkcompiler/ecmanewfeatures/entry/src/ohosTest/ets/testrunner/
DOpenHarmonyTestRunner.ets75 let rawFile: Uint8Array;
77 rawFile = resourceManager.getRawFileContentSync(jsonPath);
79 … mockStr: string = util.TextDecoder.create("utf-8", { ignoreBOM: true }).decodeWithStream(rawFile);
/test/xts/acts/security/security_guard/security_guard_func/src/main/ets/TestRunner/
DOpenHarmonyTestRunner.ets76 let rawFile: Uint8Array;
78 rawFile = resourceManager.getRawFileContentSync(jsonPath);
80 … mockStr: string = util.TextDecoder.create("utf-8", { ignoreBOM: true }).decodeWithStream(rawFile);
/test/xts/acts/multimedia/camera/camera_ndk_xts/OHCameraNdk/entry/src/ohosTest/ets/testrunner/
DOpenHarmonyTestRunner.ets75 let rawFile: Uint8Array;
77 rawFile = resourceManager.getRawFileContentSync(jsonPath);
79 … mockStr: string = util.TextDecoder.create('utf-8', { ignoreBOM: true }).decodeWithStream(rawFile);
/test/xts/acts/arkcompiler/arkts_module_test/basic_scenario/entry/src/ohosTest/ets/testrunner/
DOpenHarmonyTestRunner.ets75 let rawFile: Uint8Array;
77 rawFile = resourceManager.getRawFileContentSync(jsonPath);
79 … mockStr: string = util.TextDecoder.create("utf-8", { ignoreBOM: true }).decodeWithStream(rawFile);
/test/xts/acts/commonlibrary/ets_utils/arkts_collections_lib_standard/entry/src/ohosTest/ets/testrunner/
DOpenHarmonyTestRunner.ets75 let rawFile: Uint8Array;
77 rawFile = resourceManager.getRawFileContentSync(jsonPath);
79 … mockStr: string = util.TextDecoder.create("utf-8", { ignoreBOM: true }).decodeWithStream(rawFile);