/external/chromium_org/third_party/tlslite/tlslite/utils/ |
entropy.c | 31 unsigned char* bytes = NULL; local 62 /* Allocate bytes */ 63 if ((bytes = (unsigned char*)PyMem_Malloc(howMany)) == NULL) 72 PyMem_Free(bytes); 77 if(!pCryptGenRandom(hCryptProv, howMany, bytes)) { 80 PyMem_Free(bytes); 86 returnVal = Py_BuildValue("s#", bytes, howMany); 87 PyMem_Free(bytes); 108 unsigned char* bytes = NULL; local 116 /* Allocate bytes */ [all...] |
win32prng.c | 11 unsigned char* bytes = NULL; local 29 /* Allocate bytes */ 30 bytes = malloc(howMany); 37 bytes) == 0) 40 returnVal = Py_BuildValue("s#", bytes, howMany); 42 free(bytes);
|
/external/skia/src/gpu/ |
GrAllocPool.cpp | 31 bool canAlloc(size_t bytes) const { 32 return bytes <= fBytesFree; 35 void* alloc(size_t bytes) { 36 SkASSERT(bytes <= fBytesFree); 37 fBytesFree -= bytes; 39 fPtr += bytes; 43 size_t release(size_t bytes) { 44 SkASSERT(bytes > 0); 45 size_t free = GrMin(bytes, fBytesTotal - fBytesFree); 48 return bytes - free [all...] |
/external/chromium_org/net/udp/ |
udp_net_log_parameters.cc | 17 const char* bytes, 23 dict->SetString("hex_encoded_bytes", base::HexEncode(bytes, byte_count)); 40 const char* bytes, 42 DCHECK(bytes); 43 return base::Bind(&NetLogUDPDataTranferCallback, byte_count, bytes, address);
|
/external/chromium_org/rlz/lib/ |
crc8_unittest.cc | 30 unsigned char* bytes; local 35 bytes = reinterpret_cast<unsigned char*>(data[i].string); 41 rlz_lib::Crc8::Generate(bytes, length, &crc); 43 rlz_lib::Crc8::Verify(bytes, length, crc, &matches); 48 rlz_lib::Crc8::Verify(bytes, length, crc, &matches);
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/ |
malloc-tree | 41 def byteString(bytes): 44 val = bytes 46 if bytes >= oneG: 48 val = float(bytes) / oneG 49 elif bytes >= oneM: 51 val = float(bytes) / oneM 52 elif bytes >= oneK: 54 val = float(bytes) / oneK 58 return '%d' % bytes 59 return '%12d' % bytes [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
CharSequences.java | 26 * bytes. 28 * @param bytes ASCII bytes 30 public static CharSequence forAsciiBytes(final byte[] bytes) { 33 return (char) bytes[index]; 37 return bytes.length; 41 return forAsciiBytes(bytes, start, end); 45 return new String(bytes); 52 * bytes. 54 * @param bytes ASCII byte [all...] |
/external/chromium_org/third_party/protobuf/java/src/main/java/com/google/protobuf/ |
LiteralByteString.java | 45 * single array of bytes, contiguous in memory. It supports substring by 54 protected final byte[] bytes; field in class:LiteralByteString 60 * @param bytes array to wrap 62 LiteralByteString(byte[] bytes) { 63 this.bytes = bytes; 71 return bytes[index]; 76 return bytes.length; 103 result = new BoundedByteString(bytes, getOffsetIntoBytes() + beginIndex, 117 System.arraycopy(bytes, sourceOffset, target, targetOffset, numberToCopy) [all...] |
LazyField.java | 55 private ByteString bytes; field in class:LazyField 60 ExtensionRegistryLite extensionRegistry, ByteString bytes) { 63 this.bytes = bytes; 78 bytes = null; 85 * bytes, which will make the serialized size changed after LazyField 92 return bytes.size(); 97 return bytes; 101 return bytes; 103 bytes = value.toByteString() [all...] |
/external/chromium_org/third_party/tlslite/tlslite/ |
X509.py | 11 @type bytes: L{array.array} of unsigned bytes 12 @ivar bytes: The DER-encoded ASN.1 certificate 17 @type subject: L{array.array} of unsigned bytes 22 self.bytes = createByteArraySequence([]) 43 bytes = base64ToBytes(s) 44 self.parseBinary(bytes) 47 def parseBinary(self, bytes): 50 @type bytes: str or L{array.array} of unsigned bytes [all...] |
/dalvik/dx/src/com/android/dx/cf/direct/ |
DirectClassFile.java | 83 /** {@code non-null;} the bytes of the file */ 84 private final ByteArray bytes; field in class:DirectClassFile 169 * @param bytes {@code non-null;} the bytes of the file 177 public DirectClassFile(ByteArray bytes, String filePath, 179 if (bytes == null) { 180 throw new NullPointerException("bytes == null"); 188 this.bytes = bytes; 196 * @param bytes {@code non-null;} the bytes of the fil 574 private final ByteArray bytes; field in class:DirectClassFile.DcfTypeList [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
MessageDigest1Test.java | 56 final byte[] bytes = { 1, 2, 3, 4, 5 }; 57 md.update(bytes, 1, 2); 69 md.update(bytes, 0, bytes.length + 1); 75 md.update(bytes, Integer.MAX_VALUE, 1); 85 assertSame("buf", bytes, arg0); 91 md.update(bytes, offset, len); 150 final byte[] bytes = new byte[] { 2, 4, 1 }; 159 md.digest(bytes, 0, bytes.length + 1) [all...] |
/external/chromium_org/base/memory/ |
discardable_memory_provider.h | 49 // The maximum number of bytes of discardable memory that may be allocated 52 void SetDiscardableMemoryLimit(size_t bytes); 55 void SetBytesToReclaimUnderModeratePressure(size_t bytes); 58 void Register(const DiscardableMemory* discardable, size_t bytes); 91 explicit Allocation(size_t bytes) 92 : bytes(bytes), 96 size_t bytes; member in struct:base::internal::DiscardableMemoryProvider::Allocation 105 // Purges |bytes_to_reclaim_under_moderate_pressure_| bytes of 126 // The maximum number of bytes of discardable memory that may be allocate [all...] |
/external/chromium_org/third_party/libwebp/webp/ |
mux_types.h | 59 const uint8_t* bytes; member in struct:WebPData 74 free((void*)webp_data->bytes); 84 if (src->bytes != NULL && src->size != 0) { 85 dst->bytes = (uint8_t*)malloc(src->size); 86 if (dst->bytes == NULL) return 0; 87 memcpy((void*)dst->bytes, src->bytes, src->size);
|
/external/webp/include/webp/ |
mux_types.h | 59 const uint8_t* bytes; member in struct:WebPData 74 free((void*)webp_data->bytes); 84 if (src->bytes != NULL && src->size != 0) { 85 dst->bytes = (uint8_t*)malloc(src->size); 86 if (dst->bytes == NULL) return 0; 87 memcpy((void*)dst->bytes, src->bytes, src->size);
|
/external/valgrind/main/gdbserver_tests/ |
mcvabits.stderrB.exp | 4 Address 0x........ is 0 bytes inside data symbol "undefined" 6 Address 0x........ is 0 bytes inside data symbol "undefined" 9 Address 0x........ is 0 bytes inside data symbol "undefined" 12 Address 0x........ is 0 bytes inside data symbol "undefined" 15 Address 0x........ is 0 bytes inside data symbol "undefined" 18 Address 0x........ is 0 bytes inside data symbol "undefined" 21 Address 0x........ is 0 bytes inside data symbol "undefined" 24 Address 0x........ is 0 bytes inside data symbol "undefined" 27 Address 0x........ is 0 bytes inside data symbol "undefined" 30 Address 0x........ is 0 bytes inside data symbol "undefined [all...] |
/cts/tests/src/android/net/cts/ |
NetlinkSocket.java | 29 private static native int sendmsg(FileDescriptor fd, int pid, byte[] bytes); 46 public int sendmsg(int pid, byte[] bytes) throws IOException { 47 int retval = sendmsg(fd, pid, bytes);
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
RandomImpl.java | 39 protected void engineNextBytes(byte[] bytes) { 41 for (int i = 0; i < bytes.length; i++) { 42 bytes[i] = (byte)(i + 0xF1);
|
/external/bison/lib/ |
mbchar.h | 40 returns the number of bytes occupied by the multibyte sequence. 169 size_t bytes; /* number of bytes of current character, > 0 */ member in struct:mbchar 172 char buf[MBCHAR_BUF_SIZE]; /* room for the bytes, used for file input only */ 175 /* EOF (not a real character) is represented with bytes = 0 and 182 #define mb_len(mbc) ((mbc).bytes) 194 : (mbc1).bytes == (mbc2).bytes \ 195 ? memcmp ((mbc1).ptr, (mbc2).ptr, (mbc1).bytes) \ 196 : (mbc1).bytes < (mbc2).bytes [all...] |
/external/chromium/base/memory/ |
ref_counted_memory.cc | 30 RefCountedBytes* bytes = new RefCountedBytes; local 31 bytes->data.swap(*to_destroy); 32 return bytes;
|
/external/chromium_org/third_party/angle/src/libGLESv2/ |
Uniform.cpp | 18 int bytes = gl::UniformInternalSize(type) * elementCount(); local 19 data = new unsigned char[bytes]; 20 memset(data, 0, bytes);
|
/external/emma/core/java12/com/vladium/jcd/cls/constant/ |
CONSTANT_ref_info.java | 62 protected CONSTANT_ref_info (final UDataInputStream bytes) 65 m_class_index = bytes.readU2 (); 66 m_name_and_type_index = bytes.readU2 ();
|
/external/valgrind/main/memcheck/tests/ |
leak-tree.stderr.exp | 1 leaked: 64 bytes in 4 blocks 2 dubious: 0 bytes in 0 blocks 3 reachable: 48 bytes in 3 blocks 4 suppressed: 0 bytes in 0 blocks 5 16 bytes in 1 blocks are definitely lost in loss record ... of ... 11 48 (16 direct, 32 indirect) bytes in 1 blocks are definitely lost in loss record ... of ...
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
RandomImpl.java | 40 protected void engineNextBytes(byte[] bytes) { 42 for (int i = 0; i < bytes.length; i++) { 43 bytes[i] = (byte)(i + 0xF1);
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
ByteArray.java | 31 private final byte[] bytes; field in class:ByteArray 36 /** {@code >= 0, <= bytes.length}; size computed as 43 * @param bytes {@code non-null;} the underlying array 45 * @param end {@code >= start, <= bytes.length;} end index of 48 public ByteArray(byte[] bytes, int start, int end) { 49 if (bytes == null) { 50 throw new NullPointerException("bytes == null"); 61 if (end > bytes.length) { 62 throw new IllegalArgumentException("end > bytes.length"); 65 this.bytes = bytes [all...] |