Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 2933) sorted by relevance

12345678910>>...118

/frameworks/native/libs/gui/
DBufferItem.cpp49 static void addAligned(size_t& size, T /* value */) { in addAligned() argument
50 size = FlattenableUtils::align<sizeof(T)>(size); in addAligned()
51 size += sizeof(T); in addAligned()
55 size_t size = 0; in getPodSize() local
56 addAligned(size, mCrop); in getPodSize()
57 addAligned(size, mTransform); in getPodSize()
58 addAligned(size, mScalingMode); in getPodSize()
59 addAligned(size, mTimestampLo); in getPodSize()
60 addAligned(size, mTimestampHi); in getPodSize()
61 addAligned(size, mIsAutoTimestamp); in getPodSize()
[all …]
DBitTube.cpp73 size_t size = DEFAULT_SOCKET_BUFFER_SIZE; in init() local
77 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &size, sizeof(size)); in init()
78 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)); in init()
107 ssize_t BitTube::write(void const* vaddr, size_t size) in write() argument
111 len = ::send(mSendFd, vaddr, size, MSG_DONTWAIT | MSG_NOSIGNAL); in write()
118 ssize_t BitTube::read(void* vaddr, size_t size) in read() argument
122 len = ::recv(mReceiveFd, vaddr, size, MSG_DONTWAIT); in read()
149 ssize_t size = tube->write(vaddr, count*objSize); in sendObjects() local
152 LOG_ALWAYS_FATAL_IF((size >= 0) && (size % static_cast<ssize_t>(objSize)), in sendObjects()
154 count, objSize, size); in sendObjects()
[all …]
DSensor.cpp437 status_t Sensor::flatten(void* buffer, size_t size) const { in flatten()
438 if (size < getFlattenedSize()) { in flatten()
442 flattenString8(buffer, size, mName); in flatten()
443 flattenString8(buffer, size, mVendor); in flatten()
444 FlattenableUtils::write(buffer, size, mVersion); in flatten()
445 FlattenableUtils::write(buffer, size, mHandle); in flatten()
446 FlattenableUtils::write(buffer, size, mType); in flatten()
447 FlattenableUtils::write(buffer, size, mMinValue); in flatten()
448 FlattenableUtils::write(buffer, size, mMaxValue); in flatten()
449 FlattenableUtils::write(buffer, size, mResolution); in flatten()
[all …]
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/
Dbugdroid.rs21 int size;
116 float3 p1 = { size * 0.5f, size * 0.5f, size * 0.3f };
117 float3 p2 = { size * 0.5f, size * 0.5f, size * 0.65f };
118 float radius = size * 0.22f;
120 p2.z = size * 0.4f;
123 v -= circle(p1, radius*0.9f, normal, size * 0.05f, 144, img);
127 float3 p1 = { size * (0.5f - armOffset), size * 0.5f, size * 0.4f };
128 float3 p2 = { size * (0.5f - armOffset), size * 0.5f, size * 0.57f };
129 v = max(v, pill(p1, p2, size * 0.09f, 144, img));
132 float3 p1 = { size * (0.5f + armOffset), size * 0.5f, size * 0.4f };
[all …]
/frameworks/compile/mclinker/unittests/
DLEB128Test.cpp44 size_t size; in TEST_F() local
47 size = leb128::encode<uint32_t>(result, 2); in TEST_F()
50 ASSERT_TRUE(size == 1); in TEST_F()
53 size = leb128::encode<uint32_t>(result, 127); in TEST_F()
56 ASSERT_TRUE(size == 1); in TEST_F()
59 size = leb128::encode<uint32_t>(result, 128); in TEST_F()
63 ASSERT_TRUE(size == 2); in TEST_F()
66 size = leb128::encode<uint32_t>(result, 129); in TEST_F()
70 ASSERT_TRUE(size == 2); in TEST_F()
73 size = leb128::encode<uint32_t>(result, 130); in TEST_F()
[all …]
/frameworks/av/media/libstagefright/
DESDS.cpp29 ESDS::ESDS(const void *data, size_t size) in ESDS() argument
30 : mData(new uint8_t[size]), in ESDS()
31 mSize(size), in ESDS()
36 memcpy(mData, data, size); in ESDS()
60 status_t ESDS::getCodecSpecificInfo(const void **data, size_t *size) const { in getCodecSpecificInfo()
66 *size = mDecoderSpecificLength; in getCodecSpecificInfo()
72 size_t offset, size_t size, in skipDescriptorHeader() argument
74 if (size == 0) { in skipDescriptorHeader()
79 --size; in skipDescriptorHeader()
84 if (size == 0) { in skipDescriptorHeader()
[all …]
DAVIExtractor.cpp173 size_t size; in read() local
177 mTrackIndex, mSampleIndex, &offset, &size, &isKey, &timeUs); in read()
188 ssize_t n = mExtractor->mDataSource->readAt(offset, out->data(), size); in read()
190 if (n < (ssize_t)size) { in read()
194 out->set_range(0, size); in read()
240 CHECK(mBuffer == NULL || mBuffer->size() == 0); in append()
246 memmove(mBuffer->base(), mBuffer->data(), mBuffer->size()); in append()
247 mBuffer->setRange(0, mBuffer->size()); in append()
251 || mBuffer->size() + buffer->range_length() > prevCapacity) { in append()
257 memcpy(newBuffer->data(), mBuffer->data(), mBuffer->size()); in append()
[all …]
/frameworks/base/libs/hwui/tests/common/scenes/
DShapeAnimation.cpp37 [](TestCanvas& canvas, float size, const SkPaint& paint) { in createContent()
38 canvas.drawArc(0, 0, size, size, 50, 189, true, paint); in createContent()
40 [](TestCanvas& canvas, float size, const SkPaint& paint) { in createContent()
41 canvas.drawOval(0, 0, size, size, paint); in createContent()
43 [](TestCanvas& canvas, float size, const SkPaint& paint) { in createContent()
45 diamondPath.moveTo(size / 2, 0); in createContent()
46 diamondPath.lineTo(size, size / 2); in createContent()
47 diamondPath.lineTo(size / 2, size); in createContent()
48 diamondPath.lineTo(0, size / 2); in createContent()
52 [](TestCanvas& canvas, float size, const SkPaint& paint) { in createContent()
[all …]
/frameworks/ex/framesequence/jni/
DStream.cpp42 size_t Stream::peek(void* buffer, size_t size) { in peek() argument
44 if (size > peek_remaining) { in peek()
46 mPeekBuffer = new char[size]; in peek()
51 size_t read = doRead(mPeekBuffer + mPeekOffset, size - peek_remaining); in peek()
55 size = min(size, mPeekSize - mPeekOffset); in peek()
56 memcpy(buffer, mPeekBuffer + mPeekOffset, size); in peek()
57 return size; in peek()
60 size_t Stream::read(void* buffer, size_t size) { in read() argument
64 bytes_read = min(size, peek_remaining); in read()
73 size -= bytes_read; in read()
[all …]
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp66 const uint8_t *ptr, size_t size, sp<MetaData> *metaData) { in parseAC3SyncFrame() argument
92 ABitReader bits(ptr, size); in parseAC3SyncFrame()
172 static bool IsSeeminglyValidAC3Header(const uint8_t *ptr, size_t size) { in IsSeeminglyValidAC3Header() argument
173 return parseAC3SyncFrame(ptr, size, NULL) > 0; in IsSeeminglyValidAC3Header()
177 const uint8_t *ptr, size_t size, size_t *frameLength) { in IsSeeminglyValidADTSHeader() argument
178 if (size < 7) { in IsSeeminglyValidADTSHeader()
203 if (frameLengthInHeader > size) { in IsSeeminglyValidADTSHeader()
211 static bool IsSeeminglyValidMPEGAudioHeader(const uint8_t *ptr, size_t size) { in IsSeeminglyValidMPEGAudioHeader() argument
212 if (size < 3) { in IsSeeminglyValidMPEGAudioHeader()
249 const void *data, size_t size, int64_t timeUs) { in appendData() argument
[all …]
/frameworks/native/libs/binder/
DMemoryDealer.cpp115 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size);
129 SimpleBestFitAllocator(size_t size);
132 size_t allocate(size_t size, uint32_t flags = 0);
134 size_t size() const;
143 chunk_t(size_t start, size_t size) in chunk_t()
144 : start(start), size(size), free(1), prev(0), next(0) { in chunk_t()
147 size_t size : 28; member
153 ssize_t alloc(size_t size, uint32_t flags);
168 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) in Allocation() argument
169 : MemoryBase(heap, offset, size), mDealer(dealer) in Allocation()
[all …]
DMemoryHeapBase.cpp44 MemoryHeapBase::MemoryHeapBase(size_t size, uint32_t flags, char const * name) in MemoryHeapBase() argument
49 size = ((size + pagesize-1) & ~(pagesize-1)); in MemoryHeapBase()
50 int fd = ashmem_create_region(name == NULL ? "MemoryHeapBase" : name, size); in MemoryHeapBase()
53 if (mapfd(fd, size) == NO_ERROR) { in MemoryHeapBase()
61 MemoryHeapBase::MemoryHeapBase(const char* device, size_t size, uint32_t flags) in MemoryHeapBase() argument
73 size = ((size + pagesize-1) & ~(pagesize-1)); in MemoryHeapBase()
74 if (mapfd(fd, size) == NO_ERROR) { in MemoryHeapBase()
80 MemoryHeapBase::MemoryHeapBase(int fd, size_t size, uint32_t flags, uint32_t offset) in MemoryHeapBase() argument
85 size = ((size + pagesize-1) & ~(pagesize-1)); in MemoryHeapBase()
86 mapfd(dup(fd), size, offset); in MemoryHeapBase()
[all …]
/frameworks/base/core/java/android/animation/
DAnimatorSet.java186 if (items != null && items.size() > 0) { in playTogether()
224 if (items != null && items.size() > 0) { in playSequentially()
225 if (items.size() == 1) { in playSequentially()
229 for (int i = 0; i < items.size() - 1; ++i) { in playSequentially()
246 int size = mNodes.size(); in getChildAnimations() local
247 for (int i = 0; i < size; i++) { in getChildAnimations()
265 int size = mNodes.size(); in setTarget() local
266 for (int i = 0; i < size; i++) { in setTarget()
283 final int nodeCount = mNodes.size(); in getChangingConfigurations()
358 int size = tmpListeners.size(); in cancel() local
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DStaggeredGrid.java57 public int size; field in StaggeredGrid.Location
59 public Location(int row, int offset, int size) { in Location() argument
62 this.size = size; in Location()
90 return mFirstIndex + mLocations.size() - 1; in getLastIndex()
97 return mLocations.size(); in getSize()
102 if (mLocations.size() == 0) { in getLocation()
110 for (int i = 0, size = mLocations.size(); i < size; i++) { in debugPrint()
142 if (mLocations.size() == 0) { in prependVisbleItemsWithCache()
172 int size = mProvider.createItem(itemIndex, false, mTmpItem); in prependVisbleItemsWithCache() local
173 if (size != loc.size) { in prependVisbleItemsWithCache()
[all …]
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
DSortedListTest.java116 assertEquals("empty", mList.size(), 0); in testEmpty()
123 assertEquals(size(), 1); in testAdd()
128 assertEquals(size(), 2); in testAdd()
134 assertEquals(size(), 3); in testAdd()
145 assertEquals(1, size()); in testAddDuplicate()
146 assertEquals(1, mAdditions.size()); in testAddDuplicate()
147 assertEquals(0, mUpdates.size()); in testAddDuplicate()
154 assertEquals(0, mRemovals.size()); in testRemove()
157 assertEquals(1, mRemovals.size()); in testRemove()
159 assertEquals(0, size()); in testRemove()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/dalvik/system/
DVMRuntime_Delegate.java36 int size = ((minLength & 1) == 0) ? minLength + 1 : minLength; in newUnpaddedArray() local
37 return java.lang.reflect.Array.newInstance(componentType, size); in newUnpaddedArray()
42 int size = dataBytes / 2; in newUnpaddedArray() local
43 return new char[size]; in newUnpaddedArray()
45 int size = ((minLength & 1) == 0) ? minLength + 1 : minLength; in newUnpaddedArray() local
46 return new int[size]; in newUnpaddedArray()
51 int size = dataBytes; in newUnpaddedArray() local
52 return new byte[size]; in newUnpaddedArray()
57 int size = dataBytes; in newUnpaddedArray() local
58 return new boolean[size]; in newUnpaddedArray()
[all …]
/frameworks/native/opengl/tests/gralloc/
Dgralloc.cpp30 void* lamecpy(void* d, void const* s, size_t size) { in lamecpy() argument
33 while (size) { in lamecpy()
35 size--; in lamecpy()
42 size_t size = 128*256*4; in main() local
43 void* temp = malloc(size); in main()
44 void* temp2 = malloc(size); in main()
45 memset(temp, 0, size); in main()
46 memset(temp2, 0, size); in main()
67 memset(vaddr, 0, size); in main()
73 memcpy(temp, temp2, size); in main()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DIntRangeManagerTest.java104 assertEquals("expecting empty configlist", 0, testManager.mConfigList.size()); in testEmptyRangeManager()
122 assertEquals("configlist size", 1, testManager.mConfigList.size()); in testAddSingleChannel()
128 assertEquals("configlist size", 1, testManager.mConfigList.size()); in testAddSingleChannel()
138 assertEquals("configlist size", 1, testManager.mConfigList.size()); in testRemoveSingleChannel()
143 assertEquals("configlist size", 0, testManager.mConfigList.size()); in testRemoveSingleChannel()
148 assertEquals("configlist size", 0, testManager.mConfigList.size()); in testRemoveSingleChannel()
156 assertEquals("configlist size", 0, testManager.mConfigList.size()); in testRemoveBadChannel()
165 assertEquals("configlist size", 1, testManager.mConfigList.size()); in testAddTwoChannels()
171 assertEquals("configlist size", 1, testManager.mConfigList.size()); in testAddTwoChannels()
177 assertEquals("configlist size", 2, testManager.mConfigList.size()); in testAddTwoChannels()
[all …]
/frameworks/av/media/libmedia/
DMidiIoWrapper.cpp27 static int readAt(void *handle, void *buffer, int pos, int size) { in readAt() argument
28 return ((android::MidiIoWrapper*)handle)->readAt(buffer, pos, size); in readAt()
30 static int size(void *handle) { in size() function
31 return ((android::MidiIoWrapper*)handle)->size(); in size()
43 MidiIoWrapper::MidiIoWrapper(int fd, off64_t offset, int64_t size) { in MidiIoWrapper() argument
47 mLength = size; in MidiIoWrapper()
69 int MidiIoWrapper::readAt(void *buffer, int offset, int size) { in readAt() argument
70 ALOGV("readAt(%p, %d, %d)", buffer, offset, size); in readAt()
73 return mDataSource->readAt(offset, buffer, size); in readAt()
80 if (offset + size > mLength) { in readAt()
[all …]
/frameworks/compile/mclinker/lib/Target/
DELFAttributeData.cpp21 size_t size = 0; in ReadTag() local
24 leb128::decode<uint64_t>(pBuf, size)); in ReadTag()
26 if (size > pBufSize) in ReadTag()
29 pBuf += size; in ReadTag()
30 pBufSize -= size; in ReadTag()
40 size_t size = 0; in ReadValue() local
41 uint64_t int_value = leb128::decode<uint64_t>(pBuf, size); in ReadValue()
44 if (size > pBufSize) in ReadValue()
47 pBuf += size; in ReadValue()
48 pBufSize -= size; in ReadValue()
[all …]
/frameworks/av/media/libstagefright/foundation/
DMetaData.cpp99 size_t size; in findCString() local
100 if (!findData(key, &type, &data, &size) || type != TYPE_C_STRING) { in findCString()
112 size_t size; in findInt32() local
113 if (!findData(key, &type, &data, &size) || type != TYPE_INT32) { in findInt32()
117 CHECK_EQ(size, sizeof(*value)); in findInt32()
127 size_t size; in findInt64() local
128 if (!findData(key, &type, &data, &size) || type != TYPE_INT64) { in findInt64()
132 CHECK_EQ(size, sizeof(*value)); in findInt64()
142 size_t size; in findFloat() local
143 if (!findData(key, &type, &data, &size) || type != TYPE_FLOAT) { in findFloat()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DSectionedListAdapter.java56 final int size = mSections.size(); in getCount() local
57 for (int i = 0; i < size; i++) { in getCount()
65 final int size = mSections.size(); in getItem() local
66 for (int i = 0; i < size; i++) { in getItem()
90 final int size = mSections.size(); in getView() local
91 for (int i = 0; i < size; i++) { in getView()
115 final int size = mSections.size(); in isEnabled() local
116 for (int i = 0; i < size; i++) { in isEnabled()
136 final int size = mSections.size(); in getItemViewType() local
137 for (int i = 0; i < size; i++) { in getItemViewType()
[all …]
/frameworks/compile/mclinker/include/mcld/LD/
DELFFileFormat.h43 return (f_pNULLSection != NULL) && (f_pNULLSection->size() != 0); in hasNULLSection()
46 bool hasGOT() const { return (f_pGOT != NULL) && (f_pGOT->size() != 0); } in hasGOT()
48 bool hasPLT() const { return (f_pPLT != NULL) && (f_pPLT->size() != 0); } in hasPLT()
51 return (f_pRelDyn != NULL) && (f_pRelDyn->size() != 0); in hasRelDyn()
55 return (f_pRelPlt != NULL) && (f_pRelPlt->size() != 0); in hasRelPlt()
59 return (f_pRelaDyn != NULL) && (f_pRelaDyn->size() != 0); in hasRelaDyn()
63 return (f_pRelaPlt != NULL) && (f_pRelaPlt->size() != 0); in hasRelaPlt()
68 return (f_pComment != NULL) && (f_pComment->size() != 0); in hasComment()
72 return (f_pData1 != NULL) && (f_pData1->size() != 0); in hasData1()
76 return (f_pDebug != NULL) && (f_pDebug->size() != 0); in hasDebug()
[all …]
/frameworks/av/media/libstagefright/rtsp/
DAAVCAssembler.cpp81 size_t size = buffer->size(); in addNALUnit() local
83 if (size < 1 || (data[0] & 0x80)) { in addNALUnit()
127 ALOGV("addSingleNALUnit of size %zu", buffer->size()); in addSingleNALUnit()
129 hexdump(buffer->data(), buffer->size()); in addSingleNALUnit()
145 size_t size = buffer->size(); in addSingleTimeAggregationPacket() local
147 if (size < 3) { in addSingleTimeAggregationPacket()
153 --size; in addSingleTimeAggregationPacket()
154 while (size >= 2) { in addSingleTimeAggregationPacket()
157 if (size < nalSize + 2) { in addSingleTimeAggregationPacket()
170 size -= 2 + nalSize; in addSingleTimeAggregationPacket()
[all …]
/frameworks/base/tools/aapt2/util/
DBigBuffer.cpp25 void* BigBuffer::nextBlockImpl(size_t size) { in nextBlockImpl() argument
28 if (block.mBlockSize - block.size >= size) { in nextBlockImpl()
29 void* outBuffer = block.buffer.get() + block.size; in nextBlockImpl()
30 block.size += size; in nextBlockImpl()
31 mSize += size; in nextBlockImpl()
36 const size_t actualSize = std::max(mBlockSize, size); in nextBlockImpl()
44 block.size = size; in nextBlockImpl()
48 mSize += size; in nextBlockImpl()

12345678910>>...118