/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/util/ |
UUIDConverter.java | 30 byte[] buffer = new byte[16]; 33 buffer[i] = (byte) (msb >>> 8 * (7 - i)); 36 buffer[i] = (byte) (lsb >>> 8 * (7 - i)); 39 return buffer;
|
/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);
|
/external/v8/src/ |
dtoa.cc | 57 Vector<char> buffer, int* sign, int* length, int* point) { 69 buffer[0] = '0'; 70 buffer[1] = '\0'; 77 buffer[0] = '\0'; 85 fast_worked = FastDtoa(v, FAST_DTOA_SHORTEST, 0, buffer, length, point); 88 fast_worked = FastFixedDtoa(v, requested_digits, buffer, length, point); 92 buffer, length, point); 102 BignumDtoa(v, bignum_mode, requested_digits, buffer, length, point); 103 buffer[*length] = '\0';
|
fixed-dtoa.h | 36 // The buffer must be big enough to hold the result plus one terminating null 41 // Example: FastFixedDtoa(0.001, 5, ...) is allowed to return buffer = "1", and 44 // FastFixedDtoa(0.15, 2, ...) thus returns buffer = "2", decimal_point = 0. 45 // The returned buffer may contain digits that would be truncated from the 51 Vector<char> buffer, int* length, int* decimal_point);
|
/frameworks/av/media/mtp/ |
MtpUtils.h | 25 void formatDateTime(time_t seconds, char* buffer, int bufferLength);
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
MetadataMarshalString.java | 26 public int marshal(String value, ByteBuffer buffer, int nativeType, boolean sizeOnly) { 30 buffer.put(arr); 31 buffer.put((byte)0); // metadata strings are NULL-terminated 38 public String unmarshal(ByteBuffer buffer, int nativeType) { 40 buffer.mark(); // save the current position 44 while (buffer.hasRemaining()) { 45 if (buffer.get() == (byte)0) { 56 buffer.reset(); // go back to the previously marked position 59 buffer.get(strBytes, /*dstOffset*/0, stringLength + 1); // including null character
|
/frameworks/base/core/tests/coretests/src/android/content/ |
AssetTest.java | 37 byte[] buffer = new byte[10]; 41 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) { 45 + " but found " + ((char) buffer[i]), 46 buffer[i], expectedString.charAt(curIndex)); 51 readCount = is.read(buffer, 0, buffer.length); 52 assertEquals("Reading end of buffer: expected readCount=-1 but got " + readCount, 55 readCount = is.read(buffer, buffer.length, 0) [all...] |
/frameworks/base/media/java/android/media/ |
DataSource.java | 31 * @param buffer the buffer to read the data into 35 public int readAt(long offset, byte[] buffer, int size);
|
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
BufferPool.java | 59 public void release(ByteBuffer buffer) { 61 buffer.clear(); 62 mBuffers[mAvailable++] = buffer; 67 public ByteBuffer grow(ByteBuffer buffer, int needed) { 68 int capacity = buffer.capacity(); 70 final ByteBuffer oldBuffer = buffer; 72 buffer = ByteBuffer.allocate(capacity); 74 buffer.put(oldBuffer); 76 return buffer; 86 + " is larger than maximum buffer size " + mMaxBufferSize + ".") [all...] |
Transport.java | 46 // The output buffer. Set to null when the transport is closed. 49 // The input buffer pool. 231 protected abstract int ioRead(byte[] buffer, int offset, int count) 233 protected abstract void ioWrite(byte[] buffer, int offset, int count) 253 final ByteBuffer buffer = (ByteBuffer)msg.obj; local 255 final int limit = buffer.limit(); 256 while (buffer.position() < limit) { 257 final int service = buffer.getShort() & 0xffff; 258 final int what = buffer.getShort() & 0xffff; 259 final int contentSize = buffer.getInt() 291 ByteBuffer buffer = null; local [all...] |
/frameworks/native/cmds/bugreport/ |
bugreport.c | 25 char buffer[65536]; local 48 int length = read(s, buffer, sizeof(buffer)); 51 fwrite(buffer, 1, length, stdout);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
ImageCacheService.java | 52 * The image data will be stored in <code>buffer.data</code>, started from 53 * <code>buffer.offset</code> for <code>buffer.length</code> bytes. If the 54 * buffer.data is not big enough, a new byte array will be allocated and returned. 58 public boolean getImageData(Path path, long timeModified, int type, BytesBuffer buffer) { 64 request.buffer = buffer.data; 68 if (isSameKey(key, request.buffer)) { 69 buffer.data = request.buffer; 83 ByteBuffer buffer = ByteBuffer.allocate(key.length + value.length); local [all...] |
/system/vold/ |
Devmapper.cpp | 43 char *buffer = (char *) malloc(1024 * 64); local 44 if (!buffer) { 48 memset(buffer, 0, (1024 * 64)); 53 free(buffer); 60 free(buffer); 65 struct dm_ioctl *io = (struct dm_ioctl *) buffer; 70 free(buffer); 76 struct dm_name_list *n = (struct dm_name_list *) (((char *) buffer) + io->data_start); 78 free(buffer); 111 free(buffer); 134 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE); local 168 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE); local 265 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE); local [all...] |
/external/chromium_org/third_party/harfbuzz-ng/src/ |
hb-ot-shape-complex-sea.cc | 29 /* buffer var allocations */ 70 hb_buffer_t *buffer); 74 hb_buffer_t *buffer); 78 hb_buffer_t *buffer); 167 hb_buffer_t *buffer, 170 HB_BUFFER_ALLOCATE_VAR (buffer, sea_category); 171 HB_BUFFER_ALLOCATE_VAR (buffer, sea_position); 176 unsigned int count = buffer->len; 178 set_sea_properties (buffer->info[i]); 184 hb_buffer_t *buffer) [all...] |
hb-buffer.cc | 30 #include "hb-buffer-private.hh" 61 /* Here is how the buffer works internally: 73 * to an alternate buffer (which we reuse the pos buffer for!), and its 467 /* If we hit the start of buffer, continue in out-buffer. */ 495 /* If we hit the end of out-buffer, continue in buffer. */ 510 /* If script is set to INVALID, guess from buffer contents */ 537 dump_var_allocation (const hb_buffer_t *buffer) [all...] |
/external/harfbuzz_ng/src/ |
hb-ot-shape-complex-sea.cc | 29 /* buffer var allocations */ 70 hb_buffer_t *buffer); 74 hb_buffer_t *buffer); 78 hb_buffer_t *buffer); 167 hb_buffer_t *buffer, 170 HB_BUFFER_ALLOCATE_VAR (buffer, sea_category); 171 HB_BUFFER_ALLOCATE_VAR (buffer, sea_position); 176 unsigned int count = buffer->len; 178 set_sea_properties (buffer->info[i]); 184 hb_buffer_t *buffer) [all...] |
hb-buffer.cc | 30 #include "hb-buffer-private.hh" 61 /* Here is how the buffer works internally: 73 * to an alternate buffer (which we reuse the pos buffer for!), and its 467 /* If we hit the start of buffer, continue in out-buffer. */ 495 /* If we hit the end of out-buffer, continue in buffer. */ 510 /* If script is set to INVALID, guess from buffer contents */ 537 dump_var_allocation (const hb_buffer_t *buffer) [all...] |
/frameworks/base/core/java/android/text/method/ |
LinkMovementMethod.java | 30 * A movement method that traverses links in the text buffer and scrolls if necessary. 44 protected boolean handleMovementKey(TextView widget, Spannable buffer, int keyCode, 51 event.getRepeatCount() == 0 && action(CLICK, widget, buffer)) { 57 return super.handleMovementKey(widget, buffer, keyCode, movementMetaState, event); 61 protected boolean up(TextView widget, Spannable buffer) { 62 if (action(UP, widget, buffer)) { 66 return super.up(widget, buffer); 70 protected boolean down(TextView widget, Spannable buffer) { 71 if (action(DOWN, widget, buffer)) { 75 return super.down(widget, buffer); [all...] |
/external/chromium_org/media/base/ |
audio_buffer_unittest.cc | 31 scoped_refptr<AudioBuffer> buffer = MakeInterleavedAudioBuffer<uint8>( local 33 EXPECT_EQ(frames, buffer->frame_count()); 34 EXPECT_EQ(buffer->timestamp(), start_time); 35 EXPECT_EQ(buffer->duration().InSeconds(), frames); 36 EXPECT_FALSE(buffer->end_of_stream()); 40 scoped_refptr<AudioBuffer> buffer = AudioBuffer::CreateEOSBuffer(); local 41 EXPECT_TRUE(buffer->end_of_stream()); 52 scoped_refptr<AudioBuffer> buffer = AudioBuffer::CopyFrom( local 54 EXPECT_EQ(16, buffer->frame_count()); // 2 channels of 8-bit data 56 buffer = AudioBuffer::CopyFrom 66 scoped_refptr<AudioBuffer> buffer = MakeInterleavedAudioBuffer<uint8>( local 86 scoped_refptr<AudioBuffer> buffer = MakeInterleavedAudioBuffer<int16>( local 111 scoped_refptr<AudioBuffer> buffer = MakeInterleavedAudioBuffer<int32>( local 134 scoped_refptr<AudioBuffer> buffer = MakeInterleavedAudioBuffer<float>( local 156 scoped_refptr<AudioBuffer> buffer = MakePlanarAudioBuffer<int16>( local 189 scoped_refptr<AudioBuffer> buffer = local 222 scoped_refptr<AudioBuffer> buffer = AudioBuffer::CreateEmptyBuffer( local 243 scoped_refptr<AudioBuffer> buffer = local [all...] |
/external/chromium_org/chrome/test/chromedriver/chrome/ |
zip_internal.cc | 156 ZipBuffer* buffer = static_cast<ZipBuffer*>(opaque); local 157 if (!buffer || !buffer->data || !buffer->length) 159 buffer->offset = 0; 166 ZipBuffer* buffer = static_cast<ZipBuffer*>(opaque); local 167 DCHECK_LE(buffer->offset, buffer->length); 168 size_t remaining_bytes = buffer->length - buffer->offset 189 ZipBuffer* buffer = static_cast<ZipBuffer*>(opaque); local 197 ZipBuffer* buffer = static_cast<ZipBuffer*>(opaque); local [all...] |
/external/chromium_org/third_party/zlib/google/ |
zip_internal.cc | 156 ZipBuffer* buffer = static_cast<ZipBuffer*>(opaque); local 157 if (!buffer || !buffer->data || !buffer->length) 159 buffer->offset = 0; 166 ZipBuffer* buffer = static_cast<ZipBuffer*>(opaque); local 167 DCHECK_LE(buffer->offset, buffer->length); 168 size_t remaining_bytes = buffer->length - buffer->offset 189 ZipBuffer* buffer = static_cast<ZipBuffer*>(opaque); local 197 ZipBuffer* buffer = static_cast<ZipBuffer*>(opaque); local [all...] |
/frameworks/native/libs/gui/ |
Sensor.cpp | 132 status_t Sensor::flatten(void* buffer, size_t size) const { 137 FlattenableUtils::write(buffer, size, mName.length()); 138 memcpy(static_cast<char*>(buffer), mName.string(), mName.length()); 139 FlattenableUtils::advance(buffer, size, FlattenableUtils::align<4>(mName.length())); 141 FlattenableUtils::write(buffer, size, mVendor.length()); 142 memcpy(static_cast<char*>(buffer), mVendor.string(), mVendor.length()); 143 FlattenableUtils::advance(buffer, size, FlattenableUtils::align<4>(mVendor.length())); 145 FlattenableUtils::write(buffer, size, mVersion); 146 FlattenableUtils::write(buffer, size, mHandle); 147 FlattenableUtils::write(buffer, size, mType) [all...] |
/cts/suite/audio_quality/lib/src/audio/ |
AudioSignalFactory.cpp | 23 android::sp<Buffer> AudioSignalFactory::generateSineWave(AudioHardware::BytesPerSample BPS, 28 android::sp<Buffer> buffer(new Buffer(bufferSize)); 31 int16_t* data = reinterpret_cast<int16_t*>(buffer->getData()); 42 buffer->setSize(buffer->getCapacity()); 43 return buffer; 45 android::sp<Buffer> AudioSignalFactory::generateWhiteNoise(AudioHardware::BytesPerSample BPS, 49 android::sp<Buffer> buffer(new Buffer(bufferSize, bufferSize)) [all...] |
/external/icu4c/samples/ustring/ |
ustring.cpp | 151 UChar buffer[32]; local 156 buffer[0]=0; /* empty, NUL-terminated string */ 157 u_strncat(buffer, text, 1); /* append just n=1 character ('A') */ 158 u_strcat(buffer, appendText); /* buffer=="Aabc" */ 159 length=u_strlen(buffer); /* length=4 */ 160 printUString("should be \"Aabc\": ", buffer, -1); 162 /* bitwise comparing buffer with text */ 163 compare=u_strcmp(buffer, text); 168 /* Build "A<sharp s>C" in the buffer... * 196 UChar buffer[32]; local 567 UChar buffer[200]; local [all...] |
/frameworks/base/core/java/android/hardware/usb/ |
UsbDeviceConnection.java | 111 * This method transfers data starting from index 0 in the buffer. 120 * @param buffer buffer for data portion of transaction, 128 int index, byte[] buffer, int length, int timeout) { 129 return controlTransfer(requestType, request, value, index, buffer, 0, length, timeout); 144 * @param buffer buffer for data portion of transaction, 146 * @param offset the index of the first byte in the buffer to send or receive 153 byte[] buffer, int offset, int length, int timeout) { 154 checkBounds(buffer, offset, length) [all...] |