!2228 Delete extra space or tab indent

Merge pull request !2228 from linuxKernel/master
This commit is contained in:
openharmony_ci 2022-06-30 06:15:07 +00:00 committed by Gitee
commit 7423ff26ab
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
779 changed files with 11858 additions and 11858 deletions

View File

@ -54,4 +54,4 @@ void NAPI_application_Ability_GetABCCode(const char **buf, int *buflen)
if (buflen != nullptr) { if (buflen != nullptr) {
*buflen = _binary_ability_abc_end - _binary_ability_abc_start; *buflen = _binary_ability_abc_end - _binary_ability_abc_start;
} }
} }

View File

@ -117,4 +117,4 @@ extern "C" __attribute__((constructor)) void RegisterModule(void)
napi_module_register(&_module); napi_module_register(&_module);
} }
} // namespace AAFwk } // namespace AAFwk
} // namespace OHOS } // namespace OHOS

View File

@ -54,4 +54,4 @@ void NAPI_application_AbilityContext_GetABCCode(const char **buf, int *buflen)
if (buflen != nullptr) { if (buflen != nullptr) {
*buflen = _binary_ability_context_abc_end - _binary_ability_context_abc_start; *buflen = _binary_ability_context_abc_end - _binary_ability_context_abc_start;
} }
} }

View File

@ -27,4 +27,4 @@ void NAPI_application_AbilityManager_AutoRegister()
}; };
moduleManager->Register(&newModuleInfo); moduleManager->Register(&newModuleInfo);
} }

View File

@ -24,4 +24,4 @@ namespace AbilityRuntime {
NativeValue* JsAbilityManagerInit(NativeEngine* engine, NativeValue* exportObj); NativeValue* JsAbilityManagerInit(NativeEngine* engine, NativeValue* exportObj);
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS
#endif // OHOS_ABILITY_RUNTIME_ABILITY_MANAGER_H #endif // OHOS_ABILITY_RUNTIME_ABILITY_MANAGER_H

View File

@ -33,4 +33,4 @@ NativeValue *AbilityStateInit(NativeEngine *engine);
NativeValue* CreateJsElementName(NativeEngine &engine, const AppExecFwk::ElementName &elementName); NativeValue* CreateJsElementName(NativeEngine &engine, const AppExecFwk::ElementName &elementName);
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS
#endif // OHOS_APPEXECFWK_RUNTIME_APP_MANAGER_UTILS_H #endif // OHOS_APPEXECFWK_RUNTIME_APP_MANAGER_UTILS_H

View File

@ -96,4 +96,4 @@ private:
}; };
} // namespace AbilityDelegatorJs } // namespace AbilityDelegatorJs
} // namespace OHOS } // namespace OHOS
#endif // OHOS_ABILITY_DELEGATOR_JS_ABILITY_MONITOR_H #endif // OHOS_ABILITY_DELEGATOR_JS_ABILITY_MONITOR_H

View File

@ -206,4 +206,4 @@ private:
}; };
} // namespace AbilityDelegatorJs } // namespace AbilityDelegatorJs
} // namespace OHOS } // namespace OHOS
#endif // ABILITY_RUNTIME_JS_ABILITY_DELEGATOR_H #endif // ABILITY_RUNTIME_JS_ABILITY_DELEGATOR_H

View File

@ -135,4 +135,4 @@ NativeValue *AbilityLifecycleStateInit(NativeEngine *engine)
return objValue; return objValue;
} }
} // namespace AbilityDelegatorJs } // namespace AbilityDelegatorJs
} // namespace OHOS } // namespace OHOS

View File

@ -47,4 +47,4 @@ NativeValue *JsAbilityDelegatorRegistryInit(NativeEngine *engine, NativeValue *e
NativeValue *AbilityLifecycleStateInit(NativeEngine *engine); NativeValue *AbilityLifecycleStateInit(NativeEngine *engine);
} // namespace AbilityDelegatorJs } // namespace AbilityDelegatorJs
} // namespace OHOS } // namespace OHOS
#endif // OHOS_ABILITY_DELEGATOR_ABILITY_DELEGATOR_REGISTRY_H #endif // OHOS_ABILITY_DELEGATOR_ABILITY_DELEGATOR_REGISTRY_H

View File

