HomeSort by relevance Sort by last modified time
    Searched refs:bytes (Results 1 - 25 of 1073) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /device/samsung/crespo/alsa-utils/alsactl/
init_sysdeps.c 23 size_t bytes = 0; local
29 if (bytes+1 < size)
31 bytes++;
37 return bytes;
42 size_t bytes = 0; local
47 while (bytes < size && *q) {
49 bytes++;
51 if (bytes == size)
52 return (bytes + strlen(src));
55 if (bytes+1 < size
    [all...]
  /frameworks/base/core/java/com/android/internal/http/multipart/
ByteArrayPartSource.java 50 private byte[] bytes; field in class:ByteArrayPartSource
55 * @param fileName the name of the file these bytes represent
56 * @param bytes the content of this part
58 public ByteArrayPartSource(String fileName, byte[] bytes) {
61 this.bytes = bytes;
69 return bytes.length;
83 return new ByteArrayInputStream(bytes);
  /libcore/luni/src/main/java/com/ibm/icu4jni/text/
CollationKey.java 20 private final byte[] bytes; field in class:CollationKey
27 CollationKey(String source, byte[] bytes) {
29 this.bytes = bytes;
33 // Get the bytes from the other collation key.
36 rhsBytes = ((CollationKey) other).bytes;
41 if (bytes == null || bytes.length == 0) {
52 int count = Math.min(bytes.length, rhsBytes.length);
54 int s = bytes[i] & 0xff
    [all...]
  /frameworks/base/voip/jni/rtp/
AmrCodec.cpp 102 unsigned char *bytes = (unsigned char *)payload; local
106 samples, bytes + 1, &type, AMR_TX_WMF);
113 bytes[0] = 0xF0;
114 bytes[1] = (mMode << 3) | 0x04;
118 bytes[0] = 0xFF;
119 bytes[1] = 0xC0 | (mMode << 1) | 1;
122 bytes[length + 1] = 0;
124 bytes[i] = (bytes[i] << 6) | (bytes[i + 1] >> 2)
133 unsigned char *bytes = (unsigned char *)payload; local
226 unsigned char *bytes = (unsigned char *)payload; local
244 unsigned char *bytes = (unsigned char *)payload; local
    [all...]
  /external/protobuf/java/src/main/java/com/google/protobuf/
ByteString.java 42 * Immutable array of bytes.
48 private final byte[] bytes; field in class:ByteString
50 private ByteString(final byte[] bytes) {
51 this.bytes = bytes;
60 return bytes[index];
64 * Gets the number of bytes.
67 return bytes.length;
74 return bytes.length == 0;
86 * Copies the given bytes into a {@code ByteString}
    [all...]
Internal.java 53 * To get around this, protoc instead embeds the UTF-8 bytes into the
59 * in each value. This is much less efficient than just embedding the bytes
62 * generates a string literal corresponding to the bytes. The easiest way
67 * So we have a string literal which represents a set of bytes which
72 public static String stringDefaultValue(String bytes) {
74 return new String(bytes.getBytes("ISO-8859-1"), "UTF-8");
84 * Helper called by generated code to construct default values for bytes
87 * This is a lot like {@link #stringDefaultValue}, but for bytes fields.
89 * embed raw bytes as a string literal with ISO-8859-1 encoding.
91 public static ByteString bytesDefaultValue(String bytes) {
    [all...]
  /external/protobuf/java/src/main/java/com/google/protobuf/micro/
ByteStringMicro.java 36 * Immutable array of bytes.
42 private final byte[] bytes; field in class:ByteStringMicro
44 private ByteStringMicro(final byte[] bytes) {
45 this.bytes = bytes;
54 return bytes[index];
58 * Gets the number of bytes.
61 return bytes.length;
68 return bytes.length == 0;
80 * Copies the given bytes into a {@code ByteStringMicro}
    [all...]
  /libcore/luni/src/main/java/java/lang/
UnsafeByteSequence.java 32 private byte[] bytes; field in class:UnsafeByteSequence
36 this.bytes = new byte[initialCapacity];
52 if (count + length >= bytes.length) {
54 System.arraycopy(bytes, 0, newBytes, 0, count);
55 bytes = newBytes;
57 System.arraycopy(buffer, offset, bytes, count, length);
62 if (count == bytes.length) {
64 System.arraycopy(bytes, 0, newBytes, 0, count);
65 bytes = newBytes;
67 bytes[count++] = (byte) b
    [all...]
  /external/bouncycastle/src/main/java/org/bouncycastle/asn1/
DERInteger.java 11 byte[] bytes; field in class:DERInteger
58 bytes = BigInteger.valueOf(value).toByteArray();
64 bytes = value.toByteArray();
68 byte[] bytes)
70 this.bytes = bytes;
75 return new BigInteger(bytes);
84 return new BigInteger(1, bytes);
91 out.writeEncoded(INTEGER, bytes);
98 for (int i = 0; i != bytes.length; i++
    [all...]
DERInputStream.java 47 throw new IOException("DER length more than 4 bytes");
73 byte[] bytes)
76 int left = bytes.length;
85 int l = read(bytes, bytes.length - left, left);
102 byte[] bytes)
110 ByteArrayInputStream bIn = new ByteArrayInputStream(bytes);
128 bIn = new ByteArrayInputStream(bytes);
148 return DERBoolean.getInstance(bytes);
151 return new DERInteger(bytes);
    [all...]
DEREnumerated.java 11 byte[] bytes; field in class:DEREnumerated
58 bytes = BigInteger.valueOf(value).toByteArray();
64 bytes = value.toByteArray();
68 byte[] bytes)
70 this.bytes = bytes;
75 return new BigInteger(bytes);
82 out.writeEncoded(ENUMERATED, bytes);
95 return Arrays.areEqual(this.bytes, other.bytes);
    [all...]
  /external/bouncycastle/src/main/java/org/bouncycastle/crypto/
PBEParametersGenerator.java 24 * @param password the password converted into bytes (see below).
106 byte[] bytes = new byte[password.length];
108 for (int i = 0; i != bytes.length; i++)
110 bytes[i] = (byte)password[i];
113 return bytes;
131 * PKCS12 (unicode, big endian, 2 zero pad bytes at the end).
142 // +1 for extra 2 pad bytes.
143 byte[] bytes = new byte[(password.length + 1) * 2];
147 bytes[i * 2] = (byte)(password[i] >>> 8);
148 bytes[i * 2 + 1] = (byte)password[i]
    [all...]
  /frameworks/base/core/java/com/google/android/mms/pdu/
QuotedPrintable.java 26 * Decodes an array quoted-printable characters into an array of original bytes.
35 * @param bytes array of quoted-printable characters
36 * @return array of original bytes,
39 public static final byte[] decodeQuotedPrintable(byte[] bytes) {
40 if (bytes == null) {
44 for (int i = 0; i < bytes.length; i++) {
45 int b = bytes[i];
48 if('\r' == (char)bytes[i + 1] &&
49 '\n' == (char)bytes[i + 2]) {
53 int u = Character.digit((char) bytes[++i], 16)
    [all...]
  /external/emma/core/java12/com/vladium/emma/rt/
ClassPathCacheEntry.java 28 public ClassPathCacheEntry (final byte [] bytes, final String srcURL)
32 $assert.ASSERT (bytes != null, "bytes = null");
36 m_bytes = bytes;
  /external/elfutils/libasm/
asm_fill.c 27 asm_fill (asmscn, bytes, len)
29 void *bytes;
39 if (bytes == NULL)
51 memcpy (pattern->bytes, bytes, len);
  /external/proguard/src/proguard/classfile/constant/
Utf8Constant.java 54 // Initially, we're storing the UTF-8 bytes in a byte array.
59 private byte[] bytes; field in class:Utf8Constant
78 this.bytes = null;
84 * Initializes the UTF-8 data with an array of bytes.
86 public void setBytes(byte[] bytes)
88 this.bytes = bytes;
94 * Returns the UTF-8 data as an array of bytes.
107 return bytes;
116 this.bytes = null
    [all...]
  /external/webkit/WebCore/platform/mac/
KURLMac.mm 42 char* bytes = &buffer[5];
43 CFURLGetBytes(reinterpret_cast<CFURLRef>(url), reinterpret_cast<UInt8*>(bytes), bytesLength);
44 bytes[bytesLength] = '\0';
45 if (bytes[0] != '/') {
46 parse(bytes, 0);
  /frameworks/base/cmds/keystore/
keystore_cli.c 47 uint8_t bytes[65536]; local
66 bytes[0] = length >> 8;
67 bytes[1] = length;
68 send(sock, &bytes, 2, 0);
78 while ((i = recv(sock, &bytes[0], 1, 0)) == 1) {
81 if ((i = recv(sock, &bytes[1], 1, 0)) != 1) {
85 length = bytes[0] << 8 | bytes[1];
87 i = recv(sock, &bytes[offset], length - offset, 0);
93 fwrite(bytes, 1, length, stdout)
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/security/asn1/
BitString.java 42 public final byte[] bytes; field in class:BitString
52 * @param bytes - array of bytes that represents bit string,
57 public BitString(byte[] bytes, int unusedBits) {
64 if (bytes.length == 0 && unusedBits != 0) {
68 this.bytes = bytes;
83 bytes = new byte[size];
92 return (bytes[index] & SET_MASK[offset]) != 0;
99 bytes[index] |= SET_MASK[offset]
    [all...]
  /external/emma/core/java12/com/vladium/jcd/cls/constant/
CONSTANT_info.java 60 public static CONSTANT_info new_CONSTANT_info (final UDataInputStream bytes)
63 byte tag = bytes.readByte ();
68 return new CONSTANT_Utf8_info (bytes);
71 return new CONSTANT_Integer_info (bytes);
74 return new CONSTANT_Float_info (bytes);
77 return new CONSTANT_Long_info (bytes);
80 return new CONSTANT_Double_info (bytes);
84 return new CONSTANT_Class_info (bytes);
87 return new CONSTANT_String_info (bytes);
91 return new CONSTANT_Fieldref_info (bytes);
    [all...]
  /hardware/broadcom/wlan/bcm4329/src/include/
bcmendian.h 126 htol16_ua_store(uint16 val, uint8 *bytes)
128 bytes[0] = val & 0xff;
129 bytes[1] = val >> 8;
134 htol32_ua_store(uint32 val, uint8 *bytes)
136 bytes[0] = val & 0xff;
137 bytes[1] = (val >> 8) & 0xff;
138 bytes[2] = (val >> 16) & 0xff;
139 bytes[3] = val >> 24;
144 hton16_ua_store(uint16 val, uint8 *bytes)
146 bytes[0] = val >> 8
    [all...]
  /bootable/bootloader/legacy/libboot/
tags_partition.c 33 static void ptn_importer(unsigned tag, void *data, unsigned bytes, void *cookie)
38 while(bytes >= sizeof(*ptn)) {
42 bytes -= sizeof(*ptn);
  /dalvik/dx/src/com/android/dx/cf/iface/
ParseObserver.java 37 * @param bytes {@code non-null;} the source that is being parsed
38 * @param offset offset into {@code bytes} for the start of the
43 public void startParsingMember(ByteArray bytes, int offset, String name,
49 * @param bytes {@code non-null;} the source that was parsed
50 * @param offset offset into {@code bytes} for the end of the
56 public void endParsingMember(ByteArray bytes, int offset, String name,
62 * @param bytes {@code non-null;} the source that was parsed
63 * @param offset offset into {@code bytes} for what was parsed
64 * @param len number of bytes parsed
67 public void parsed(ByteArray bytes, int offset, int len, String human)
    [all...]
  /dalvik/dx/src/com/android/dx/util/
Output.java 27 * bytes written to this instance.
76 * @return {@code 1..5;} the number of bytes actually written
86 * @return {@code 1..5;} the number of bytes actually written
93 * @param bytes {@code non-null;} the array to write
95 public void write(ByteArray bytes);
100 * @param bytes {@code non-null;} the array to write
101 * @param offset {@code >= 0;} offset into {@code bytes} for the first
103 * @param length {@code >= 0;} number of bytes to write
105 public void write(byte[] bytes, int offset, int length);
109 * a convenient shorthand for {@code write(bytes, 0, bytes.length)}
    [all...]
  /external/chromium/net/proxy/
proxy_script_fetcher_unittest.cc 27 std::string bytes; member in struct:FetchResult
73 std::string bytes; local
76 &bytes, &callback);
79 EXPECT_TRUE(bytes.empty());
82 std::string bytes; local
85 &bytes, &callback);
88 EXPECT_EQ("-pac.txt-\n", bytes);
104 std::string bytes; local
106 int result = pac_fetcher->Fetch(url, &bytes, &callback);
109 EXPECT_EQ("-pac.txt-\n", bytes);
113 std::string bytes; local
122 std::string bytes; local
141 std::string bytes; local
150 std::string bytes; local
170 std::string bytes; local
189 std::string bytes; local
205 std::string bytes; local
234 std::string bytes; local
247 std::string bytes; local
271 std::string bytes; local
284 std::string bytes; local
307 std::string bytes; local
319 std::string bytes; local
    [all...]

Completed in 453 milliseconds

1 2 3 4 5 6 7 8 91011>>