Home
last modified time | relevance | path

Searched full:instance (Results 1 – 25 of 1331) sorted by relevance

12345678910>>...54

/arkcompiler/ets_frontend/ets2panda/linter/
Dtsconfig-sdk.json210 "instance": "AbilityComponentInstance" string
215 "instance": "AlphabetIndexerInstance" string
220 "instance": "AnimatorInstance" string
225 "instance": "BadgeInstance" string
230 "instance": "BlankInstance" string
235 "instance": "ButtonInstance" string
240 "instance": "CalendarInstance" string
245 "instance": "CalendarPickerInstance" string
250 "instance": "CameraInstance" string
255 "instance": "CanvasInstance" string
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/arkanalyzer/src/core/common/
DEtsConst.ts303 instance: 'AbilityComponentInstance',
308 instance: 'AlphabetIndexerInstance',
313 instance: 'AnimatorInstance',
318 instance: 'BadgeInstance',
323 instance: 'BlankInstance',
328 instance: 'ButtonInstance',
333 instance: 'CalendarInstance',
338 instance: 'CalendarPickerInstance',
343 instance: 'CameraInstance',
348 instance: 'CanvasInstance',
[all …]
/arkcompiler/runtime_core/taihe/test/ani_optional/user/
Dmain.ets69 let instance: optionalTest.ExampleInterface = optionalTest.getInterface();
70 instance.funcPrimitiveI8(5 as byte) // byte对应i8
74 let instance: optionalTest.ExampleInterface = optionalTest.getInterface();
75 instance.funcPrimitiveI16(42 as short) // short对应i16
79 let instance: optionalTest.ExampleInterface = optionalTest.getInterface();
80 instance.funcPrimitiveI32(1000 as int) // int对应i32
84 let instance: optionalTest.ExampleInterface = optionalTest.getInterface();
85 instance.funcPrimitiveI64(1000000 as long) // long对应i64
90 let instance: optionalTest.ExampleInterface = optionalTest.getInterface();
91 instance.funcPrimitiveF32(3.14 as float) // float对应f32
[all …]
/arkcompiler/runtime_core/taihe/test/ani_union/user/
Dmain.ets96 let instance: UnionTest1.MyInterface = UnionTest1.getInterface();
97 instance.funcUnionPrimitive("Hello" as String, true);
101 let instance: UnionTest1.MyInterface = UnionTest1.getInterface();
102 instance.funcUnionPrimitive("World" as String, 42 as byte);
106 let instance: UnionTest1.MyInterface = UnionTest1.getInterface();
107 instance.funcUnionPrimitive(1 as byte, 12 as short);
111 let instance: UnionTest1.MyInterface = UnionTest1.getInterface();
112 instance.funcUnionPrimitive(12 as short, 123 as int);
116 let instance: UnionTest1.MyInterface = UnionTest1.getInterface();
117 instance.funcUnionPrimitive(123 as int, 1.23 as float);
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/interop/
Dreflect_built_in.ets.arkts2.json24 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
34 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
44 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
54 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
64 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
74 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
114 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
124 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
134 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
144 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
[all …]
Dreflect_built_in.ets.json24 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
34 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
44 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
54 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
94 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
104 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
114 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
124 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
134 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
144 …hen an \"Object\" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic…
[all …]
/arkcompiler/runtime_core/taihe/test/ani_overload/user/
Dmain.ets43 let instance: test_overload.OverloadInterface =
45 let res = instance.overloadFunc(5 as byte, 5 as byte);
51 let instance: test_overload.OverloadInterface =
53 let res = instance.overloadFunc(42 as short, 42 as short);
59 let instance: test_overload.OverloadInterface =
61 let res = instance.overloadFunc(1000 as int, 1000 as int);
67 let instance: test_overload.OverloadInterface =
69 let res = instance.overloadFunc(1000000 as long, 1000000 as long);
75 let instance: test_overload.OverloadInterface =
77 let res = instance.overloadFunc(3.14 as float, 3.14 as float);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/09.field_access_expressions/02.accessing_superclass_fields/
Daccess_by_super_in_field_nn.params.yaml16 - { type: "byte", value: "2", assert: "instance.b == 2"}
17 - { type: "short", value: "2", assert: "instance.b == 2"}
18 - { type: "long", value: "2", assert: "instance.b == 2"}
19 - { type: "float", value: "1.2", assert: "instance.b == 1.2 as float"}
20 - { type: "double", value: "2", assert: "instance.b == 2"}
21 - { type: "char", value: "c'a'", assert: "instance.b == c'a'"}
22 - { type: "boolean", value: "true", assert: "instance.b == true"}
23 - { type: "string", value: "\"some string\"", assert: "instance.b == \"some string\""}
24 - { type: "Byte", value: "new Byte(2 as byte)", assert: "instance.b == 2"}
25 - { type: "Short", value: "new Short(2 as short)", assert: "instance.b == 2"}
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DBoolean.ets27 * @param value value to construct class instance with
36 * @param value value to construct class instance with
45 * @param value value to construct class instance with
54 * @param value value to construct class instance with
63 * @param value value to construct class instance with
72 * @param value value to construct class instance with
81 * @param value value to construct class instance with
90 * @param value value to construct class instance with
99 * @param value value to construct class instance with
109 * @param value value to construct class instance with
[all …]
DShort.ets25 * Constructs a new Short instance with initial value zero
32 * Constructs a new Short instance with provided initial value
41 * Returns value of this instance as a primitive
43 * @returns value of this instance
82 * Returns value of this instance
91 * Returns value of this instance
100 * Returns value of this instance
109 * Returns value of this instance
118 * Returns value of this instance
127 * Returns value of this instance
[all …]
DInt.ets25 * Constructs a new Int instance with initial value zero
32 * Constructs a new Int instance with provided initial value
41 * Returns value of this instance as a primitive
43 * @returns value of this instance
82 * Returns value of this instance
91 * Returns value of this instance
100 * Returns value of this instance
109 * Returns value of this instance
118 * Returns value of this instance
127 * Returns value of this instance
[all …]
DLong.ets25 * Constructs a new Long instance with initial value zero
32 * Constructs a new Long instance with provided initial value
41 * Returns value of this instance as a primitive
43 * @returns value of this instance
82 * Returns value of this instance
91 * Returns value of this instance
100 * Returns value of this instance
109 * Returns value of this instance
118 * Returns value of this instance
127 * Returns value of this instance
[all …]
DByte.ets25 * Constructs a new Byte instance with initial value zero
32 * Constructs a new Byte instance with provided initial value
41 * Returns value of this instance as a primitive
43 * @returns value of this instance
82 * Returns value of this instance
91 * Returns value of this instance
100 * Returns value of this instance
109 * Returns value of this instance
118 * Returns value of this instance
127 * Returns value of this instance
[all …]
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
Dheap_tracker_second_test.cpp101 TestHelper::CreateEcmaVMWithScope(instance, thread, scope); in SetUp()
102 instance->SetEnableForceGC(false); in SetUp()
107 TestHelper::DestroyEcmaVMWithScope(instance, scope); in TearDown()
110 EcmaVM *instance {nullptr}; member in panda::test::HeapTrackerTest
118 HeapProfilerInterface *heapProfile = HeapProfilerInterface::GetInstance(instance); in HWTEST_F_L0()
123 instance->GetFactory()->NewJSAsyncFuncObject(); in HWTEST_F_L0()
128 instance->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
133 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
134 JSHandle<EcmaString> string = instance->GetFactory()->NewFromASCII("Hello World"); in HWTEST_F_L0()
135 instance->GetFactory()->NewJSString(JSHandle<JSTaggedValue>(string), undefined); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dstyles_decorator_mix_2.ets20 function NormalStyles(instance: CommonMethod): void {
21 instance.backgroundColor(Color.Blue);
31 PressedStyles: CustomStyles = (instance: CommonMethod): void => {
32 instance.backgroundColor(Color.Green);
41 selected: (instance: CommonMethod): void => {
42 instance.backgroundColor(Color.Red);
60 selected: (instance: CommonMethod): void => {
61 instance.backgroundColor(Color.Red);
75 selected: (instance: CommonMethod): void => {
76 instance.backgroundColor(Color.Red);
[all …]
Dstyles_decorator_mix_1.ets.migrate.ets28 function NormalStyles(instance: CommonMethod): void {
29 instance.backgroundColor(Color.Blue);
39 PressedStyles: CustomStyles = (instance: CommonMethod): void => {
40 instance.backgroundColor(Color.Green);
49 selected: (instance: CommonMethod): void => {
50 instance.backgroundColor(Color.Red);
68 selected: (instance: CommonMethod): void => {
69 instance.backgroundColor(Color.Red);
83 selected: (instance: CommonMethod): void => {
84 instance.backgroundColor(Color.Red);
[all …]
Dstyles_decorator_mix_2.ets.migrate.ets20 function NormalStyles(instance: CommonMethod): void {
21 instance.backgroundColor(Color.Blue);
31 PressedStyles: CustomStyles = (instance: CommonMethod): void => {
32 instance.backgroundColor(Color.Green);
41 selected: (instance: CommonMethod): void => {
42 instance.backgroundColor(Color.Red);
60 selected: (instance: CommonMethod): void => {
61 instance.backgroundColor(Color.Red);
75 selected: (instance: CommonMethod): void => {
76 instance.backgroundColor(Color.Red);
[all …]
Dstyles_decorator_global_2.ets22 function cardStyle1(instance: CommonMethod): void {
23 instance.backgroundColor(mycolor);
24 instance.borderColor(Color.Red);
25 instance.borderRadius(8.0);
26 instance.padding(8.0);
27 instance.backgroundImagePosition({
44 function NormalStyles(instance: CommonMethod): void {
45 instance.backgroundColor("#ffffff");
48 function PressedStyles(instance: CommonMethod): void {
49 instance.backgroundColor("#ffffff");
Dstyles_decorator_global_2.ets.migrate.ets22 function cardStyle1(instance: CommonMethod): void {
23 instance.backgroundColor(mycolor);
24 instance.borderColor(Color.Red);
25 instance.borderRadius(8.0);
26 instance.padding(8.0);
27 instance.backgroundImagePosition({
44 function NormalStyles(instance: CommonMethod): void {
45 instance.backgroundColor("#ffffff");
48 function PressedStyles(instance: CommonMethod): void {
49 instance.backgroundColor("#ffffff");
Dstyles_decorator_global_1.ets.migrate.ets31 function cardStyle1(instance: CommonMethod): void {
32 instance.backgroundColor(mycolor);
33 instance.borderColor(Color.Red);
34 instance.borderRadius(8.0);
35 instance.padding(8.0);
36 instance.backgroundImagePosition({
53 function NormalStyles(instance: CommonMethod): void {
54 instance.backgroundColor("#ffffff");
57 function PressedStyles(instance: CommonMethod): void {
58 instance.backgroundColor("#ffffff");
Dstyles_decorator_struct_1.ets.migrate.ets35 cardStyle1: CustomStyles = (instance: CommonMethod): void => {
36 instance.backgroundColor('#ffffff');
37 instance.borderRadius(8.0);
51 cardStyle2: CustomStyles = (instance: CommonMethod): void => {
52 instance.border({
56 instance.backgroundColor('#ffffff');
82 NormalStyles: CustomStyles = (instance: CommonMethod): void => {
83 instance.backgroundColor(Color.Red);
86 PressedStyles: CustomStyles = (instance: CommonMethod): void => {
87 instance.backgroundColor(Color.Green);
[all …]
Dstyles_decorator_struct_2.ets.migrate.ets22 cardStyle1: CustomStyles = (instance: CommonMethod): void => {
23 instance.backgroundColor('#ffffff');
24 instance.borderRadius(8.0);
38 cardStyle2: CustomStyles = (instance: CommonMethod): void => {
39 instance.border({
43 instance.backgroundColor('#ffffff');
69 NormalStyles: CustomStyles = (instance: CommonMethod): void => {
70 instance.backgroundColor(Color.Red);
73 PressedStyles: CustomStyles = (instance: CommonMethod): void => {
74 instance.backgroundColor(Color.Green);
[all …]
Dstyles_decorator_struct_2.ets22 cardStyle1: CustomStyles = (instance: CommonMethod): void => {
23 instance.backgroundColor('#ffffff');
24 instance.borderRadius(8.0);
38 cardStyle2: CustomStyles = (instance: CommonMethod): void => {
39 instance.border({
43 instance.backgroundColor('#ffffff');
69 NormalStyles: CustomStyles = (instance: CommonMethod): void => {
70 instance.backgroundColor(Color.Red);
73 PressedStyles: CustomStyles = (instance: CommonMethod): void => {
74 instance.backgroundColor(Color.Green);
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/interop/ignore_files/
Dunique_types.ts34 static instance = new A(); property in A
141 …Object.getOwnPropertyDescriptor(prx, "a") // arkts-interop-ts2s-ts-object-on-static-instance * 2 +…
142 …Object.getOwnPropertyDescriptors(prx) // arkts-interop-ts2s-ts-object-on-static-instance * 2 not {}
143 Object.getOwnPropertyNames(prx) // arkts-interop-ts2s-ts-object-on-static-instance * 2 ["a"]
145 Object.isExtensible(prx) // arkts-interop-ts2s-ts-object-on-static-instance * 2 true
146 Object.isFrozen(prx) // arkts-interop-ts2s-ts-object-on-static-instance * 2 false
147 Object.isSealed(prx) // arkts-interop-ts2s-ts-object-on-static-instance * 2 false
148 Object.keys(prx) // arkts-interop-ts2s-ts-object-on-static-instance * 2 ["a"]
149 …Object.setPrototypeOf(prx, {}) // arkts-interop-ts2s-ts-object-on-static-instance * 2 + arkts-limi…
150 …Object.values(prx) // arkts-interop-ts2s-ts-object-on-static-instance * 2 + arkts-no-inferred-gene…
[all …]
/arkcompiler/ets_runtime/common_components/mutator/tests/
Dmutator_manager_test.cpp96 Mutator* ptr = MutatorManager::Instance().CreateRuntimeMutator(threadType); in HWTEST_F_L0()
100 ptr = MutatorManager::Instance().CreateRuntimeMutator(threadType); in HWTEST_F_L0()
107 Mutator* ptr = MutatorManager::Instance().CreateRuntimeMutator(threadType); in HWTEST_F_L0()
110 MutatorManager::Instance().DestroyRuntimeMutator(threadType); in HWTEST_F_L0()
118 Mutator* ptr = MutatorManager::Instance().CreateRuntimeMutator(threadType); in HWTEST_F_L0()
120 MutatorManager::Instance().DestroyMutator(ptr); in HWTEST_F_L0()
121 EXPECT_TRUE(MutatorManager::Instance().TryAcquireMutatorManagementRLock()); in HWTEST_F_L0()
122 MutatorManager::Instance().MutatorManagementRUnlock(); in HWTEST_F_L0()
124 MutatorManager::Instance().MutatorManagementWLock(); in HWTEST_F_L0()
125 MutatorManager::Instance().DestroyMutator(ptr); in HWTEST_F_L0()
[all …]

12345678910>>...54