@ -100,7 +100,7 @@ NativeValue *CreateJsShellCmdResult(NativeEngine &engine, std::unique_ptr<ShellC
HILOG_ERROR("shellResult is null"); HILOG_ERROR("shellResult is null");
return nullptr; return nullptr;
} }
NativeValue *objValue = engine.CreateObject(); NativeValue *objValue = engine.CreateObject();
NativeObject *object = ConvertNativeValueTo<NativeObject>(objValue); NativeObject *object = ConvertNativeValueTo<NativeObject>(objValue);
if (object == nullptr) { if (object == nullptr) {
@ -114,4 +114,4 @@ NativeValue *CreateJsShellCmdResult(NativeEngine &engine, std::unique_ptr<ShellC
return objValue; return objValue;
} }
} // namespace AbilityDelegatorJs } // namespace AbilityDelegatorJs
} // namespace OHOS } // namespace OHOS

View File

@ -31,4 +31,4 @@ NativeValue *CreateJsAbilityDelegatorArguments(
NativeValue *CreateJsShellCmdResult(NativeEngine &engine, std::unique_ptr<ShellCmdResult> &shellResult); NativeValue *CreateJsShellCmdResult(NativeEngine &engine, std::unique_ptr<ShellCmdResult> &shellResult);
} // namespace AbilityDelegatorJs } // namespace AbilityDelegatorJs
} // namespace OHOS } // namespace OHOS
#endif // OHOS_ABILITY_DELEGATOR_JS_ABILITY_DELEGATOR_UTILS_H #endif // OHOS_ABILITY_DELEGATOR_JS_ABILITY_DELEGATOR_UTILS_H

View File

@ -129,4 +129,4 @@ NativeValue *JSAbilityMonitor::CallLifecycleCBFunction(const std::string &functi
return engine_->CallFunction(value, method, argv, ArraySize(argv)); return engine_->CallFunction(value, method, argv, ArraySize(argv));
} }
} // namespace AbilityDelegatorJs } // namespace AbilityDelegatorJs
} // namespace OHOS } // namespace OHOS

View File

@ -132,4 +132,4 @@ private:
}; };
} // namespace AbilityDelegatorJs } // namespace AbilityDelegatorJs
} // namespace OHOS } // namespace OHOS
#endif // OHOS_ABILITY_DELEGATOR_JS_ABILITY_MONITOR_H #endif // OHOS_ABILITY_DELEGATOR_JS_ABILITY_MONITOR_H

View File

@ -25,4 +25,4 @@ extern "C" __attribute__((constructor)) void NAPI_application_AbilityDelegatorRe
}; };
moduleManager->Register(&newModuleInfo); moduleManager->Register(&newModuleInfo);
} }

View File

@ -54,4 +54,4 @@ void NAPI_application_AbilityStage_GetABCCode(const char **buf, int *buflen)
if (buflen != nullptr) { if (buflen != nullptr) {
*buflen = _binary_ability_stage_abc_end - _binary_ability_stage_abc_start; *buflen = _binary_ability_stage_abc_end - _binary_ability_stage_abc_start;
} }
} }

View File

@ -54,4 +54,4 @@ void NAPI_application_AbilityStageContext_GetABCCode(const char **buf, int *bufl
if (buflen != nullptr) { if (buflen != nullptr) {
*buflen = _binary_ability_stage_context_abc_end - _binary_ability_stage_context_abc_start; *buflen = _binary_ability_stage_context_abc_end - _binary_ability_stage_context_abc_start;
} }
} }

View File

@ -191,4 +191,4 @@ napi_value NAPI_KillProcessesByBundleName(napi_env env, napi_callback_info info)
asyncCallbackInfoUPtr.release(); asyncCallbackInfoUPtr.release();
return promise; return promise;
} }
} }

View File

@ -60,4 +60,4 @@ static napi_module _module = {
extern "C" __attribute__((constructor)) void RegisterModule(void) extern "C" __attribute__((constructor)) void RegisterModule(void)
{ {
napi_module_register(&_module); napi_module_register(&_module);
} }

View File

@ -27,4 +27,4 @@ void NAPI_application_AppManager_AutoRegister()
}; };
moduleManager->Register(&newModuleInfo); moduleManager->Register(&newModuleInfo);
} }

View File

