Home
last modified time | relevance | path

Searched refs:mojom (Results 1 – 25 of 87) sorted by relevance

1234

/external/libmojo/mojo/public/tools/bindings/generators/
Dmojom_js_generator.py7 import mojom.generate.generator as generator
8 import mojom.generate.module as mojom namespace
9 import mojom.generate.pack as pack
10 from mojom.generate.template_expander import UseJinja
13 mojom.BOOL: "false",
14 mojom.INT8: "0",
15 mojom.UINT8: "0",
16 mojom.INT16: "0",
17 mojom.UINT16: "0",
18 mojom.INT32: "0",
[all …]
Dmojom_cpp_generator.py7 import mojom.generate.generator as generator
8 import mojom.generate.module as mojom namespace
9 import mojom.generate.pack as pack
10 from mojom.generate.template_expander import UseJinja
14 mojom.BOOL: "bool",
15 mojom.INT8: "int8_t",
16 mojom.UINT8: "uint8_t",
17 mojom.INT16: "int16_t",
18 mojom.UINT16: "uint16_t",
19 mojom.INT32: "int32_t",
[all …]
Dmojom_java_generator.py18 import mojom.fileutil as fileutil
19 import mojom.generate.generator as generator
20 import mojom.generate.module as mojom namespace
21 from mojom.generate.template_expander import UseJinja
27 mojom.BOOL.spec: 'boolean',
28 mojom.DCPIPE.spec: 'org.chromium.mojo.system.DataPipe.ConsumerHandle',
29 mojom.DOUBLE.spec: 'double',
30 mojom.DPPIPE.spec: 'org.chromium.mojo.system.DataPipe.ProducerHandle',
31 mojom.FLOAT.spec: 'float',
32 mojom.HANDLE.spec: 'org.chromium.mojo.system.UntypedHandle',
[all …]
/external/libmojo/mojo/public/tools/bindings/pylib/mojom/generate/
Dpack_tests.py7 import module as mojom namespace
19 struct = mojom.Struct('test')
20 struct.AddField('testfield1', mojom.INT32, 2)
21 struct.AddField('testfield2', mojom.INT32, 1)
32 struct = mojom.Struct('test')
40 struct = mojom.Struct('test')
41 struct.AddField('testfield1', mojom.INT8)
54 struct = mojom.Struct('test')
71 (mojom.INT8, mojom.UINT8, mojom.INT32),
78 (mojom.INT8, mojom.INT32, mojom.UINT8),
[all …]
Dpack.py5 import module as mojom namespace
19 mojom.BOOL: 1,
20 mojom.INT8: 1,
21 mojom.UINT8: 1,
22 mojom.INT16: 2,
23 mojom.UINT16: 2,
24 mojom.INT32: 4,
25 mojom.UINT32: 4,
26 mojom.FLOAT: 4,
27 mojom.HANDLE: 4,
[all …]
Ddata.py9 import module as mojom namespace
89 if isinstance(kind, mojom.Enum) and '.' not in name:
113 return mojom.BuiltinValue(value[1])
127 kind = mojom.Array(KindFromData(kinds, data[2:], scope))
130 if isinstance(inner_kind, mojom.InterfaceRequest):
131 kind = mojom.AssociatedInterfaceRequest(inner_kind)
133 kind = mojom.AssociatedInterface(inner_kind)
137 kind = mojom.Array(KindFromData(kinds, data[colon+1:], scope), length)
139 kind = mojom.InterfaceRequest(KindFromData(kinds, data[2:], scope))
152 kind = mojom.Map(KindFromData(kinds, first_kind, scope),
[all …]
Dconstant_resolver.py8 import mojom.generate.module as mojom namespace
15 assert isinstance(named_value, (mojom.EnumValue, mojom.ConstantValue))
16 if isinstance(named_value, mojom.EnumValue):
37 if isinstance(constant.value, (mojom.EnumValue, mojom.ConstantValue)):
53 if isinstance(field.value, mojom.EnumValue):
82 if isinstance(field.default, (mojom.ConstantValue, mojom.EnumValue)):
Dtest_support.py8 import module as mojom namespace
40 if kind1.__class__ == mojom.Kind:
42 if kind1.__class__ == mojom.Struct:
51 if kind1.__class__ == mojom.Array:
110 module = mojom.Module('test', 'testspace')
112 struct.AddField('testfield1', mojom.INT32)
113 struct.AddField('testfield2', mojom.Array(mojom.INT32), 42)
117 method.AddParameter('foo', mojom.INT32)
118 method.AddParameter('bar', mojom.Array(struct))
134 errors += EXPECT_EQ(mojom.INT32, module.structs[0].fields[0].kind)
[all …]
Dgenerator_unittest.py7 import module as mojom namespace
13 module = mojom.Module()
15 union.AddField('a', mojom.BOOL)
16 union.AddField('b', mojom.BOOL)
17 union.AddField('c', mojom.BOOL, ordinal=10)
18 union.AddField('d', mojom.BOOL)
/external/libmojo/mojo/public/interfaces/bindings/tests/
DBUILD.gn5 import("../../../tools/bindings/mojom.gni")
7 mojom("test_interfaces") {
10 "math_calculator.mojom",
11 "no_module.mojom",
12 "ping_service.mojom",
13 "rect.mojom",
14 "regression_tests.mojom",
15 "sample_factory.mojom",
16 "sample_interfaces.mojom",
17 "sample_service.mojom",
[all …]
/external/libmojo/mojo/public/tools/bindings/pylib/mojom_tests/generate/
Ddata_unittest.py24 from mojom.generate import data
25 from mojom.generate import module as mojom unknown
32 module = mojom.Module('test_module', 'test_namespace')
49 module = mojom.Module('test_module', 'test_namespace')
63 module = mojom.Module('test_module', 'test_namespace')
64 imported_module = mojom.Module('import_module', 'import_namespace')
71 struct = mojom.Struct('TestStruct', module=module)
74 union = mojom.Union('TestUnion', module=module)
77 interface = mojom.Interface('TestInterface', module=module)
80 enum = mojom.Enum('TestEnum', module=module)
[all …]
Dpack_unittest.py26 from mojom.generate import pack
27 from mojom.generate import module as mojom unknown
42 struct = mojom.Struct('test')
56 struct = mojom.Struct('test')
57 struct.AddField('field_2', mojom.BOOL, 2)
58 struct.AddField('field_0', mojom.INT32, 0)
59 struct.AddField('field_1', mojom.INT64, 1)
81 struct = mojom.Struct('test')
94 struct = mojom.Struct('test')
95 struct.AddField('field_3', mojom.BOOL, ordinal=3,
[all …]
Dmodule_unittest.py24 from mojom.generate import module as mojom unknown
31 module = mojom.Module('test_module', 'test_namespace')
32 struct = mojom.Struct('TestStruct', module=module)
34 mojom.InterfaceRequest(struct)
42 module = mojom.Module('test_module', 'test_namespace')
43 struct = mojom.Struct('TestStruct', module=module)
45 mojom.AssociatedInterface(struct)
/external/libmojo/mojo/common/
Dtest_common_custom_types.mojom7 import "mojo/common/common_custom_types.mojom";
10 BounceFilePath(mojo.common.mojom.FilePath in)
11 => (mojo.common.mojom.FilePath out);
15 BounceTime(mojo.common.mojom.Time time) => (mojo.common.mojom.Time time);
16 BounceTimeDelta(mojo.common.mojom.TimeDelta time_delta)
17 => (mojo.common.mojom.TimeDelta time_delta);
18 BounceTimeTicks(mojo.common.mojom.TimeTicks time_ticks)
19 => (mojo.common.mojom.TimeTicks time_ticks);
23 BounceDictionaryValue(mojo.common.mojom.DictionaryValue in)
24 => (mojo.common.mojom.DictionaryValue out);
[all …]
Dcommon_custom_types.typemap5 mojom = "//mojo/common/common_custom_types.mojom"
17 "mojo.common.mojom.FilePath=base::FilePath",
18 "mojo.common.mojom.DictionaryValue=base::DictionaryValue",
19 "mojo.common.mojom.ListValue=base::ListValue",
20 "mojo.common.mojom.String16=base::string16",
21 "mojo.common.mojom.Time=base::Time",
22 "mojo.common.mojom.TimeDelta=base::TimeDelta",
23 "mojo.common.mojom.TimeTicks=base::TimeTicks",
DBUILD.gn5 import("//mojo/public/tools/bindings/mojom.gni")
16 mojom("common_custom_types") {
18 "common_custom_types.mojom",
19 "string16.mojom",
49 mojom("test_common_custom_types") {
51 "test_common_custom_types.mojom",
/external/libmojo/mojo/
Dmojo_js_unittests.isolate24 '<(PRODUCT_DIR)/gen/mojo/public/interfaces/bindings/tests/math_calculator.mojom.js',
25 '<(PRODUCT_DIR)/gen/mojo/public/interfaces/bindings/tests/no_module.mojom.js',
26 '<(PRODUCT_DIR)/gen/mojo/public/interfaces/bindings/tests/ping_service.mojom.js',
27 '<(PRODUCT_DIR)/gen/mojo/public/interfaces/bindings/tests/rect.mojom.js',
28 '<(PRODUCT_DIR)/gen/mojo/public/interfaces/bindings/tests/regression_tests.mojom.js',
29 '<(PRODUCT_DIR)/gen/mojo/public/interfaces/bindings/tests/sample_factory.mojom.js',
30 '<(PRODUCT_DIR)/gen/mojo/public/interfaces/bindings/tests/sample_import.mojom.js',
31 '<(PRODUCT_DIR)/gen/mojo/public/interfaces/bindings/tests/sample_import2.mojom.js',
32 '<(PRODUCT_DIR)/gen/mojo/public/interfaces/bindings/tests/sample_interfaces.mojom.js',
33 '<(PRODUCT_DIR)/gen/mojo/public/interfaces/bindings/tests/sample_service.mojom.js',
[all …]
Dmojom_bindings_generator_variables.gypi14 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/__init__.py',
15 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/error.py',
16 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/__init__.py',
17 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/data.py',
18 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/generator.py',
19 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/module.py',
20 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/pack.py',
21 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/template_expander.py',
22 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/__init__.py',
23 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/ast.py',
[all …]
Dmojom_bindings_generator.gypi95 'extension': 'mojom',
115 …ARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom.cc',
116 …HARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom.h',
117 …ARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom.js',
118 …ERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom-internal.h',
122 …TE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom-<(mojom_variant).c…
123 …TE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom-<(mojom_variant).h…
124 …TE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom-<(mojom_variant)-i…
131 './<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom',
145 'message': 'Generating Mojo bindings from <(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom',
/external/libmojo/mojo/public/tools/bindings/
Dmojom.gni11 "$mojom_generator_root/pylib/mojom/__init__.py",
12 "$mojom_generator_root/pylib/mojom/error.py",
13 "$mojom_generator_root/pylib/mojom/generate/__init__.py",
14 "$mojom_generator_root/pylib/mojom/generate/constant_resolver.py",
15 "$mojom_generator_root/pylib/mojom/generate/data.py",
16 "$mojom_generator_root/pylib/mojom/generate/generator.py",
17 "$mojom_generator_root/pylib/mojom/generate/module.py",
18 "$mojom_generator_root/pylib/mojom/generate/pack.py",
19 "$mojom_generator_root/pylib/mojom/generate/template_expander.py",
20 "$mojom_generator_root/pylib/mojom/parse/__init__.py",
[all …]
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/
DBindingsTest.java12 import org.chromium.mojo.bindings.test.mojom.imported.Color;
13 import org.chromium.mojo.bindings.test.mojom.imported.Point;
14 import org.chromium.mojo.bindings.test.mojom.imported.Shape;
15 import org.chromium.mojo.bindings.test.mojom.imported.Thing;
16 import org.chromium.mojo.bindings.test.mojom.sample.Bar;
17 import org.chromium.mojo.bindings.test.mojom.sample.Bar.Type;
18 import org.chromium.mojo.bindings.test.mojom.sample.DefaultsTest;
19 import org.chromium.mojo.bindings.test.mojom.sample.Enum;
20 import org.chromium.mojo.bindings.test.mojom.sample.Foo;
21 import org.chromium.mojo.bindings.test.mojom.sample.InterfaceConstants;
[all …]
DSerializationTest.java12 import org.chromium.mojo.bindings.test.mojom.mojo.Struct1;
13 import org.chromium.mojo.bindings.test.mojom.mojo.Struct2;
14 import org.chromium.mojo.bindings.test.mojom.mojo.Struct3;
15 import org.chromium.mojo.bindings.test.mojom.mojo.Struct4;
16 import org.chromium.mojo.bindings.test.mojom.mojo.Struct5;
17 import org.chromium.mojo.bindings.test.mojom.mojo.Struct6;
18 import org.chromium.mojo.bindings.test.mojom.mojo.StructOfNullables;
/external/libmojo/mojo/public/tools/bindings/pylib/mojom/parse/
Dtranslate.py117 self.mojom = {}
205 self.mojom['name'] = name
206 self.mojom['namespace'] = tree.module.name[1] if tree.module else ''
207 self.mojom['imports'] = \
209 self.mojom['structs'] = \
211 self.mojom['unions'] = \
213 self.mojom['interfaces'] = \
216 self.mojom['enums'] = \
218 self.mojom['constants'] = \
220 _AddOptional(self.mojom, 'attributes',
[all …]
/external/libmojo/gen/mojo/common/
Dcommon_custom_types__type_mappings3 "mojo.common.mojom.ListValue": {
18 "mojo.common.mojom.String16": {
34 "mojo.common.mojom.Time": {
49 "mojo.common.mojom.TimeDelta": {
64 "mojo.common.mojom.TimeTicks": {
79 "mojo.common.mojom.FilePath": {
94 "mojo.common.mojom.DictionaryValue": {
/external/libmojo/mojo/public/interfaces/bindings/
DBUILD.gn5 import("../../tools/bindings/mojom.gni")
7 mojom("bindings") {
9 "interface_control_messages.mojom",
10 "pipe_control_messages.mojom",

1234