mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-25 12:23:20 -04:00
@@ -26,7 +26,7 @@ errMap.set(ERROR_CODE_INNER_ERROR, ERROR_MSG_INNER_ERROR);
|
||||
|
||||
class DataUriError extends Error {
|
||||
constructor(code) {
|
||||
let msg = ''
|
||||
let msg = '';
|
||||
if (errMap.has(code)) {
|
||||
msg = errMap.get(code);
|
||||
} else {
|
||||
|
||||
@@ -132,7 +132,7 @@ class Callee extends rpc.RemoteObject {
|
||||
|
||||
if (this.callList == null) {
|
||||
console.log('Callee on error, this.callList is nullptr');
|
||||
throw new BusinessError(ERROR_CODE_INNER_ERROR);;
|
||||
throw new BusinessError(ERROR_CODE_INNER_ERROR);
|
||||
}
|
||||
|
||||
if (this.callList.has(method)) {
|
||||
|
||||
@@ -35,7 +35,7 @@ errMap.set(ERROR_CODE_INNER_ERROR, ERROR_MSG_INNER_ERROR);
|
||||
|
||||
class BusinessError extends Error {
|
||||
constructor(code) {
|
||||
let msg = ''
|
||||
let msg = '';
|
||||
if (errMap.has(code)) {
|
||||
msg = errMap.get(code);
|
||||
} else {
|
||||
|
||||
@@ -35,7 +35,7 @@ globalThis.$app_define$ = function (page, packageName, parseContent) {
|
||||
parseContent({}, module.exports, module);
|
||||
globalThis.exports.default = module.exports;
|
||||
console.info('Delegator Mgmt app_define');
|
||||
}
|
||||
};
|
||||
globalThis.$app_bootstrap$ = function () { };
|
||||
|
||||
console.info('Delegator Mgmt init success');
|
||||
|
||||
@@ -1027,7 +1027,7 @@ int AbilityManagerService::StartUIAbilityBySCB(const Want &want, const StartOpti
|
||||
EventInfo eventInfo = BuildEventInfo(want, currentUserId);
|
||||
EventReport::SendAbilityEvent(EventName::START_ABILITY, HiSysEventType::BEHAVIOR, eventInfo);
|
||||
|
||||
if(!CheckCallingTokenId(BUNDLE_NAME_SCENEBOARD, U0_USER_ID)) {
|
||||
if (!CheckCallingTokenId(BUNDLE_NAME_SCENEBOARD, U0_USER_ID)) {
|
||||
HILOG_ERROR("Not sceneboard called, not allowed.");
|
||||
return ERR_WRONG_INTERFACE_CALL;
|
||||
}
|
||||
@@ -4904,7 +4904,7 @@ void AbilityManagerService::UpdateMissionSnapShot(const sptr<IRemoteObject>& tok
|
||||
}
|
||||
auto isSaCall = AAFwk::PermissionVerification::GetInstance()->IsSACall();
|
||||
if (!isSaCall) {
|
||||
if(!CheckCallingTokenId(BUNDLE_NAME_LAUNCHER, GetUserId())) {
|
||||
if (!CheckCallingTokenId(BUNDLE_NAME_LAUNCHER, GetUserId())) {
|
||||
HILOG_ERROR("Not launcher called, not allowed.");
|
||||
return;
|
||||
}
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ export default class TipsServiceExtensionAbility extends extension {
|
||||
top: globalThis.position.offsetY,
|
||||
width: globalThis.position.width,
|
||||
height: globalThis.position.height
|
||||
}
|
||||
};
|
||||
if (winNum > 1) {
|
||||
win.destroy();
|
||||
winNum--;
|
||||
|
||||
+1
-1
@@ -154,7 +154,7 @@ int MockAbilityDelegatorStub::StartUserTest(const Want& want, const sptr<IRemote
|
||||
return OHOS::ERR_OK;
|
||||
}
|
||||
|
||||
int MockAbilityDelegatorStub::StopServiceAbility(const Want& want, int32_t userId, const sptr<IRemoteObject> &token)
|
||||
int MockAbilityDelegatorStub::StopServiceAbility(const Want& want, int32_t userId, const sptr<IRemoteObject> &token)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user