@ -448,7 +448,7 @@ private:
engine, CreateAsyncTaskWithLastParam(engine, lastParam, nullptr, std::move(complete), &result)); engine, CreateAsyncTaskWithLastParam(engine, lastParam, nullptr, std::move(complete), &result));
return result; return result;
} }
NativeValue* OnGetAppMemorySize(NativeEngine& engine, NativeCallbackInfo& info) NativeValue* OnGetAppMemorySize(NativeEngine& engine, NativeCallbackInfo& info)
{ {
int32_t errCode = 0; int32_t errCode = 0;
@ -746,4 +746,4 @@ void JSApplicationStateObserver::SetJsObserverObject(NativeValue* jsObserverObje
jsObserverObject_ = std::unique_ptr<NativeReference>(engine_.CreateReference(jsObserverObject, 1)); jsObserverObject_ = std::unique_ptr<NativeReference>(engine_.CreateReference(jsObserverObject, 1));
} }
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS

View File

@ -55,4 +55,4 @@ static int64_t serialNumber_ = 0;
static std::shared_ptr<AppExecFwk::EventHandler> handler_ = nullptr; static std::shared_ptr<AppExecFwk::EventHandler> handler_ = nullptr;
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS
#endif // OHOS_APPEXECFWK_RUNTIME_APP_MANAGER_H #endif // OHOS_APPEXECFWK_RUNTIME_APP_MANAGER_H

View File

@ -34,4 +34,4 @@ NativeValue* CreateJsProcessRunningInfoArray(NativeEngine &engine, const std::ve
NativeValue* CreateJsProcessRunningInfo(NativeEngine &engine, const RunningProcessInfo &info); NativeValue* CreateJsProcessRunningInfo(NativeEngine &engine, const RunningProcessInfo &info);
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS
#endif // OHOS_APPEXECFWK_RUNTIME_APP_MANAGER_UTILS_H #endif // OHOS_APPEXECFWK_RUNTIME_APP_MANAGER_UTILS_H

View File

@ -54,4 +54,4 @@ void NAPI_application_ApplicationContext_GetABCCode(const char **buf, int *bufle
if (buflen != nullptr) { if (buflen != nullptr) {
*buflen = _binary_application_context_abc_end - _binary_application_context_abc_start; *buflen = _binary_application_context_abc_end - _binary_application_context_abc_start;
} }
} }

View File

@ -54,4 +54,4 @@ void NAPI_application_Context_GetABCCode(const char **buf, int *buflen)
if (buflen != nullptr) { if (buflen != nullptr) {
*buflen = _binary_context_abc_end - _binary_context_abc_start; *buflen = _binary_context_abc_end - _binary_context_abc_start;
} }
} }

View File

@ -26,4 +26,4 @@ extern "C" __attribute__((constructor)) void NAPI_application_ErrorManager_AutoR
}; };
moduleManager->Register(&newModuleInfo); moduleManager->Register(&newModuleInfo);
} }

View File

@ -147,4 +147,4 @@ NativeValue* JsErrorManagerInit(NativeEngine* engine, NativeValue* exportObj)
return engine->CreateUndefined(); return engine->CreateUndefined();
} }
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS

View File

@ -24,4 +24,4 @@ namespace AbilityRuntime {
NativeValue* JsErrorManagerInit(NativeEngine* engine, NativeValue* exportObj); NativeValue* JsErrorManagerInit(NativeEngine* engine, NativeValue* exportObj);
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS
#endif // OHOS_ABILITY_RUNTIME_JS_ERROR_MANAGER_H #endif // OHOS_ABILITY_RUNTIME_JS_ERROR_MANAGER_H

View File

@ -85,4 +85,4 @@ bool JsErrorObserver::RemoveJsObserverObject(int32_t observerId)
return jsObserverObjectMap_.erase(observerId) == 1; return jsObserverObjectMap_.erase(observerId) == 1;
} }
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS

View File

@ -41,4 +41,4 @@ private:
}; };
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS
#endif // OHOS_ABILITY_RUNTIME_JS_ERROR_OBSERVER_H #endif // OHOS_ABILITY_RUNTIME_JS_ERROR_OBSERVER_H

View File

@ -53,4 +53,4 @@ extern "C" __attribute__((visibility("default"))) void NAPI_application_testRunn
if (buflen != nullptr) { if (buflen != nullptr) {
*buflen = _binary_test_runner_abc_end - _binary_test_runner_abc_start; *buflen = _binary_test_runner_abc_end - _binary_test_runner_abc_start;
} }
} }

View File

