/libcore/luni/src/test/java/libcore/java/net/ |
OldDatagramPacketTest.java | 46 DatagramSocket cs = new DatagramSocket(); local 50 cs.send(packet); 51 cs.setSoTimeout(3000); 52 cs.receive(packet); 53 cs.close(); 56 cs.close();
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_strings.py | 86 cs = c_string("abcdef") 89 self.assertRaises(TypeError, len, cs) 90 self.assertEqual(sizeof(cs), 7) 93 self.assertEqual(cs.value, "abcdef") 97 self.assertEqual(cs.raw, "abcdef\000") 101 cs.value = "ab" 102 self.assertEqual(cs.value, "ab") 103 self.assertEqual(cs.raw, "ab\000\000\000\000\000") 105 cs.raw = "XY" 106 self.assertEqual(cs.value, "XY" [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_strings.py | 86 cs = c_string("abcdef") 89 self.assertRaises(TypeError, len, cs) 90 self.assertEqual(sizeof(cs), 7) 93 self.assertEqual(cs.value, "abcdef") 97 self.assertEqual(cs.raw, "abcdef\000") 101 cs.value = "ab" 102 self.assertEqual(cs.value, "ab") 103 self.assertEqual(cs.raw, "ab\000\000\000\000\000") 105 cs.raw = "XY" 106 self.assertEqual(cs.value, "XY" [all...] |
/external/qemu/ |
charpipe.c | 72 CharDriverState cs[1]; member in struct:CharPipeHalf 81 charpipehalf_close( CharDriverState* cs ) 83 CharPipeHalf* ph = cs->opaque; 96 charpipehalf_write( CharDriverState* cs, const uint8_t* buf, int len ) 98 CharPipeHalf* ph = cs->opaque; 106 if (bip == NULL && peer != NULL && peer->cs->chr_read != NULL) { 111 if (peer->cs->chr_can_read) { 112 size = qemu_chr_can_read( peer->cs ); 121 qemu_chr_read( peer->cs, (uint8_t*)buf, size ); 161 if (peer == NULL || peer->cs->chr_read == NULL 206 CharDriverState* cs = ph->cs; local 266 CharDriverState cs[1]; member in struct:CharBuffer 402 CharDriverState* cs = cbuf->cs; local [all...] |
/external/chromium_org/third_party/harfbuzz-ng/src/ |
hb-ot-shape-complex-sea-machine.hh | 113 int cs; local 118 cs = sea_syllable_machine_start; 142 switch ( _sea_syllable_machine_from_state_actions[cs] ) { 150 _keys = _sea_syllable_machine_trans_keys + (cs<<1); 151 _inds = _sea_syllable_machine_indicies + _sea_syllable_machine_index_offsets[cs]; 153 _slen = _sea_syllable_machine_key_spans[cs]; 159 cs = _sea_syllable_machine_trans_targs[_trans]; 197 switch ( _sea_syllable_machine_to_state_actions[cs] ) { 210 if ( _sea_syllable_machine_eof_trans[cs] > 0 ) { 211 _trans = _sea_syllable_machine_eof_trans[cs] - 1 [all...] |
/external/harfbuzz_ng/src/ |
hb-ot-shape-complex-sea-machine.hh | 113 int cs; local 118 cs = sea_syllable_machine_start; 142 switch ( _sea_syllable_machine_from_state_actions[cs] ) { 150 _keys = _sea_syllable_machine_trans_keys + (cs<<1); 151 _inds = _sea_syllable_machine_indicies + _sea_syllable_machine_index_offsets[cs]; 153 _slen = _sea_syllable_machine_key_spans[cs]; 159 cs = _sea_syllable_machine_trans_targs[_trans]; 197 switch ( _sea_syllable_machine_to_state_actions[cs] ) { 210 if ( _sea_syllable_machine_eof_trans[cs] > 0 ) { 211 _trans = _sea_syllable_machine_eof_trans[cs] - 1 [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r600/ |
evergreen_compute_internal.c | 61 res->cs[res->cs_end++] = value; 66 ctx->cs->buf[ctx->cs->cdw++] = value; 80 res->cs[res->cs_end++] = array[i / 4]; 90 res->cs[res->cs_end++] = value; 133 res->cs[cs_end] = PKT3C(PKT3_SET_CONFIG_REG, num, 0); 134 res->cs[cs_end+1] = (index - EVERGREEN_CONFIG_REG_OFFSET) >> 2; 137 res->cs[cs_end] = PKT3C(PKT3_SET_CONTEXT_REG, num, 0); 138 res->cs[cs_end+1] = (index - EVERGREEN_CONTEXT_REG_OFFSET) >> 2; 141 res->cs[cs_end] = PKT3C(PKT3_SET_RESOURCE, num, 0) [all...] |
/external/mesa3d/src/gallium/drivers/r600/ |
evergreen_compute_internal.c | 61 res->cs[res->cs_end++] = value; 66 ctx->cs->buf[ctx->cs->cdw++] = value; 80 res->cs[res->cs_end++] = array[i / 4]; 90 res->cs[res->cs_end++] = value; 133 res->cs[cs_end] = PKT3C(PKT3_SET_CONFIG_REG, num, 0); 134 res->cs[cs_end+1] = (index - EVERGREEN_CONFIG_REG_OFFSET) >> 2; 137 res->cs[cs_end] = PKT3C(PKT3_SET_CONTEXT_REG, num, 0); 138 res->cs[cs_end+1] = (index - EVERGREEN_CONTEXT_REG_OFFSET) >> 2; 141 res->cs[cs_end] = PKT3C(PKT3_SET_RESOURCE, num, 0) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/ |
CharsetEncoderTest.java | 40 Charset cs = Charset.forName("UTF-8"); //$NON-NLS-1$ local 41 new MockCharsetEncoderForHarmony141(cs, 1.1f, 1); 48 Charset cs = Charset.forName("ISO8859-1"); //$NON-NLS-1$ local 49 new MockCharsetEncoderForHarmony141(cs, 1.1f, 1, 73 protected MockCharsetEncoderForHarmony141(Charset cs, 75 super(cs, averageBytesPerChar, maxBytesPerChar); 78 public MockCharsetEncoderForHarmony141(Charset cs, 81 super(cs, averageBytesPerChar, maxBytesPerChar, replacement); 109 MockMalfunctionCharset cs = new MockMalfunctionCharset("mock", null); local 111 cs.encode(CharBuffer.wrap("AB")) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
ResourcesSample.java | 50 CharSequence cs; local 58 cs = getText(R.string.styled_text); 60 tv.setText(cs); 79 cs = res.getText(R.string.styled_text); 81 tv.setText(cs);
|
/external/chromium_org/chrome/browser/chromeos/settings/ |
cros_settings_unittest.cc | 92 static bool IsWhitelisted(CrosSettings* cs, const std::string& username) { 93 return cs->FindEmailInList(kAccountsPrefUsers, username, NULL); 235 CrosSettings* cs = &settings_; local 236 cs->Set(kAccountsPrefUsers, list); 238 EXPECT_TRUE(IsWhitelisted(cs, "user@example.com")); 239 EXPECT_FALSE(IsWhitelisted(cs, "us.er@example.com")); 240 EXPECT_TRUE(IsWhitelisted(cs, "USER@example.com")); 241 EXPECT_FALSE(IsWhitelisted(cs, "user")); 243 EXPECT_TRUE(IsWhitelisted(cs, "nodomain")); 244 EXPECT_TRUE(IsWhitelisted(cs, "nodomain@gmail.com")) 264 CrosSettings* cs = &settings_; local [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/v8/ |
ScriptSourceCode.h | 59 ScriptSourceCode(ScriptResource* cs) 60 : m_source(cs->script()) 61 , m_resource(cs)
|
/external/chromium_org/tools/android/findbugs_plugin/src/org/chromium/tools/findbugs/plugin/ |
SynchronizedThisDetector.java | 9 import edu.umd.cs.findbugs.BugInstance; 10 import edu.umd.cs.findbugs.BugReporter; 11 import edu.umd.cs.findbugs.bcel.OpcodeStackDetector;
|
/external/jsr305/sampleUses/src/main/java/edu/umd/cs/findbugs/examples/ |
Test.java | 1 package edu.umd.cs.findbugs.examples; 5 import edu.umd.cs.findbugs.DottedClassName; 6 import edu.umd.cs.findbugs.SlashedClassName;
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/radeon/ |
radeon_cmdbuf.h | 47 radeon_cs_write_dword(b_l_rmesa->cmdbuf.cs, data);\ 60 radeon_cs_write_dword(b_l_rmesa->cmdbuf.cs, __offset); \ 61 radeon_cs_write_reloc(b_l_rmesa->cmdbuf.cs, \ 71 radeon_cs_write_table(b_l_rmesa->cmdbuf.cs, (ptr), (n));\ 81 radeon_cs_end(b_l_rmesa->cmdbuf.cs, __FILE__, __FUNCTION__, __LINE__);\ 109 if (radeon->cmdbuf.cs->cdw || radeon->dma.flush )
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
radeon_cmdbuf.h | 47 radeon_cs_write_dword(b_l_rmesa->cmdbuf.cs, data);\ 60 radeon_cs_write_dword(b_l_rmesa->cmdbuf.cs, __offset); \ 61 radeon_cs_write_reloc(b_l_rmesa->cmdbuf.cs, \ 71 radeon_cs_write_table(b_l_rmesa->cmdbuf.cs, (ptr), (n));\ 81 radeon_cs_end(b_l_rmesa->cmdbuf.cs, __FILE__, __FUNCTION__, __LINE__);\ 109 if (radeon->cmdbuf.cs->cdw || radeon->dma.flush )
|
/libcore/luni/src/test/java/libcore/java/io/ |
OutputStreamWriterTest.java | 55 char[] cs = new char[8192/4 + 1]; local 56 Arrays.fill(cs, 'x'); 57 cs[cs.length - 1] = '\ud842'; // One half of a surrogate pair (the other being U+df9f). 58 writer.write(cs, 0, cs.length);
|
/libcore/luni/src/test/java/libcore/java/lang/ |
StringTest.java | 42 public EvilCharsetDecoder(Charset cs) { 43 super(cs, 1.0f, 1.0f); 64 public EvilCharsetEncoder(Charset cs) { 65 super(cs, 1.0f, 1.0f); 116 Charset cs = EVIL_CHARSET; local 118 final String result = new String(bytes, cs); 134 Charset cs = Charset.forName("UTF-8"); local 137 assertEquals("[]", Arrays.toString("".getBytes(cs))); 140 assertEquals("[0]", Arrays.toString("\u0000".getBytes(cs))); 141 assertEquals("[127]", Arrays.toString("\u007f".getBytes(cs))); [all...] |
/prebuilts/tools/common/m2/internal/com/google/code/findbugs/annotations/2.0.1/ |
annotations-2.0.1.jar | |
/external/chromium/third_party/libjingle/source/talk/session/phone/ |
cryptoparams.h | 38 CryptoParams(int t, const std::string& cs, 40 : tag(t), cipher_suite(cs), key_params(kp), session_params(sp) {}
|
/external/chromium_org/third_party/icu/source/common/unicode/ |
putil.h | 158 * @param cs Input string, points to <code>length</code> 169 u_charsToUChars(const char *cs, UChar *us, int32_t length); 182 * @param cs Output string, points to memory for <code>length</code> 191 u_UCharsToChars(const UChar *us, char *cs, int32_t length);
|
/external/chromium_org/third_party/libjingle/source/talk/media/base/ |
cryptoparams.h | 38 CryptoParams(int t, const std::string& cs, 40 : tag(t), cipher_suite(cs), key_params(kp), session_params(sp) {}
|
/external/icu4c/common/unicode/ |
putil.h | 129 * @param cs Input string, points to <code>length</code> 140 u_charsToUChars(const char *cs, UChar *us, int32_t length); 153 * @param cs Output string, points to memory for <code>length</code> 162 u_UCharsToChars(const UChar *us, char *cs, int32_t length);
|
/external/qemu/telephony/ |
modem_driver.c | 32 CharDriverState* cs; member in struct:__anon25689 46 qemu_chr_write(md->cs, (const uint8_t*)message, len); 110 qemu_chr_write(md->cs, (const uint8_t*)answer, len); 111 qemu_chr_write(md->cs, (const uint8_t*)"\r", 1); 129 modem_driver_init( int base_port, ModemDriver* dm, CharDriverState* cs ) 131 dm->cs = cs; 136 qemu_chr_add_handlers( cs, modem_driver_can_read, modem_driver_read, NULL, dm );
|
/frameworks/base/core/java/android/text/style/ |
MetricAffectingSpan.java | 56 public Passthrough(MetricAffectingSpan cs) { 57 mStyle = cs;
|