Searched refs:size (Results 51 - 75 of 1468) sorted by relevance

1234567891011>>

/frameworks/base/media/libmedia/
H A DIEffectClient.cpp69 int size = cmdSize; local
71 size = 0;
73 data.writeInt32(size);
74 if (size) {
75 data.write(pCmdData, size);
77 size = replySize;
79 size = 0;
81 data.writeInt32(size);
82 if (size) {
83 data.write(pReplyData, size);
[all...]
H A DIEffect.cpp72 int size = cmdSize; local
74 size = 0;
76 data.writeInt32(size);
77 if (size) {
78 data.write(pCmdData, size);
81 size = 0;
83 size = *pReplySize;
85 data.writeInt32(size);
88 size = reply.readInt32();
89 if (size !
[all...]
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DIntRangeManagerTest.java88 assertEquals("expecting empty configlist", 0, testManager.mConfigList.size());
105 assertEquals("configlist size", 1, testManager.mConfigList.size());
111 assertEquals("configlist size", 1, testManager.mConfigList.size());
120 assertEquals("configlist size", 1, testManager.mConfigList.size());
124 assertEquals("configlist size", 1, testManager.mConfigList.size());
131 assertEquals("configlist size",
[all...]
/frameworks/base/tools/preload/
H A DLoadedClass.java85 int size = operations.size();
86 if (size == 0) {
90 int[] times = new int[size];
91 for (int i = 0; i < size; i++) {
96 int middle = size / 2;
97 if (size % 2 == 1) {
/frameworks/base/media/libstagefright/foundation/
H A DAString.cpp44 AString::AString(const char *s, size_t size) argument
48 setTo(s, size);
55 setTo(from, 0, from.size());
71 setTo(from, 0, from.size());
77 size_t AString::size() const { function in class:android::AString
93 void AString::setTo(const char *s, size_t size) { argument
95 append(s, size);
168 void AString::append(const char *s, size_t size) { argument
171 if (mSize + size + 1 > mAllocSize) {
172 mAllocSize = (mAllocSize + size
269 insert(const char *from, size_t size, size_t insertionPos) argument
[all...]
H A DABuffer.cpp56 void ABuffer::setRange(size_t offset, size_t size) { argument
58 CHECK_LE(offset + size, mCapacity);
61 mRangeLength = size;
/frameworks/base/drm/common/
H A DReadWriteUtils.cpp85 int size = data.size(); local
86 if (FAILURE != ftruncate(fd, size)) {
87 if (size != write(fd, data.string(), size)) {
102 int size = data.size(); local
103 if (size != write(fd, data.string(), size)) {
/frameworks/base/media/libstagefright/
H A Davc_utils.cpp45 ABitReader br(seqParamSet->data() + 1, seqParamSet->size() - 1);
139 size_t size = *_size; local
144 if (size == 0) {
151 while (offset < size && data[offset] == 0x00) {
155 if (offset == size) {
170 while (offset < size && data[offset] != 0x01) {
174 if (offset == size) {
176 offset = size + 2;
198 if (offset + 2 < size) {
200 *_size = size
209 FindNAL( const uint8_t *data, size_t size, unsigned nalType, size_t *stopOffset) argument
249 size_t size = accessUnit->size(); local
312 size_t size = buffer->size(); local
334 size_t size = accessUnit->size(); local
401 ExtractDimensionsFromVOLHeader( const uint8_t *data, size_t size, int32_t *width, int32_t *height) argument
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCall.java94 return connections.size() > 0;
128 if (l.size() == 0) {
132 for (int i = 0, s = l.size() ; i < s ; i++) {
154 if (l.size() == 0) {
158 for (int i = 0, s = l.size() ; i < s ; i++) {
175 if (l.size() == 0) {
179 for (int i = 0, s = l.size() ; i < s ; i++) {
209 if (l.size() == 0) {
215 for (int i = 0, s = l.size() ; i < s ; i++) {
/frameworks/base/include/binder/
H A DMemoryHeapBase.h45 MemoryHeapBase(int fd, size_t size, uint32_t flags = 0, uint32_t offset = 0);
50 MemoryHeapBase(const char* device, size_t size = 0, uint32_t flags = 0);
55 MemoryHeapBase(size_t size, uint32_t flags = 0, char const* name = NULL);
82 status_t init(int fd, void *base, int size,
86 status_t mapfd(int fd, size_t size, uint32_t offset = 0);
H A DMemoryBase.h33 MemoryBase(const sp<IMemoryHeap>& heap, ssize_t offset, size_t size);
35 virtual sp<IMemoryHeap> getMemory(ssize_t* offset, size_t* size) const;
/frameworks/base/include/utils/
H A DSharedBuffer.h36 /*! allocate a buffer of size 'size' and acquire() it.
39 static SharedBuffer* alloc(size_t size);
57 //! get size of the buffer
58 inline size_t size() const;
66 //! get the size of a SharedBuffer object from its data
73 SharedBuffer* editResize(size_t size) const;
79 SharedBuffer* reset(size_t size) const;
119 size_t SharedBuffer::size() const { function in class:android::SharedBuffer
H A DFlattenable.h30 // size in bytes of the flattened object
37 // size should be at least of getFlattenedSize()
41 virtual status_t flatten(void* buffer, size_t size,
45 // size should be equal to the value of getFlattenedSize() when the
51 virtual status_t unflatten(void const* buffer, size_t size,
/frameworks/base/media/libstagefright/codecs/aacenc/src/
H A Dmemalign.c40 mem_malloc(VO_MEM_OPERATOR *pMemop, unsigned int size, unsigned char alignment, unsigned int CodecID) argument
49 MemInfo.Size = size + 1;
55 pMemop->Set(CodecID, mem_ptr, 0, size + 1);
64 MemInfo.Size = size + alignment;
71 pMemop->Set(CodecID, tmp, 0, size + alignment);
/frameworks/base/opengl/libs/GLES2_dbg/src/
H A Dapi.h36 const unsigned int size = width * height * GetBytesPerPixel(format, type); \
37 dbg->Compress(pixels, size, msg.mutable_data()); \
53 const unsigned size = GetBytesPerPixel(format, type) * width * height; \
54 assert(0 < size); \
55 dbg->Compress(pixels, size, msg.mutable_data()); \
/frameworks/compile/linkloader/lib/
H A DMemChunk.cpp47 bool MemChunk::allocate(size_t size) { argument
49 buf = (unsigned char *)mmap((void *)StartAddr, size,
54 buf = (unsigned char *)mmap(0, size,
65 StartAddr += (size + 4095) / 4096 * 4096;
68 buf_size = size;
/frameworks/base/cmds/stagefright/
H A DWaveWriter.h49 void Append(const void *data, size_t size) { argument
50 fwrite(data, 1, size, mFile);
51 mTotalBytes += size;
/frameworks/base/core/java/android/app/backup/
H A DBackupDataInputStream.java29 * {@link BackupDataInput}. The entity's key string and total data size are available
30 * through this class's {@link #getKey()} and {@link #size()} methods, respectively.
33 * source, nor read more than {@link #size()} bytes from the stream.</p>
53 * an integer value. If more than {@link #size()} bytes of data
68 * Read up to {@code size} bytes of data into a byte array, beginning at position
74 * @param size The number of bytes to read in this operation. If insufficient
80 public int read(byte[] b, int offset, int size) throws IOException { argument
81 return mData.readEntityData(b, offset, size);
113 public int size() { method in class:BackupDataInputStream
H A DFullBackup.java77 * @param size Number of bytes of data to copy from the socket to the file. At least
92 long size, int type, long mode, long mtime, File outFile) throws IOException {
119 final long origSize = size;
121 while (size > 0) {
122 int toRead = (size > buffer.length) ? buffer.length : (int)size;
125 Log.w(TAG, "Incomplete read: expected " + size + " but got "
126 + (origSize - size));
141 size -= got;
91 restoreFile(ParcelFileDescriptor data, long size, int type, long mode, long mtime, File outFile) argument
/frameworks/base/media/libstagefright/httplive/
H A DLiveDataSource.h35 virtual ssize_t readAt(off64_t offset, void *data, size_t size);
36 ssize_t readAtNonBlocking(off64_t offset, void *data, size_t size);
57 ssize_t readAt_l(off64_t offset, void *data, size_t size);
/frameworks/base/opengl/tests/angeles/
H A Dgpustate.c8 static void *map_memory(const char *fn, unsigned base, unsigned size) argument
19 ptr = mmap(0, size, PROT_READ | PROT_WRITE,
24 fprintf(stderr,"cannot map %s (@%08x,%08x)\n", fn, base, size);
/frameworks/base/core/java/com/google/android/mms/util/
H A DAbstractCache.java42 if (mCacheMap.size() >= MAX_CACHED_ITEMS) {
46 Log.v(TAG, "Failed! size limitation reached.");
57 Log.v(TAG, key + " cached, " + mCacheMap.size() + " items total.");
90 Log.v(TAG, mCacheMap.size() + " items cached.");
98 Log.v(TAG, "Purging cache, " + mCacheMap.size()
104 public int size() { method in class:AbstractCache
105 return mCacheMap.size();
/frameworks/base/include/gui/
H A DSensorChannel.h40 ssize_t write(void const* vaddr, size_t size);
41 ssize_t read(void* vaddr, size_t size);
/frameworks/base/media/libstagefright/include/
H A DThrottledSource.h33 virtual ssize_t readAt(off64_t offset, void *data, size_t size);
35 virtual status_t getSize(off64_t *size);
/frameworks/base/services/camera/libcameraservice/
H A DFakeCamera.h52 void drawSquare(uint16_t *buffer, int x, int y, int size, int color, int shadow);
53 void drawCheckerboard(uint16_t *buffer, int size);

Completed in 1735 milliseconds

1234567891011>>