@ -1,57 +1,57 @@
/* /*
* Copyright (c) 2022 Huawei Device Co., Ltd. * Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include "native_engine/native_engine.h" #include "native_engine/native_engine.h"
extern const char _binary_callee_js_start[]; extern const char _binary_callee_js_start[];
extern const char _binary_callee_js_end[]; extern const char _binary_callee_js_end[];
extern const char _binary_callee_abc_start[]; extern const char _binary_callee_abc_start[];
extern const char _binary_callee_abc_end[]; extern const char _binary_callee_abc_end[];
extern "C" __attribute__((constructor)) extern "C" __attribute__((constructor))
void NAPI_application_Callee_AutoRegister() void NAPI_application_Callee_AutoRegister()
{ {
auto moduleManager = NativeModuleManager::GetInstance(); auto moduleManager = NativeModuleManager::GetInstance();
NativeModule newModuleInfo = { NativeModule newModuleInfo = {
.name = "application.Callee", .name = "application.Callee",
.fileName = "application/libcallee_napi.so/callee.js", .fileName = "application/libcallee_napi.so/callee.js",
}; };
moduleManager->Register(&newModuleInfo); moduleManager->Register(&newModuleInfo);
} }
extern "C" __attribute__((visibility("default"))) extern "C" __attribute__((visibility("default")))
void NAPI_application_Callee_GetJSCode(const char **buf, int *bufLen) void NAPI_application_Callee_GetJSCode(const char **buf, int *bufLen)
{ {
if (buf != nullptr) { if (buf != nullptr) {
*buf = _binary_callee_js_start; *buf = _binary_callee_js_start;
} }
if (bufLen != nullptr) { if (bufLen != nullptr) {
*bufLen = _binary_callee_js_end - _binary_callee_js_start; *bufLen = _binary_callee_js_end - _binary_callee_js_start;
} }
} }
// callee JS register // callee JS register
extern "C" __attribute__((visibility("default"))) extern "C" __attribute__((visibility("default")))
void NAPI_application_Callee_GetABCCode(const char **buf, int *buflen) void NAPI_application_Callee_GetABCCode(const char **buf, int *buflen)
{ {
if (buf != nullptr) { if (buf != nullptr) {
*buf = _binary_callee_abc_start; *buf = _binary_callee_abc_start;
} }
if (buflen != nullptr) { if (buflen != nullptr) {
*buflen = _binary_callee_abc_end - _binary_callee_abc_start; *buflen = _binary_callee_abc_end - _binary_callee_abc_start;
} }
} }

View File

@ -1,56 +1,56 @@
/* /*
* Copyright (c) 2022 Huawei Device Co., Ltd. * Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include "native_engine/native_engine.h" #include "native_engine/native_engine.h"
extern const char _binary_caller_js_start[]; extern const char _binary_caller_js_start[];
extern const char _binary_caller_js_end[]; extern const char _binary_caller_js_end[];
extern const char _binary_caller_abc_start[]; extern const char _binary_caller_abc_start[];
extern const char _binary_caller_abc_end[]; extern const char _binary_caller_abc_end[];
extern "C" __attribute__((constructor)) extern "C" __attribute__((constructor))
void NAPI_application_Caller_AutoRegister() void NAPI_application_Caller_AutoRegister()
{ {
auto moduleManager = NativeModuleManager::GetInstance(); auto moduleManager = NativeModuleManager::GetInstance();
NativeModule newModuleInfo = { NativeModule newModuleInfo = {
.name = "application.Caller", .name = "application.Caller",
.fileName = "application/libcaller_napi.so/caller.js", .fileName = "application/libcaller_napi.so/caller.js",
}; };
moduleManager->Register(&newModuleInfo); moduleManager->Register(&newModuleInfo);
} }
extern "C" __attribute__((visibility("default"))) extern "C" __attribute__((visibility("default")))
void NAPI_application_Caller_GetJSCode(const char **buf, int *bufLen) void NAPI_application_Caller_GetJSCode(const char **buf, int *bufLen)
{ {
if (buf != nullptr) { if (buf != nullptr) {
*buf = _binary_caller_js_start; *buf = _binary_caller_js_start;
} }
if (bufLen != nullptr) { if (bufLen != nullptr) {
*bufLen = _binary_caller_js_end - _binary_caller_js_start; *bufLen = _binary_caller_js_end - _binary_caller_js_start;
} }
} }
extern "C" __attribute__((visibility("default"))) extern "C" __attribute__((visibility("default")))
void NAPI_application_Caller_GetABCCode(const char **buf, int *buflen) void NAPI_application_Caller_GetABCCode(const char **buf, int *buflen)
{ {
if (buf != nullptr) { if (buf != nullptr) {
*buf = _binary_caller_abc_start; *buf = _binary_caller_abc_start;
} }
if (buflen != nullptr) { if (buflen != nullptr) {
*buflen = _binary_caller_abc_end - _binary_caller_abc_start; *buflen = _binary_caller_abc_end - _binary_caller_abc_start;
} }
} }

View File

@ -121,4 +121,4 @@ extern "C" __attribute__((constructor)) void RegisterModule(void)
napi_module_register(&_module); napi_module_register(&_module);
} }
} // namespace AAFwk } // namespace AAFwk
} // namespace OHOS } // namespace OHOS

View File

@ -54,4 +54,4 @@ void NAPI_ability_dataUriUtils_GetABCCode(const char **buf, int *buflen)
if (buflen != nullptr) { if (buflen != nullptr) {
*buflen = _binary_data_uri_utils_abc_end - _binary_data_uri_utils_abc_start; *buflen = _binary_data_uri_utils_abc_end - _binary_data_uri_utils_abc_start;
} }
} }

View File

@ -54,4 +54,4 @@ void NAPI_application_ExtensionContext_GetABCCode(const char **buf, int *buflen)
if (buflen != nullptr) { if (buflen != nullptr) {
*buflen = _binary_extension_context_abc_end - _binary_extension_context_abc_start; *buflen = _binary_extension_context_abc_end - _binary_extension_context_abc_start;
} }
} }

View File

@ -1615,4 +1615,4 @@ napi_value ContinueAbilityPromise(napi_env env, napi_value *args, AsyncCallbackI
return promise; return promise;
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -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); napi_set_named_property(env, dstObj, propName, prop);
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -2807,4 +2807,4 @@ napi_value NAPI_SetWakeUpScreen(napi_env env, napi_callback_info info)
#endif #endif
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -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); napi_set_named_property(env, obj, propName, prop);
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -63,4 +63,4 @@ extern "C" __attribute__((constructor)) void RegisterModule(void)
napi_module_register(&_module); napi_module_register(&_module);
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -21,4 +21,4 @@ namespace AppExecFwk {
const std::string DistributeConstants::START_ABILITY_URL_KEY = "url"; const std::string DistributeConstants::START_ABILITY_URL_KEY = "url";
const std::string DistributeConstants::DEEP_LINK_ACTION_NAME = "ohos.want.action.viewData"; const std::string DistributeConstants::DEEP_LINK_ACTION_NAME = "ohos.want.action.viewData";
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -26,4 +26,4 @@ extern "C" __attribute__((constructor)) void NAPI_application_formInfo_AutoRegis
}; };
moduleManager->Register(&newModuleInfo); moduleManager->Register(&newModuleInfo);
} }

View File

@ -518,4 +518,4 @@ NativeValue* JsFeatureAbilityInit(NativeEngine* engine, NativeValue* exportObj)
return global; return global;
} }
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS

View File

@ -72,4 +72,4 @@ private:
NativeValue* JsFeatureAbilityInit(NativeEngine* engine, NativeValue* exportObj); NativeValue* JsFeatureAbilityInit(NativeEngine* engine, NativeValue* exportObj);
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS
#endif // OHOS_ABILITY_RUNTIME_FEATURE_ABILITY_H #endif // OHOS_ABILITY_RUNTIME_FEATURE_ABILITY_H

View File

@ -1429,4 +1429,4 @@ extern "C" __attribute__((constructor)) void AbilityRegister()
napi_module_register(&missionModule); napi_module_register(&missionModule);
} }
} }
} }

View File

@ -168,4 +168,4 @@ bool WrapJsWantParamsArray(NativeEngine &engine, NativeObject* object, const std
} }
} }
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS

View File

@ -76,4 +76,4 @@ bool InnerWrapWantParamsArray(
} }
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS
#endif // OHOS_ABILITY_RUNTIME_JS_MISSION_INFO_UTILS_H #endif // OHOS_ABILITY_RUNTIME_JS_MISSION_INFO_UTILS_H

View File

@ -164,4 +164,4 @@ void JsMissionListener::CallJsMissionIconUpdated(int32_t missionId, const std::s
} }
#endif #endif
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS

View File

@ -57,4 +57,4 @@ private:
}; };
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS
#endif /* OHOS_ABILITY_RUNTIME_JS_MISSION_LISTENER_H */ #endif /* OHOS_ABILITY_RUNTIME_JS_MISSION_LISTENER_H */

