Home
last modified time | relevance | path

Searched refs:converters (Results 1 – 25 of 140) sorted by relevance

123456

/external/python/parse_type/parse_type/
Dbuilder.py184 def make_variant(cls, converters, re_opts=None, compiled=False, strict=True): argument
207 assert converters, "REQUIRE: Non-empty list."
208 if len(converters) == 1:
209 return converters[0]
213 pattern = r")|(".join([tc.pattern for tc in converters])
215 group_count = len(converters)
216 for converter in converters:
220 convert_variant = cls.__create_convert_variant_compiled(converters,
226 convert_variant.converters = tuple(converters)
235 for converter in convert_variant.converters:
[all …]
/external/jcommander/src/main/java/com/beust/jcommander/internal/
DDefaultConverterFactory.java23 import com.beust.jcommander.converters.BigDecimalConverter;
24 import com.beust.jcommander.converters.BooleanConverter;
25 import com.beust.jcommander.converters.DoubleConverter;
26 import com.beust.jcommander.converters.FileConverter;
27 import com.beust.jcommander.converters.FloatConverter;
28 import com.beust.jcommander.converters.ISO8601DateConverter;
29 import com.beust.jcommander.converters.IntegerConverter;
30 import com.beust.jcommander.converters.LongConverter;
31 import com.beust.jcommander.converters.StringConverter;
32 import com.beust.jcommander.converters.URIConverter;
[all …]
/external/tensorflow/tensorflow/python/autograph/converters/
DBUILD20 name = "converters",
57 ":converters",
69 ":converters",
81 ":converters",
99 ":converters",
111 ":converters",
123 ":converters",
135 ":converters",
149 ":converters",
161 ":converters",
[all …]
Dasserts_test.py21 from tensorflow.python.autograph.converters import asserts
22 from tensorflow.python.autograph.converters import function_scopes
/external/python/cpython3/Lib/sqlite3/test/
Dtypes.py117 sqlite.converters["FLOAT"] = lambda x: 47.2
120 sqlite.converters["BOOL"] = lambda x: bool(int(x))
121 sqlite.converters["FOO"] = DeclTypesTests.Foo
122 sqlite.converters["BAD"] = DeclTypesTests.BadConform
123 sqlite.converters["WRONG"] = lambda x: "WRONG"
124 sqlite.converters["NUMBER"] = float
127 del sqlite.converters["FLOAT"]
128 del sqlite.converters["BOOL"]
129 del sqlite.converters["FOO"]
130 del sqlite.converters["BAD"]
[all …]
/external/python/cpython2/Lib/sqlite3/test/
Dtypes.py138 sqlite.converters["FLOAT"] = lambda x: 47.2
141 sqlite.converters["BOOL"] = lambda x: bool(int(x))
142 sqlite.converters["FOO"] = DeclTypesTests.Foo
143 sqlite.converters["WRONG"] = lambda x: "WRONG"
144 sqlite.converters["NUMBER"] = float
147 del sqlite.converters["FLOAT"]
148 del sqlite.converters["BOOL"]
149 del sqlite.converters["FOO"]
150 del sqlite.converters["NUMBER"]
262 sqlite.converters["FOO"] = lambda x: "[%s]" % x
[all …]
/external/webrtc/webrtc/common_audio/
Daudio_converter.cc108 CompositionConverter(ScopedVector<AudioConverter> converters) in CompositionConverter() argument
109 : converters_(std::move(converters)) { in CompositionConverter()
146 ScopedVector<AudioConverter> converters; in Create() local
147 converters.push_back(new DownmixConverter(src_channels, src_frames, in Create()
149 converters.push_back(new ResampleConverter(dst_channels, src_frames, in Create()
151 sp.reset(new CompositionConverter(std::move(converters))); in Create()
158 ScopedVector<AudioConverter> converters; in Create() local
159 converters.push_back(new ResampleConverter(src_channels, src_frames, in Create()
161 converters.push_back(new UpmixConverter(src_channels, dst_frames, in Create()
163 sp.reset(new CompositionConverter(std::move(converters))); in Create()
/external/python/cpython3/Modules/_ctypes/
Dcallbacks.c17 Py_XDECREF(self->converters); in CThunkObject_dealloc()
29 Py_VISIT(self->converters); in CThunkObject_traverse()
39 Py_CLEAR(self->converters); in CThunkObject_clear()
135 PyObject *converters, in _CallPythonObject() argument
147 nArgs = PySequence_Length(converters); in _CallPythonObject()
163 PyObject *cnv = PySequence_GetItem(converters, i); in _CallPythonObject()
301 p->converters, in closure_fcn()
320 p->converters = NULL; in CThunkObject_new()
333 PyObject *converters, in _ctypes_alloc_callback() argument
342 nArgs = PySequence_Size(converters); in _ctypes_alloc_callback()
[all …]
Dctypes.h63 PyObject *converters; member
92 PyObject *converters; member
158 PyObject *converters,
206 PyObject *converters; /* tuple([t.from_param for t in argtypes]) */ member
/external/python/cpython2/Modules/_ctypes/
Dcallbacks.c23 Py_XDECREF(self->converters); in CThunkObject_dealloc()
35 Py_VISIT(self->converters); in CThunkObject_traverse()
45 Py_CLEAR(self->converters); in CThunkObject_clear()
211 PyObject *converters, in _CallPythonObject() argument
225 nArgs = PySequence_Length(converters); in _CallPythonObject()
241 PyObject *cnv = PySequence_GetItem(converters, i); in _CallPythonObject()
380 p->converters, in closure_fcn()
400 p->converters = NULL; in CThunkObject_new()
413 PyObject *converters, in _ctypes_alloc_callback() argument
422 nArgs = PySequence_Size(converters); in _ctypes_alloc_callback()
[all …]
Dctypes.h103 PyObject *converters; member
132 PyObject *converters; member
198 PyObject *converters,
246 PyObject *converters; /* tuple([t.from_param for t in argtypes]) */ member
/external/jcommander/src/test/java/com/beust/jcommander/args/
DArgsConverter.java22 import com.beust.jcommander.converters.FileConverter;
23 import com.beust.jcommander.converters.PathConverter;
24 import com.beust.jcommander.converters.URIConverter;
25 import com.beust.jcommander.converters.URLConverter;
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/
DPublicKeyFactory.java75 private static Map converters = new HashMap(); field in PublicKeyFactory
79 converters.put(PKCSObjectIdentifiers.rsaEncryption, new RSAConverter()); in converters.put()
80 converters.put(PKCSObjectIdentifiers.id_RSASSA_PSS, new RSAConverter()); in converters.put()
81 converters.put(X509ObjectIdentifiers.id_ea_rsa, new RSAConverter()); in converters.put()
82 converters.put(X9ObjectIdentifiers.dhpublicnumber, new DHPublicNumberConverter()); in converters.put()
83 converters.put(PKCSObjectIdentifiers.dhKeyAgreement, new DHAgreementConverter()); in converters.put()
84 converters.put(X9ObjectIdentifiers.id_dsa, new DSAConverter()); in converters.put()
85 converters.put(OIWObjectIdentifiers.dsaWithSHA1, new DSAConverter()); in converters.put()
88 converters.put(X9ObjectIdentifiers.id_ecPublicKey, new ECConverter()); in converters.put()
155 …SubjectPublicKeyInfoConverter converter = (SubjectPublicKeyInfoConverter)converters.get(algId.getA… in createKey()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/util/
DPublicKeyFactory.java77 private static Map converters = new HashMap(); field in PublicKeyFactory
81 converters.put(PKCSObjectIdentifiers.rsaEncryption, new RSAConverter()); in converters.put()
82 converters.put(PKCSObjectIdentifiers.id_RSASSA_PSS, new RSAConverter()); in converters.put()
83 converters.put(X509ObjectIdentifiers.id_ea_rsa, new RSAConverter()); in converters.put()
84 converters.put(X9ObjectIdentifiers.dhpublicnumber, new DHPublicNumberConverter()); in converters.put()
85 converters.put(PKCSObjectIdentifiers.dhKeyAgreement, new DHAgreementConverter()); in converters.put()
86 converters.put(X9ObjectIdentifiers.id_dsa, new DSAConverter()); in converters.put()
87 converters.put(OIWObjectIdentifiers.dsaWithSHA1, new DSAConverter()); in converters.put()
90 converters.put(X9ObjectIdentifiers.id_ecPublicKey, new ECConverter()); in converters.put()
157 …SubjectPublicKeyInfoConverter converter = (SubjectPublicKeyInfoConverter)converters.get(algId.getA… in createKey()
/external/icu/icu4c/source/tools/gencnval/
Dgencnval.c112 static Converter converters[MAX_CONV_COUNT]; variable
286 uprv_memset(converters, 0, sizeof(converters)); in main()
687 lineNum, alias, GET_ALIAS_STR(converters[converter].converter)); in addAlias()
692 if (standard == ALL_TAG_NUM && GET_ALIAS_STR(converters[converter].converter) != alias) { in addAlias()
726 GET_ALIAS_STR(converters[converter].converter)); in addAlias()
732 GET_ALIAS_STR(converters[converter].converter), in addAlias()
733 GET_ALIAS_STR(converters[idx].converter)); in addAlias()
773 GET_ALIAS_STR(converters[converter].converter)); in addAlias()
782 converters[converter].totalAliasCount++; /* One more to the column */ in addAlias()
797 if (ucnv_compareNames(converter, GET_ALIAS_STR(converters[idx].converter)) == 0) { in addConverter()
[all …]
/external/python/cpython3/Lib/test/
Dtest_configparser.py1664 parser.converters['decimal'] = decimal.Decimal
1671 self.assertIn('decimal', parser.converters)
1679 self.assertIn('decimal', parser.converters)
1680 del parser.converters['decimal']
1681 self.assertNotIn('decimal', parser.converters)
1942 instance.converters['list'] = lambda v: [e.strip() for e in v.split()
1948 self.assertIn('boolean', cfg.converters)
1949 self.assertIn('list', cfg.converters)
1950 self.assertIsNone(cfg.converters['int'])
1951 self.assertIsNone(cfg.converters['float'])
[all …]
/external/tensorflow/tensorflow/python/autograph/impl/
Dconversion.py35 from tensorflow.python.autograph.converters import arg_defaults
36 from tensorflow.python.autograph.converters import asserts
37 from tensorflow.python.autograph.converters import break_statements
38 from tensorflow.python.autograph.converters import call_trees
39 from tensorflow.python.autograph.converters import conditional_expressions
40 from tensorflow.python.autograph.converters import continue_statements
41 from tensorflow.python.autograph.converters import control_flow
42 from tensorflow.python.autograph.converters import directives
43 from tensorflow.python.autograph.converters import function_scopes
44 from tensorflow.python.autograph.converters import lists
[all …]
/external/jcommander/src/main/java/com/beust/jcommander/
DParameter.java24 import com.beust.jcommander.converters.CommaParameterSplitter;
25 import com.beust.jcommander.converters.IParameterSplitter;
26 import com.beust.jcommander.converters.NoConverter;
/external/junit-params/src/test/java/junitparams/
DParamsConverterTest.java17 import junitparams.converters.ConversionFailedException;
18 import junitparams.converters.ConvertParam;
19 import junitparams.converters.Converter;
20 import junitparams.converters.Param;
21 import junitparams.converters.ParamConverter;
/external/tensorflow/tensorflow/python/autograph/
DCONTRIBUTING.md45 Please include unit tests when contributing new features ([example here](converters/continue_statem…
66 converters;
75 impl -> converters
81 converters -> core
82 converters -> lang
94 …* `converters`: collection of source code transformation modules specialized for particular AutoGr…
102 Note: we have a long term plan to factor out an implementation of `impl` and `converters` that is i…
/external/fonttools/Doc/source/ufoLib/
Dconverters.rst4 converters title
7 .. automodule:: ufoLib.converters
/external/python/cpython2/Doc/tools/extensions/
Dpyspecific.py26 Body.enum.converters['loweralpha'] = \
27 Body.enum.converters['upperalpha'] = \
28 Body.enum.converters['lowerroman'] = \
29 Body.enum.converters['upperroman'] = lambda x: None
/external/junit-params/src/main/java/junitparams/internal/
DInvokeParameterisedMethod.java10 import junitparams.converters.ConversionFailedException;
11 import junitparams.converters.ConvertParam;
12 import junitparams.converters.ParamAnnotation;
13 import junitparams.converters.ParamConverter;
/external/sl4a/Common/src/com/googlecode/android_scripting/rpc/
DMethodDescriptor.java558 Map<Class<?>, Converter<?>> converters = new HashMap<Class<?>, Converter<?>>(); in populateConverters() local
559 converters.put(String.class, new Converter<String>() { in populateConverters()
565 converters.put(Integer.class, new Converter<Integer>() { in populateConverters()
575 converters.put(Long.class, new Converter<Long>() { in populateConverters()
585 converters.put(Boolean.class, new Converter<Boolean>() { in populateConverters()
601 return converters; in populateConverters()
/external/python/cpython3/Doc/howto/
Dclinic.rst151 the document (like "return converters" and "self converters").
725 Using real Argument Clinic converters, instead of "legacy converters"
730 you to use "legacy converters". "Legacy converters" are a convenience,
736 use Argument Clinic's real syntax for converters. Why? A couple
739 * The proper converters are far easier to read and clearer in their intent.
740 * There are some format units that are unsupported as "legacy converters",
745 won't be available to parameters using legacy converters.
748 converters instead of legacy converters.
750 In a nutshell, the syntax for Argument Clinic (non-legacy) converters
754 the same converters.
[all …]

123456