/frameworks/base/core/java/android/os/ |
H A D | ParcelableParcel.java | 35 int size = src.readInt(); 37 mParcel.appendFrom(src, src.dataPosition(), size); 38 src.setDataPosition(pos + size); 71 public ParcelableParcel[] newArray(int size) { 72 return new ParcelableParcel[size];
|
/frameworks/base/core/java/android/service/gatekeeper/ |
H A D | GateKeeperResponse.java | 61 int size = source.readInt(); 62 if (size > 0) { 63 byte[] payload = new byte[size]; 72 public GateKeeperResponse[] newArray(int size) { 73 return new GateKeeperResponse[size];
|
/frameworks/base/include/androidfw/ |
H A D | ByteBucketArray.h | 27 * Stores a sparsely populated array. Has a fixed size of 256 46 inline size_t size() const { function in class:android::ByteBucketArray 55 if (index >= size()) { 68 ALOG_ASSERT(index < size(), "ByteBucketArray.getOrCreate(index=%u) with size=%u", 69 (uint32_t) index, (uint32_t) size()); 80 if (index >= size()) {
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | value.h | 57 Value MakeBufferValue(const char* data, int size); 58 Value MakeBufferValueNoCopy(const char* data, int size); 59 Value MakeMutableBufferValue(const char* data, int size); 60 Value MakeMutableBufferValueNoCopy(char* data, int size); 68 int SetMutableBufferValue(Value* value, const char* new_data, int size);
|
/frameworks/native/include/binder/ |
H A D | MemoryHeapBase.h | 45 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); 85 status_t init(int fd, void *base, int size, 89 status_t mapfd(int fd, size_t size, uint32_t offset = 0);
|
/frameworks/base/tools/aapt2/ |
H A D | TableFlattener.cpp | 62 mMap->size = sizeof(*mMap) + sizeof(*sourceBlock); 69 (mOut->size() - mMap->size) + sizeof(*mMap) - sizeof(android::ResTable_entry) 84 mOut->size() - sizeof(*outMapEntry))); 94 mOut->size() - sizeof(outMapEntry->value.data))); 97 outMapEntry->value.size = sizeof(outMapEntry->value); 111 mOut->size() - sizeof(outMapEntry->value.data))); 114 outMapEntry->value.size = sizeof(outMapEntry->value); 165 const size_t count = plural.values.size(); 226 mOut->size() [all...] |
/frameworks/av/include/media/ |
H A D | RingBuffer.h | 31 * A RingBuffer class that maintains an array of objects that can grow up to a certain size. 49 iterator(T* ptr, size_t size, size_t pos, size_t ctr); 75 const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr); 146 * this ringbuffer, [0, size), the behavior for this is undefined. 152 * for this ringbuffer, [0, size), the behavior for this is undefined. 157 * Return the current size of this RingBuffer. 159 size_t size() const; 162 * Remove all elements from this RingBuffer and set the size to 0. 177 RingBuffer<T>::iterator::iterator(T* ptr, size_t size, size_t pos, size_t ctr) : argument 178 mPtr{ptr}, mSize{size}, mPo 221 const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr) argument 347 size_t RingBuffer<T>::size() const { function in class:android::RingBuffer [all...] |
/frameworks/compile/mclinker/unittests/ |
H A D | NamePoolTest.cpp | 70 uint64_t size = 0; local 74 name, isDyn, type, desc, binding, size, other, NULL, result1); 82 EXPECT_EQ(size, result1.info->size()); 87 name, isDyn, type, desc, binding, size, other, NULL, result2); 95 EXPECT_EQ(size, result1.info->size()); 107 uint64_t size = 0; local 111 name, isDyn, type, desc, binding, size, other, NULL, result1); 119 EXPECT_EQ(size, result 149 uint64_t size = 0; local 175 uint64_t size = 0; local [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | WaveWriter.h | 49 void Append(const void *data, size_t size) { argument 50 fwrite(data, 1, size, mFile); 51 mTotalBytes += size;
|
/frameworks/av/media/libmedia/ |
H A D | IEffect.cpp | 72 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); 95 size = reply.readInt32(); 96 if (size ! [all...] |
/frameworks/av/media/libstagefright/filters/ |
H A D | ZeroFilter.cpp | 46 for (size_t i = 0; i < srcBuffer->size() / 4; ++i) { 50 memcpy(outBuffer->data(), srcBuffer->data(), srcBuffer->size()); 52 outBuffer->setRange(0, srcBuffer->size());
|
/frameworks/av/media/libstagefright/httplive/ |
H A D | LiveDataSource.h | 35 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/core/java/android/app/backup/ |
H A D | BackupDataInputStream.java | 29 * {@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
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | LocalLog.java | 42 if (mLines.size() >= mMaxLines) { 51 if (mLines.size() <= 0) { 57 for (int i=0; i<mLines.size(); i++) {
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaDataSource.cpp | 71 ssize_t JMediaDataSource::readAt(off64_t offset, size_t size) { argument 77 if (size > kBufferSize) { 78 size = kBufferSize; 83 (jlong)offset, mByteArrayObj, (jint)0, (jint)size); 101 if ((size_t)numread > size) { 107 ALOGV("readAt %lld / %zu => %d.", (long long)offset, size, numread); 112 status_t JMediaDataSource::getSize(off64_t* size) { argument 123 *size = env->CallLongMethod(mMediaDataSourceObj, mGetSizeMethod); 128 // After returning an error, size shouldn't be used by callers. 129 *size [all...] |
/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/ |
H A D | Utils.java | 67 * @param size 70 public static int wrapIndex(int i, int size) { argument 71 int m = i % size; 73 m += size;
|
/frameworks/compile/mclinker/lib/ADT/ |
H A D | StringEntry.cpp | 33 char* data = reinterpret_cast<char*>(malloc(pVal.size() + 1)); 34 ::memcpy(data, pVal.data(), pVal.size()); 35 m_Value = llvm::StringRef(data, pVal.size());
|
/frameworks/compile/mclinker/lib/LD/ |
H A D | MergedStringTable.cpp | 23 offset += it->getKey().size() + 1; 32 ::memcpy(ptr, it->getKey().data(), it->getKey().size()); 33 ptr += it->getKey().size() + 1;
|
/frameworks/compile/mclinker/lib/Script/ |
H A D | OutputFormatCmd.cpp | 36 assert(m_FormatList.size() == 1 || m_FormatList.size() == 3); 37 for (size_t i = 0; i < m_FormatList.size(); ++i) {
|
H A D | ScriptReader.cpp | 46 size_t size = input.memArea()->size(); local 47 llvm::StringRef region = input.memArea()->request(input.fileOffset(), size);
|
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/ |
H A D | StaggeredGridDefaultTest.java | 36 8, mStaggeredGrid.mLocations.size()); 40 9, mStaggeredGrid.mLocations.size()); 52 9, mStaggeredGrid.mLocations.size());
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | AString.cpp | 46 AString::AString(const char *s, size_t size) argument 50 setTo(s, size); 64 setTo(from, 0, from.size()); 80 setTo(from, 0, from.size()); 86 size_t AString::size() const { function in class:android::AString 102 void AString::setTo(const char *s, size_t size) { argument 104 append(s, size); 177 void AString::append(const char *s, size_t size) { argument 180 if (mSize + size + 1 > mAllocSize) { 181 mAllocSize = (mAllocSize + size 278 insert(const char *from, size_t size, size_t insertionPos) argument 356 size_t size = static_cast<size_t>(parcel.readInt32()); local [all...] |
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | JpegProcessor.cpp | 75 // Find out buffer size for JPEG 78 ALOGE("%s: Camera %d: Jpeg buffer size (%zu) is invalid ", 94 // Since ashmem heaps are rounded up to page size, don't reallocate if 95 // the capture heap isn't exactly the same size as the required JPEG buffer 249 // Find size of JPEG image 251 if (jpegSize == 0) { // failed to find size, default to whole buffer 337 // Return the size of the JPEG, 0 indicates failure 339 size_t size; local 345 size = blob->jpeg_size; 346 if (size > [all...] |
/frameworks/opt/telephony/src/java/com/google/android/mms/util/ |
H A D | AbstractCache.java | 42 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/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ArrayObjectAdapter.java | 50 public int size() { method in class:ArrayObjectAdapter 51 return mItems.size(); 88 add(mItems.size(), item); 93 * If the index is >= {@link #size} an exception will be thrown. 105 * given index. If the index is >= {@link #size} an exception will be thrown. 111 int itemsCount = items.size(); 155 int itemsToRemove = Math.min(count, mItems.size() - position); 171 int itemCount = mItems.size();
|