View File

@ -50,4 +50,4 @@ int32_t MissionContinueStub::OnRemoteRequest(
} }
} }
} // namespace AAFwk } // namespace AAFwk
} // namespace OHOS } // namespace OHOS

View File

@ -36,4 +36,4 @@ private:
}; };
} // namespace AAFwk } // namespace AAFwk
} // namespace OHOS } // namespace OHOS
#endif // OHOS_MISSION_CONTINUE_STUB_H #endif // OHOS_MISSION_CONTINUE_STUB_H

View File

@ -531,4 +531,4 @@ NativeValue* JsMissionManagerInit(NativeEngine* engine, NativeValue* exportObj)
return engine->CreateUndefined(); return engine->CreateUndefined();
} }
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS

View File

@ -240,4 +240,4 @@ napi_value ParticleAbilityInit(napi_env env, napi_value exports)
return exports; return exports;
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -53,4 +53,4 @@ void NAPI_application_ServiceExtensionAbility_GetABCCode(const char **buf, int *
if (buflen != nullptr) { if (buflen != nullptr) {
*buflen = _binary_service_extension_ability_abc_end - _binary_service_extension_ability_abc_start; *buflen = _binary_service_extension_ability_abc_end - _binary_service_extension_ability_abc_start;
} }
} }

View File

