/external/skia/src/core/ |
SkPathEffect.cpp | 42 void SkPairPathEffect::flatten(SkFlattenableWriteBuffer& buffer) 44 buffer.writeFlattenable(fPE0); 45 buffer.writeFlattenable(fPE1); 48 SkPairPathEffect::SkPairPathEffect(SkFlattenableReadBuffer& buffer) 50 fPE0 = (SkPathEffect*)buffer.readFlattenable(); 51 fPE1 = (SkPathEffect*)buffer.readFlattenable(); 119 SkFlattenable* SkStrokePathEffect::CreateProc(SkFlattenableReadBuffer& buffer) 121 return SkNEW_ARGS(SkStrokePathEffect, (buffer)); 124 void SkStrokePathEffect::flatten(SkFlattenableWriteBuffer& buffer) 126 buffer.writeScalar(fWidth) [all...] |
SkPictureFlat.cpp | 20 SkFlattenableWriteBuffer buffer(1024); 21 buffer.setRefCntRecorder(rec); 23 bitmap.flatten(buffer); 24 size_t size = buffer.size(); 26 buffer.flatten(result->fBitmapData); 87 SkFlattenableWriteBuffer buffer(2*sizeof(SkPaint)); 88 buffer.setRefCntRecorder(rec); 89 buffer.setTypefaceRecorder(faceRecorder); 91 paint.flatten(buffer); 92 uint32_t size = buffer.size() [all...] |
/system/core/libsysutils/src/ |
FrameworkClient.cpp | 31 char *buffer = (char *) alloca(strlen(msg) + strlen(data) + 1); local 32 if (!buffer) { 36 strcpy(buffer, msg); 37 strcat(buffer, data); 38 return sendMsg(buffer);
|
/external/speex/include/speex/ |
speex_jitter.h | 4 @brief Adaptive jitter buffer for Speex 38 /** @defgroup JitterBuffer JitterBuffer: Adaptive jitter buffer 39 * This is the jitter buffer that reorders UDP/RTP packets and adjusts the buffer size 50 /** Generic adaptive jitter buffer state */ 53 /** Generic adaptive jitter buffer state */ 66 spx_uint32_t user_data; /**< Put whatever data you like here (it's ignored by the jitter buffer) */ 75 /** There was an error in the jitter buffer */ 93 buffer no longer copies packet data. */ 98 /** Tell the jitter buffer to only adjust the delay in multiples of the step parameter provided * [all...] |
/system/wlan/ti/sta_dk_4_0_4_32/common/src/utils/ |
bufferPool.c | 2 * \brief This file include buffer pool module implementation 49 * \brief Creates a buffer pool object 54 * \param bufferSize - the size of each buffer in this pool.\n 55 * \return a handle to a buffer pool object, NULL if an error occurred.\n 59 /* allocate the buffer pool object */ 63 WLAN_OS_REPORT( ("ERROR: Failed to create buffer pool object") ); 68 * adjust buffer size if necessary - the buffer must at least store the pointer to the 69 * next free buffer when it is free. 76 /* nullify the buffer pool object * 197 bufferPool_buffer_t buffer; local [all...] |
/dalvik/libcore/nio/src/main/java/java/nio/ |
ByteBuffer.java | 23 * A buffer for bytes. 25 * A byte buffer can be created in either one of the following ways: 27 * <li>{@link #allocate(int) Allocate} a new byte array and create a buffer 30 * buffer based on it;</li> 32 * buffer.</li> 36 public abstract class ByteBuffer extends Buffer implements 40 * Creates a byte buffer based on a newly allocated byte array. 43 * the capacity of the new buffer 44 * @return the created byte buffer. 56 * Creates a direct byte buffer based on a newly allocated memory block [all...] |
CharBuffer.java | 23 * A buffer of chars. 25 * A char buffer can be created in either one of the following ways: 27 * <li>{@link #allocate(int) Allocate} a new char array and create a buffer 30 * buffer;</li> 32 * new buffer;</li> 34 * to create a char buffer based on a byte buffer.</li> 37 public abstract class CharBuffer extends Buffer implements 41 * Creates a char buffer based on a newly allocated char array. 44 * the capacity of the new buffer [all...] |
/dalvik/libcore/nio_char/src/test/java/tests/api/java/nio/charset/ |
ASCCharsetDecoderTest.java | 52 // ByteBuffer buffer = ByteBuffer.allocate(8); 53 // buffer.put((byte)-1); 54 // buffer.put(unibytes); 55 // buffer.flip(); 56 // return buffer; 62 ByteBuffer buffer = ByteBuffer.allocate(8); local 63 buffer.put((byte) -1); 64 buffer.put(unibytes); 65 buffer.flip(); 66 return buffer; [all...] |
CharsetEncoderDecoderBufferTest.java | 34 * Checks for ICU encoder/decoder buffer corruption. 39 /* Checks for a buffer corruption that happens in ICU 41 * is done first with an out-buffer with hasArray()==true, and next with an out-buffer with 42 * hasArray()==false. In that situation ICU may overwrite the first out-buffer. 73 // check if the first buffer was corrupted by the second decode 79 /* Checks for a buffer corruption that happens in ICU 81 * is done first with an in-buffer with hasArray()==true, and next with an in-buffer with 82 * hasArray()==false. In that situation ICU may overwrite the array of the first in-buffer [all...] |
/device/htc/common/updater/ |
log_recovery.c | 45 char* buffer = malloc(erase_size); local 46 if (mtd_read_data(read, buffer, erase_size) != erase_size) { 49 free(buffer); 52 if (mtd_read_data(read, buffer, erase_size) != erase_size) { 55 free(buffer); 60 if (memcmp(buffer, LOG_MAGIC, LOG_MAGIC_SIZE) != 0) { 62 free(buffer); 66 size_t log_size = *(size_t *)(buffer + LOG_MAGIC_SIZE); 69 fwrite(buffer + sizeof(size_t) + LOG_MAGIC_SIZE, 1, log_size, stdout); 72 free(buffer); [all...] |
/external/skia/src/effects/ |
SkBlurDrawLooper.cpp | 18 SkBlurDrawLooper::SkBlurDrawLooper(SkFlattenableReadBuffer& buffer) 20 fDx = buffer.readScalar(); 21 fDy = buffer.readScalar(); 22 fBlurColor = buffer.readU32(); 23 fBlur = static_cast<SkMaskFilter*>(buffer.readFlattenable()); 31 void SkBlurDrawLooper::flatten(SkFlattenableWriteBuffer& buffer) 33 buffer.writeScalar(fDx); 34 buffer.writeScalar(fDy); 35 buffer.write32(fBlurColor); 36 buffer.writeFlattenable(fBlur) [all...] |
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/net/ |
Socks4Message.java | 55 protected byte[] buffer; field in class:Socks4Message 59 buffer = new byte[BUFFER_LENGTH]; 67 return buffer[INDEX_COMMAND]; 74 buffer[INDEX_COMMAND] = (byte) command; 102 buffer[INDEX_IP] = ip[0]; 103 buffer[INDEX_IP + 1] = ip[1]; 104 buffer[INDEX_IP + 2] = ip[2]; 105 buffer[INDEX_IP + 3] = ip[3]; 147 for (index = INDEX_USER_ID; buffer[index] != 0; index++) { 176 * Answer the message's byte buffer [all...] |
/external/e2fsprogs/ext2ed/ |
inodebitmap_com.c | 30 char *ptr,buffer [80]; local 32 ptr=parse_word (command_line,buffer); 36 ptr=parse_word (ptr,buffer); 38 entry_num=atol (buffer); 45 strcpy (buffer,"show");dispatch (buffer); 52 char *ptr,buffer [80]; local 54 ptr=parse_word (command_line,buffer); 56 ptr=parse_word (ptr,buffer); 57 entry_offset=atol (buffer); 68 char *ptr,buffer [80]; local 84 char *ptr,buffer [80]; local 110 char *ptr,buffer [80]; local [all...] |
file_com.c | 44 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); 69 char *ptr,buffer [80]; local 71 ptr=parse_word (command_line,buffer); 74 ptr=parse_word (ptr,buffer); 75 block_offset*=atol (buffer); 88 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); 90 strcpy (buffer,"show");dispatch (buffer); 97 char *ptr,buffer [80]; local 99 ptr=parse_word (command_line,buffer); 120 char *ptr,buffer [80]; local 147 char *ptr,buffer [80]; local 170 char *ptr,buffer [80]; local 198 char *ptr,buffer [80]; local 228 char *ptr,buffer [80]; local 401 char *ptr,buffer [80]; local 440 char *ptr,buffer [80],*ch_ptr; local [all...] |
/external/icu4c/tools/pkgdata/ |
pkgtypes.c | 30 char buffer[1024]; local 35 uprv_strncpy(buffer, l->str, 1020); 36 buffer[1019]=0; 39 if(buffer[uprv_strlen(buffer)-1] == '"') { 40 buffer[uprv_strlen(buffer)-1] = '\0'; 42 if(buffer[0] == '"') { 43 uprv_strcpy(buffer, buffer+1) 75 char buffer[1024]; local [all...] |
/external/icu4c/io/ |
ufmt_cmn.h | 26 #define MAX_UCHAR_BUFFER_SIZE(buffer) (sizeof(buffer)/(UTF_MAX_CHAR_LENGTH*sizeof(UChar))) 90 * @param buffer The target buffer 91 * @param len On input, the size of <TT>buffer</TT>. On output, 92 * the number of UChars written to <TT>buffer</TT>. 100 ufmt_64tou(UChar *buffer, 113 ufmt_ptou(UChar *buffer, 120 * @param buffer The target buffer [all...] |
/external/icu4c/samples/case/ |
ucase.c | 29 UChar buffer[32]; local 48 /* result buffer = "ab?" latin small letter a, latin small letter b, latin 50 length = u_strToLower(buffer, sizeof(buffer)/sizeof(buffer[0]), upper, 52 if(U_FAILURE(errorCode) || buffer[length]!=0) { 57 u_fprintf(out, "u_strToLower(%S, turkish) -> %S\n", upper, buffer); 61 /* result buffer = "ABI" latin CAPITAL letter A, latin capital letter B, 63 length = u_strToUpper(buffer, sizeof(buffer)/sizeof(buffer[0]), upper, [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/utils/ |
wpabuf.h | 2 * Dynamic data buffer 24 size_t size; /* total size of the allocated buffer */ 25 size_t used; /* length of data in the buffer */ 28 /* optionally followed by the allocated buffer */ 45 * wpabuf_size - Get the currently allocated size of a wpabuf buffer 46 * @buf: wpabuf buffer 47 * Returns: Currently allocated size of the buffer 55 * wpabuf_len - Get the current length of a wpabuf buffer data 56 * @buf: wpabuf buffer 57 * Returns: Currently used length of the buffer [all...] |
/external/dropbear/ |
buffer.c | 25 /* Buffer handling routines, designed to avoid overflows/using invalid data */ 29 #include "buffer.h" 31 /* Prevent integer overflows when incrementing buffer position/length. 40 /* Create (malloc) a new buffer of size */ 41 buffer* buf_new(unsigned int size) { 43 buffer* buf; 49 buf = (buffer*)m_malloc(sizeof(buffer)); 65 /* free the buffer's data and the buffer itself * [all...] |
/packages/apps/Gallery3D/src/com/cooliris/media/ |
GridQuadFrame.java | 110 CharBuffer buffer = mIndexBuffer; local 111 buffer.put(0, (char) 0); 112 buffer.put(1, (char) 4); 113 buffer.put(2, (char) 1); 114 buffer.put(3, (char) 5); 115 buffer.put(4, (char) 2); 116 buffer.put(5, (char) 6); 117 buffer.put(6, (char) 3); 118 buffer.put(7, (char) 7); 119 buffer.put(8, (char) 11) 212 int[] buffer = new int[1]; local 242 int[] buffer = new int[1]; local [all...] |
/external/zlib/contrib/iostream3/ |
zfstream.cc | 14 // Internal buffer sizes (default and "unbuffered" versions) 23 buffer(NULL), buffer_size(BIGBUFSIZE), own_buffer(true) 32 // Sync output buffer and close only if responsible for file 37 // Make sure internal buffer is deallocated 70 // On success, allocate internal buffer and set flags 98 // On success, allocate internal buffer and set flags 122 // Destroy internal buffer if it exists 167 // Determine number of characters in internal get buffer 195 // Attempt to fill internal buffer from gzipped file 196 // (buffer must be guaranteed to exist... [all...] |
/external/icu4c/common/ |
ucat.c | 24 * Fill in buffer with a set_num/msg_num key string, given the numeric 25 * values. Numeric values must be >= 0. Buffer must be of length 29 _catkey(char* buffer, int32_t set_num, int32_t msg_num) { 31 i = T_CString_integerToString(buffer, set_num, 10); 32 buffer[i++] = SEPARATOR; 33 T_CString_integerToString(buffer+i, msg_num, 10); 34 return buffer;
|
/external/qemu/distrib/sdl-1.2.12/src/video/gem/ |
SDL_gemvideo.h | 43 #define B2S_C2P_1TO2 (1<<0) /* C2P convert buffer 1 to buffer 2 */ 44 #define B2S_C2P_1TOS (1<<1) /* C2P convert buffer 1 to screen */ 45 #define B2S_VROCPYFM_1TOS (1<<2) /* vro_cpyfm() buffer 1 to screen */ 46 #define B2S_VROCPYFM_2TOS (1<<3) /* vro_cpyfm() buffer 2 to screen */ 51 Uint16 buf2scr_ops; /* Operations to get buffer to screen */ 88 void *menubar; /* Menu bar save buffer when going fullscreen */ 153 Possible buffer to screen operations: 163 - draw to buffer 1 164 - C2P from buffer 1 to scree [all...] |
/external/openssl/crypto/rc4/ |
rc4s.cpp | 39 unsigned char buffer[1024]; local 59 RC4(&ctx,numm,buffer,buffer); 61 RC4(&ctx,numm,buffer,buffer); 64 RC4(&ctx,num,buffer,buffer); 66 RC4(&ctx,num,buffer,buffer);
|
/system/vold/ |
Devmapper.cpp | 39 char *buffer = (char *) malloc(1024 * 64); local 40 if (!buffer) { 44 memset(buffer, 0, (1024 * 64)); 49 free(buffer); 56 free(buffer); 61 struct dm_ioctl *io = (struct dm_ioctl *) buffer; 66 free(buffer); 72 struct dm_name_list *n = (struct dm_name_list *) (((char *) buffer) + io->data_start); 74 free(buffer); 107 free(buffer); 128 char *buffer = (char *) malloc(4096); local 162 char *buffer = (char *) malloc(4096); local 257 char *buffer = (char *) malloc(4096); local [all...] |