/external/webkit/Source/WebCore/platform/graphics/android/fonts/ |
FontCacheAndroid.cpp | 90 size_t bytes = SkUTF16_ToUTF8(uni, utf16.length(), 0); local 91 char* utf8 = (char*)sk_malloc_throw(bytes + 1); 94 utf8[bytes] = 0;
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
GraphicsContextCairoWin.cpp | 90 static void setRGBABitmapAlpha(unsigned char* bytes, size_t length, unsigned char level) 93 bytes[i + 3] = level; 142 unsigned char* bytes = reinterpret_cast<unsigned char*>(pixelData.buffer()); local 144 setRGBABitmapAlpha(bytes, pixelData.size().height() * pixelData.bytesPerRow(), 255);
|
/external/webkit/Source/WebCore/platform/text/ |
TextCodecUserDefined.cpp | 52 String TextCodecUserDefined::decode(const char* bytes, size_t length, bool, bool, bool&) 58 signed char c = bytes[i]; 68 char* bytes = result.data(); local 76 bytes[resultLength++] = signedByte; 82 bytes = result.data(); 83 memcpy(bytes + resultLength, replacement, replacementLength); 88 return CString(bytes, resultLength); 93 char* bytes; local 94 CString string = CString::newUninitialized(length, bytes); 100 bytes[i] = c [all...] |
/external/webkit/Source/WebCore/svg/ |
SVGPathByteStream.h | 33 unsigned char bytes[sizeof(bool)]; member in union:WebCore::__anon17914 38 unsigned char bytes[sizeof(float)]; member in union:WebCore::__anon17915 43 unsigned char bytes[sizeof(unsigned short)]; member in union:WebCore::__anon17916
|
/external/webkit/Source/WebKit2/Shared/ |
WebData.h | 43 static PassRefPtr<WebData> createWithoutCopying(const unsigned char* bytes, size_t size, FreeDataFunction freeDataFunction, const void* context) 45 return adoptRef(new WebData(bytes, size, freeDataFunction, context)); 48 static PassRefPtr<WebData> create(const unsigned char* bytes, size_t size) 54 memcpy(copiedBytes, bytes, size); 70 const unsigned char* bytes() const { return m_bytes; } function in class:WebKit::WebData 74 WebData(const unsigned char* bytes, size_t size, FreeDataFunction freeDataFunction, const void* context) 75 : m_bytes(bytes) 82 static void fastFreeBytes(unsigned char* bytes, const void*) 84 if (bytes) 85 fastFree(static_cast<void*>(bytes)); [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
BitwiseInputStream.java | 96 int bytes = (bits >>> 3) + ((bits & 0x07) > 0 ? 1 : 0); // &7==%8 local 97 byte[] arr = new byte[bytes]; 98 for (int i = 0; i < bytes; i++) {
|
/frameworks/base/core/jni/ |
android_ddm_DdmHandleNativeHeap.cpp | 51 char bytes[1024]; local 53 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) { 54 s.append(bytes, byteCount);
|
/sdk/emulator/opengl/host/tools/emugen/ |
VarType.h | 23 VarConverter(size_t bytes) : m_bytes(bytes) {} 24 size_t bytes() const { return m_bytes; } function in class:VarConverter 67 size_t bytes() const { return m_converter->bytes(); } function in class:VarType
|
/frameworks/volley/src/com/android/volley/toolbox/ |
BasicNetwork.java | 202 PoolingByteArrayOutputStream bytes = local 213 bytes.write(buffer, 0, count); 215 return bytes.toByteArray(); 226 bytes.close();
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
AttributeFactory.java | 56 * Parses and makes an attribute based on the bytes at the 64 * @param offset offset into {@code dcf}'s {@code bytes} 82 ByteArray bytes = cf.getBytes(); local 84 int nameIdx = bytes.getUnsignedShort(offset); 85 int length = bytes.getInt(offset + 2); 90 observer.parsed(bytes, offset, 2, 92 observer.parsed(bytes, offset + 2, 4, 115 * @param offset offset into {@code bytes} to start parsing at; this 124 ByteArray bytes = cf.getBytes(); local 126 Attribute result = new RawAttribute(name, bytes, offset, length, pool) [all...] |
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
ChatManager.java | 37 int bytes; local 44 bytes = iStream.read(buffer); 45 if (bytes == -1) { 49 // Send the obtained bytes to the UI Activity 52 bytes, -1, buffer).sendToTarget();
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
CTarget.java | 196 String bytes; local 262 bytes = buf.toString(); 263 index = strings.indexOf(bytes); 266 strings.add(bytes); 267 index = strings.indexOf(bytes);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
DEREnumerated.java | 11 byte[] bytes; field in class:DEREnumerated 74 bytes = BigInteger.valueOf(value).toByteArray(); 80 bytes = value.toByteArray(); 84 byte[] bytes) 86 this.bytes = bytes; 91 return new BigInteger(bytes); 101 return 1 + StreamUtil.calculateBodyLength(bytes.length) + bytes.length; 108 out.writeEncoded(BERTags.ENUMERATED, bytes); [all...] |
/external/chromium/android/net/ |
android_network_library_impl.cc | 16 // Convert X509 chain to DER format bytes. 38 jbyte* bytes = env->GetByteArrayElements(byte_array, NULL); local 39 DCHECK(bytes); 40 size_t copied = cert_chain[i].copy(reinterpret_cast<char*>(bytes), len); 42 env->ReleaseByteArrayElements(byte_array, bytes, 0);
|
/external/chromium/net/tools/dump_cache/ |
cache_dumper.cc | 185 // we know that the last two bytes are CRLF. 195 DWORD bytes; local 196 if (!WriteFile(entry_, data, len, &bytes, 0)) 199 return bytes;
|
/external/dhcpcd/ |
arp.c | 113 ssize_t bytes; local 121 bytes = get_raw_packet(iface, ETHERTYPE_ARP, 123 if (bytes == 0 || bytes == -1) 126 if ((size_t)bytes < sizeof(ar)) 143 if ((hw_t + ar.ar_hln + ar.ar_pln) - arp_buffer > bytes)
|
control.c | 76 ssize_t bytes; local 81 bytes = read(l->fd, buffer, sizeof(buffer) - 1); 82 if (bytes == -1 || bytes == 0) { 86 buffer[bytes] = '\0'; 88 e = buffer + bytes;
|
lpf.c | 182 ssize_t bytes; local 194 bytes = recvmsg(fd, &msg, 0); 195 if (bytes == -1) 213 return bytes;
|
/external/e2fsprogs/lib/blkid/ |
getsize.c | 54 #define BLKGETSIZE64 _IOR(0x12,114,size_t) /* return device size in bytes (u64 *arg) */ 73 * Returns the number of bytes in a partition 189 long long bytes; local 201 bytes = blkid_get_dev_size(fd); 203 (unsigned long long) bytes >> 10);
|
/external/icu4c/samples/uciter8/ |
uciter8.c | 300 static const uint8_t bytes[]={ local 315 uiter_setLenient8(&iter2, (const char *)bytes, sizeof(bytes)-1); 319 uiter_setLenient8(&iter2, (const char *)bytes, -1); 324 uiter_setLenient8(&iter1, (const char*)bytes, -1);
|
/external/icu4c/tools/toolutil/ |
unewdata.c | 41 uint8_t bytes[16]; local 130 /* write padding bytes to align the data section to 16 bytes */ 134 uprv_memset(bytes, 0, headerSize); 135 T_FileStream_write(pData->file, bytes, headerSize);
|
/external/iproute2/include/linux/ |
gen_stats.h | 18 * @bytes: number of seen bytes 22 __u64 bytes; member in struct:gnet_stats_basic 26 __u64 bytes; member in struct:gnet_stats_basic_packed
|
/external/ipsec-tools/ |
main.c | 73 unsigned char bytes[2]; local 74 if (recv(control, &bytes[0], 1, 0) != 1 || 75 recv(control, &bytes[1], 1, 0) != 1) { 79 int length = bytes[0] << 8 | bytes[1];
|
/external/jpeg/ |
jmemmac.c | 158 long bytes = byte_count; local 164 retVal = FSRead ( info->temp_file, &bytes, 166 if ( retVal != noErr || bytes != byte_count ) 176 long bytes = byte_count; local 182 retVal = FSWrite ( info->temp_file, &bytes, 184 if ( retVal != noErr || bytes != byte_count ) 279 * Note that FreeMem returns the total number of free bytes;
|
/external/libffi/src/cris/ |
ffi.c | 161 unsigned bytes = 0; local 189 if (((*ptr)->alignment - 1) & bytes) 190 bytes = ALIGN (bytes, (*ptr)->alignment); 195 bytes += (*ptr)->size; 196 bytes += sizeof (void *); 201 bytes += 8; 203 bytes += 4; 207 bytes += STACK_ARG_SIZE ((*ptr)->size); 210 cif->bytes = bytes [all...] |