@ -56,4 +56,4 @@ void NAPI_application_StaticSubscriberExtensionAbility_GetABCCode(const char **b
*buflen = _binary_static_subscriber_extension_ability_abc_end - *buflen = _binary_static_subscriber_extension_ability_abc_end -
_binary_static_subscriber_extension_ability_abc_start; _binary_static_subscriber_extension_ability_abc_start;
} }
} }

View File

@ -118,4 +118,4 @@ NativeValue* CreateJsUriPermMgr(NativeEngine* engine, NativeValue* exportObj)
return engine->CreateUndefined(); return engine->CreateUndefined();
} }
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS

View File

@ -23,4 +23,4 @@ namespace AbilityRuntime {
NativeValue* CreateJsUriPermMgr(NativeEngine* engine, NativeValue* exportObj); NativeValue* CreateJsUriPermMgr(NativeEngine* engine, NativeValue* exportObj);
} // namespace AbilityRuntime } // namespace AbilityRuntime
} // namespace OHOS } // namespace OHOS
#endif // ABILITY_RUNTIME_JS_URI_PERM_MGR_H #endif // ABILITY_RUNTIME_JS_URI_PERM_MGR_H

View File

@ -27,4 +27,4 @@ void NAPI_application_uripermissionmanager_AutoRegister()
}; };
moduleManager->Register(&newModuleInfo); moduleManager->Register(&newModuleInfo);
} }

View File

@ -55,4 +55,4 @@ extern "C" __attribute__((constructor)) void RegisterModule(void)
napi_module_register(&_module); napi_module_register(&_module);
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -122,4 +122,4 @@ napi_value ActionConstructor(napi_env env, napi_callback_info info)
return jsthis; return jsthis;
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -60,4 +60,4 @@ extern "C" __attribute__((constructor)) void RegisterModule(void)
{ {
napi_module_register(&_module); napi_module_register(&_module);
} }
} // namespace OHOS } // namespace OHOS

View File

@ -221,4 +221,4 @@ HWTEST_F(AbilityCallerTest, AaFwk_Ability_OnCallStubDied_0200, Function | Medium
EXPECT_FALSE(isSetOnReleaseCalled); EXPECT_FALSE(isSetOnReleaseCalled);
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -151,4 +151,4 @@ HWTEST_F(AbilityContextImplTest, Ability_Context_Impl_IsTerminating_0100, Functi
EXPECT_FALSE(ret); EXPECT_FALSE(ret);
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -155,4 +155,4 @@ HWTEST_F(CallerCallBackTest, Caller_Call_Back_IsCallBack_0100, Function | Medium
EXPECT_EQ(ret, true); EXPECT_EQ(ret, true);
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -412,4 +412,4 @@ HWTEST_F(LocalCallContainerTest, Local_Call_Container_GetCallLocalRecord_0200, F
EXPECT_TRUE(ret == false); EXPECT_TRUE(ret == false);
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -312,4 +312,4 @@ HWTEST_F(LocalCallRecordTest, Local_Call_Record_IsExistCallBack_0100, Function |
EXPECT_TRUE(localCallRecord.IsExistCallBack() == true); EXPECT_TRUE(localCallRecord.IsExistCallBack() == true);
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -98,4 +98,4 @@ private:
}; };
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_PAGE_ABILITY_H #endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_PAGE_ABILITY_H

View File

@ -112,4 +112,4 @@ ErrCode AbilityManagerClient::ReleaseDataAbility(
} }
} // namespace AAFwk } // namespace AAFwk
} // namespace OHOS } // 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 */

View File

@ -35,4 +35,4 @@ private:
}; };
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_PAGE_ABILITY_H #endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_PAGE_ABILITY_H

View File

@ -28,4 +28,4 @@ public:
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS
#endif /* OHOS_APPEXECFWK_MOCK_CONTEXT_DEAL_H */ #endif /* OHOS_APPEXECFWK_MOCK_CONTEXT_DEAL_H */

View File

@ -43,4 +43,4 @@ public:
}; };
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_PAGE_ABILITY_H #endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_PAGE_ABILITY_H

View File

@ -113,4 +113,4 @@ public:
}; };
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_PAGE_ABILITY_H #endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_PAGE_ABILITY_H

View File

@ -83,4 +83,4 @@ std::string DataAbilityImpl::GetType(const Uri &uri)
return type; return type;
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -132,4 +132,4 @@ public:
}; };
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_LIFECYCLE_OBSERVER_INTERFACE_H #endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_LIFECYCLE_OBSERVER_INTERFACE_H

View File

