Home
last modified time | relevance | path

Searched refs:cm (Results 1 – 19 of 19) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/
DWith.py18 cm = self.ContextManager()
21 with cm: pass
22 with cm: pass
23 with cm: pass
24 with cm: pass
25 with cm: pass
26 with cm: pass
27 with cm: pass
28 with cm: pass
29 with cm: pass
[all …]
/device/google/contexthub/firmware/lib/libc/
Dstrcasecmp.c79 const u_char *cm = charmap; in strcasecmp() local
83 while (cm[*us1] == cm[*us2++]) in strcasecmp()
86 return (cm[*us1] - cm[*--us2]); in strcasecmp()
93 const u_char *cm = charmap; in strncasecmp() local
98 if (cm[*us1] != cm[*us2++]) in strncasecmp()
99 return (cm[*us1] - cm[*--us2]); in strncasecmp()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_pyclbr.py166 cm = self.checkModule
169 cm('random', ignore=('Random',)) # from _random import Random as CoreGenerator
170 cm('cgi', ignore=('log',)) # set with = in module
171 cm('urllib', ignore=('_CFNumberToInt32',
180 cm('pickle')
181 cm('aifc', ignore=('openfp',)) # set with = in module
182 cm('Cookie')
183 cm('sre_parse', ignore=('dump',)) # from sre_constants import *
184 cm('pdb')
185 cm('pydoc')
[all …]
Dtest_with.py354 cm = mock_contextmanager_generator()
356 with cm as self.resource:
357 self.assertInWithManagerInvariants(cm)
361 self.assertAfterWithManagerInvariantsWithError(cm)
365 cm = mock_contextmanager_generator()
367 with cm as self.resource:
372 self.assertAfterWithManagerInvariantsWithError(cm, ZeroDivisionError)
451 def cm(): function
455 with cm():
462 class cm(object): class
[all …]
Dtest_socket.py286 with self.assertRaises(TypeError) as cm:
288 self.assertIn('not complex', str(cm.exception))
289 with self.assertRaises(TypeError) as cm:
291 self.assertIn('not NoneType', str(cm.exception))
295 with self.assertRaises(TypeError) as cm:
297 self.assertIn('not complex', str(cm.exception))
298 with self.assertRaises(TypeError) as cm:
300 self.assertIn('not NoneType', str(cm.exception))
301 with self.assertRaises(TypeError) as cm:
303 self.assertIn('an integer is required', str(cm.exception))
[all …]
Dpyclbr_input.py33 def cm(self): pass member in C
Dtest_str.py423 with self.assertRaises(TypeError) as cm:
425 exc = str(cm.exception)
Dtest_xmlrpc.py720 cm = self.assertRaisesRegexp(xmlrpclib.ProtocolError,
722 with cm:
Dtest_unicode.py449 with self.assertRaises(TypeError) as cm:
451 exc = str(cm.exception)
Dtest_argparse.py4455 with self.assertRaises(ValueError) as cm:
4457 self.assertEqual(cm.exception.args[0], self.EXPECTED_MESSAGE)
Dtest_io.py2621 with self.assertRaises((ZeroDivisionError, RuntimeError)) as cm:
2628 exc = cm.exception
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dfuncobject.c614 cm_dealloc(classmethod *cm) in cm_dealloc() argument
616 _PyObject_GC_UNTRACK((PyObject *)cm); in cm_dealloc()
617 Py_XDECREF(cm->cm_callable); in cm_dealloc()
618 Py_TYPE(cm)->tp_free((PyObject *)cm); in cm_dealloc()
622 cm_traverse(classmethod *cm, visitproc visit, void *arg) in cm_traverse() argument
624 Py_VISIT(cm->cm_callable); in cm_traverse()
629 cm_clear(classmethod *cm) in cm_clear() argument
631 Py_CLEAR(cm->cm_callable); in cm_clear()
639 classmethod *cm = (classmethod *)self; in cm_descr_get() local
641 if (cm->cm_callable == NULL) { in cm_descr_get()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dfuncobject.c614 cm_dealloc(classmethod *cm) in cm_dealloc() argument
616 _PyObject_GC_UNTRACK((PyObject *)cm); in cm_dealloc()
617 Py_XDECREF(cm->cm_callable); in cm_dealloc()
618 Py_TYPE(cm)->tp_free((PyObject *)cm); in cm_dealloc()
622 cm_traverse(classmethod *cm, visitproc visit, void *arg) in cm_traverse() argument
624 Py_VISIT(cm->cm_callable); in cm_traverse()
629 cm_clear(classmethod *cm) in cm_clear() argument
631 Py_CLEAR(cm->cm_callable); in cm_clear()
639 classmethod *cm = (classmethod *)self; in cm_descr_get() local
641 if (cm->cm_callable == NULL) { in cm_descr_get()
[all …]
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/
DColorWheel.java162 ColorMatrix cm = new ColorMatrix(); in rotateColor() local
165 cm.setRGB2YUV(); in rotateColor()
167 cm.postConcat(tmp); in rotateColor()
169 cm.postConcat(tmp); in rotateColor()
171 final float[] a = cm.getArray(); in rotateColor()
/device/sample/apps/LeanbackWidget/src/com/google/android/leanbacklauncher/partnerwidget/
DClockWidgetProvider.java66 ConnectivityManager cm = (ConnectivityManager) context in getConnectedResId() local
68 NetworkInfo info = cm.getActiveNetworkInfo(); in getConnectedResId()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/
DGrammar.txt22 #diagram:output\textwidth 20.04cm\oddsidemargin 0.0cm\evensidemargin 0.0cm
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/
Dtest_assertions.py70 with self.assertRaises(KeyError) as cm:
75 self.assertIs(cm.exception, e)
Dtest_case.py683 with self.assertRaises(self.failureException) as cm:
685 self.assertIn('^', str(cm.exception))
700 with self.assertRaises(self.failureException) as cm:
702 self.assertNotIn('^', str(cm.exception))
703 self.assertEqual(str(cm.exception), '%r != %r' % (s1, s2))
/device/linaro/bootloader/edk2/QuarkPlatformPkg/
DQuarkPlatformPkg.dec366 …# and is equal to 1.75 inches or 4.445 cm. A value of 00h indicates that the enclosure height is u…