Home
last modified time | relevance | path

Searched refs:mf (Results 1 – 25 of 214) sorted by relevance

123456789

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DMessageFormatTest.java36 MessageFormat mf = new MessageFormat(pattern); in testHashCode() local
39 testEHCS(mf, eq, ne); in testHashCode()
53 MessageFormat mf = new MessageFormat(pattern); in testMessageFormatString() local
54 assertEquals(englishTarget, mf.format(args)); in testMessageFormatString()
61 MessageFormat mf = new MessageFormat(pattern, Locale.US); in testMessageFormatStringLocale() local
62 assertEquals(englishTarget, mf.format(args)); in testMessageFormatStringLocale()
69 MessageFormat mf = new MessageFormat(pattern, ULocale.US); in testMessageFormatStringULocale() local
70 assertEquals(englishTarget, mf.format(args)); in testMessageFormatStringULocale()
77 MessageFormat mf = new MessageFormat(pattern, Locale.US); in testSetLocaleLocale() local
78 mf.setLocale(Locale.GERMANY); in testSetLocaleLocale()
[all …]
/external/chromium-trace/catapult/telemetry/third_party/modulegraph/modulegraph_tests/
Dtest_imports.py103 self.mf = modulegraph.ModuleGraph(path=[ root ] + sys.path)
106 self.mf.run_script(self.script_name)
111 n = self.mf.findNode(self.script_name)
119 n2 = self.mf.findNode(nm)
120 ed = self.mf.edgeData(n, n2)
125 refs = self.mf.getReferences(n)
126 self.assertEqual(set(refs), set(self.mf.findNode(nm) for nm in imported))
128 refs = list(self.mf.getReferers(n))
134 n = self.mf.findNode('mod')
136 refs = list(self.mf.getReferences(n))
[all …]
Dtest_edge_data.py24 mf = modulegraph.ModuleGraph(path=[ root ] + sys.path)
26 mf.run_script(script_name)
28 script_node = mf.findNode(script_name)
32 node = mf.findNode('toplevel_existing')
34 ed = mf.edgeData(script_node, node)
38 node = mf.findNode('toplevel_nonexisting')
40 ed = mf.edgeData(script_node, node)
44 node = mf.findNode('toplevel_class_existing')
46 ed = mf.edgeData(script_node, node)
50 node = mf.findNode('toplevel_class_nonexisting')
[all …]
Dtest_pycompat_pkg.py21 mf = modulegraph.ModuleGraph(path=[ root ] + sys.path)
22 mf.import_hook('pkg.api')
24 node = mf.findNode('pkg')
27 node = mf.findNode('pkg.api')
31 node = mf.findNode('pkg.api2')
34 node = mf.findNode('pkg.api3')
37 node = mf.findNode('http.client')
40 node = mf.findNode('urllib2')
44 node = mf.findNode('pkg.api2')
47 node = mf.findNode('pkg.api3')
[all …]
Dtest_pep420_nspkg.py91 self.mf = modulegraph.ModuleGraph(path=[
98 self.mf.import_hook('package')
100 node = self.mf.findNode('package')
106 self.mf.import_hook('package.sub1')
108 node = self.mf.findNode('package.sub1')
112 self.mf.import_hook('package.sub2')
113 node = self.mf.findNode('package.sub2')
118 self.mf.import_hook('package.subpackage.sub')
120 node = self.mf.findNode('package.subpackage.sub')
124 node = self.mf.findNode('package')
[all …]
Dtest_relimport2.py21 self.mf = modulegraph.ModuleGraph(path=[ self.root ] + sys.path)
25 self.mf.run_script(os.path.join(self.root, 'pkg/__init__.py'))
26 n = self.mf.findNode('mod1')
29 n = self.mf.findNode('mod2')
33 self.mf.import_hook('pkg.sub')
35 n = self.mf.findNode('toplevel')
38 n = self.mf.findNode('pkg.mod1')
41 n = self.mf.findNode('pkg.mod3')
Dtest_import_from_init.py83 self.mf = modulegraph.ModuleGraph(path=[ root ] + sys.path)
85 self.mf.run_script(os.path.join(root, 'script.py'))
90 node = self.mf.findNode('pkg')
96 node = self.mf.findNode('pkg.subpkg')
100 node = self.mf.findNode('pkg.subpkg.compat')
104 node = self.mf.findNode('pkg.subpkg._collections')
109 node = self.mf.findNode('pkg2')
114 node = self.mf.findNode('pkg2.subpkg')
118 node = self.mf.findNode('pkg2.subpkg.compat')
122 node = self.mf.findNode('pkg2.subpkg._collections')
Dtest_explicit_packages.py21 mf = find_modules.find_modules(
27 node = mf.findNode('pkg')
30 node = mf.findNode('pkg.sub3')
38 mf = find_modules.find_modules(
44 node = mf.findNode('pkg')
47 node = mf.findNode('pkg.sub3')
Dtest_setuptools_nspkg.py112 self.mf = modulegraph.ModuleGraph(path=[ test_dir ] + sys.path)
120 self.mf.import_hook('nspkg')
122 node = self.mf.findNode('nspkg')
128 self.mf.import_hook('nspkg.module')
130 node = self.mf.findNode('nspkg.module')
135 self.mf.import_hook('nspkg.nssubpkg.sub')
137 node = self.mf.findNode('nspkg.nssubpkg.sub')
142 node = self.mf.findNode('nspkg')
/external/chromium-trace/catapult/telemetry/third_party/modulegraph/modulegraph/
Dfind_modules.py111 def parse_mf_results(mf): argument
127 for item in mf.flatten():
243 def find_needed_modules(mf=None, scripts=(), includes=(), packages=(), warn=warnings.warn): argument
244 if mf is None:
245 mf = modulegraph.ModuleGraph()
249 mf.run_script(path)
254 mf.import_hook(mod[:-2], None, ['*'])
256 mf.import_hook(mod)
264 m = mf.findNode(f)
271 path = imp_find_module(f, mf.path)[1]
[all …]
D__main__.py54 mf = ModuleGraph(path, excludes=opts.excludes, debug=opts.debug)
58 mf.import_hook(arg[:-2], None, ["*"])
60 mf.import_hook(arg)
62 mf.run_script(arg)
64 mf.graphreport()
66 mf.create_xref()
68 mf.report()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DMessageRegression.java293 MessageFormat mf = new MessageFormat(originalPattern); in Test4114743() local
296 mf.applyPattern(illegalPattern); in Test4114743()
299 if (illegalPattern.equals(mf.toPattern())) in Test4114743()
300 errln("pattern after: \"" + mf.toPattern() + "\""); in Test4114743()
310 MessageFormat mf = new MessageFormat(""); in Test4116444() local
314 mf.applyPattern(pattern); in Test4116444()
316 Object[] array = mf.parse(null, new ParsePosition(0)); in Test4116444()
346 MessageFormat mf = new MessageFormat("<{0}>"); in Test4114739() local
351 logln("pattern: \"" + mf.toPattern() + "\""); in Test4114739()
353 logln("\"" + mf.format(objs1) + "\""); in Test4114739()
[all …]
DMeasureUnitTest.java831 MeasureFormat mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.WIDE, nf); in TestFormatPeriodEn() local
832 verifyFormatPeriod("en FULL", mf, fullData); in TestFormatPeriodEn()
833 mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.SHORT, nf); in TestFormatPeriodEn()
834 verifyFormatPeriod("en SHORT", mf, abbrevData); in TestFormatPeriodEn()
835 mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.NARROW, nf); in TestFormatPeriodEn()
836 verifyFormatPeriod("en NARROW", mf, narrowData); in TestFormatPeriodEn()
837 mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.NUMERIC, nf); in TestFormatPeriodEn()
838 verifyFormatPeriod("en NUMERIC", mf, numericData); in TestFormatPeriodEn()
842 mf = MeasureFormat.getInstance(ULocale.GERMAN, FormatWidth.WIDE, nf); in TestFormatPeriodEn()
843 verifyFormatPeriod("de FULL", mf, fullDataDe); in TestFormatPeriodEn()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DMessageRegression.java297 MessageFormat mf = new MessageFormat(originalPattern); in Test4114743() local
300 mf.applyPattern(illegalPattern); in Test4114743()
303 if (illegalPattern.equals(mf.toPattern())) in Test4114743()
304 errln("pattern after: \"" + mf.toPattern() + "\""); in Test4114743()
314 MessageFormat mf = new MessageFormat(""); in Test4116444() local
318 mf.applyPattern(pattern); in Test4116444()
320 Object[] array = mf.parse(null, new ParsePosition(0)); in Test4116444()
350 MessageFormat mf = new MessageFormat("<{0}>"); in Test4114739() local
355 logln("pattern: \"" + mf.toPattern() + "\""); in Test4114739()
357 logln("\"" + mf.format(objs1) + "\""); in Test4114739()
[all …]
DMeasureUnitTest.java835 MeasureFormat mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.WIDE, nf); in TestFormatPeriodEn() local
836 verifyFormatPeriod("en FULL", mf, fullData); in TestFormatPeriodEn()
837 mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.SHORT, nf); in TestFormatPeriodEn()
838 verifyFormatPeriod("en SHORT", mf, abbrevData); in TestFormatPeriodEn()
839 mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.NARROW, nf); in TestFormatPeriodEn()
840 verifyFormatPeriod("en NARROW", mf, narrowData); in TestFormatPeriodEn()
841 mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.NUMERIC, nf); in TestFormatPeriodEn()
842 verifyFormatPeriod("en NUMERIC", mf, numericData); in TestFormatPeriodEn()
846 mf = MeasureFormat.getInstance(ULocale.GERMAN, FormatWidth.WIDE, nf); in TestFormatPeriodEn()
847 verifyFormatPeriod("de FULL", mf, fullDataDe); in TestFormatPeriodEn()
[all …]
/external/eigen/test/
Dmixingtypes.cpp39 Mat_f mf = Mat_f::Random(size,size); in mixingtypes() local
40 Mat_d md = mf.template cast<double>(); in mixingtypes()
53 mf+mf; in mixingtypes()
54 VERIFY_RAISES_ASSERT(mf+md); in mixingtypes()
55 VERIFY_RAISES_ASSERT(mf+mcf); in mixingtypes()
101 VERIFY_IS_APPROX(sf*mf*mcf, sf*mf.template cast<CF>()*mcf); in mixingtypes()
102 VERIFY_IS_APPROX(sf*mcf*mf, sf*mcf*mf.template cast<CF>()); in mixingtypes()
103 VERIFY_IS_APPROX(scf*mf*mcf, scf*mf.template cast<CF>()*mcf); in mixingtypes()
104 VERIFY_IS_APPROX(scf*mcf*mf, scf*mcf*mf.template cast<CF>()); in mixingtypes()
106 VERIFY_IS_APPROX(sf*mf*vcf, (sf*mf).template cast<CF>().eval()*vcf); in mixingtypes()
[all …]
/external/eigen/test/eigen2/
Deigen2_mixingtypes.cpp33 Mat_f mf(size,size); in mixingtypes() local
42 mf+mf; in mixingtypes()
43 VERIFY_RAISES_ASSERT(mf+md); in mixingtypes()
44 VERIFY_RAISES_ASSERT(mf+mcf); in mixingtypes()
49 mf*mf; in mixingtypes() local
52 mf*vcf; in mixingtypes()
54 mcf *= mf; in mixingtypes()
59 VERIFY_RAISES_ASSERT(mf*md); in mixingtypes()
62 VERIFY_RAISES_ASSERT(vcf = mf*vf); in mixingtypes()
/external/lzma/C/
DLzFindMt.c170 CMatchFinder *mf = mt->MatchFinder; in HashThreadFunc() local
171 if (MatchFinder_NeedMove(mf)) in HashThreadFunc()
176 const Byte *beforePtr = MatchFinder_GetPointerToCurrentPos(mf); in HashThreadFunc()
178 MatchFinder_MoveBlock(mf); in HashThreadFunc()
179 afterPtr = MatchFinder_GetPointerToCurrentPos(mf); in HashThreadFunc()
190 MatchFinder_ReadIfRequired(mf); in HashThreadFunc()
191 if (mf->pos > (kMtMaxValForNormalize - kMtHashBlockSize)) in HashThreadFunc()
193 UInt32 subValue = (mf->pos - mf->historySize - 1); in HashThreadFunc()
194 MatchFinder_ReduceOffsets(mf, subValue); in HashThreadFunc()
195 MatchFinder_Normalize3(subValue, mf->hash + mf->fixedHashSize, mf->hashMask + 1); in HashThreadFunc()
[all …]
/external/lzma/Java/Tukaani/src/org/tukaani/xz/
DLZMA2Options.java139 private int mf; field in LZMA2Options
172 int niceLen, int mf, int depthLimit) in LZMA2Options() argument
179 setMatchFinder(mf); in LZMA2Options()
211 mf = MF_HC4; in setPreset()
216 mf = MF_BT4; in setPreset()
479 public void setMatchFinder(int mf) throws UnsupportedOptionsException { in setMatchFinder() argument
480 if (mf != MF_HC4 && mf != MF_BT4) in setMatchFinder()
482 "Unsupported match finder: " + mf); in setMatchFinder()
484 this.mf = mf; in setMatchFinder()
491 return mf; in getMatchFinder()
/external/autotest/client/site_tests/firmware_TouchMTB/
Dvalidators.py185 def __init__(self, criteria, mf=None, device=None, name=None): argument
187 self.fc = fuzzy.FuzzyCriteria(self.criteria_str, mf=mf)
285 def __init__(self, criteria_str, mf=None): argument
287 super(DragLatencyValidator, self).__init__(criteria_str, mf=mf,
317 self.vlog.score = self.fc.mf.grade(avg)
329 def __init__(self, validator, mf=None, device=None, argument
334 validator.criteria_str, mf, device, validator.__class__.__name__)
387 def __init__(self, criteria_str, mf=None, device=None, finger=0, argument
392 super(LinearityValidator1, self).__init__(criteria_str, mf, device,
502 self.vlog.score = self.fc.mf.grade(deviation)
[all …]
/external/icu/icu4c/source/test/intltest/
Dmsfmrgts.cpp455 MessageFormat *mf = new MessageFormat(originalPattern, status); in Test4114743() local
459 mf->applyPattern(illegalPattern, status); in Test4114743()
466 delete mf; in Test4114743()
481 MessageFormat *mf = new MessageFormat("", status); in Test4116444() local
486 mf->applyPattern(pattern, status); in Test4116444()
492 Formattable *array = mf->parse(UnicodeString(""), pp, count); in Test4116444()
518 delete mf; in Test4116444()
529 MessageFormat *mf = new MessageFormat("<{0}>", status); in Test4114739() local
538 logln("pattern: \"" + mf->toPattern(pat) + "\""); in Test4114739()
541 logln("\"" + mf->format(objs1, 0, res, pos, status) + "\""); in Test4114739()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCurrencyFormat.java39 private transient final MeasureFormat mf; field in CurrencyFormat
44 mf = MeasureFormat.getInstance(locale, FormatWidth.WIDE); in CurrencyFormat()
90 return mf.formatMeasures(appendTo, fieldPosition, measures); in formatMeasures()
98 return mf.getWidth(); in getWidth()
106 return mf.getNumberFormat(); in getNumberFormat()
114 return mf.toCurrencyProxy(); in writeReplace()
DTimeUnitFormat.java98 private transient MeasureFormat mf; field in TimeUnitFormat
119 mf = MeasureFormat.getInstance(ULocale.getDefault(), FormatWidth.WIDE); in TimeUnitFormat()
157 mf = MeasureFormat.getInstance( in TimeUnitFormat()
192 mf = mf.withLocale(locale); in setLocale()
228 mf = mf.withLocale(ULocale.getDefault()); in setNumberFormat()
231 mf = mf.withNumberFormat(this.format); in setNumberFormat()
235 mf = mf.withNumberFormat(this.format); in setNumberFormat()
249 return mf.format(obj, toAppendTo, pos); in format()
544 return mf.formatMeasures(appendTo, fieldPosition, measures); in formatMeasures()
554 return mf.getWidth(); in getWidth()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCurrencyFormat.java38 private transient final MeasureFormat mf; field in CurrencyFormat
43 mf = MeasureFormat.getInstance(locale, FormatWidth.WIDE); in CurrencyFormat()
89 return mf.formatMeasures(appendTo, fieldPosition, measures); in formatMeasures()
97 return mf.getWidth(); in getWidth()
105 return mf.getNumberFormat(); in getNumberFormat()
113 return mf.toCurrencyProxy(); in writeReplace()
DTimeUnitFormat.java96 private transient MeasureFormat mf; field in TimeUnitFormat
117 mf = MeasureFormat.getInstance(ULocale.getDefault(), FormatWidth.WIDE); in TimeUnitFormat()
155 mf = MeasureFormat.getInstance( in TimeUnitFormat()
190 mf = mf.withLocale(locale); in setLocale()
226 mf = mf.withLocale(ULocale.getDefault()); in setNumberFormat()
229 mf = mf.withNumberFormat(this.format); in setNumberFormat()
233 mf = mf.withNumberFormat(this.format); in setNumberFormat()
247 return mf.format(obj, toAppendTo, pos); in format()
542 return mf.formatMeasures(appendTo, fieldPosition, measures); in formatMeasures()
552 return mf.getWidth(); in getWidth()
[all …]

123456789