Home
last modified time | relevance | path

Searched full:be (Results 1 – 25 of 4377) sorted by relevance

12345678910>>...176

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/strings/
Dstring_api.ets35 assertEQ(chars.length, 5, "Chars length must be 5");
36 assertEQ(chars[0], c'h', "First letter must be `h`");
37 assertEQ(chars[1], c'e', "Second letter must be `e`");
38 assertEQ(chars[2], c'l', "Third letter must be `l`");
39 assertEQ(chars[3], c'l', "Fourth letter must be `l`");
40 assertEQ(chars[4], c'o', "Fifth letter must be `o`");
44 assertEQ(byteChars[0], 98, "First byte must be 98");
45 assertEQ(byteChars[1], 121, "Second byte must be 121");
46 assertEQ(byteChars[2], 116, "Third byte must be 116");
47 assertEQ(byteChars[3], 101, "Fourth byte must be 101");
[all …]
/arkcompiler/ets_runtime/test/sharedtest/sharedcollectionsexception/
Dexpect_output.txt15 call boundAt fail. err: BusinessError: The at method cannot be bound., errCode: 10200011
16 Call boundConcat fail. err: BusinessError: The concat method cannot be bound., errCode: 10200011
17 Call boundEntries failed. err: BusinessError: The entries method cannot be bound., errCode: 10200011
18 Call boundFill failed. err: BusinessError: The fill method cannot be bound., errCode: 10200011
19 Call boundFilter failed. err: BusinessError: The filter method cannot be bound., errCode: 10200011
20 Call boundFind failed. err: BusinessError: The find method cannot be bound., errCode: 10200011
21 Call boundFindIndex failed. err: BusinessError: The findIndex method cannot be bound., errCode: 102…
22 Call boundForEach failed. err: BusinessError: The forEach method cannot be bound., errCode: 10200011
23 Call boundIndexOf failed. err: BusinessError: The indexOf method cannot be bound., errCode: 10200011
24 Call boundJoin failed. err: BusinessError: The join method cannot be bound., errCode: 10200011
[all …]
/arkcompiler/ets_frontend/arkguard/test/ut/utils/
DApiExtractor.spec.ts674 expect(fileWhiteList!.fileReservedInfo.propertyParams.has('para1')).to.be.true;
675 expect(fileWhiteList!.fileReservedInfo.propertyParams.has('para2')).to.be.true;
676 expect(fileWhiteList!.fileReservedInfo.propertyParams.has('para3')).to.be.true;
677 expect(fileWhiteList!.fileReservedInfo.propertyParams.has('para4')).to.be.true;
678 expect(ApiExtractor.mConstructorPropertySet.has('para1')).to.be.true;
679 expect(ApiExtractor.mConstructorPropertySet.has('para2')).to.be.true;
680 expect(ApiExtractor.mConstructorPropertySet.has('para3')).to.be.true;
681 expect(ApiExtractor.mConstructorPropertySet.has('para4')).to.be.true;
695 expect(fileWhiteList!.fileReservedInfo.enumProperties.has('A1')).to.be.false;
696 expect(fileWhiteList!.fileReservedInfo.enumProperties.has('A2')).to.be.false;
[all …]
DApiReader.spec.ts75 expect(fileWhiteList1.fileKeepInfo.enumProperties.has('BLOCK_PARAM1')).to.be.true;
76 expect(fileWhiteList1.fileKeepInfo.enumProperties.has('BLOCK_PARAM2')).to.be.true;
78 expect(fileWhiteList2.fileKeepInfo.enumProperties.has('ENUM_PARAM1')).to.be.true;
79 expect(fileWhiteList2.fileKeepInfo.enumProperties.has('ENUM_PARAM2')).to.be.true;
81 expect(fileWhiteList3.fileKeepInfo.enumProperties.has('EXPORT_PARAM1')).to.be.true;
82 expect(fileWhiteList3.fileKeepInfo.enumProperties.has('EXPORT_PARAM2')).to.be.true;
84 expect(fileWhiteList4.fileKeepInfo.enumProperties.has('NS_PARAM1')).to.be.true;
85 expect(fileWhiteList4.fileKeepInfo.enumProperties.has('NS_PARAM2')).to.be.true;
126 expect(fileWhiteList1.fileKeepInfo.enumProperties.has('BLOCK_PARAM1')).to.be.true;
127 expect(fileWhiteList1.fileKeepInfo.enumProperties.has('BLOCK_PARAM2')).to.be.true;
[all …]
DProjectCollections.spec.ts47 expect(targetSet.size).to.be.equal(4);
48 expect(targetSet.has(1)).to.be.true;
49 expect(targetSet.has(2)).to.be.true;
50 expect(targetSet.has(3)).to.be.true;
51 expect(targetSet.has(4)).to.be.true;
58 expect(set.size).to.be.equal(3);
59 expect(set.has(1)).to.be.true;
60 expect(set.has(2)).to.be.true;
61 expect(set.has(3)).to.be.true;
75 expect(areSetsEqual(set1, set2)).to.be.true;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-common-tests/intrinsics/
Dstring_from_char_code.ets17 arktest.assertEQ(string.fromCharCode(), '', 'Must be an empty string');
18 …arktest.assertEQ(string.fromCharCode().length, 0, 'String length of an empty string must be equal …
22 arktest.assertEQ(string.fromCharCode(0x43 as number, 65.992 as number), 'CA', "Must be 'CA'");
23 …mCharCode(0x43 as number, 65.992 as number).length, 2, "String length of 'CA' must be equal to 2");
24 arktest.assertEQ(string.fromCharCode(0xA as number, 0xA as number), '\n\n', "Must be '\\n\\n'");
25 …mCharCode(0xA as number, 0xA as number).length, 2, "String length of '\\n\\n' must be equal to 2");
26 …string.fromCharCode(0xA as number, 0x9 as number, 0xA as number), '\n\t\n', "Must be '\\n\\t\\n'");
27 …umber, 0x9 as number, 0xA as number).length, 3, "String length of '\\n\\t\\n' must be equal to 3");
28 arktest.assertEQ(string.fromCharCode(0xA as number, 0xD as number), '\n\r', "Must be '\\n\\r'");
29 …mCharCode(0xA as number, 0xD as number).length, 2, "String length of '\\n\\r' must be equal to 2");
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dsendable_class_interface_property.ets65 prop1: string[]; // ERROR, sendable class property cannot be array
66 prop2: NonSendableClass2; // ERROR, sendable class property cannot be non-sendable-class
67 …prop3: NonSendableClass2 | null; // ERROR, sendable class property cannot be non-sendable-class un…
68 …prop4: NonSendableInterface | number; // ERROR, sendable class property cannot be non-sendable-cla…
69 …prop5: NonSendableClass2 | null | undefined; // ERROR, sendable class property cannot be non-senda…
70 prop6: alias2; // ERROR, sendable class property cannot be non-sendable-type
71 prop7: alias3; // ERROR, sendable class property cannot be non-sendable-type
72 prop8: RegularEnum; // ERROR, sendable class property cannot be non-sendable-type
73 prop9: RegularEnum1; // ERROR, sendable class property cannot be non-sendable-type
74 prop10: RegularEnum2; // ERROR, sendable class property cannot be non-sendable-type
[all …]
Dinvalid_identifier.ets.arkts2.json24 "rule": "This keyword cannot be used as identifiers (arkts-invalid-identifier)",
44 "rule": "This keyword cannot be used as identifiers (arkts-invalid-identifier)",
54 "rule": "This keyword cannot be used as identifiers (arkts-invalid-identifier)",
64 "rule": "This keyword cannot be used as identifiers (arkts-invalid-identifier)",
74 "rule": "This keyword cannot be used as identifiers (arkts-invalid-identifier)",
84 "rule": "This keyword cannot be used as identifiers (arkts-invalid-identifier)",
94 …"rule": "The switch expression type must be of type char, byte, short, int, long, string or enum (…
104 "rule": "This keyword cannot be used as identifiers (arkts-invalid-identifier)",
114 "rule": "This keyword cannot be used as identifiers (arkts-invalid-identifier)",
124 "rule": "This keyword cannot be used as identifiers (arkts-invalid-identifier)",
[all …]
Dclass_as_object.ets.json22 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
32 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
42 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
52 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
72 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
82 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
102 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
112 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
132 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
142 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
[all …]
Dstyles_decorator_mix_1.ets.arkts2.json44 …"rule": "The code block passed to stateStyles needs to be an arrow function (arkui-statestyles-blo…
54 …"rule": "The code block passed to stateStyles needs to be an arrow function (arkui-statestyles-blo…
64 …"rule": "The code block passed to stateStyles needs to be an arrow function (arkui-statestyles-blo…
74 …"rule": "The code block passed to stateStyles needs to be an arrow function (arkui-statestyles-blo…
84 …"rule": "The ArkUI interface \"Color\" should be imported before it is used (arkui-modular-interfa…
94 …"rule": "The ArkUI interface \"Entry\" should be imported before it is used (arkui-modular-interfa…
104 …"rule": "The ArkUI interface \"Component\" should be imported before it is used (arkui-modular-int…
114 …"rule": "The ArkUI interface \"BuilderParam\" should be imported before it is used (arkui-modular-…
124 …"rule": "The ArkUI interface \"Require\" should be imported before it is used (arkui-modular-inter…
134 …"rule": "The ArkUI interface \"Color\" should be imported before it is used (arkui-modular-interfa…
[all …]
Dimported_use_as_object.ets.json24 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
34 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
44 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
54 "rule": "Namespaces cannot be used as objects (arkts-no-ns-as-obj)",
64 "rule": "Namespaces cannot be used as objects (arkts-no-ns-as-obj)",
74 "rule": "Namespaces cannot be used as objects (arkts-no-ns-as-obj)",
84 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
94 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
104 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
114 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/
Dstring_split_test.ets29 let str = "It can't be - there must be a gap in between!";
31 assertEQ(arr.length, 11, "Length must be 11");
32 assertTrue(arr[0].equals("It"), "First substring must be `It`");
33 assertTrue(arr[1].equals("can't"), "Second substring must be `can't`");
34 assertTrue(arr[2].equals("be"), "Third substring must be `be`");
35 assertTrue(arr[3].equals("-"), "Third substring must be `-`");
36 assertTrue(arr[4].equals("there"), "Third substring must be `there`");
37 assertTrue(arr[5].equals("must"), "Third substring must be `must`");
38 assertTrue(arr[6].equals("be"), "Third substring must be `be`");
39 assertTrue(arr[7].equals("a"), "Third substring must be `a`");
[all …]
/arkcompiler/runtime_core/common_interfaces/base/
Druntime_param.h29 …* The reference value of region size, measured in KB, default to 64 KB, must be in range [4KB, 64K…
30 * It will be set to default value if assigned with 0.
36 * It will be set to default value if assigned with 0.
41 * Threshold used to determine whether a region is exempted (i.e., will not be forwarded).
42 …ercentage of live objects in a region is greater than this value, this region will not be exempted.
43 * Default to 0.8, must be in range (0, 1].
44 * It will be set to default value if assigned with 0.
51 * During each gc, collector determines how much memory should be cached,
52 * and let the heap utilization be close to this value.
53 * Default to 0.80, must be in range (0, 1].
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
DStringFasta.ets134 /* @@? 21:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
135 /* @@? 22:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
136 /* @@? 23:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
137 /* @@? 24:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
138 /* @@? 25:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
139 /* @@? 26:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
140 /* @@? 27:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
141 /* @@? 28:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
142 /* @@? 29:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
143 /* @@? 30:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
[all …]
Ddeclare_class_bad_5.ets53 /* @@? 17:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient cl…
54 /* @@? 18:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient c…
55 /* @@? 19:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient cl…
56 /* @@? 20:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient c…
57 /* @@? 21:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient cl…
58 /* @@? 22:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient c…
59 /* @@? 23:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient cl…
60 /* @@? 24:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient c…
61 /* @@? 38:3 Error SyntaxError: Methods or fields should not be decorated with private in ambient cl…
62 /* @@? 42:3 Error SyntaxError: Methods or fields should not be decorated with internal in ambient c…
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/FixedArray/
DStringFasta.ets134 /* @@? 21:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
135 /* @@? 22:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
136 /* @@? 23:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
137 /* @@? 24:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
138 /* @@? 25:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
139 /* @@? 26:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
140 /* @@? 27:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
141 /* @@? 28:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
142 /* @@? 29:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
143 /* @@? 30:9 Error TypeError: Static property 'IUB' must be accessed through it's class 'StringFasta…
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/ts_import_ets/ts/
Dtest5.ts.json24 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
34 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
44 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
54 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
64 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
74 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
84 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
94 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
104 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
114 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/annotation_tests/
DannotationUsage_missing_param_for_function_param.ets28 …ypeError: The required field 'testProperty2' must be specified. Fields without default values cann…
29 …ypeError: The required field 'testProperty1' must be specified. Fields without default values cann…
30 …ypeError: The required field 'testProperty1' must be specified. Fields without default values cann…
31 …ypeError: The required field 'testProperty2' must be specified. Fields without default values cann…
32 …ypeError: The required field 'testProperty1' must be specified. Fields without default values cann…
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/PlainArray/
DPlainArrayGetIndexOfKeyOfValueTests.ets52 assertEQ(plainArray.getKeyAt(i), i, "The key should be exist");
53 assertEQ(plainArray.getValueAt(i), TestData.forNumber1[i], "The value should be exist");
55 assertEQ(plainArray.get(TestData.testNumber1), TestData.testNumber1, "The value should be 1");
62 assertEQ(plainArray.getKeyAt(i), i, "The key should be exist");
63 assertEQ(plainArray.getValueAt(i), TestData.forNumber1[i], "The value should be exist");
65 assertEQ(plainArray.get(TestData.testNumber1w), undefined, "The result should be undefined");
72 assertEQ(plainArray.getKeyAt(i), i, "The key should be exist");
73 assertEQ(plainArray.getValueAt(i), TestData.forNumber2[i], "The value should be exist");
75 …Array.getIndexOfKey(TestData.testNumber1), TestData.testNumber1, "The index of key 1 should be 1");
82 assertEQ(plainArray.getKeyAt(i), i, "The key should be exist");
[all …]
/arkcompiler/ets_frontend/arkguard/
DREADME.md3 ## This document is no longer maintained. Obfuscation documents will be moved to [official guide](h…
16 In DevEco Studio, Arkguard can be enabled only in Stage Model (FA Model is not supported).
17 For now only name obfuscations can be used in DevEco Studio (because other obfuscation
30 When you create a new project, the following config will be generated in `build-profile.json5`.
43 When you create a new library, additional property `consumerFiles` will be added.
57 To enable obfuscation, the following conditions should be satisfied:
62 The files in the property `ruleOptions.files` will be applied when you build HAP or HAR.
64 The files in the property `consumerFiles` will be applied when you build the project or library whi…
65 depends on this library. They will also be merged into a file `obfuscation.txt` in the resulting HA…
71 HAP, `obfuscation.txt` will not be generated. For more details, please jump to
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/type_error_processing/
Dtype_handlers.ets40 /* @@? 22:18 Error TypeError: Invalid number of type parameters for Partial type, should be 1. */
41 /* @@? 24:18 Error TypeError: Invalid number of type parameters for Partial type, should be 1. */
42 /* @@? 25:18 Error TypeError: Invalid number of type parameters for Partial type, should be 1. */
43 /* @@? 26:18 Error TypeError: Only reference types can be converted to utility types. */
45 /* @@? 28:19 Error TypeError: Invalid number of type parameters for Readonly type, should be 1. */
46 /* @@? 30:19 Error TypeError: Invalid number of type parameters for Readonly type, should be 1. */
47 /* @@? 31:19 Error TypeError: Invalid number of type parameters for Readonly type, should be 1. */
48 /* @@? 32:20 Error TypeError: Only reference types can be converted to utility types. */
50 /* @@? 34:20 Error TypeError: Invalid number of type parameters for Required type, should be 1. */
51 /* @@? 36:20 Error TypeError: Invalid number of type parameters for Required type, should be 1. */
[all …]
/arkcompiler/runtime_core/libabckit/include/c/
Dmetadata_core.h159 …* @param [ in, out ] data - Pointer to the user-defined data that will be passed to the callback `…
161 …* @param [ in ] cb - Callback that will be invoked. Should return `false` on early exit and `true`…
173 …* @param [ in, out ] data - Pointer to the user-defined data that will be passed to the callback `…
175 …* @param [ in ] cb - Callback that will be invoked. Should return `false` on early exit and `true`…
188 …erts value of type `AbckitString` to C-style null-terminated string. Returned pointer should not be
191 * @param [ in ] value - Value of type `AbckitString` that needs to be converted.
203 * @param [ in ] t - Type to be inspected.
211 * @param [ in ] t - Type to be inspected.
223 * @param [ in ] value - Value item to be inspected.
231 * @param [ in ] value - Value item to be inspected.
[all …]
/arkcompiler/ets_frontend/arkguard/test/ut/initialization/
DConfigResolver.spec.ts108 expect(ob1.disableObfuscation).to.be.true;
109 expect(ob1.enablePropertyObfuscation).to.be.true;
110 expect(ob1.enableToplevelObfuscation).to.be.true;
152 expect(config1.options.disableObfuscation).to.be.false;
153 expect(config1.options.enablePropertyObfuscation).to.be.false;
154 expect(config1.options.enableToplevelObfuscation).to.be.false;
155 expect(config1.options.enableStringPropertyObfuscation).to.be.false;
156 expect(config1.options.removeLog).to.be.false;
157 expect(config1.options.compact).to.be.false;
158 expect(config1.options.removeComments).to.be.false;
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DnotNull.ets41 assertEQ(typeOf(b), 1, "b must be type Int")
42 assertEQ(b, 5, "b must be 5")
46 assertEQ(c, 40, "c should be 40")
59 assertEQ(typeOf(b), 1, "b must be type Int")
76 assertTrue(d instanceof Double, "d must be type Double")
77 assertEQ(d, 3.1415, "d must be 3.1415")
81 assertTrue("3.1415".equals(sd), "s must be '3.1415'")
85 assertTrue(f instanceof Float, "f must be type Float")
86 assertEQ(f, Float.DELTA, "f must be Float.DELTA")
103 assertTrue(false, "this must not be executed")
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/ArrayList/
DArrayListInsertHasGetIndexOfTests.ets73 …assertEQ(arrayList.length, TestData.testNumber6, "ArrayList length should be 6 after insert operat…
85 "ArrayList length should be 7 after insert operations");
93 … "The value of \"index\" is out of range. It must be >= 0 && <= 5. Received value is: -1") &&
98 … "The value of \"index\" is out of range. It must be >= 0 && <= 5. Received value is: 8") &&
112 …assertEQ(arrayList.length, TestData.testNumber6, "ArrayList length should be 6 after insert operat…
122 …assertEQ(arrayList.length, TestData.testNumber6, "ArrayList length should be 6 after insert operat…
153 assertTrue(arrayList.has(TestData.testString1), "Elements should be added");
154 assertTrue(arrayList.has(TestData.testNumber1), "Elements should be added");
155 assertTrue(arrayList.has(TestData.testObject1), "Elements should be added");
156 assertTrue(arrayList.has(undefined), "Elements should be added");
[all …]

12345678910>>...176