Searched refs:bytes (Results 1 - 25 of 2010) sorted by relevance

1234567891011>>

/external/chromium_org/crypto/
H A Drandom_unittest.cc13 // Currently, that means the bytes cannot be all the same (e.g. all zeros).
14 bool IsTrivial(const std::string& bytes) { argument
15 for (size_t i = 0; i < bytes.size(); i++) {
16 if (bytes[i] != bytes[0]) {
24 std::string bytes(16, '\0');
25 crypto::RandBytes(WriteInto(&bytes, bytes.size()), bytes.size());
26 EXPECT_TRUE(!IsTrivial(bytes));
[all...]
H A Drandom.cc11 void RandBytes(void *bytes, size_t length) { argument
15 base::RandBytes(bytes, length);
/external/clang/test/CodeGen/
H A D2005-07-26-UnionInitCrash.c3 union { char bytes[8]; double alignment; }EQ1 = {0,0,0,0,0,0,0,0}; member in union:__anon15797
/external/protobuf/java/src/main/java/com/google/protobuf/nano/
H A DUnknownFieldData.java41 final byte[] bytes; field in class:UnknownFieldData
43 UnknownFieldData(int tag, byte[] bytes) { argument
45 this.bytes = bytes;
/external/dexmaker/src/dx/java/com/android/dx/util/
H A DByteArrayByteInput.java21 private final byte[] bytes; field in class:ByteArrayByteInput
24 public ByteArrayByteInput(byte... bytes) { argument
25 this.bytes = bytes;
29 return bytes[position++];
/external/chromium/chrome/common/
H A Dguid_posix.cc19 std::string RandomDataToGUIDString(const uint64 bytes[2]) { argument
21 static_cast<unsigned int>(bytes[0] >> 32),
22 static_cast<unsigned int>((bytes[0] >> 16) & 0x0000ffff),
23 static_cast<unsigned int>(bytes[0] & 0x0000ffff),
24 static_cast<unsigned int>(bytes[1] >> 48),
25 bytes[1] & 0x0000ffffffffffffULL);
/external/chromium_org/base/
H A Dguid_posix.cc19 std::string RandomDataToGUIDString(const uint64 bytes[2]) { argument
21 static_cast<unsigned int>(bytes[0] >> 32),
22 static_cast<unsigned int>((bytes[0] >> 16) & 0x0000ffff),
23 static_cast<unsigned int>(bytes[0] & 0x0000ffff),
24 static_cast<unsigned int>(bytes[1] >> 48),
25 bytes[1] & 0x0000ffffffffffffULL);
/external/guava/guava/src/com/google/common/hash/
H A DHashCodes.java26 * Creates a 32-bit {@code HashCode}, of which the bytes will form the passed int, interpreted
62 * Creates a 64-bit {@code HashCode}, of which the bytes will form the passed long, interpreted
106 static HashCode fromBytes(byte[] bytes) { argument
107 return new BytesHashCode(bytes);
111 final byte[] bytes; field in class:HashCodes.BytesHashCode
113 BytesHashCode(byte[] bytes) { argument
114 this.bytes = bytes;
118 return bytes.length * 8;
122 return bytes
[all...]
/external/valgrind/main/memcheck/tests/
H A Dleak-0.stderr.exp1 leaked: 0 bytes in 0 blocks
2 dubious: 0 bytes in 0 blocks
3 reachable: 0 bytes in 1 blocks
4 suppressed: 0 bytes in 0 blocks
H A Dleak-cases-summary.stderr.exp1 leaked: 80 bytes in 5 blocks
2 dubious: 96 bytes in 6 blocks
3 reachable: 64 bytes in 4 blocks
4 suppressed: 0 bytes in 0 blocks
H A Derror_counts.stderr.exp7 leaked: 0 bytes in 0 blocks
8 dubious: 0 bytes in 0 blocks
9 reachable: 0 bytes in 0 blocks
10 suppressed: 0 bytes in 0 blocks
14 leaked: 77 bytes in 1 blocks
15 dubious: 88 bytes in 1 blocks
16 reachable: 99 bytes in 1 blocks
17 suppressed: 0 bytes in 0 blocks
/external/chromium_org/ui/base/text/
H A Dbytes_formatting.cc37 string16 FormatBytesInternal(int64 bytes, argument
42 if (bytes < 0) {
43 NOTREACHED() << "Negative bytes value";
48 double unit_amount = static_cast<double>(bytes);
53 if (bytes != 0 && units != DATA_UNITS_BYTE && unit_amount < 100)
66 DataUnits GetByteDisplayUnits(int64 bytes) { argument
68 // in unit U when kUnitThresholds[U] <= bytes < kUnitThresholds[U+1].
79 if (bytes < 0) {
80 NOTREACHED() << "Negative bytes value";
86 if (bytes >
94 FormatBytesWithUnits(int64 bytes, DataUnits units, bool show_units) argument
98 FormatSpeedWithUnits(int64 bytes, DataUnits units, bool show_units) argument
102 FormatBytes(int64 bytes) argument
106 FormatSpeed(int64 bytes) argument
[all...]
H A Dbytes_formatting.h19 UI_EXPORT string16 FormatBytes(int64 bytes);
24 UI_EXPORT string16 FormatSpeed(int64 bytes);
37 // Return the unit type that is appropriate for displaying the amount of bytes
40 UI_EXPORT DataUnits GetByteDisplayUnits(int64 bytes);
46 UI_EXPORT string16 FormatBytesWithUnits(int64 bytes, DataUnits units,
52 string16 FormatSpeedWithUnits(int64 bytes, DataUnits units, bool show_units);
/external/jmonkeyengine/engine/src/core/com/jme3/export/
H A DReadListener.java37 public void readBytes(int bytes); argument
/external/smali/dexlib/src/main/java/org/jf/dexlib/Util/
H A DEncodedValueUtils.java45 // Round up the requiredBits to a number of bytes.
49 public static long decodeSignedIntegralValue(byte[] bytes) { argument
51 for (int i = 0; i < bytes.length; i++) {
52 value |= (((long)(bytes[i] & 0xFF)) << (i * 8));
55 int shift = (8 - bytes.length) * 8;
62 byte[] bytes = new byte[requiredBytes];
65 bytes[i] = (byte) value;
68 return bytes;
82 // Round up the requiredBits to a number of bytes.
86 public static long decodeUnsignedIntegralValue(byte[] bytes) { argument
121 decodeRightZeroExtendedValue(byte[] bytes) argument
[all...]
H A DNumberUtils.java79 * Decodes a signed short value from 2 individual bytes
94 * @param bytes the byte array
98 public static short decodeShort(byte[] bytes, int index) { argument
100 ( (bytes[index++] & 0xFF) |
101 (bytes[index] << 8)
106 * Decodes an unsigned short value from 2 individual bytes
120 * @param bytes the byte array
124 public static int decodeUnsignedShort(byte[] bytes, int index) { argument
125 return ( (bytes[index++] & 0xFF) |
126 ((bytes[inde
152 decodeInt(byte[] bytes, int index) argument
190 decodeLong(byte[] bytes, int index) argument
[all...]
/external/protobuf/java/src/main/java/com/google/protobuf/
H A DByteString.java42 * Immutable array of bytes.
48 private final byte[] bytes; field in class:ByteString
50 private ByteString(final byte[] bytes) { argument
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 int
88 copyFrom(final byte[] bytes, final int offset, final int size) argument
98 copyFrom(final byte[] bytes) argument
106 copyFrom(final ByteBuffer bytes, final int size) argument
116 copyFrom(final ByteBuffer bytes) argument
[all...]
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
H A DCMSProcessableByteArray.java19 private final byte[] bytes; field in class:CMSProcessableByteArray
22 byte[] bytes)
24 this(new ASN1ObjectIdentifier(CMSObjectIdentifiers.data.getId()), bytes);
29 byte[] bytes)
32 this.bytes = bytes;
37 return new ByteArrayInputStream(bytes);
43 zOut.write(bytes);
48 return Arrays.clone(bytes);
21 CMSProcessableByteArray( byte[] bytes) argument
27 CMSProcessableByteArray( ASN1ObjectIdentifier type, byte[] bytes) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
H A DX9IntegerConverter.java26 byte[] bytes = s.toByteArray();
28 if (qLength < bytes.length)
32 System.arraycopy(bytes, bytes.length - tmp.length, tmp, 0, tmp.length);
36 else if (qLength > bytes.length)
40 System.arraycopy(bytes, 0, tmp, tmp.length - bytes.length, bytes.length);
45 return bytes;
/external/chromium_org/third_party/leveldatabase/src/util/
H A Darena.h20 // Return a pointer to a newly allocated memory block of "bytes" bytes.
21 char* Allocate(size_t bytes);
24 char* AllocateAligned(size_t bytes);
34 char* AllocateFallback(size_t bytes);
52 inline char* Arena::Allocate(size_t bytes) { argument
56 assert(bytes > 0);
57 if (bytes <= alloc_bytes_remaining_) {
59 alloc_ptr_ += bytes;
60 alloc_bytes_remaining_ -= bytes;
[all...]
/external/dhcpcd/compat/
H A Dgetline.c44 size_t bytes, newlen; local
54 bytes = 0;
58 if (*buf == NULL || bytes != 0) {
66 p = *buf + bytes;
70 bytes += strlen(p);
71 } while (bytes == 0 || *(*buf + (bytes - 1)) != '\n');
72 if (bytes == 0)
74 return bytes;
/external/protobuf/java/src/main/java/com/google/protobuf/micro/
H A DByteStringMicro.java36 * Immutable array of bytes.
42 private final byte[] bytes; field in class:ByteStringMicro
44 private ByteStringMicro(final byte[] bytes) { argument
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 int
82 copyFrom(final byte[] bytes, final int offset, final int size) argument
92 copyFrom(final byte[] bytes) argument
[all...]
/external/javassist/sample/hotswap/
H A DTest.java10 byte[] bytes = new byte[(int)newfile.length()];
11 new FileInputStream(newfile).read(bytes);
14 hs.reload("HelloWorld", bytes);
18 bytes = new byte[(int)newfile.length()];
19 new FileInputStream(newfile).read(bytes);
22 hs.reload("HelloWorld", bytes);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
H A DBigIntegers.java23 byte[] bytes = value.toByteArray();
25 if (bytes[0] == 0)
27 byte[] tmp = new byte[bytes.length - 1];
29 System.arraycopy(bytes, 1, tmp, 0, tmp.length);
34 return bytes;
47 byte[] bytes = value.toByteArray();
49 if (bytes[0] == 0)
51 if (bytes.length - 1 > length)
58 System.arraycopy(bytes, 1, tmp, tmp.length - (bytes
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
H A DASN1Enumerated.java8 ASN1Enumerated(byte[] bytes) argument
10 super(bytes);

Completed in 670 milliseconds

1234567891011>>