/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_base64.py | 9 eq = self.assertEqual 10 eq(base64.encodestring("www.python.org"), "d3d3LnB5dGhvbi5vcmc=\n") 11 eq(base64.encodestring("a"), "YQ==\n") 12 eq(base64.encodestring("ab"), "YWI=\n") 13 eq(base64.encodestring("abc"), "YWJj\n") 14 eq(base64.encodestring(""), "") 15 eq(base64.encodestring("abcdefghijklmnopqrstuvwxyz" 23 eq = self.assertEqual 24 eq(base64.decodestring("d3d3LnB5dGhvbi5vcmc=\n"), "www.python.org") 25 eq(base64.decodestring("YQ==\n"), "a") [all …]
|
D | test_repr.py | 25 eq = self.assertEqual 26 eq(r("abc"), "'abc'") 27 eq(r("abcdefghijklmnop"),"'abcdefghijklmnop'") 31 eq(r(s), expected) 33 eq(r("\"'"), repr("\"'")) 36 eq(r(s), expected) 39 eq = self.assertEqual 40 eq(r((1,)), "(1,)") 43 eq(r(t3), "(1, 2, 3)") 48 eq(r2.repr(t3), expected) [all …]
|
D | test_gettext.py | 92 eq = self.assertEqual 94 eq(_('albatross'), 'albatross') 95 eq(_(u'mullusk'), 'bacon') 96 eq(_(r'Raymond Luxury Yach-t'), 'Throatwobbler Mangrove') 97 eq(_(ur'nudge nudge'), 'wink wink') 100 eq = self.assertEqual 102 eq(_("albatross"), 'albatross') 103 eq(_(u"mullusk"), 'bacon') 104 eq(_(r"Raymond Luxury Yach-t"), 'Throatwobbler Mangrove') 105 eq(_(ur"nudge nudge"), 'wink wink') [all …]
|
D | test_mimetypes.py | 19 eq = self.assertEqual 20 eq(self.db.guess_type("foo.html"), ("text/html", None)) 21 eq(self.db.guess_type("foo.tgz"), ("application/x-tar", "gzip")) 22 eq(self.db.guess_type("foo.tar.gz"), ("application/x-tar", "gzip")) 23 eq(self.db.guess_type("foo.tar.Z"), ("application/x-tar", "compress")) 26 eq = self.assertEqual 28 eq(guess_type("data:,thisIsTextPlain"), ("text/plain", None)) 29 eq(guess_type("data:;base64,thisIsTextPlain"), ("text/plain", None)) 30 eq(guess_type("data:text/x-foo,thisIsTextXFoo"), ("text/x-foo", None)) 33 eq = self.assertEqual [all …]
|
D | test_mhlib.py | 151 eq = self.assertEqual 152 eq(mh.getprofile('Editor'), 'emacs') 153 eq(mh.getprofile('not-set'), None) 154 eq(mh.getpath(), os.path.abspath(_mhpath)) 155 eq(mh.getcontext(), 'inbox') 158 eq(mh.getcontext(), 'wide') 159 eq(readFile(os.path.join(_mhpath, 'context')), 165 eq(inbox.getfullname(), 167 eq(inbox.getsequencesfilename(), 169 eq(inbox.getmessagefilename(1), [all …]
|
D | test_pep292.py | 38 eq = self.assertEqual 40 eq(s.substitute(dict(who='tim', what='ham')), 43 eq(s.substitute(dict(who='tim', what='ham')), 'tim likes $') 46 eq = self.assertEqual 49 eq(s.substitute(d), '%(foo)s baz baz') 50 eq(s.safe_substitute(d), '%(foo)s baz baz') 53 eq = self.assertEqual 56 eq(s.substitute(d), 'tim has eaten 7 bags of ham today') 57 eq(s.safe_substitute(d), 'tim has eaten 7 bags of ham today') 59 eq(s.substitute(d), 'tim has eaten 7 bags of ham today') [all …]
|
D | test_glob.py | 49 eq = self.assertSequencesEqual_noorder 50 eq(self.glob('a'), [self.norm('a')]) 51 eq(self.glob('a', 'D'), [self.norm('a', 'D')]) 52 eq(self.glob('aab'), [self.norm('aab')]) 53 eq(self.glob('zymurgy'), []) 66 eq = self.assertSequencesEqual_noorder 67 eq(self.glob('a*'), map(self.norm, ['a', 'aab', 'aaa'])) 68 eq(self.glob('*a'), map(self.norm, ['a', 'aaa'])) 69 eq(self.glob('aa?'), map(self.norm, ['aaa', 'aab'])) 70 eq(self.glob('aa[ab]'), map(self.norm, ['aaa', 'aab'])) [all …]
|
D | test_md5.py | 26 eq = self.md5test 27 eq('', 'd41d8cd98f00b204e9800998ecf8427e') 28 eq('a', '0cc175b9c0f1b6a831c399e269772661') 29 eq('abc', '900150983cd24fb0d6963f7d28e17f72') 30 eq('message digest', 'f96b697d7cb7938d525a2f31aaf161d0') 31 eq('abcdefghijklmnopqrstuvwxyz', 'c3fcd3d76192e4007dfb496cca67e13b') 32 eq('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789', 34 eq('12345678901234567890123456789012345678901234567890123456789012345678901234567890',
|
D | test_rfc822.py | 218 eq = self.assertEqual 231 eq(addrs, ccs) 235 eq(addrs, ccs) 238 eq = self.assertEqual 239 eq(rfc822.parseaddr('<>'), ('', '')) 240 eq(rfc822.parseaddr('aperson@dom.ain'), ('', 'aperson@dom.ain')) 241 eq(rfc822.parseaddr('bperson@dom.ain (Bea A. Person)'), 243 eq(rfc822.parseaddr('Cynthia Person <cperson@dom.ain>'), 247 eq = self.assertEqual 248 eq(rfc822.quote('foo\\wacky"name'), 'foo\\\\wacky\\"name') [all …]
|
D | test_cfgparser.py | 90 eq = self.assertEqual 91 eq(L, E) 96 eq(cf.get('Foo Bar', 'foo'), 'bar') 97 eq(cf.get('Spacey Bar', 'foo'), 'bar') 98 eq(cf.get('Commented Bar', 'foo'), 'bar') 99 eq(cf.get('Spaces', 'key with spaces'), 'value') 100 eq(cf.get('Spaces', 'another with spaces'), 'splat!') 102 eq(cf.get('NoValue', 'option-without-value'), None) 120 eq(cf.get('Long Line', 'foo'), 129 eq = self.assertEqual [all …]
|
D | test_StringIO.py | 26 eq = self.assertEqual 28 eq(self._fp.read(10), self._line[:10]) 29 eq(self._fp.readline(), self._line[10:] + '\n') 30 eq(len(self._fp.readlines(60)), 2) 32 eq(self._fp.readline(-1), self._line + '\n') 57 eq = self.assertEqual 62 eq(f.getvalue(), 'abcdefghij') 64 eq(f.getvalue(), 'abcde') 66 eq(f.getvalue(), 'abcdexyz') 89 eq = self.assertEqual [all …]
|
D | test_long.py | 123 eq = self.assertEqual 127 eq(pab, pba, Frm("multiplication does not commute for %r and %r", x, y)) 128 eq(q, q2, Frm("divmod returns different quotient than / for %r and %r", x, y)) 129 eq(r, r2, Frm("divmod returns different mod than %% for %r and %r", x, y)) 130 eq(x, q*y + r, Frm("x != q*y + r after divmod on x=%r, y=%r", x, y)) 198 eq = self.assertEqual 199 eq(x & 0, 0, Frm("x & 0 != 0 for x=%r", x)) 200 eq(x | 0, x, Frm("x | 0 != x for x=%r", x)) 201 eq(x ^ 0, x, Frm("x ^ 0 != x for x=%r", x)) 202 eq(x & -1, x, Frm("x & -1 != x for x=%r", x)) [all …]
|
D | test_pow.py | 107 eq = self.assertEqual 112 eq(pow(a, 1.23e167), 1.0) 113 eq(pow(a, -1.23e167), 1.0) 115 eq(pow(a, float(b)), b & 1 and -1.0 or 1.0) 121 eq(pow(a, fiveto), expected) 122 eq(pow(a, -fiveto), expected) 123 eq(expected, 1.0) # else we didn't push fiveto to evenness
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/test/ |
D | test_email_renamed.py | 76 eq = self.assertEqual 78 eq(msg.get_all('cc'), ['ccc@zzz.org', 'ddd@zzz.org', 'eee@zzz.org']) 79 eq(msg.get_all('xx', 'n/a'), 'n/a') 82 eq = self.assertEqual 84 eq(msg.get_charset(), None) 87 eq(msg['mime-version'], '1.0') 88 eq(msg.get_content_type(), 'text/plain') 89 eq(msg['content-type'], 'text/plain; charset="iso-8859-1"') 90 eq(msg.get_param('charset'), 'iso-8859-1') 91 eq(msg['content-transfer-encoding'], 'quoted-printable') [all …]
|
D | test_email.py | 75 eq = self.assertEqual 77 eq(msg.get_all('cc'), ['ccc@zzz.org', 'ddd@zzz.org', 'eee@zzz.org']) 78 eq(msg.get_all('xx', 'n/a'), 'n/a') 81 eq = self.assertEqual 83 eq(msg.get_charset(), None) 86 eq(msg['mime-version'], '1.0') 87 eq(msg.get_content_type(), 'text/plain') 88 eq(msg['content-type'], 'text/plain; charset="iso-8859-1"') 89 eq(msg.get_param('charset'), 'iso-8859-1') 90 eq(msg['content-transfer-encoding'], 'quoted-printable') [all …]
|
D | test_email_codecs.py | 24 eq = self.ndiffAssertEqual 37 eq(h.encode(), """\ 40 eq(decode_header(h.encode()), 49 eq(enc , """\ 53 eq(h.__unicode__().encode('euc-jp'), long)
|
D | test_email_codecs_renamed.py | 24 eq = self.ndiffAssertEqual 37 eq(h.encode(), """\ 40 eq(decode_header(h.encode()), 49 eq(enc , """\ 53 eq(h.__unicode__().encode('euc-jp'), long)
|
D | test_email_torture.py | 49 eq = self.assertEqual 53 eq(type(payload), ListType) 54 eq(len(payload), 12) 55 eq(msg.preamble, None) 56 eq(msg.epilogue, '\n')
|
/device/google/dragon/audio/hal/dsp/tests/ |
D | eq_test.c | 32 struct eq *eq; in test_ir() local 41 eq = eq_new(); in test_ir() 42 eq_append_biquad(eq, BQ_PEAKING, 380/NQ, 3, -10); in test_ir() 43 eq_append_biquad(eq, BQ_PEAKING, 720/NQ, 3, -12); in test_ir() 44 eq_append_biquad(eq, BQ_PEAKING, 1705/NQ, 3, -8); in test_ir() 45 eq_append_biquad(eq, BQ_HIGHPASS, 218/NQ, 0.7, -10.2); in test_ir() 46 eq_append_biquad(eq, BQ_PEAKING, 580/NQ, 6, -8); in test_ir() 47 eq_append_biquad(eq, BQ_HIGHSHELF, 8000/NQ, 3, 2); in test_ir() 50 eq_process(eq, data, N); in test_ir() 53 eq_free(eq); in test_ir() [all …]
|
/device/google/dragon/audio/hal/dsp/ |
D | eq.c | 9 struct eq { struct 14 struct eq *eq_new() in eq_new() argument 16 struct eq *eq = (struct eq *)calloc(1, sizeof(*eq)); in eq_new() local 17 return eq; in eq_new() 20 void eq_free(struct eq *eq) in eq_free() argument 22 free(eq); in eq_free() 25 int eq_append_biquad(struct eq *eq, enum biquad_type type, float freq, float Q, in eq_append_biquad() argument 28 if (eq->n >= MAX_BIQUADS_PER_EQ) in eq_append_biquad() 30 biquad_set(&eq->biquad[eq->n++], type, freq, Q, gain); in eq_append_biquad() 34 int eq_append_biquad_direct(struct eq *eq, const struct biquad *biquad) in eq_append_biquad_direct() argument [all …]
|
D | eq.h | 21 struct eq; 24 struct eq *eq_new(); 27 void eq_free(struct eq *eq); 41 int eq_append_biquad(struct eq *eq, enum biquad_type type, float freq, float Q, 53 int eq_append_biquad_direct(struct eq *eq, const struct biquad *biquad); 61 void eq_process(struct eq *eq, float *data, int count);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/ |
D | codeobject.c | 383 int eq; in code_richcompare() local 404 eq = PyObject_RichCompareBool(co->co_name, cp->co_name, Py_EQ); in code_richcompare() 405 if (eq <= 0) goto unequal; in code_richcompare() 406 eq = co->co_argcount == cp->co_argcount; in code_richcompare() 407 if (!eq) goto unequal; in code_richcompare() 408 eq = co->co_nlocals == cp->co_nlocals; in code_richcompare() 409 if (!eq) goto unequal; in code_richcompare() 410 eq = co->co_flags == cp->co_flags; in code_richcompare() 411 if (!eq) goto unequal; in code_richcompare() 412 eq = co->co_firstlineno == cp->co_firstlineno; in code_richcompare() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/ |
D | codeobject.c | 383 int eq; in code_richcompare() local 404 eq = PyObject_RichCompareBool(co->co_name, cp->co_name, Py_EQ); in code_richcompare() 405 if (eq <= 0) goto unequal; in code_richcompare() 406 eq = co->co_argcount == cp->co_argcount; in code_richcompare() 407 if (!eq) goto unequal; in code_richcompare() 408 eq = co->co_nlocals == cp->co_nlocals; in code_richcompare() 409 if (!eq) goto unequal; in code_richcompare() 410 eq = co->co_flags == cp->co_flags; in code_richcompare() 411 if (!eq) goto unequal; in code_richcompare() 412 eq = co->co_firstlineno == cp->co_firstlineno; in code_richcompare() [all …]
|
/device/linaro/bootloader/arm-trusted-firmware/lib/aarch64/ |
D | misc_helpers.S | 52 cinc x0, x0, eq 59 cinc x1, x1, eq 84 ASM_ASSERT(eq) 97 b.eq z_end 115 ASM_ASSERT(eq)
|
/device/linaro/bootloader/edk2/ArmPkg/Include/ |
D | AsmMacroIoLibV8.h | 27 b.eq 2f ;\ 38 b.eq 3f ;\ 40 b.eq 2f ;\
|