mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-23 07:10:19 +00:00
!2228 Delete extra space or tab indent
Merge pull request !2228 from linuxKernel/master
This commit is contained in:
commit
7423ff26ab
@ -54,4 +54,4 @@ void NAPI_application_Ability_GetABCCode(const char **buf, int *buflen)
|
||||
if (buflen != nullptr) {
|
||||
*buflen = _binary_ability_abc_end - _binary_ability_abc_start;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -117,4 +117,4 @@ extern "C" __attribute__((constructor)) void RegisterModule(void)
|
||||
napi_module_register(&_module);
|
||||
}
|
||||
} // namespace AAFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -54,4 +54,4 @@ void NAPI_application_AbilityContext_GetABCCode(const char **buf, int *buflen)
|
||||
if (buflen != nullptr) {
|
||||
*buflen = _binary_ability_context_abc_end - _binary_ability_context_abc_start;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,4 +27,4 @@ void NAPI_application_AbilityManager_AutoRegister()
|
||||
};
|
||||
|
||||
moduleManager->Register(&newModuleInfo);
|
||||
}
|
||||
}
|
||||
|
@ -24,4 +24,4 @@ namespace AbilityRuntime {
|
||||
NativeValue* JsAbilityManagerInit(NativeEngine* engine, NativeValue* exportObj);
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
#endif // OHOS_ABILITY_RUNTIME_ABILITY_MANAGER_H
|
||||
#endif // OHOS_ABILITY_RUNTIME_ABILITY_MANAGER_H
|
||||
|
@ -33,4 +33,4 @@ NativeValue *AbilityStateInit(NativeEngine *engine);
|
||||
NativeValue* CreateJsElementName(NativeEngine &engine, const AppExecFwk::ElementName &elementName);
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
#endif // OHOS_APPEXECFWK_RUNTIME_APP_MANAGER_UTILS_H
|
||||
#endif // OHOS_APPEXECFWK_RUNTIME_APP_MANAGER_UTILS_H
|
||||
|
@ -96,4 +96,4 @@ private:
|
||||
};
|
||||
} // namespace AbilityDelegatorJs
|
||||
} // namespace OHOS
|
||||
#endif // OHOS_ABILITY_DELEGATOR_JS_ABILITY_MONITOR_H
|
||||
#endif // OHOS_ABILITY_DELEGATOR_JS_ABILITY_MONITOR_H
|
||||
|
@ -206,4 +206,4 @@ private:
|
||||
};
|
||||
} // namespace AbilityDelegatorJs
|
||||
} // namespace OHOS
|
||||
#endif // ABILITY_RUNTIME_JS_ABILITY_DELEGATOR_H
|
||||
#endif // ABILITY_RUNTIME_JS_ABILITY_DELEGATOR_H
|
||||
|
@ -135,4 +135,4 @@ NativeValue *AbilityLifecycleStateInit(NativeEngine *engine)
|
||||
return objValue;
|
||||
}
|
||||
} // namespace AbilityDelegatorJs
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -47,4 +47,4 @@ NativeValue *JsAbilityDelegatorRegistryInit(NativeEngine *engine, NativeValue *e
|
||||
NativeValue *AbilityLifecycleStateInit(NativeEngine *engine);
|
||||
} // namespace AbilityDelegatorJs
|
||||
} // namespace OHOS
|
||||
#endif // OHOS_ABILITY_DELEGATOR_ABILITY_DELEGATOR_REGISTRY_H
|
||||
#endif // OHOS_ABILITY_DELEGATOR_ABILITY_DELEGATOR_REGISTRY_H
|
||||
|
@ -100,7 +100,7 @@ NativeValue *CreateJsShellCmdResult(NativeEngine &engine, std::unique_ptr<ShellC
|
||||
HILOG_ERROR("shellResult is null");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
NativeValue *objValue = engine.CreateObject();
|
||||
NativeObject *object = ConvertNativeValueTo<NativeObject>(objValue);
|
||||
if (object == nullptr) {
|
||||
@ -114,4 +114,4 @@ NativeValue *CreateJsShellCmdResult(NativeEngine &engine, std::unique_ptr<ShellC
|
||||
return objValue;
|
||||
}
|
||||
} // namespace AbilityDelegatorJs
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -31,4 +31,4 @@ NativeValue *CreateJsAbilityDelegatorArguments(
|
||||
NativeValue *CreateJsShellCmdResult(NativeEngine &engine, std::unique_ptr<ShellCmdResult> &shellResult);
|
||||
} // namespace AbilityDelegatorJs
|
||||
} // namespace OHOS
|
||||
#endif // OHOS_ABILITY_DELEGATOR_JS_ABILITY_DELEGATOR_UTILS_H
|
||||
#endif // OHOS_ABILITY_DELEGATOR_JS_ABILITY_DELEGATOR_UTILS_H
|
||||
|
@ -129,4 +129,4 @@ NativeValue *JSAbilityMonitor::CallLifecycleCBFunction(const std::string &functi
|
||||
return engine_->CallFunction(value, method, argv, ArraySize(argv));
|
||||
}
|
||||
} // namespace AbilityDelegatorJs
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -132,4 +132,4 @@ private:
|
||||
};
|
||||
} // namespace AbilityDelegatorJs
|
||||
} // namespace OHOS
|
||||
#endif // OHOS_ABILITY_DELEGATOR_JS_ABILITY_MONITOR_H
|
||||
#endif // OHOS_ABILITY_DELEGATOR_JS_ABILITY_MONITOR_H
|
||||
|
@ -25,4 +25,4 @@ extern "C" __attribute__((constructor)) void NAPI_application_AbilityDelegatorRe
|
||||
};
|
||||
|
||||
moduleManager->Register(&newModuleInfo);
|
||||
}
|
||||
}
|
||||
|
@ -54,4 +54,4 @@ void NAPI_application_AbilityStage_GetABCCode(const char **buf, int *buflen)
|
||||
if (buflen != nullptr) {
|
||||
*buflen = _binary_ability_stage_abc_end - _binary_ability_stage_abc_start;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -54,4 +54,4 @@ void NAPI_application_AbilityStageContext_GetABCCode(const char **buf, int *bufl
|
||||
if (buflen != nullptr) {
|
||||
*buflen = _binary_ability_stage_context_abc_end - _binary_ability_stage_context_abc_start;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -191,4 +191,4 @@ napi_value NAPI_KillProcessesByBundleName(napi_env env, napi_callback_info info)
|
||||
asyncCallbackInfoUPtr.release();
|
||||
return promise;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -60,4 +60,4 @@ static napi_module _module = {
|
||||
extern "C" __attribute__((constructor)) void RegisterModule(void)
|
||||
{
|
||||
napi_module_register(&_module);
|
||||
}
|
||||
}
|
||||
|
@ -27,4 +27,4 @@ void NAPI_application_AppManager_AutoRegister()
|
||||
};
|
||||
|
||||
moduleManager->Register(&newModuleInfo);
|
||||
}
|
||||
}
|
||||
|
@ -448,7 +448,7 @@ private:
|
||||
engine, CreateAsyncTaskWithLastParam(engine, lastParam, nullptr, std::move(complete), &result));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
NativeValue* OnGetAppMemorySize(NativeEngine& engine, NativeCallbackInfo& info)
|
||||
{
|
||||
int32_t errCode = 0;
|
||||
@ -746,4 +746,4 @@ void JSApplicationStateObserver::SetJsObserverObject(NativeValue* jsObserverObje
|
||||
jsObserverObject_ = std::unique_ptr<NativeReference>(engine_.CreateReference(jsObserverObject, 1));
|
||||
}
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -55,4 +55,4 @@ static int64_t serialNumber_ = 0;
|
||||
static std::shared_ptr<AppExecFwk::EventHandler> handler_ = nullptr;
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
#endif // OHOS_APPEXECFWK_RUNTIME_APP_MANAGER_H
|
||||
#endif // OHOS_APPEXECFWK_RUNTIME_APP_MANAGER_H
|
||||
|
@ -34,4 +34,4 @@ NativeValue* CreateJsProcessRunningInfoArray(NativeEngine &engine, const std::ve
|
||||
NativeValue* CreateJsProcessRunningInfo(NativeEngine &engine, const RunningProcessInfo &info);
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
#endif // OHOS_APPEXECFWK_RUNTIME_APP_MANAGER_UTILS_H
|
||||
#endif // OHOS_APPEXECFWK_RUNTIME_APP_MANAGER_UTILS_H
|
||||
|
@ -54,4 +54,4 @@ void NAPI_application_ApplicationContext_GetABCCode(const char **buf, int *bufle
|
||||
if (buflen != nullptr) {
|
||||
*buflen = _binary_application_context_abc_end - _binary_application_context_abc_start;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -54,4 +54,4 @@ void NAPI_application_Context_GetABCCode(const char **buf, int *buflen)
|
||||
if (buflen != nullptr) {
|
||||
*buflen = _binary_context_abc_end - _binary_context_abc_start;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,4 +26,4 @@ extern "C" __attribute__((constructor)) void NAPI_application_ErrorManager_AutoR
|
||||
};
|
||||
|
||||
moduleManager->Register(&newModuleInfo);
|
||||
}
|
||||
}
|
||||
|
@ -147,4 +147,4 @@ NativeValue* JsErrorManagerInit(NativeEngine* engine, NativeValue* exportObj)
|
||||
return engine->CreateUndefined();
|
||||
}
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -24,4 +24,4 @@ namespace AbilityRuntime {
|
||||
NativeValue* JsErrorManagerInit(NativeEngine* engine, NativeValue* exportObj);
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
#endif // OHOS_ABILITY_RUNTIME_JS_ERROR_MANAGER_H
|
||||
#endif // OHOS_ABILITY_RUNTIME_JS_ERROR_MANAGER_H
|
||||
|
@ -85,4 +85,4 @@ bool JsErrorObserver::RemoveJsObserverObject(int32_t observerId)
|
||||
return jsObserverObjectMap_.erase(observerId) == 1;
|
||||
}
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -41,4 +41,4 @@ private:
|
||||
};
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
#endif // OHOS_ABILITY_RUNTIME_JS_ERROR_OBSERVER_H
|
||||
#endif // OHOS_ABILITY_RUNTIME_JS_ERROR_OBSERVER_H
|
||||
|
@ -53,4 +53,4 @@ extern "C" __attribute__((visibility("default"))) void NAPI_application_testRunn
|
||||
if (buflen != nullptr) {
|
||||
*buflen = _binary_test_runner_abc_end - _binary_test_runner_abc_start;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,57 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "native_engine/native_engine.h"
|
||||
|
||||
extern const char _binary_callee_js_start[];
|
||||
extern const char _binary_callee_js_end[];
|
||||
extern const char _binary_callee_abc_start[];
|
||||
extern const char _binary_callee_abc_end[];
|
||||
|
||||
extern "C" __attribute__((constructor))
|
||||
void NAPI_application_Callee_AutoRegister()
|
||||
{
|
||||
auto moduleManager = NativeModuleManager::GetInstance();
|
||||
NativeModule newModuleInfo = {
|
||||
.name = "application.Callee",
|
||||
.fileName = "application/libcallee_napi.so/callee.js",
|
||||
};
|
||||
|
||||
moduleManager->Register(&newModuleInfo);
|
||||
}
|
||||
|
||||
extern "C" __attribute__((visibility("default")))
|
||||
void NAPI_application_Callee_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_callee_js_start;
|
||||
}
|
||||
|
||||
if (bufLen != nullptr) {
|
||||
*bufLen = _binary_callee_js_end - _binary_callee_js_start;
|
||||
}
|
||||
}
|
||||
|
||||
// callee JS register
|
||||
extern "C" __attribute__((visibility("default")))
|
||||
void NAPI_application_Callee_GetABCCode(const char **buf, int *buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_callee_abc_start;
|
||||
}
|
||||
if (buflen != nullptr) {
|
||||
*buflen = _binary_callee_abc_end - _binary_callee_abc_start;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Copyright (c) 2022 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "native_engine/native_engine.h"
|
||||
|
||||
extern const char _binary_callee_js_start[];
|
||||
extern const char _binary_callee_js_end[];
|
||||
extern const char _binary_callee_abc_start[];
|
||||
extern const char _binary_callee_abc_end[];
|
||||
|
||||
extern "C" __attribute__((constructor))
|
||||
void NAPI_application_Callee_AutoRegister()
|
||||
{
|
||||
auto moduleManager = NativeModuleManager::GetInstance();
|
||||
NativeModule newModuleInfo = {
|
||||
.name = "application.Callee",
|
||||
.fileName = "application/libcallee_napi.so/callee.js",
|
||||
};
|
||||
|
||||
moduleManager->Register(&newModuleInfo);
|
||||
}
|
||||
|
||||
extern "C" __attribute__((visibility("default")))
|
||||
void NAPI_application_Callee_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_callee_js_start;
|
||||
}
|
||||
|
||||
if (bufLen != nullptr) {
|
||||
*bufLen = _binary_callee_js_end - _binary_callee_js_start;
|
||||
}
|
||||
}
|
||||
|
||||
// callee JS register
|
||||
extern "C" __attribute__((visibility("default")))
|
||||
void NAPI_application_Callee_GetABCCode(const char **buf, int *buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_callee_abc_start;
|
||||
}
|
||||
if (buflen != nullptr) {
|
||||
*buflen = _binary_callee_abc_end - _binary_callee_abc_start;
|
||||
}
|
||||
}
|
||||
|
@ -1,56 +1,56 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "native_engine/native_engine.h"
|
||||
|
||||
extern const char _binary_caller_js_start[];
|
||||
extern const char _binary_caller_js_end[];
|
||||
extern const char _binary_caller_abc_start[];
|
||||
extern const char _binary_caller_abc_end[];
|
||||
|
||||
extern "C" __attribute__((constructor))
|
||||
void NAPI_application_Caller_AutoRegister()
|
||||
{
|
||||
auto moduleManager = NativeModuleManager::GetInstance();
|
||||
NativeModule newModuleInfo = {
|
||||
.name = "application.Caller",
|
||||
.fileName = "application/libcaller_napi.so/caller.js",
|
||||
};
|
||||
|
||||
moduleManager->Register(&newModuleInfo);
|
||||
}
|
||||
|
||||
extern "C" __attribute__((visibility("default")))
|
||||
void NAPI_application_Caller_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_caller_js_start;
|
||||
}
|
||||
|
||||
if (bufLen != nullptr) {
|
||||
*bufLen = _binary_caller_js_end - _binary_caller_js_start;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" __attribute__((visibility("default")))
|
||||
void NAPI_application_Caller_GetABCCode(const char **buf, int *buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_caller_abc_start;
|
||||
}
|
||||
if (buflen != nullptr) {
|
||||
*buflen = _binary_caller_abc_end - _binary_caller_abc_start;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Copyright (c) 2022 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "native_engine/native_engine.h"
|
||||
|
||||
extern const char _binary_caller_js_start[];
|
||||
extern const char _binary_caller_js_end[];
|
||||
extern const char _binary_caller_abc_start[];
|
||||
extern const char _binary_caller_abc_end[];
|
||||
|
||||
extern "C" __attribute__((constructor))
|
||||
void NAPI_application_Caller_AutoRegister()
|
||||
{
|
||||
auto moduleManager = NativeModuleManager::GetInstance();
|
||||
NativeModule newModuleInfo = {
|
||||
.name = "application.Caller",
|
||||
.fileName = "application/libcaller_napi.so/caller.js",
|
||||
};
|
||||
|
||||
moduleManager->Register(&newModuleInfo);
|
||||
}
|
||||
|
||||
extern "C" __attribute__((visibility("default")))
|
||||
void NAPI_application_Caller_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_caller_js_start;
|
||||
}
|
||||
|
||||
if (bufLen != nullptr) {
|
||||
*bufLen = _binary_caller_js_end - _binary_caller_js_start;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" __attribute__((visibility("default")))
|
||||
void NAPI_application_Caller_GetABCCode(const char **buf, int *buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_caller_abc_start;
|
||||
}
|
||||
if (buflen != nullptr) {
|
||||
*buflen = _binary_caller_abc_end - _binary_caller_abc_start;
|
||||
}
|
||||
}
|
||||
|
@ -121,4 +121,4 @@ extern "C" __attribute__((constructor)) void RegisterModule(void)
|
||||
napi_module_register(&_module);
|
||||
}
|
||||
} // namespace AAFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -54,4 +54,4 @@ void NAPI_ability_dataUriUtils_GetABCCode(const char **buf, int *buflen)
|
||||
if (buflen != nullptr) {
|
||||
*buflen = _binary_data_uri_utils_abc_end - _binary_data_uri_utils_abc_start;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -54,4 +54,4 @@ void NAPI_application_ExtensionContext_GetABCCode(const char **buf, int *buflen)
|
||||
if (buflen != nullptr) {
|
||||
*buflen = _binary_extension_context_abc_end - _binary_extension_context_abc_start;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1615,4 +1615,4 @@ napi_value ContinueAbilityPromise(napi_env env, napi_value *args, AsyncCallbackI
|
||||
return promise;
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -86,4 +86,4 @@ void SetNamedProperty(napi_env env, napi_value dstObj, const int32_t objValue, c
|
||||
napi_set_named_property(env, dstObj, propName, prop);
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -2807,4 +2807,4 @@ napi_value NAPI_SetWakeUpScreen(napi_env env, napi_callback_info info)
|
||||
#endif
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -223,4 +223,4 @@ void SetNamedProperty(napi_env env, napi_value obj, const char *propName, int pr
|
||||
napi_set_named_property(env, obj, propName, prop);
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -63,4 +63,4 @@ extern "C" __attribute__((constructor)) void RegisterModule(void)
|
||||
napi_module_register(&_module);
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -21,4 +21,4 @@ namespace AppExecFwk {
|
||||
const std::string DistributeConstants::START_ABILITY_URL_KEY = "url";
|
||||
const std::string DistributeConstants::DEEP_LINK_ACTION_NAME = "ohos.want.action.viewData";
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -26,4 +26,4 @@ extern "C" __attribute__((constructor)) void NAPI_application_formInfo_AutoRegis
|
||||
};
|
||||
|
||||
moduleManager->Register(&newModuleInfo);
|
||||
}
|
||||
}
|
||||
|
@ -518,4 +518,4 @@ NativeValue* JsFeatureAbilityInit(NativeEngine* engine, NativeValue* exportObj)
|
||||
return global;
|
||||
}
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -72,4 +72,4 @@ private:
|
||||
NativeValue* JsFeatureAbilityInit(NativeEngine* engine, NativeValue* exportObj);
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
#endif // OHOS_ABILITY_RUNTIME_FEATURE_ABILITY_H
|
||||
#endif // OHOS_ABILITY_RUNTIME_FEATURE_ABILITY_H
|
||||
|
@ -1429,4 +1429,4 @@ extern "C" __attribute__((constructor)) void AbilityRegister()
|
||||
napi_module_register(&missionModule);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -168,4 +168,4 @@ bool WrapJsWantParamsArray(NativeEngine &engine, NativeObject* object, const std
|
||||
}
|
||||
}
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -76,4 +76,4 @@ bool InnerWrapWantParamsArray(
|
||||
}
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
#endif // OHOS_ABILITY_RUNTIME_JS_MISSION_INFO_UTILS_H
|
||||
#endif // OHOS_ABILITY_RUNTIME_JS_MISSION_INFO_UTILS_H
|
||||
|
@ -164,4 +164,4 @@ void JsMissionListener::CallJsMissionIconUpdated(int32_t missionId, const std::s
|
||||
}
|
||||
#endif
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -57,4 +57,4 @@ private:
|
||||
};
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
#endif /* OHOS_ABILITY_RUNTIME_JS_MISSION_LISTENER_H */
|
||||
#endif /* OHOS_ABILITY_RUNTIME_JS_MISSION_LISTENER_H */
|
||||
|
@ -50,4 +50,4 @@ int32_t MissionContinueStub::OnRemoteRequest(
|
||||
}
|
||||
}
|
||||
} // namespace AAFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -36,4 +36,4 @@ private:
|
||||
};
|
||||
} // namespace AAFwk
|
||||
} // namespace OHOS
|
||||
#endif // OHOS_MISSION_CONTINUE_STUB_H
|
||||
#endif // OHOS_MISSION_CONTINUE_STUB_H
|
||||
|
@ -531,4 +531,4 @@ NativeValue* JsMissionManagerInit(NativeEngine* engine, NativeValue* exportObj)
|
||||
return engine->CreateUndefined();
|
||||
}
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -240,4 +240,4 @@ napi_value ParticleAbilityInit(napi_env env, napi_value exports)
|
||||
return exports;
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -53,4 +53,4 @@ void NAPI_application_ServiceExtensionAbility_GetABCCode(const char **buf, int *
|
||||
if (buflen != nullptr) {
|
||||
*buflen = _binary_service_extension_ability_abc_end - _binary_service_extension_ability_abc_start;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -56,4 +56,4 @@ void NAPI_application_StaticSubscriberExtensionAbility_GetABCCode(const char **b
|
||||
*buflen = _binary_static_subscriber_extension_ability_abc_end -
|
||||
_binary_static_subscriber_extension_ability_abc_start;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -118,4 +118,4 @@ NativeValue* CreateJsUriPermMgr(NativeEngine* engine, NativeValue* exportObj)
|
||||
return engine->CreateUndefined();
|
||||
}
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -23,4 +23,4 @@ namespace AbilityRuntime {
|
||||
NativeValue* CreateJsUriPermMgr(NativeEngine* engine, NativeValue* exportObj);
|
||||
} // namespace AbilityRuntime
|
||||
} // namespace OHOS
|
||||
#endif // ABILITY_RUNTIME_JS_URI_PERM_MGR_H
|
||||
#endif // ABILITY_RUNTIME_JS_URI_PERM_MGR_H
|
||||
|
@ -27,4 +27,4 @@ void NAPI_application_uripermissionmanager_AutoRegister()
|
||||
};
|
||||
|
||||
moduleManager->Register(&newModuleInfo);
|
||||
}
|
||||
}
|
||||
|
@ -55,4 +55,4 @@ extern "C" __attribute__((constructor)) void RegisterModule(void)
|
||||
napi_module_register(&_module);
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -122,4 +122,4 @@ napi_value ActionConstructor(napi_env env, napi_callback_info info)
|
||||
return jsthis;
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -60,4 +60,4 @@ extern "C" __attribute__((constructor)) void RegisterModule(void)
|
||||
{
|
||||
napi_module_register(&_module);
|
||||
}
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -221,4 +221,4 @@ HWTEST_F(AbilityCallerTest, AaFwk_Ability_OnCallStubDied_0200, Function | Medium
|
||||
EXPECT_FALSE(isSetOnReleaseCalled);
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -151,4 +151,4 @@ HWTEST_F(AbilityContextImplTest, Ability_Context_Impl_IsTerminating_0100, Functi
|
||||
EXPECT_FALSE(ret);
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -155,4 +155,4 @@ HWTEST_F(CallerCallBackTest, Caller_Call_Back_IsCallBack_0100, Function | Medium
|
||||
EXPECT_EQ(ret, true);
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -412,4 +412,4 @@ HWTEST_F(LocalCallContainerTest, Local_Call_Container_GetCallLocalRecord_0200, F
|
||||
EXPECT_TRUE(ret == false);
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -312,4 +312,4 @@ HWTEST_F(LocalCallRecordTest, Local_Call_Record_IsExistCallBack_0100, Function |
|
||||
EXPECT_TRUE(localCallRecord.IsExistCallBack() == true);
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -98,4 +98,4 @@ private:
|
||||
};
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_PAGE_ABILITY_H
|
||||
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_PAGE_ABILITY_H
|
||||
|
@ -112,4 +112,4 @@ ErrCode AbilityManagerClient::ReleaseDataAbility(
|
||||
}
|
||||
} // namespace AAFwk
|
||||
} // namespace OHOS
|
||||
#endif /* OHOS_APPEXECFWK_MOCK_ABILITY_MANAGER_CLIENT_FOR_DATA_ABILITY_OBSERVER_STUB_H */
|
||||
#endif /* OHOS_APPEXECFWK_MOCK_ABILITY_MANAGER_CLIENT_FOR_DATA_ABILITY_OBSERVER_STUB_H */
|
||||
|
@ -35,4 +35,4 @@ private:
|
||||
};
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_PAGE_ABILITY_H
|
||||
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_PAGE_ABILITY_H
|
||||
|
@ -28,4 +28,4 @@ public:
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
|
||||
#endif /* OHOS_APPEXECFWK_MOCK_CONTEXT_DEAL_H */
|
||||
#endif /* OHOS_APPEXECFWK_MOCK_CONTEXT_DEAL_H */
|
||||
|
@ -43,4 +43,4 @@ public:
|
||||
};
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_PAGE_ABILITY_H
|
||||
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_PAGE_ABILITY_H
|
||||
|
@ -113,4 +113,4 @@ public:
|
||||
};
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_PAGE_ABILITY_H
|
||||
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_PAGE_ABILITY_H
|
||||
|
@ -83,4 +83,4 @@ std::string DataAbilityImpl::GetType(const Uri &uri)
|
||||
return type;
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -132,4 +132,4 @@ public:
|
||||
};
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_LIFECYCLE_OBSERVER_INTERFACE_H
|
||||
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_LIFECYCLE_OBSERVER_INTERFACE_H
|
||||
|
@ -205,4 +205,4 @@ void AbilityImpl::DoKeyUp(const std::shared_ptr<MMI::KeyEvent>& keyEvent) {}
|
||||
void AbilityImpl::DoPointerEvent(std::shared_ptr<MMI::PointerEvent>& pointerEvent) {}
|
||||
#endif
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -39,4 +39,4 @@ public:
|
||||
};
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_ABILITY_SCENE_H
|
||||
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_ABILITY_SCENE_H
|
||||
|
@ -70,4 +70,4 @@ public:
|
||||
};
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_SERVICE_ABILITY_H
|
||||
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_SERVICE_ABILITY_H
|
||||
|
@ -168,4 +168,4 @@ HWTEST_F(AbilityLifecycleExecutorTest,
|
||||
GTEST_LOG_(INFO) << "AaFwk_AbilityLifecycleExecutor_DispatchLifecycleState_0500 end";
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -147,4 +147,4 @@ HWTEST_F(
|
||||
context_->RequestPermissionsFromUser(permissions, permissionsState, 1004);
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -128,4 +128,4 @@ HWTEST_F(AbilityThreadCallRequestTest, AaFwk_AbilityThread_CallRequest_0300, Fun
|
||||
GTEST_LOG_(INFO) << "AaFwk_AbilityThread_CallRequest_0300 end";
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -405,4 +405,4 @@ HWTEST_F(AbilityThreadTest, AaFwk_AbilityThread_Delete_0100, Function | MediumTe
|
||||
GTEST_LOG_(INFO) << "AaFwk_AbilityThread_Delete_0100 end";
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -126,4 +126,4 @@ HWTEST_F(AbilityThreadTest, AaFwk_AbilityThread_ScheduleUpdateConfiguration_0100
|
||||
GTEST_LOG_(INFO) << "AaFwk_AbilityThread_ScheduleUpdateConfiguration_0100 end";
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -757,4 +757,4 @@ HWTEST_F(AbilityThreadTest, AaFwk_AbilityThread_AbilityThreadMain_0400, Function
|
||||
GTEST_LOG_(INFO) << "AaFwk_AbilityThread_AbilityThreadMain_0400 end";
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -783,4 +783,4 @@ HWTEST_F(DataAbilityHelperForObserverTest, AaFwk_DataAbilityHelper_DenormalizeUr
|
||||
GTEST_LOG_(INFO) << "AaFwk_DataAbilityHelper_DenormalizeUri_0200 end";
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -164,4 +164,4 @@ HWTEST_F(DataAbilityImplTest, AaFwk_DataAbilityImplTest_HandleAbilityTransaction
|
||||
GTEST_LOG_(INFO) << "AaFwk_DataAbilityImplTest_HandleAbilityTransaction_002 end";
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -327,4 +327,4 @@ HWTEST_F(DataAbilityImplTest, AaFwk_DataAbilityImplTest_Reload_002, Function | M
|
||||
GTEST_LOG_(INFO) << "AaFwk_DataAbilityImplTest_Reload_002 end";
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -267,4 +267,4 @@ HWTEST_F(DataAbilityImplTest, AaFwk_DataAbilityImplTest_Query_0200, Function | M
|
||||
GTEST_LOG_(INFO) << "AaFwk_DataAbilityImplTest_Query_0200 end";
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -725,4 +725,4 @@ HWTEST_F(DataAbilityOperationTest, AaFwk_DataAbilityOperationBuilder_WithInterru
|
||||
GTEST_LOG_(INFO) << "AaFwk_DataAbilityOperationBuilder_WithInterruptionAllowed_0100 end";
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -145,4 +145,4 @@ HWTEST_F(DataUriUtilsTest, AaFwk_DataUriUtils_AttachIdUpdateId001, Function | Me
|
||||
GTEST_LOG_(INFO) << "AaFwk_DataUriUtils_AttachIdUpdateId001 end";
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -102,4 +102,4 @@ HWTEST_F(NewAbilityImplTest, AaFwk_NewAbilityImpl_HandleAbilityTransaction_0100,
|
||||
GTEST_LOG_(INFO) << "AaFwk_NewAbilityImpl_HandleAbilityTransaction_0100 end";
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -744,4 +744,4 @@ HWTEST_F(PacMapTest, AppExecFwk_PacMap_Marshalling_0300, Function | MediumTest |
|
||||
GTEST_LOG_(INFO) << "AppExecFwk_PacMap_Marshalling_0300 end";
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -687,4 +687,4 @@ HWTEST_F(PageAbilityImplTest, AaFwk_PageAbilityImpl_NewWant_0100, Function | Med
|
||||
GTEST_LOG_(INFO) << "AaFwk_PageAbilityImpl_NewWant_0100 end";
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -208,4 +208,4 @@ HWTEST_F(ServiceAbilityImplTest, AaFwk_ServiceAbilityImpl_HandleAbilityTransacti
|
||||
GTEST_LOG_(INFO) << "AaFwk_ServiceAbilityImpl_HandleAbilityTransaction_0400 end";
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -94,4 +94,4 @@ HWTEST_F(TaskHandlerClientTest, AaFwk_TaskHandlerClient_PostTask_0100, Function
|
||||
GTEST_LOG_(INFO) << "AaFwk_TaskHandlerClient_PostTask_0100 end";
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -411,4 +411,4 @@ int MockAbilityDelegatorStub2::RegisterWindowManagerServiceHandler(const sptr<IW
|
||||
}
|
||||
#endif
|
||||
} // namespace AAFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -56,7 +56,7 @@ void MockIabilityMonitor::OnAbilityStop(const std::weak_ptr<NativeReference> &ab
|
||||
HILOG_INFO("MockIabilityMonitor::OnAbilityStop is called");
|
||||
stop_ = true;
|
||||
}
|
||||
|
||||
|
||||
void MockIabilityMonitor::OnWindowStageCreate(const std::weak_ptr<NativeReference> &abilityObj)
|
||||
{
|
||||
HILOG_INFO("MockIabilityMonitor::OnWindowStageCreate is called");
|
||||
|
@ -59,4 +59,4 @@ public:
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
|
||||
#endif // FOUNDATION_AAFWK_STANDARD_TOOLS_TEST_MOCK_MOCK_IABILITY_MONITOR__H
|
||||
#endif // FOUNDATION_AAFWK_STANDARD_TOOLS_TEST_MOCK_MOCK_IABILITY_MONITOR__H
|
||||
|
@ -20,7 +20,7 @@ namespace OHOS {
|
||||
namespace AAFwk {
|
||||
MockTestObserverStub::~MockTestObserverStub()
|
||||
{}
|
||||
|
||||
|
||||
int MockTestObserverStub::OnRemoteRequest(
|
||||
uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option)
|
||||
{
|
||||
@ -43,4 +43,4 @@ ShellCommandResult MockTestObserverStub::ExecuteShellCommand(
|
||||
return ShellCommandResult();
|
||||
}
|
||||
} // namespace AAFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -38,4 +38,4 @@ public:
|
||||
} // namespace AAFwk
|
||||
} // namespace OHOS
|
||||
|
||||
#endif // FOUNDATION_AAFWK_STANDARD_TOOLS_TEST_MOCK_ABILITY_DELEGATOR_MOCK_TEST_OBSERVER_STUB_H
|
||||
#endif // FOUNDATION_AAFWK_STANDARD_TOOLS_TEST_MOCK_ABILITY_DELEGATOR_MOCK_TEST_OBSERVER_STUB_H
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user