/frameworks/base/include/private/media/ |
D | VideoFrame.h | 32 MediaAlbumArt(): mSize(0), mData(0) {} in MediaAlbumArt() 35 mSize = 0; in MediaAlbumArt() 42 mSize = ftell(in); // Allocating buffer of size equals to the external file size. in MediaAlbumArt() 43 if (mSize == 0 || (mData = new uint8_t[mSize]) == NULL) { in MediaAlbumArt() 45 if (mSize != 0) { in MediaAlbumArt() 46 mSize = 0; in MediaAlbumArt() 51 if (fread(mData, 1, mSize, in) != mSize) { // Read failed. in MediaAlbumArt() 54 mSize = 0; in MediaAlbumArt() 61 mSize = copy.mSize; in MediaAlbumArt() 63 if (mSize > 0 && copy.mData != NULL) { in MediaAlbumArt() [all …]
|
/frameworks/base/core/java/android/util/ |
D | SparseIntArray.java | 44 mSize = 0; in SparseIntArray() 60 int i = binarySearch(mKeys, 0, mSize, key); in get() 73 int i = binarySearch(mKeys, 0, mSize, key); in delete() 84 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt() 85 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1)); in removeAt() 86 mSize--; in removeAt() 95 int i = binarySearch(mKeys, 0, mSize, key); in put() 102 if (mSize >= mKeys.length) { in put() 103 int n = ArrayUtils.idealIntArraySize(mSize + 1); in put() 116 if (mSize - i != 0) { in put() [all …]
|
D | SparseBooleanArray.java | 45 mSize = 0; in SparseBooleanArray() 61 int i = binarySearch(mKeys, 0, mSize, key); in get() 74 int i = binarySearch(mKeys, 0, mSize, key); in delete() 77 System.arraycopy(mKeys, i + 1, mKeys, i, mSize - (i + 1)); in delete() 78 System.arraycopy(mValues, i + 1, mValues, i, mSize - (i + 1)); in delete() 79 mSize--; in delete() 89 int i = binarySearch(mKeys, 0, mSize, key); in put() 96 if (mSize >= mKeys.length) { in put() 97 int n = ArrayUtils.idealIntArraySize(mSize + 1); in put() 110 if (mSize - i != 0) { in put() [all …]
|
D | SparseArray.java | 47 mSize = 0; in SparseArray() 63 int i = binarySearch(mKeys, 0, mSize, key); in get() 76 int i = binarySearch(mKeys, 0, mSize, key); in delete() 107 int n = mSize; in gc() 126 mSize = o; in gc() 137 int i = binarySearch(mKeys, 0, mSize, key); in put() 144 if (i < mSize && mValues[i] == DELETED) { in put() 150 if (mGarbage && mSize >= mKeys.length) { in put() 154 i = ~binarySearch(mKeys, 0, mSize, key); in put() 157 if (mSize >= mKeys.length) { in put() [all …]
|
D | LongSparseArray.java | 49 mSize = 0; in LongSparseArray() 87 int i = binarySearch(mKeys, 0, mSize, key); in get() 100 int i = binarySearch(mKeys, 0, mSize, key); in delete() 120 int n = mSize; in gc() 139 mSize = o; in gc() 150 int i = binarySearch(mKeys, 0, mSize, key); in put() 157 if (i < mSize && mValues[i] == DELETED) { in put() 163 if (mGarbage && mSize >= mKeys.length) { in put() 167 i = ~binarySearch(mKeys, 0, mSize, key); in put() 170 if (mSize >= mKeys.length) { in put() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | SparseWeakArray.java | 65 mSize = 0; in SparseWeakArray() 81 int i = binarySearch(mKeys, 0, mSize, key); in get() 94 int i = binarySearch(mKeys, 0, mSize, key); in delete() 122 int n = mSize; in gc() 143 mSize = o; in gc() 145 int newSize = ArrayUtils.idealIntArraySize(mSize); in gc() 164 int i = binarySearch(mKeys, 0, mSize, key); in put() 171 if (i < mSize && (mValues[i] == DELETED || mValues[i].get() == null)) { in put() 177 if (mSize >= mKeys.length && (mGarbage || hasReclaimedRefs())) { in put() 181 i = ~binarySearch(mKeys, 0, mSize, key); in put() [all …]
|
/frameworks/base/media/libstagefright/foundation/ |
D | AString.cpp | 33 mSize(0), in AString() 39 mSize(0), in AString() 46 mSize(0), in AString() 53 mSize(0), in AString() 60 mSize(0), in AString() 78 return mSize; in size() 86 return mSize == 0; in empty() 112 mSize = 0; in clear() 118 for (size_t i = 0; i < mSize; ++i) { in hash() 126 return mSize == other.mSize && !memcmp(mData, other.mData, mSize); in operator ==() [all …]
|
D | ABitReader.cpp | 25 mSize(size), in ABitReader() 31 CHECK_GT(mSize, 0u); in fillReservoir() 35 for (i = 0; mSize > 0 && i < 4; ++i) { in fillReservoir() 39 --mSize; in fillReservoir() 89 return mSize * 8 + mNumBitsLeft; in numBitsLeft()
|
/frameworks/base/core/java/android/text/style/ |
D | AbsoluteSizeSpan.java | 26 private final int mSize; field in AbsoluteSizeSpan 33 mSize = size; in AbsoluteSizeSpan() 42 mSize = size; in AbsoluteSizeSpan() 47 mSize = src.readInt(); in AbsoluteSizeSpan() 60 dest.writeInt(mSize); in writeToParcel() 65 return mSize; in getSize() 75 ds.setTextSize(mSize * ds.density); in updateDrawState() 77 ds.setTextSize(mSize); in updateDrawState() 84 ds.setTextSize(mSize * ds.density); in updateMeasureState() 86 ds.setTextSize(mSize); in updateMeasureState()
|
/frameworks/base/media/libstagefright/id3/ |
D | ID3.cpp | 36 mSize(0), in ID3() 142 mSize = size; in parseV2() 144 if (source->readAt(sizeof(header), mData, mSize) != (ssize_t)mSize) { in parseV2() 168 if (mSize < 4) { in parseV2() 177 if (extendedHeaderSize > mSize) { in parseV2() 193 if (mFirstFrameOffset + paddingSize > mSize) { in parseV2() 200 mSize -= paddingSize; in parseV2() 211 if (mSize < 4) { in parseV2() 226 if (ext_size < 6 || ext_size > mSize) { in parseV2() 249 for (size_t i = 0; i + 1 < mSize; ++i) { in removeUnsynchronization() [all …]
|
/frameworks/base/core/java/android/nfc/tech/ |
D | MifareClassic.java | 119 private int mSize; field in MifareClassic 151 mSize = SIZE_1K; in MifareClassic() 155 mSize = SIZE_MINI; in MifareClassic() 159 mSize = SIZE_2K; in MifareClassic() 164 mSize = SIZE_4K; in MifareClassic() 169 mSize = SIZE_4K; in MifareClassic() 173 mSize = SIZE_1K; in MifareClassic() 178 mSize = SIZE_4K; in MifareClassic() 183 mSize = SIZE_1K; in MifareClassic() 189 mSize = SIZE_4K; in MifareClassic() [all …]
|
/frameworks/base/media/libstagefright/ |
D | MediaBuffer.cpp | 43 mSize(size), in MediaBuffer() 56 mSize(size), in MediaBuffer() 99 return mSize; in size() 111 if (offset + length > mSize) { in set_range() 112 LOGE("offset = %d, length = %d, mSize = %d", offset, length, mSize); in set_range() 114 CHECK(offset + length <= mSize); in set_range() 126 set_range(0, mSize); in reset() 161 MediaBuffer *buffer = new MediaBuffer(mData, mSize); in clone()
|
D | MetaData.cpp | 182 mSize(0) { in typed_data() 191 mSize(0) { in typed_data() 192 allocateStorage(from.mSize); in typed_data() 193 memcpy(storage(), from.storage(), mSize); in typed_data() 201 allocateStorage(from.mSize); in operator =() 202 memcpy(storage(), from.storage(), mSize); in operator =() 226 *size = mSize; in getData() 231 mSize = size; in allocateStorage() 237 u.ext_data = malloc(mSize); in allocateStorage() 247 mSize = 0; in freeStorage()
|
D | NuCachedSource2.cpp | 35 size_t mSize; member 96 page->mSize = 0; in acquirePage() 102 page->mSize = 0; in releasePage() 107 mTotalSize += page->mSize; in appendPage() 119 if (maxBytes < page->mSize) { in releaseFromStart() 125 maxBytes -= page->mSize; in releaseFromStart() 126 bytesReleased += page->mSize; in releaseFromStart() 142 while (from >= offset + (*it)->mSize) { in copy() 143 offset += (*it)->mSize; in copy() 148 size_t avail = (*it)->mSize - delta; in copy() [all …]
|
D | JPEGSource.cpp | 58 mSize(0), in JPEGSource() 63 CHECK(mSource->getSize(&mSize) == OK); in JPEGSource() 78 mGroup->add_buffer(new MediaBuffer(mSize)); in start() 105 meta->setInt32(kKeyMaxInputSize, mSize); in getFormat() 123 ssize_t n = mSource->readAt(mOffset, buffer->data(), mSize - mOffset); in read()
|
/frameworks/base/libs/binder/ |
D | MemoryHeapBase.cpp | 44 : mFD(-1), mSize(0), mBase(MAP_FAILED), in MemoryHeapBase() 50 : mFD(-1), mSize(0), mBase(MAP_FAILED), mFlags(flags), in MemoryHeapBase() 67 : mFD(-1), mSize(0), mBase(MAP_FAILED), mFlags(flags), in MemoryHeapBase() 86 : mFD(-1), mSize(0), mBase(MAP_FAILED), mFlags(flags), in MemoryHeapBase() 101 mSize = size; in init() 143 mSize = size; in mapfd() 158 munmap(mBase, mSize); in dispose() 161 mSize = 0; in dispose() 175 return mSize; in getSize()
|
D | IMemory.cpp | 108 mutable size_t mSize; member in android::BpMemoryHeap 130 mutable size_t mSize; member in android::BpMemory 168 : BpInterface<IMemory>(impl), mOffset(0), mSize(0) in BpMemory() 189 mSize = s; in getMemory() 195 if (size) *size = mSize; in getMemory() 232 mHeapId(-1), mBase(MAP_FAILED), mSize(0), mFlags(0), mRealHeap(false) in BpMemoryHeap() 246 binder.get(), this, mSize, mHeapId); in ~BpMemoryHeap() 252 munmap(mBase, mSize); in ~BpMemoryHeap() 272 mSize = heap->mSize; in assertMapped() 318 mSize = size; in assertReallyMapped() [all …]
|
D | MemoryHeapPmem.cpp | 62 size_t mSize; member in android::SubRegionMemory 68 : MemoryHeapPmem::MemoryPmem(heap), mSize(size), mOffset(offset) in SubRegionMemory() 92 if (size) *size = mSize; in getMemory() 111 if (mSize != 0) { in revoke() 116 sub.len = mSize; in revoke() 121 mSize = 0; in revoke()
|
D | MemoryBase.cpp | 30 : mSize(size), mOffset(offset), mHeap(heap) in MemoryBase() 37 if (size) *size = mSize; in getMemory()
|
/frameworks/base/core/jni/ |
D | CursorWindow.cpp | 52 mSize = size; in setMemory() 55 …ize = %d, mData = %p", mFreeOffset, mHeader->numRows, mHeader->numColumns, mSize, mMaxSize, mData); in setMemory() 71 mSize = mMaxSize; in initBuffer() 75 …er: mFreeOffset = %d, mSize = %d, mMaxSize = %d, mData = %p", mFreeOffset, mSize, mMaxSize, mData); in initBuffer() 103 int32_t freeSpace = mSize - mFreeOffset; in freeSpace() 149 …LOGE("need to grow: mSize = %d, size = %d, freeSpace() = %d, numRows = %d", mSize, size, freeSpace… in alloc() 157 int allocated = mSize - freeSpace(); in alloc() 158 int newSize = mSize + WINDOW_ALLOCATION_SIZE; in alloc() 167 mSize = newSize; in alloc() 233 if (rowSlot->offset == 0 || rowSlot->offset >= mSize) { in getFieldSlotWithCheck() [all …]
|
/frameworks/base/media/libstagefright/rtsp/ |
D | VideoSource.h | 35 mSize((width * height * 3) / 2) { in VideoSource() 36 mGroup.add_buffer(new MediaBuffer(mSize)); in VideoSource() 71 memset((*buffer)->data(), x, mSize); in read() 72 (*buffer)->set_range(0, mSize); in read() 89 size_t mSize; variable
|
/frameworks/base/libs/utils/ |
D | SharedBuffer.cpp | 32 sb->mSize = size; in alloc() 50 SharedBuffer* sb = alloc(mSize); in edit() 62 if (buf->mSize == newSize) return buf; in editResize() 65 buf->mSize = newSize; in editResize() 71 const size_t mySize = mSize; in editResize()
|
/frameworks/base/media/libmediaplayerservice/ |
D | MetadataRetrieverClient.cpp | 199 size_t size = sizeof(VideoFrame) + frame->mSize; in getFrameAtTime() 217 frameCopy->mSize = frame->mSize; in getFrameAtTime() 221 memcpy(frameCopy->mData, frame->mData, frame->mSize); in getFrameAtTime() 240 size_t size = sizeof(MediaAlbumArt) + albumArt->mSize; in extractAlbumArt() 254 albumArtCopy->mSize = albumArt->mSize; in extractAlbumArt() 256 memcpy(albumArtCopy->mData, albumArt->mData, albumArt->mSize); in extractAlbumArt()
|
/frameworks/base/opengl/libagl/ |
D | TextureObjectManager.cpp | 28 : mSize(0) in EGLTextureObject() 36 if (mSize && surface.data) in ~EGLTextureObject() 124 if (mSize && surface.data) { in setSurface() 141 mSize = 0; // we don't own this surface in setSurface() 169 if (size!=mSize || !surface.data) { in reallocate() 170 if (mSize && surface.data) { in reallocate() 175 mSize = 0; in reallocate() 179 mSize = size; in reallocate()
|
/frameworks/base/include/utils/ |
D | SharedBuffer.h | 101 size_t mSize; variable 120 return mSize; in size() 135 return (((const SharedBuffer*)data)-1)->mSize; in sizeFromData()
|