@ -205,4 +205,4 @@ void AbilityImpl::DoKeyUp(const std::shared_ptr<MMI::KeyEvent>& keyEvent) {}
void AbilityImpl::DoPointerEvent(std::shared_ptr<MMI::PointerEvent>& pointerEvent) {} void AbilityImpl::DoPointerEvent(std::shared_ptr<MMI::PointerEvent>& pointerEvent) {}
#endif #endif
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -39,4 +39,4 @@ public:
}; };
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_ABILITY_SCENE_H #endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_ABILITY_SCENE_H

View File

@ -70,4 +70,4 @@ public:
}; };
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS
#endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_SERVICE_ABILITY_H #endif // FOUNDATION_APPEXECFWK_OHOS_MOCK_SERVICE_ABILITY_H

View File

@ -168,4 +168,4 @@ HWTEST_F(AbilityLifecycleExecutorTest,
GTEST_LOG_(INFO) << "AaFwk_AbilityLifecycleExecutor_DispatchLifecycleState_0500 end"; GTEST_LOG_(INFO) << "AaFwk_AbilityLifecycleExecutor_DispatchLifecycleState_0500 end";
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -147,4 +147,4 @@ HWTEST_F(
context_->RequestPermissionsFromUser(permissions, permissionsState, 1004); context_->RequestPermissionsFromUser(permissions, permissionsState, 1004);
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -128,4 +128,4 @@ HWTEST_F(AbilityThreadCallRequestTest, AaFwk_AbilityThread_CallRequest_0300, Fun
GTEST_LOG_(INFO) << "AaFwk_AbilityThread_CallRequest_0300 end"; GTEST_LOG_(INFO) << "AaFwk_AbilityThread_CallRequest_0300 end";
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -405,4 +405,4 @@ HWTEST_F(AbilityThreadTest, AaFwk_AbilityThread_Delete_0100, Function | MediumTe
GTEST_LOG_(INFO) << "AaFwk_AbilityThread_Delete_0100 end"; GTEST_LOG_(INFO) << "AaFwk_AbilityThread_Delete_0100 end";
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -126,4 +126,4 @@ HWTEST_F(AbilityThreadTest, AaFwk_AbilityThread_ScheduleUpdateConfiguration_0100
GTEST_LOG_(INFO) << "AaFwk_AbilityThread_ScheduleUpdateConfiguration_0100 end"; GTEST_LOG_(INFO) << "AaFwk_AbilityThread_ScheduleUpdateConfiguration_0100 end";
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -757,4 +757,4 @@ HWTEST_F(AbilityThreadTest, AaFwk_AbilityThread_AbilityThreadMain_0400, Function
GTEST_LOG_(INFO) << "AaFwk_AbilityThread_AbilityThreadMain_0400 end"; GTEST_LOG_(INFO) << "AaFwk_AbilityThread_AbilityThreadMain_0400 end";
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -783,4 +783,4 @@ HWTEST_F(DataAbilityHelperForObserverTest, AaFwk_DataAbilityHelper_DenormalizeUr
GTEST_LOG_(INFO) << "AaFwk_DataAbilityHelper_DenormalizeUri_0200 end"; GTEST_LOG_(INFO) << "AaFwk_DataAbilityHelper_DenormalizeUri_0200 end";
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -164,4 +164,4 @@ HWTEST_F(DataAbilityImplTest, AaFwk_DataAbilityImplTest_HandleAbilityTransaction
GTEST_LOG_(INFO) << "AaFwk_DataAbilityImplTest_HandleAbilityTransaction_002 end"; GTEST_LOG_(INFO) << "AaFwk_DataAbilityImplTest_HandleAbilityTransaction_002 end";
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -327,4 +327,4 @@ HWTEST_F(DataAbilityImplTest, AaFwk_DataAbilityImplTest_Reload_002, Function | M
GTEST_LOG_(INFO) << "AaFwk_DataAbilityImplTest_Reload_002 end"; GTEST_LOG_(INFO) << "AaFwk_DataAbilityImplTest_Reload_002 end";
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -267,4 +267,4 @@ HWTEST_F(DataAbilityImplTest, AaFwk_DataAbilityImplTest_Query_0200, Function | M
GTEST_LOG_(INFO) << "AaFwk_DataAbilityImplTest_Query_0200 end"; GTEST_LOG_(INFO) << "AaFwk_DataAbilityImplTest_Query_0200 end";
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -725,4 +725,4 @@ HWTEST_F(DataAbilityOperationTest, AaFwk_DataAbilityOperationBuilder_WithInterru
GTEST_LOG_(INFO) << "AaFwk_DataAbilityOperationBuilder_WithInterruptionAllowed_0100 end"; GTEST_LOG_(INFO) << "AaFwk_DataAbilityOperationBuilder_WithInterruptionAllowed_0100 end";
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -145,4 +145,4 @@ HWTEST_F(DataUriUtilsTest, AaFwk_DataUriUtils_AttachIdUpdateId001, Function | Me
GTEST_LOG_(INFO) << "AaFwk_DataUriUtils_AttachIdUpdateId001 end"; GTEST_LOG_(INFO) << "AaFwk_DataUriUtils_AttachIdUpdateId001 end";
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -102,4 +102,4 @@ HWTEST_F(NewAbilityImplTest, AaFwk_NewAbilityImpl_HandleAbilityTransaction_0100,
GTEST_LOG_(INFO) << "AaFwk_NewAbilityImpl_HandleAbilityTransaction_0100 end"; GTEST_LOG_(INFO) << "AaFwk_NewAbilityImpl_HandleAbilityTransaction_0100 end";
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -744,4 +744,4 @@ HWTEST_F(PacMapTest, AppExecFwk_PacMap_Marshalling_0300, Function | MediumTest |
GTEST_LOG_(INFO) << "AppExecFwk_PacMap_Marshalling_0300 end"; GTEST_LOG_(INFO) << "AppExecFwk_PacMap_Marshalling_0300 end";
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -687,4 +687,4 @@ HWTEST_F(PageAbilityImplTest, AaFwk_PageAbilityImpl_NewWant_0100, Function | Med
GTEST_LOG_(INFO) << "AaFwk_PageAbilityImpl_NewWant_0100 end"; GTEST_LOG_(INFO) << "AaFwk_PageAbilityImpl_NewWant_0100 end";
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -208,4 +208,4 @@ HWTEST_F(ServiceAbilityImplTest, AaFwk_ServiceAbilityImpl_HandleAbilityTransacti
GTEST_LOG_(INFO) << "AaFwk_ServiceAbilityImpl_HandleAbilityTransaction_0400 end"; GTEST_LOG_(INFO) << "AaFwk_ServiceAbilityImpl_HandleAbilityTransaction_0400 end";
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -94,4 +94,4 @@ HWTEST_F(TaskHandlerClientTest, AaFwk_TaskHandlerClient_PostTask_0100, Function
GTEST_LOG_(INFO) << "AaFwk_TaskHandlerClient_PostTask_0100 end"; GTEST_LOG_(INFO) << "AaFwk_TaskHandlerClient_PostTask_0100 end";
} }
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS

View File

@ -411,4 +411,4 @@ int MockAbilityDelegatorStub2::RegisterWindowManagerServiceHandler(const sptr<IW
} }
#endif #endif
} // namespace AAFwk } // namespace AAFwk
} // namespace OHOS } // namespace OHOS

View File

@ -56,7 +56,7 @@ void MockIabilityMonitor::OnAbilityStop(const std::weak_ptr<NativeReference> &ab
HILOG_INFO("MockIabilityMonitor::OnAbilityStop is called"); HILOG_INFO("MockIabilityMonitor::OnAbilityStop is called");
stop_ = true; stop_ = true;
} }
void MockIabilityMonitor::OnWindowStageCreate(const std::weak_ptr<NativeReference> &abilityObj) void MockIabilityMonitor::OnWindowStageCreate(const std::weak_ptr<NativeReference> &abilityObj)
{ {
HILOG_INFO("MockIabilityMonitor::OnWindowStageCreate is called"); HILOG_INFO("MockIabilityMonitor::OnWindowStageCreate is called");

View File

@ -59,4 +59,4 @@ public:
} // namespace AppExecFwk } // namespace AppExecFwk
} // namespace OHOS } // namespace OHOS
#endif // FOUNDATION_AAFWK_STANDARD_TOOLS_TEST_MOCK_MOCK_IABILITY_MONITOR__H #endif // FOUNDATION_AAFWK_STANDARD_TOOLS_TEST_MOCK_MOCK_IABILITY_MONITOR__H

View File

@ -20,7 +20,7 @@ namespace OHOS {
namespace AAFwk { namespace AAFwk {
MockTestObserverStub::~MockTestObserverStub() MockTestObserverStub::~MockTestObserverStub()
{} {}
int MockTestObserverStub::OnRemoteRequest( int MockTestObserverStub::OnRemoteRequest(
uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option)
{ {
@ -43,4 +43,4 @@ ShellCommandResult MockTestObserverStub::ExecuteShellCommand(
return ShellCommandResult(); return ShellCommandResult();
} }
} // namespace AAFwk } // namespace AAFwk
} // namespace OHOS } // namespace OHOS

View File

@ -38,4 +38,4 @@ public:
} // namespace AAFwk } // namespace AAFwk
} // namespace OHOS } // 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