/foundation/ability/ability_runtime/frameworks/native/runtime/ |
H A D | js_worker.cpp | 172 std::string& ami, bool& useSecureMem, bool isRestricted) in operator ()() 211 GetAmi(ami, filePath); in operator ()() 213 ami = (workerInfo_->codePath).GetOriginString() + filePath; in operator ()() 216 TAG_LOGD(AAFwkTag::JSRUNTIME, "Get asset, ami: %{private}s", ami.c_str()); in operator ()() 217 if (ami.find(CACHE_DIRECTORY) != std::string::npos) { in operator ()() 218 if (!ReadAmiData(ami, buff, buffSize, content, useSecureMem, isRestricted)) { in operator ()() 219 TAG_LOGE(AAFwkTag::JSRUNTIME, "Get buffer by ami failed"); in operator ()() 235 ami = NormalizedFileName(uri); in operator ()() 237 ami in operator ()() 171 operator ()(const std::string& uri, uint8_t** buff, size_t* buffSize, std::vector<uint8_t>& content, std::string& ami, bool& useSecureMem, bool isRestricted) operator ()() argument 270 GetSafeData(const std::string& ami, uint8_t** buff, size_t* buffSize) GetSafeData() argument 315 ReadAmiData(const std::string& ami, uint8_t** buff, size_t* buffSize, std::vector<uint8_t>& content, bool& useSecureMem, bool isRestricted) ReadAmiData() argument 463 GetAmi(std::string& ami, const std::string& filePath) GetAmi() argument [all...] |
H A D | js_worker.h | 47 std::string& ami, bool& useSecureMem, bool isRestricted = false); 52 bool ReadAmiData(const std::string& ami, uint8_t** buff, size_t* buffSize, std::vector<uint8_t>& content, 58 void GetAmi(std::string& ami, const std::string& filePath); 60 bool GetSafeData(const std::string& ami, uint8_t** buff, size_t* buffSize);
|
/foundation/arkui/napi/native_engine/ |
H A D | native_engine.cpp | 622 std::vector<uint8_t>& content, std::string& ami, bool &useSecureMem, bool isRestrictedWorker) in CallGetAssetFunc() 625 getAssetFunc_(uri, buffer, bufferSize, content, ami, useSecureMem, isRestrictedWorker); in CallGetAssetFunc() 845 std::string ami; in RunScriptForAbc() local 847 content, ami, true)) { in RunScriptForAbc() 851 HILOG_DEBUG("RunScriptForAbc: GetAmi: %{private}s", ami.c_str()); in RunScriptForAbc() 858 panda::JSNApi::Execute(vm, ami, entryPoint, false, true); in RunScriptForAbc() 872 std::string ami; in RunScript() local 873 if (!GetAbcBuffer(path, &scriptContent, &scriptContentSize, content, ami)) { in RunScript() 877 HILOG_DEBUG("RunScript: GetAmi: %{private}s", ami.c_str()); in RunScript() 883 return RunActor(scriptContent, scriptContentSize, ami in RunScript() 621 CallGetAssetFunc(const std::string& uri, uint8_t** buffer, size_t* bufferSize, std::vector<uint8_t>& content, std::string& ami, bool &useSecureMem, bool isRestrictedWorker) CallGetAssetFunc() argument 893 std::string ami; RunScriptInRestrictedThread() local 911 GetAbcBuffer(const char* path, uint8_t **buffer, size_t* bufferSize, std::vector<uint8_t>& content, std::string& ami, bool isRestrictedWorker) GetAbcBuffer() argument [all...] |
H A D | native_engine.h | 77 std::vector<uint8_t>& content, std::string& ami, bool &useSecureMem, bool isRestricted)>; 307 std::vector<uint8_t>& content, std::string& ami, bool &useSecureMem, bool isRestricted); 410 std::string& ami, bool isRestrictedWorker = false);
|
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/ |
H A D | frontend_delegate.cpp | 161 bool FrontendDelegate::GetResourceData(const std::string& fileUri, T& content, std::string& ami) in GetResourceData() argument 168 ami = assetManager_->GetAssetPath(targetFilePath, true) + targetFilePath; in GetResourceData() 169 LOGI("GetResourceData ami: %{private}s.", ami.c_str()); in GetResourceData() 196 const std::string& fileUri, std::vector<uint8_t>& content, std::string& ami);
|
H A D | frontend_delegate.h | 305 bool ACE_EXPORT GetResourceData(const std::string& fileUri, T& content, std::string& ami);
|
/foundation/ability/ability_runtime/test/unittest/runtime_test/ |
H A D | js_worker_test.cpp | 87 std::string ami; in HWTEST_F() local 91 func("/data", &buff, &buffSize, content, ami, useSecureMem, isRestricted); in HWTEST_F()
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/pa_engine/engine/common/ |
H A D | js_backend_asset_manager.cpp | 109 bool JsBackendAssetManager::GetResourceData(const std::string& fileUri, std::vector<uint8_t>& content, std::string& ami) in GetResourceData() argument 116 ami = assetManager_->GetAssetPath(targetFilePath, true) + targetFilePath; in GetResourceData()
|
H A D | js_backend_asset_manager.h | 31 bool GetResourceData(const std::string& fileUri, std::vector<uint8_t>& content, std::string& ami);
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/ |
H A D | jsi_declarative_engine.cpp | 1352 std::vector<uint8_t>& content, std::string& ami, bool& useSecureMem, bool isRestricted) { in RegisterAssetFunc() 1359 delegate->GetResourceData(uri.substr(0, index) + ".abc", content, ami); in RegisterAssetFunc()
|
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | jsi_engine.cpp | 3207 std::vector<uint8_t>& content, std::string& ami, bool& useSecureMem, bool isRestricted) { 3218 delegate->GetResourceData(uri.substr(0, index) + ".abc", content, ami);
|