Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
47ed2148
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
47ed2148
编写于
8月 09, 2023
作者:
X
xinking129
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change format
Signed-off-by:
N
xinking129
<
xinxin13@huawei.com
>
上级
02a6eeb8
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
22 addition
and
22 deletion
+22
-22
ability/ability_runtime/shareextensionability/actsshareextensionabilityotherrely/entry/src/main/ets/entryability/EntryAbility.ts
...otherrely/entry/src/main/ets/entryability/EntryAbility.ts
+1
-1
ability/ability_runtime/shareextensionability/actsshareextensionabilityotherrely/entry/src/main/ets/shareextensionability/ActsShareExtensionAbility.ts
...in/ets/shareextensionability/ActsShareExtensionAbility.ts
+2
-2
ability/ability_runtime/shareextensionability/actsshareextensionabilityself/entry/src/main/ets/UIExtensionAbility/UIExtAbility.ts
...elf/entry/src/main/ets/UIExtensionAbility/UIExtAbility.ts
+8
-8
ability/ability_runtime/shareextensionability/actsshareextensionabilityself/entry/src/main/ets/entryability/EntryAbility.ts
...ilityself/entry/src/main/ets/entryability/EntryAbility.ts
+6
-6
ability/ability_runtime/shareextensionability/actsshareextensionabilityself/entry/src/main/ets/shareextensionability/ActsShareExtensionAbility.ts
...in/ets/shareextensionability/ActsShareExtensionAbility.ts
+2
-2
ability/ability_runtime/shareextensionability/actsshareextensionabilityself/feature/src/main/ets/shareextensionability/FeatureShareExtensionAbility.ts
...ets/shareextensionability/FeatureShareExtensionAbility.ts
+1
-1
ability/ability_runtime/shareextensionability/actsshareextensionabilitytest/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
...st/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
+2
-2
未找到文件。
ability/ability_runtime/shareextensionability/actsshareextensionabilityotherrely/entry/src/main/ets/entryability/EntryAbility.ts
浏览文件 @
47ed2148
...
...
@@ -30,7 +30,7 @@ export default class EntryAbility extends UIAbility {
}
}).
catch
((
err
)
=>
{
console
.
info
(
'
====>ShareExtensionAbility_0100 err:
'
+
JSON
.
stringify
(
err
));
})
})
;
}
if
(
want
.
action
===
'
AsyncCallback_0200
'
)
{
...
...
ability/ability_runtime/shareextensionability/actsshareextensionabilityotherrely/entry/src/main/ets/shareextensionability/ActsShareExtensionAbility.ts
浏览文件 @
47ed2148
...
...
@@ -34,7 +34,7 @@ export default class ActsShareExtensionAbility extends ShareExtensionAbility {
parameters
:
{
'
count
'
:
count
}
}
}
;
commonEventManager
.
publish
(
'
ACTS_TEST_FOREGROUND
'
,
options
,
function
()
{
});
}
...
...
@@ -69,7 +69,7 @@ export default class ActsShareExtensionAbility extends ShareExtensionAbility {
parameters
:
{
'
count
'
:
count
}
}
}
;
commonEventManager
.
publish
(
'
ACTS_TEST_DESTROY
'
,
options
,
function
()
{
});
}
...
...
ability/ability_runtime/shareextensionability/actsshareextensionabilityself/entry/src/main/ets/UIExtensionAbility/UIExtAbility.ts
浏览文件 @
47ed2148
...
...
@@ -74,7 +74,7 @@ export default class UiExtAbility extends ShareExtensionAbility {
});
}).
catch
((
err
)
=>
{
console
.
debug
(
'
====>Acts_ShareExtensionAbility_1100 UIExtAbility startAbility err:
'
+
JSON
.
stringify
(
err
));
})
})
;
}
if
(
want
.
action
===
'
Acts_ShareExtensionAbility_1200
'
)
{
...
...
@@ -179,7 +179,7 @@ export default class UiExtAbility extends ShareExtensionAbility {
parameters
:
{
'
result
'
:
data
}
}
}
;
commonEvent
.
publish
(
'
setReceiveDataCallback
'
,
options
,
(
err
)
=>
{
console
.
log
(
'
Acts_ShareExtensionAbility_1600
'
);
});
...
...
@@ -339,7 +339,7 @@ export default class UiExtAbility extends ShareExtensionAbility {
parameters
:
{
'
bundleName
'
:
moduleContext
.
applicationInfo
.
name
}
}
}
;
commonEvent
.
publish
(
'
ACTS_TEST_CONTEXT
'
,
options
,
(
err
)
=>
{
console
.
log
(
'
Acts_ShareExtensionAbility_context
'
);
});
...
...
@@ -351,7 +351,7 @@ export default class UiExtAbility extends ShareExtensionAbility {
parameters
:
{
'
bundleName
'
:
moduleContext
.
applicationInfo
.
name
}
}
}
;
commonEvent
.
publish
(
'
ACTS_TEST_CONTEXT
'
,
options
,
(
err
)
=>
{
console
.
log
(
'
Acts_ShareExtensionAbility_context
'
);
});
...
...
@@ -367,7 +367,7 @@ export default class UiExtAbility extends ShareExtensionAbility {
parameters
:
{
'
moduleContext
'
:
moduleContext
}
}
}
;
commonEvent
.
publish
(
'
ACTS_TEST_CONTEXT
'
,
options
,
(
err
)
=>
{
console
.
log
(
'
Acts_ShareExtensionAbility_context
'
);
});
...
...
@@ -383,7 +383,7 @@ export default class UiExtAbility extends ShareExtensionAbility {
parameters
:
{
'
moduleContext
'
:
moduleContext
}
}
}
;
commonEvent
.
publish
(
'
ACTS_TEST_CONTEXT
'
,
options
,
(
err
)
=>
{
console
.
log
(
'
Acts_ShareExtensionAbility_context
'
);
});
...
...
@@ -399,7 +399,7 @@ export default class UiExtAbility extends ShareExtensionAbility {
parameters
:
{
'
moduleContext
'
:
moduleContext
}
}
}
;
commonEvent
.
publish
(
'
ACTS_TEST_CONTEXT
'
,
options
,
(
err
)
=>
{
console
.
log
(
'
Acts_ShareExtensionAbility_context
'
);
});
...
...
@@ -411,7 +411,7 @@ export default class UiExtAbility extends ShareExtensionAbility {
parameters
:
{
'
applicationContext
'
:
applicationContext
}
}
}
;
commonEvent
.
publish
(
'
ACTS_TEST_CONTEXT
'
,
options
,
(
err
)
=>
{
console
.
log
(
'
Acts_ShareExtensionAbility_context
'
);
});
...
...
ability/ability_runtime/shareextensionability/actsshareextensionabilityself/entry/src/main/ets/entryability/EntryAbility.ts
浏览文件 @
47ed2148
...
...
@@ -324,7 +324,7 @@ export default class EntryAbility extends UIAbility {
if
(
want
.
action
===
'
Acts_ShareExtensionAbility_3000
'
)
{
console
.
info
(
"
====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3000':
"
);
AppStorage
.
SetOrCreate
(
'
want
'
,
{
action
:
"
Acts_ShareExtensionAbility_3000
"
,
action
:
'
Acts_ShareExtensionAbility_3000
'
,
bundleName
:
'
com.example.actsshareextensionabilitytest
'
,
abilityName
:
'
UIExtAbility
'
,
parameters
:
{
...
...
@@ -336,7 +336,7 @@ export default class EntryAbility extends UIAbility {
if
(
want
.
action
===
'
Acts_ShareExtensionAbility_3100
'
)
{
console
.
info
(
"
====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3100':
"
);
AppStorage
.
SetOrCreate
(
'
want
'
,
{
action
:
"
Acts_ShareExtensionAbility_3100
"
,
action
:
'
Acts_ShareExtensionAbility_3100
'
,
bundleName
:
'
com.example.actsshareextensionabilitytest
'
,
abilityName
:
'
UIExtAbility
'
,
parameters
:
{
...
...
@@ -348,7 +348,7 @@ export default class EntryAbility extends UIAbility {
if
(
want
.
action
===
'
Acts_ShareExtensionAbility_3200
'
)
{
console
.
info
(
"
====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3200':
"
);
AppStorage
.
SetOrCreate
(
'
want
'
,
{
action
:
"
Acts_ShareExtensionAbility_3200
"
,
action
:
'
Acts_ShareExtensionAbility_3200
'
,
bundleName
:
'
com.example.actsshareextensionabilitytest
'
,
abilityName
:
'
UIExtAbility
'
,
parameters
:
{
...
...
@@ -360,7 +360,7 @@ export default class EntryAbility extends UIAbility {
if
(
want
.
action
===
'
Acts_ShareExtensionAbility_3300
'
)
{
console
.
info
(
"
====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3300':
"
);
AppStorage
.
SetOrCreate
(
'
want
'
,
{
action
:
"
Acts_ShareExtensionAbility_3300
"
,
action
:
'
Acts_ShareExtensionAbility_3300
'
,
bundleName
:
'
com.example.actsshareextensionabilitytest
'
,
abilityName
:
'
UIExtAbility
'
,
parameters
:
{
...
...
@@ -372,7 +372,7 @@ export default class EntryAbility extends UIAbility {
if
(
want
.
action
===
'
Acts_ShareExtensionAbility_3400
'
)
{
console
.
info
(
"
====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3400':
"
);
AppStorage
.
SetOrCreate
(
'
want
'
,
{
action
:
"
Acts_ShareExtensionAbility_3400
"
,
action
:
'
Acts_ShareExtensionAbility_3400
'
,
bundleName
:
'
com.example.actsshareextensionabilitytest
'
,
abilityName
:
'
UIExtAbility
'
,
parameters
:
{
...
...
@@ -384,7 +384,7 @@ export default class EntryAbility extends UIAbility {
if
(
want
.
action
===
'
Acts_ShareExtensionAbility_3500
'
)
{
console
.
info
(
"
====>EntryAbility want.action == 'Acts_ShareExtensionAbility_3500':
"
);
AppStorage
.
SetOrCreate
(
'
want
'
,
{
action
:
"
Acts_ShareExtensionAbility_3500
"
,
action
:
'
Acts_ShareExtensionAbility_3500
'
,
bundleName
:
'
com.example.actsshareextensionabilitytest
'
,
abilityName
:
'
UIExtAbility
'
,
parameters
:
{
...
...
ability/ability_runtime/shareextensionability/actsshareextensionabilityself/entry/src/main/ets/shareextensionability/ActsShareExtensionAbility.ts
浏览文件 @
47ed2148
...
...
@@ -34,7 +34,7 @@ export default class ActsShareExtensionAbility extends ShareExtensionAbility {
parameters
:
{
'
count
'
:
count
}
}
}
;
commonEventManager
.
publish
(
'
ACTS_TEST_FOREGROUND
'
,
options
,
function
()
{
});
}
...
...
@@ -69,7 +69,7 @@ export default class ActsShareExtensionAbility extends ShareExtensionAbility {
parameters
:
{
'
count
'
:
count
}
}
}
;
commonEventManager
.
publish
(
'
ACTS_TEST_DESTROY
'
,
options
,
function
()
{
});
}
...
...
ability/ability_runtime/shareextensionability/actsshareextensionabilityself/feature/src/main/ets/shareextensionability/FeatureShareExtensionAbility.ts
浏览文件 @
47ed2148
...
...
@@ -39,7 +39,7 @@ export default class FeatureShareExtensionAbility extends ShareExtensionAbility
bundleName
:
'
com.example.actsshareextensionabilitytest
'
,
abilityName
:
'
FeatureAbility
'
,
action
:
'
Acts_ShareExtensionAbility_0400
'
})
})
;
}
this
.
message
=
want
.
parameters
.
shareMessages
;
this
.
storage
=
new
LocalStorage
(
...
...
ability/ability_runtime/shareextensionability/actsshareextensionabilitytest/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
浏览文件 @
47ed2148
...
...
@@ -16,8 +16,8 @@ import hilog from '@ohos.hilog';
import
TestRunner
from
'
@ohos.application.testRunner
'
;
import
AbilityDelegatorRegistry
from
'
@ohos.app.ability.abilityDelegatorRegistry
'
;
let
abilityDelegator
=
undefined
let
abilityDelegatorArguments
=
undefined
let
abilityDelegator
=
undefined
;
let
abilityDelegatorArguments
=
undefined
;
async
function
onAbilityCreateCallback
()
{
hilog
.
info
(
0x0000
,
'
testTag
'
,
'
%{public}s
'
,
'
onAbilityCreateCallback
'
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录