Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
62536d32
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看板
提交
62536d32
编写于
3月 22, 2023
作者:
Z
zhangyushuai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add inputEngine 007
Signed-off-by:
N
zhangyushuai
<
zhangyushuai1@huawei.com
>
上级
6d8ea702
变更
23
展开全部
显示空白变更内容
内联
并排
Showing
23 changed file
with
5563 addition
and
0 deletion
+5563
-0
inputmethod/BUILD.gn
inputmethod/BUILD.gn
+1
-0
inputmethod/InputMethodEngine/AppScope/app.json
inputmethod/InputMethodEngine/AppScope/app.json
+21
-0
inputmethod/InputMethodEngine/AppScope/resources/base/element/string.json
...tMethodEngine/AppScope/resources/base/element/string.json
+8
-0
inputmethod/InputMethodEngine/AppScope/resources/base/media/app_icon.png
...utMethodEngine/AppScope/resources/base/media/app_icon.png
+0
-0
inputmethod/InputMethodEngine/BUILD.gn
inputmethod/InputMethodEngine/BUILD.gn
+43
-0
inputmethod/InputMethodEngine/Test.json
inputmethod/InputMethodEngine/Test.json
+18
-0
inputmethod/InputMethodEngine/entry/src/main/ets/Application/AbilityStage.ts
...thodEngine/entry/src/main/ets/Application/AbilityStage.ts
+23
-0
inputmethod/InputMethodEngine/entry/src/main/ets/InputMethodAbility/InputStageService.ts
...ntry/src/main/ets/InputMethodAbility/InputStageService.ts
+30
-0
inputmethod/InputMethodEngine/entry/src/main/ets/InputMethodAbility/KeyboardDelegate.ts
...entry/src/main/ets/InputMethodAbility/KeyboardDelegate.ts
+1127
-0
inputmethod/InputMethodEngine/entry/src/main/ets/InputMethodEngine/InputDemoService.ts
.../entry/src/main/ets/InputMethodEngine/InputDemoService.ts
+30
-0
inputmethod/InputMethodEngine/entry/src/main/ets/InputMethodEngine/KeyboardController.ts
...ntry/src/main/ets/InputMethodEngine/KeyboardController.ts
+770
-0
inputmethod/InputMethodEngine/entry/src/main/ets/MainAbility/MainAbility.ts
...ethodEngine/entry/src/main/ets/MainAbility/MainAbility.ts
+51
-0
inputmethod/InputMethodEngine/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
...ne/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
+78
-0
inputmethod/InputMethodEngine/entry/src/main/ets/pages/index/index.ets
...nputMethodEngine/entry/src/main/ets/pages/index/index.ets
+66
-0
inputmethod/InputMethodEngine/entry/src/main/ets/pages/second/second.ets
...utMethodEngine/entry/src/main/ets/pages/second/second.ets
+43
-0
inputmethod/InputMethodEngine/entry/src/main/ets/test/List.test.ets
...d/InputMethodEngine/entry/src/main/ets/test/List.test.ets
+21
-0
inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodAbility.test.ets
...ngine/entry/src/main/ets/test/inputMethodAbility.test.ets
+1913
-0
inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodEngine.test.ets
...Engine/entry/src/main/ets/test/inputMethodEngine.test.ets
+1205
-0
inputmethod/InputMethodEngine/entry/src/main/module.json
inputmethod/InputMethodEngine/entry/src/main/module.json
+73
-0
inputmethod/InputMethodEngine/entry/src/main/resources/base/element/string.json
...dEngine/entry/src/main/resources/base/element/string.json
+36
-0
inputmethod/InputMethodEngine/entry/src/main/resources/base/media/icon.png
...MethodEngine/entry/src/main/resources/base/media/icon.png
+0
-0
inputmethod/InputMethodEngine/entry/src/main/resources/base/profile/main_pages.json
...ine/entry/src/main/resources/base/profile/main_pages.json
+6
-0
inputmethod/InputMethodEngine/signature/ActsInputMethodEngineTest.p7b
...InputMethodEngine/signature/ActsInputMethodEngineTest.p7b
+0
-0
未找到文件。
inputmethod/BUILD.gn
浏览文件 @
62536d32
...
@@ -15,6 +15,7 @@ import("//build/ohos_var.gni")
...
@@ -15,6 +15,7 @@ import("//build/ohos_var.gni")
group("inputmethod") {
group("inputmethod") {
testonly = true
testonly = true
deps = [
deps = [
"InputMethodEngine:ActsInputMethodEngineTest",
"InputMethodTest_Stage:ActsImeAbilityTest",
"InputMethodTest_Stage:ActsImeAbilityTest",
"InputMethodTest_ets:ActsInputMethodEtsTest",
"InputMethodTest_ets:ActsInputMethodEtsTest",
]
]
...
...
inputmethod/InputMethodEngine/AppScope/app.json
0 → 100644
浏览文件 @
62536d32
{
"app"
:{
"bundleName"
:
"com.acts.inputmethodengine.test"
,
"vendor"
:
"hw"
,
"versionCode"
:
1000000
,
"versionName"
:
"1.0.0"
,
"debug"
:
false
,
"icon"
:
"$media:icon"
,
"label"
:
"$string:app_name"
,
"description"
:
"$string:description_application"
,
"distributedNotificationEnabled"
:
true
,
"keepAlive"
:
true
,
"singleUser"
:
true
,
"minAPIVersion"
:
8
,
"targetAPIVersion"
:
8
,
"car"
:{
"apiCompatibleVersion"
:
8
,
"singleUser"
:
false
}
}
}
inputmethod/InputMethodEngine/AppScope/resources/base/element/string.json
0 → 100644
浏览文件 @
62536d32
{
"string"
:[
{
"name"
:
"app_name"
,
"value"
:
"ohosProject"
}
]
}
\ No newline at end of file
inputmethod/InputMethodEngine/AppScope/resources/base/media/app_icon.png
0 → 100644
浏览文件 @
62536d32
6.6 KB
inputmethod/InputMethodEngine/BUILD.gn
0 → 100644
浏览文件 @
62536d32
# 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.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsInputMethodEngineTest") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
deps = [
":IMExtAbility_ets_assets",
":IMExtAbility_resources",
]
ets2abc = true
certificate_profile = "signature/ActsInputMethodEngineTest.p7b"
hap_name = "ActsInputMethodEngineTest"
subsystem_name = "inputmethod"
part_name = "imf"
}
ohos_app_scope("IMExtAbility_app_profile") {
app_profile = "AppScope/app.json"
sources = [ "AppScope/resources" ]
}
ohos_js_assets("IMExtAbility_ets_assets") {
source_dir = "entry/src/main/ets"
}
ohos_resources("IMExtAbility_resources") {
sources = [ "entry/src/main/resources" ]
deps = [ ":IMExtAbility_app_profile" ]
hap_profile = "entry/src/main/module.json"
}
inputmethod/InputMethodEngine/Test.json
0 → 100644
浏览文件 @
62536d32
{
"description"
:
"Configuration for hjunit demo Tests"
,
"driver"
:
{
"type"
:
"OHJSUnitTest"
,
"test-timeout"
:
"180000"
,
"bundle-name"
:
"com.acts.inputmethodengine.test"
,
"module-name"
:
"phone"
,
"shell-timeout"
:
"600000"
,
"testcase-timeout"
:
15000
},
"kits"
:
[{
"test-file-name"
:
[
"ActsInputMethodEngineTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
}]
}
inputmethod/InputMethodEngine/entry/src/main/ets/Application/AbilityStage.ts
0 → 100644
浏览文件 @
62536d32
/*
* 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.
*/
import
AbilityStage
from
"
@ohos.app.ability.AbilityStage
"
;
export
default
class
MyAbilityStage
extends
AbilityStage
{
onCreate
()
{
console
.
log
(
"
MyAbilityStage onCreate
"
);
globalThis
.
stageOnCreateRun
=
1
;
globalThis
.
stageContext
=
this
.
context
;
}
}
inputmethod/InputMethodEngine/entry/src/main/ets/InputMethodAbility/InputStageService.ts
0 → 100644
浏览文件 @
62536d32
/*
* 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.
*/
import
InputMethodExtensionAbility
from
'
@ohos.InputMethodExtensionAbility
'
;
import
{
KeyboardDelegate
}
from
'
./KeyboardDelegate
'
;
export
default
class
InputDemoService
extends
InputMethodExtensionAbility
{
private
keyboardDelegate
:
KeyboardDelegate
;
onCreate
(
want
)
{
this
.
keyboardDelegate
=
new
KeyboardDelegate
(
this
.
context
);
this
.
keyboardDelegate
.
onCreate
();
// 初始化窗口
}
onDestroy
()
{
console
.
log
(
"
onDestroy inputStageService**
"
);
this
.
context
.
destroy
();
}
}
\ No newline at end of file
inputmethod/InputMethodEngine/entry/src/main/ets/InputMethodAbility/KeyboardDelegate.ts
0 → 100644
浏览文件 @
62536d32
此差异已折叠。
点击以展开。
inputmethod/InputMethodEngine/entry/src/main/ets/InputMethodEngine/InputDemoService.ts
0 → 100644
浏览文件 @
62536d32
/*
* 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.
*/
import
InputMethodExtensionAbility
from
'
@ohos.InputMethodExtensionAbility
'
;
import
{
KeyboardController
}
from
'
./KeyboardController
'
;
export
default
class
InputDemoService
extends
InputMethodExtensionAbility
{
private
keyboardController
:
KeyboardController
;
onCreate
(
want
)
{
this
.
keyboardController
=
new
KeyboardController
(
this
.
context
);
this
.
keyboardController
.
onCreate
();
// 初始化窗口
}
onDestroy
()
{
console
.
log
(
"
onDestroy inputMethodEngine**
"
);
this
.
context
.
destroy
();
}
}
\ No newline at end of file
inputmethod/InputMethodEngine/entry/src/main/ets/InputMethodEngine/KeyboardController.ts
0 → 100644
浏览文件 @
62536d32
此差异已折叠。
点击以展开。
inputmethod/InputMethodEngine/entry/src/main/ets/MainAbility/MainAbility.ts
0 → 100644
浏览文件 @
62536d32
/*
* 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.
*/
import
Ability
from
'
@ohos.app.ability.UIAbility
'
;
export
default
class
MainAbility
extends
Ability
{
onCreate
(
want
,
launchParam
){
// Ability is creating, initialize resources for this ability
console
.
info
(
"
ImExtAbility onCreate
"
);
globalThis
.
abilityWant
=
want
;
}
onDestroy
()
{
// Ability is destroying, release resources for this ability
console
.
info
(
"
ImExtAbility onDestroy
"
);
}
onWindowStageCreate
(
windowStage
)
{
// Main window is created, set main page for this ability
console
.
info
(
"
ImExtAbility onWindowStageCreate
"
);
globalThis
.
abilityContext
=
this
.
context
;
windowStage
.
setUIContent
(
this
.
context
,
"
pages/index/index
"
,
null
);
console
.
info
(
"
ImExtAbility onWindowStageCreate finish
"
);
}
onWindowStageDestroy
()
{
// Main window is destroyed, release UI related resources
console
.
info
(
"
ImExtAbility onWindowStageDestroy
"
);
}
onForeground
()
{
// Ability has brought to foreground
console
.
info
(
"
ImExtAbility onForeground
"
);
}
onBackground
()
{
// Ability has back to background
console
.
info
(
"
ImExtAbility onBackground
"
);
}
};
\ No newline at end of file
inputmethod/InputMethodEngine/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts
0 → 100644
浏览文件 @
62536d32
/*
* 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.
*/
import
TestRunner
from
'
@ohos.application.testRunner
'
;
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
;
var
abilityDelegator
=
undefined
;
var
abilityDelegatorArguments
=
undefined
;
function
translateParamsToString
(
parameters
)
{
const
keySet
=
new
Set
([
'
-s class
'
,
'
-s notClass
'
,
'
-s suite
'
,
'
-s it
'
,
'
-s level
'
,
'
-s testType
'
,
'
-s size
'
,
'
-s timeout
'
,
'
-s dryRun
'
]);
let
targetParams
=
''
;
for
(
const
key
in
parameters
)
{
if
(
keySet
.
has
(
key
))
{
targetParams
=
`
${
targetParams
}
${
key
}
${
parameters
[
key
]}
`
;
}
}
return
targetParams
.
trim
();
}
async
function
onAbilityCreateCallback
()
{
console
.
log
(
"
onAbilityCreateCallback
"
);
}
async
function
addAbilityMonitorCallback
(
err
:
any
)
{
console
.
info
(
"
addAbilityMonitorCallback :
"
+
JSON
.
stringify
(
err
));
}
export
default
class
OpenHarmonyTestRunner
implements
TestRunner
{
constructor
()
{
}
onPrepare
()
{
console
.
info
(
"
OpenHarmonyTestRunner OnPrepare
"
);
}
async
onRun
()
{
console
.
log
(
'
OpenHarmonyTestRunner onRun run
'
);
abilityDelegatorArguments
=
AbilityDelegatorRegistry
.
getArguments
();
abilityDelegator
=
AbilityDelegatorRegistry
.
getAbilityDelegator
();
var
testAbilityName
=
abilityDelegatorArguments
.
bundleName
+
'
.MainAbility
'
;
let
lMonitor
=
{
abilityName
:
testAbilityName
,
onAbilityCreate
:
onAbilityCreateCallback
,
};
abilityDelegator
.
addAbilityMonitor
(
lMonitor
,
addAbilityMonitorCallback
);
var
cmd
=
'
aa start -d 0 -a com.acts.inputmethodengine.test.MainAbility
'
+
'
-b
'
+
abilityDelegatorArguments
.
bundleName
;
cmd
+=
'
'
+
translateParamsToString
(
abilityDelegatorArguments
.
parameters
);
var
debug
=
abilityDelegatorArguments
.
parameters
[
"
-D
"
];
if
(
debug
===
'
true
'
)
{
cmd
+=
'
-D
'
;
}
console
.
info
(
'
cmd :
'
+
cmd
);
abilityDelegator
.
executeShellCommand
(
cmd
,
(
err
:
any
,
d
:
any
)
=>
{
console
.
info
(
'
executeShellCommand : err :
'
+
JSON
.
stringify
(
err
));
console
.
info
(
'
executeShellCommand : data :
'
+
d
.
stdResult
);
console
.
info
(
'
executeShellCommand : data :
'
+
d
.
exitCode
);
});
console
.
info
(
'
OpenHarmonyTestRunner onRun end
'
);
}
};
\ No newline at end of file
inputmethod/InputMethodEngine/entry/src/main/ets/pages/index/index.ets
0 → 100644
浏览文件 @
62536d32
/*
* 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.
*/
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import { Hypium } from '@ohos/hypium'
import testsuite from '../../test/List.test'
@Entry
@Component
struct Index {
@State message: string = 'Hello World';
@State inputValue: string = 'inputMethodEngineinputMethodEngineinputMethodEngineinputMethodEngine' +
'inputMethodEngineinputMethodEngineinputMethodEngineinputMethodEngineinputMethodEngine';
build() {
Row() {
Column() {
Text(this.message)
.fontSize(50)
.fontWeight(FontWeight.Bold)
.defaultFocus(true)
TextArea({ text: this.inputValue })
.height(50)
.onChange((value: string) => {
this.inputValue = value;
})
Button() {
Text('next page')
.fontSize(20)
.fontWeight(FontWeight.Bold)
}.type(ButtonType.Capsule)
.margin({
top: 20
})
.backgroundColor('#0D9FFB')
.width('35%')
.height('5%')
.onClick(() => {
})
}
.width('100%')
}
.height('100%')
}
aboutToAppear(){
let abilityDelegator: any
abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
let abilityDelegatorArguments: any
abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
console.info('start run testcase!!!')
Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite)
}
}
\ No newline at end of file
inputmethod/InputMethodEngine/entry/src/main/ets/pages/second/second.ets
0 → 100644
浏览文件 @
62536d32
/*
* 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.
*/
import router from '@system.router';
@Entry
@Component
struct Second {
private content: string = "Second Page"
build() {
Flex({ direction: FlexDirection.Column,alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) {
Text(`${this.content}`)
.fontSize(50)
.fontWeight(FontWeight.Bold)
Button() {
Text('back to index')
.fontSize(20)
.fontWeight(FontWeight.Bold)
}.type(ButtonType.Capsule)
.margin({
top: 20
})
.backgroundColor('#0D9FFB')
.onClick(() => {
router.back()
})
}
.width('100%')
.height('100%')
}
}
\ No newline at end of file
inputmethod/InputMethodEngine/entry/src/main/ets/test/List.test.ets
0 → 100644
浏览文件 @
62536d32
/*
* 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.
*/
import inputMethodEngine from './inputMethodEngine.test'
import inputMethodAbility from './inputMethodAbility.test'
export default function testsuite() {
inputMethodEngine();
inputMethodAbility()
}
\ No newline at end of file
inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodAbility.test.ets
0 → 100644
浏览文件 @
62536d32
此差异已折叠。
点击以展开。
inputmethod/InputMethodEngine/entry/src/main/ets/test/inputMethodEngine.test.ets
0 → 100644
浏览文件 @
62536d32
此差异已折叠。
点击以展开。
inputmethod/InputMethodEngine/entry/src/main/module.json
0 → 100644
浏览文件 @
62536d32
{
"module"
:
{
"name"
:
"phone"
,
"type"
:
"entry"
,
"srcEntrance"
:
"./ets/Application/AbilityStage.ts"
,
"description"
:
"$string:phone_entry_dsc"
,
"mainElement"
:
"MainAbility"
,
"deviceTypes"
:
[
"tablet"
,
"default"
,
"phone"
],
"deliveryWithInstall"
:
true
,
"installationFree"
:
false
,
"uiSyntax"
:
"ets"
,
"pages"
:
"$profile:main_pages"
,
"metadata"
:
[
{
"name"
:
"ArkTSPartialUpdate"
,
"value"
:
"false"
}
],
"abilities"
:
[
{
"name"
:
"com.acts.inputmethodengine.test.MainAbility"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"description"
:
"$string:phone_entry_main"
,
"icon"
:
"$media:icon"
,
"label"
:
"$string:entry_label"
,
"visible"
:
true
,
"orientation"
:
"portrait"
,
"launchType"
:
"singleton"
,
"skills"
:
[
{
"actions"
:
[
"action.system.home"
],
"entities"
:[
"entity.system.home"
]
}
]
}
],
"extensionAbilities"
:
[
{
"description"
:
"输入法demoStage"
,
"icon"
:
"$media:icon"
,
"name"
:
"inputStageService"
,
"srcEntrance"
:
"./ets/InputMethodAbility/InputStageService.ts"
,
"type"
:
"inputMethod"
,
"visible"
:
true
},
{
"description"
:
"输入法Demo"
,
"icon"
:
"$media:icon"
,
"name"
:
"InputDemoService"
,
"srcEntrance"
:
"./ets/InputMethodEngine/InputDemoService.ts"
,
"type"
:
"inputMethod"
,
"visible"
:
true
}
],
"requestPermissions"
:
[
{
"name"
:
"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
,
"reason"
:
"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name"
:
"ohos.permission.CONNECT_IME_ABILITY"
}
]
}
}
inputmethod/InputMethodEngine/entry/src/main/resources/base/element/string.json
0 → 100644
浏览文件 @
62536d32
{
"string"
:
[
{
"name"
:
"phone_entry_dsc"
,
"value"
:
"i am an entry for phone"
},
{
"name"
:
"phone_entry_main"
,
"value"
:
"the phone entry ability"
},
{
"name"
:
"entry_label"
,
"value"
:
"ActsImeAbilityTest"
},
{
"name"
:
"ime_description"
,
"value"
:
"input method extension ability."
},
{
"name"
:
"ime_label"
,
"value"
:
"inputMethod extension ability services."
},
{
"name"
:
"ime_label_1"
,
"value"
:
"inputMethod extension ability services_1."
},
{
"name"
:
"description_application"
,
"value"
:
"demo for test"
},
{
"name"
:
"app_name"
,
"value"
:
"Demo"
}
]
}
inputmethod/InputMethodEngine/entry/src/main/resources/base/media/icon.png
0 → 100644
浏览文件 @
62536d32
6.6 KB
inputmethod/InputMethodEngine/entry/src/main/resources/base/profile/main_pages.json
0 → 100644
浏览文件 @
62536d32
{
"src"
:
[
"pages/index/index"
,
"pages/second/second"
]
}
\ No newline at end of file
inputmethod/InputMethodEngine/signature/ActsInputMethodEngineTest.p7b
0 → 100644
浏览文件 @
62536d32
文件已添加
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录