/frameworks/native/libs/gui/ |
D | BufferItem.cpp | 65 static void addAligned(size_t& size, T /* value */) { in addAligned() argument 66 size = FlattenableUtils::align<sizeof(T)>(size); in addAligned() 67 size += sizeof(T); in addAligned() 71 size_t size = 0; in getPodSize() local 72 addAligned(size, mCrop); in getPodSize() 73 addAligned(size, mTransform); in getPodSize() 74 addAligned(size, mScalingMode); in getPodSize() 75 addAligned(size, low32(mTimestamp)); in getPodSize() 76 addAligned(size, high32(mTimestamp)); in getPodSize() 77 addAligned(size, mIsAutoTimestamp); in getPodSize() [all …]
|
D | HdrMetadata.cpp | 23 size_t size = sizeof(validTypes); in getFlattenedSize() local 25 size += sizeof(smpte2086); in getFlattenedSize() 28 size += sizeof(cta8613); in getFlattenedSize() 31 size += sizeof(size_t); in getFlattenedSize() 32 size += hdr10plus.size(); in getFlattenedSize() 34 return size; in getFlattenedSize() 37 status_t HdrMetadata::flatten(void* buffer, size_t size) const { in flatten() 38 if (size < getFlattenedSize()) { in flatten() 42 FlattenableUtils::write(buffer, size, validTypes); in flatten() 44 FlattenableUtils::write(buffer, size, smpte2086); in flatten() [all …]
|
D | BitTube.cpp | 50 size_t size = DEFAULT_SOCKET_BUFFER_SIZE; in init() local 54 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &size, sizeof(size)); in init() 55 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)); in init() 89 ssize_t BitTube::write(void const* vaddr, size_t size) { in write() argument 92 len = ::send(mSendFd, vaddr, size, MSG_DONTWAIT | MSG_NOSIGNAL); in write() 99 ssize_t BitTube::read(void* vaddr, size_t size) { in read() argument 102 len = ::recv(mReceiveFd, vaddr, size, MSG_DONTWAIT); in read() 134 ssize_t size = tube->write(vaddr, count * objSize); in sendObjects() local 137 LOG_ALWAYS_FATAL_IF((size >= 0) && (size % static_cast<ssize_t>(objSize)), in sendObjects() 140 count, objSize, size); in sendObjects() [all …]
|
/frameworks/compile/mclinker/unittests/ |
D | LEB128Test.cpp | 44 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/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | bugdroid.rscript | 21 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/native/cmds/installd/tests/ |
D | installd_cache_test.cpp | 89 static int64_t size(const char* path) { in size() function 196 EXPECT_EQ(2 * kMbInBytes, size("com.example/cache/bar/bar1")); in TEST_F() 197 EXPECT_EQ(2 * kMbInBytes, size("com.example/cache/bar/bar2")); in TEST_F() 206 EXPECT_EQ(0, size("com.example/cache/bar/bar1")); in TEST_F() 207 EXPECT_EQ(0, size("com.example/cache/bar/bar2")); in TEST_F() 269 EXPECT_EQ(kMbInBytes, size("com.example/cache/group/file1")); in TEST_F() 270 EXPECT_EQ(kMbInBytes, size("com.example/cache/group/file2")); in TEST_F() 271 EXPECT_EQ(kMbInBytes, size("com.example/cache/group/dir/file1")); in TEST_F() 272 EXPECT_EQ(kMbInBytes, size("com.example/cache/group/dir/file2")); in TEST_F() 273 EXPECT_EQ(kMbInBytes, size("com.example/cache/group/tomb/file1")); in TEST_F() [all …]
|
/frameworks/av/media/mtp/tests/ |
D | MtpFfsHandle_test.cpp | 128 int size = TEST_PACKET_SIZE * MED_MULT; in TYPED_TEST() local 129 char buf[size + 1]; in TYPED_TEST() 130 buf[size] = '\0'; in TYPED_TEST() 135 EXPECT_EQ(write(this->bulk_out, ss.str().c_str(), size), size); in TYPED_TEST() 136 EXPECT_EQ(this->handle->read(buf, size), size); in TYPED_TEST() 151 int size = TEST_PACKET_SIZE * MED_MULT; in TYPED_TEST() local 152 char buf[size + 1]; in TYPED_TEST() 153 buf[size] = '\0'; in TYPED_TEST() 158 EXPECT_EQ(this->handle->write(ss.str().c_str(), size), size); in TYPED_TEST() 159 EXPECT_EQ(read(this->bulk_in, buf, size), size); in TYPED_TEST() [all …]
|
/frameworks/av/media/libstagefright/ |
D | ESDS.cpp | 29 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 …]
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | ShapeAnimation.cpp | 34 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent() 35 canvas.drawArc(0, 0, size, size, 50, 189, true, paint); in createContent() 37 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent() 38 canvas.drawOval(0, 0, size, size, paint); in createContent() 40 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent() 42 diamondPath.moveTo(size / 2, 0); in createContent() 43 diamondPath.lineTo(size, size / 2); in createContent() 44 diamondPath.lineTo(size / 2, size); in createContent() 45 diamondPath.lineTo(0, size / 2); in createContent() 49 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent() [all …]
|
/frameworks/ex/framesequence/jni/ |
D | Stream.cpp | 42 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/ |
D | ESQueue.cpp | 117 const uint8_t *ptr, size_t size, sp<MetaData> *metaData) { in parseAC3SyncFrame() argument 143 ABitReader bits(ptr, size); in parseAC3SyncFrame() 224 const uint8_t *ptr, size_t size, sp<MetaData> *metaData) { in parseEAC3SyncFrame() argument 229 ABitReader bits(ptr, size); in parseEAC3SyncFrame() 300 const uint8_t *ptr, size_t size, unsigned &frameSize, sp<MetaData> *metaData) { in parseAC4SyncFrame() argument 307 ABitReader bits(ptr, size); in parseAC4SyncFrame() 365 static status_t IsSeeminglyValidAC4Header(const uint8_t *ptr, size_t size, unsigned &frameSize) { in IsSeeminglyValidAC4Header() argument 366 return parseAC4SyncFrame(ptr, size, frameSize, NULL); in IsSeeminglyValidAC4Header() 370 const uint8_t *ptr, size_t size, size_t *frameLength) { in IsSeeminglyValidADTSHeader() argument 371 if (size < 7) { in IsSeeminglyValidADTSHeader() [all …]
|
/frameworks/native/libs/gui/bufferqueue/1.0/ |
D | Conversion.cpp | 166 hidl_vec<uint8_t> inHidlBytes(void const* l, size_t size) { in inHidlBytes() argument 168 t.setToExternal(static_cast<uint8_t*>(const_cast<void*>(l)), size, false); in inHidlBytes() 180 hidl_vec<uint8_t> toHidlBytes(void const* l, size_t size) { in toHidlBytes() argument 182 t.resize(size); in toHidlBytes() 184 std::copy(src, src + size, t.data()); in toHidlBytes() 248 size_t size = numInts * sizeof(int32_t); in convertTo() local 250 status_t status = l->unflatten(constBuffer, size, constFds, numFds); in convertTo() 374 void const*& buffer, size_t& size, int const*& fds, size_t& numFds) { in unflattenFence() argument 375 if (size < 4) { in unflattenFence() 380 FlattenableUtils::read(buffer, size, numFdsInHandle); in unflattenFence() [all …]
|
/frameworks/base/tools/aapt2/io/ |
D | FileStream_test.cpp | 35 ASSERT_THAT(TEMP_FAILURE_RETRY(write(file.fd, input.c_str(), input.size())), Eq(21)); in TEST() 44 size_t size; in TEST() local 45 ASSERT_TRUE(in.Next(&buffer, &size)) << in.GetError(); in TEST() 46 ASSERT_THAT(size, Eq(10u)); in TEST() 49 EXPECT_THAT(StringPiece(reinterpret_cast<const char*>(buffer), size), Eq("this is a ")); in TEST() 51 ASSERT_TRUE(in.Next(&buffer, &size)); in TEST() 52 ASSERT_THAT(size, Eq(10u)); in TEST() 55 EXPECT_THAT(StringPiece(reinterpret_cast<const char*>(buffer), size), Eq("cool strin")); in TEST() 60 ASSERT_TRUE(in.Next(&buffer, &size)); in TEST() 61 ASSERT_THAT(size, Eq(5u)); in TEST() [all …]
|
/frameworks/av/media/extractors/mp4/ |
D | ItemTable.cpp | 50 offset(0), size(0), nextTileIndex(0) {} in ImageItem() 60 if (nextTileIndex >= dimgRefs.size()) { in getNextTileItemId() 76 size_t size; member 88 size_t size; member 114 status_t parseChunks(off64_t offset, size_t size); 174 status_t Box::parseChunks(off64_t offset, size_t size) { in parseChunks() argument 175 off64_t stopOffset = offset + size; in parseChunks() 199 status_t parseFullBoxHeader(off64_t *offset, size_t *size); 206 status_t FullBox::parseFullBoxHeader(off64_t *offset, size_t *size) { in parseFullBoxHeader() argument 207 if (*size < 4) { in parseFullBoxHeader() [all …]
|
/frameworks/native/libs/binder/ |
D | MemoryDealer.cpp | 115 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size); 129 explicit 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(nullptr), next(nullptr) { 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 …]
|
D | MemoryHeapBase.cpp | 43 MemoryHeapBase::MemoryHeapBase(size_t size, uint32_t flags, char const * name) in MemoryHeapBase() argument 48 size = ((size + pagesize-1) & ~(pagesize-1)); in MemoryHeapBase() 49 int fd = ashmem_create_region(name == nullptr ? "MemoryHeapBase" : name, size); in MemoryHeapBase() 52 if (mapfd(fd, size) == NO_ERROR) { in MemoryHeapBase() 60 MemoryHeapBase::MemoryHeapBase(const char* device, size_t size, uint32_t flags) in MemoryHeapBase() argument 72 size = ((size + pagesize-1) & ~(pagesize-1)); in MemoryHeapBase() 73 if (mapfd(fd, size) == NO_ERROR) { in MemoryHeapBase() 79 MemoryHeapBase::MemoryHeapBase(int fd, size_t size, uint32_t flags, off_t offset) in MemoryHeapBase() argument 84 size = ((size + pagesize-1) & ~(pagesize-1)); in MemoryHeapBase() 85 mapfd(fcntl(fd, F_DUPFD_CLOEXEC, 0), size, offset); in MemoryHeapBase() [all …]
|
/frameworks/base/tools/aapt2/util/ |
D | BigBuffer.cpp | 27 void* BigBuffer::NextBlockImpl(size_t size) { in NextBlockImpl() argument 30 if (block.block_size_ - block.size >= size) { in NextBlockImpl() 31 void* out_buffer = block.buffer.get() + block.size; in NextBlockImpl() 32 block.size += size; in NextBlockImpl() 33 size_ += size; in NextBlockImpl() 38 const size_t actual_size = std::max(block_size_, size); in NextBlockImpl() 46 block.size = size; in NextBlockImpl() 50 size_ += size; in NextBlockImpl() 57 if (block.size != block.block_size_) { in NextBlock() 58 void* out_buffer = block.buffer.get() + block.size; in NextBlock() [all …]
|
/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
D | RDsp.h | 59 const size_t size = v.size(); in fillRectangular() local 60 for (size_t i = 0; i < size; i++) { in fillRectangular() 67 const size_t size = v.size(); in fillTriangular() local 77 for (; i < size - overlap; i++) { in fillTriangular() 83 for (; i < size; i++) { in fillTriangular() 84 v[i] = (2.0 * (size - i) - 1) / (2 * overlap); in fillTriangular() 91 const size_t size = v.size(); in fillHamming() local 101 for (; i < size - overlap; i++) { in fillHamming() 107 for (; i < size; i++) { in fillHamming() 108 int k = i - ((int)size - 2 * overlap); in fillHamming() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/ |
D | Lifecycle.java | 98 for (int i = 0, size = mObservers.size(); i < size; i++) { in onAttach() 109 for (int i = 0, size = mObservers.size(); i < size; i++) { in onCreate() 118 for (int i = 0, size = mObservers.size(); i < size; i++) { in onStart() 127 for (int i = 0, size = mObservers.size(); i < size; i++) { in setPreferenceScreen() 136 for (int i = 0, size = mObservers.size(); i < size; i++) { in onResume() 145 for (int i = 0, size = mObservers.size(); i < size; i++) { in onPause() 154 for (int i = 0, size = mObservers.size(); i < size; i++) { in onSaveInstanceState() 163 for (int i = 0, size = mObservers.size(); i < size; i++) { in onStop() 172 for (int i = 0, size = mObservers.size(); i < size; i++) { in onDestroy() 181 for (int i = 0, size = mObservers.size(); i < size; i++) { in onCreateOptionsMenu() [all …]
|
/frameworks/rs/tests/lldb/cpp/BranchingFunCalls/ |
D | BranchingFunCalls.cpp | 23 static const int size = 64; in main() local 30 tb.setX(size); in main() 31 tb.setY(size); in main() 37 int * input = new int[size*size]; in main() 38 for(int i = 0; i < size*size; ++i) { in main() 39 input[i] = i - (size*size / 2); in main() 41 a->copy2DRangeFrom(0, 0, size, size, input); in main() 49 int32_t * output = new int32_t[size*size]; in main() 50 b->copy2DRangeTo(0, 0, size, size, output); in main()
|
/frameworks/native/libs/sensor/ |
D | BitTube.cpp | 71 size_t size = DEFAULT_SOCKET_BUFFER_SIZE; in init() local 75 setsockopt(sockets[0], SOL_SOCKET, SO_SNDBUF, &size, sizeof(size)); in init() 76 setsockopt(sockets[1], SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)); in init() 105 ssize_t BitTube::write(void const* vaddr, size_t size) in write() argument 109 len = ::send(mSendFd, vaddr, size, MSG_DONTWAIT | MSG_NOSIGNAL); in write() 116 ssize_t BitTube::read(void* vaddr, size_t size) in read() argument 120 len = ::recv(mReceiveFd, vaddr, size, MSG_DONTWAIT); in read() 147 ssize_t size = tube->write(vaddr, count*objSize); in sendObjects() local 150 LOG_ALWAYS_FATAL_IF((size >= 0) && (size % static_cast<ssize_t>(objSize)), in sendObjects() 152 count, objSize, size); in sendObjects() [all …]
|
D | Sensor.cpp | 488 status_t Sensor::flatten(void* buffer, size_t size) const { in flatten() 489 if (size < getFlattenedSize()) { in flatten() 493 flattenString8(buffer, size, mName); in flatten() 494 flattenString8(buffer, size, mVendor); in flatten() 495 FlattenableUtils::write(buffer, size, mVersion); in flatten() 496 FlattenableUtils::write(buffer, size, mHandle); in flatten() 497 FlattenableUtils::write(buffer, size, mType); in flatten() 498 FlattenableUtils::write(buffer, size, mMinValue); in flatten() 499 FlattenableUtils::write(buffer, size, mMaxValue); in flatten() 500 FlattenableUtils::write(buffer, size, mResolution); in flatten() [all …]
|
/frameworks/av/media/libmedia/ |
D | MidiIoWrapper.cpp | 28 static int readAt(void *handle, void *buffer, int pos, int size) { in readAt() argument 29 return ((android::MidiIoWrapper*)handle)->readAt(buffer, pos, size); in readAt() 31 static int size(void *handle) { in size() function 32 return ((android::MidiIoWrapper*)handle)->size(); in size() 45 MidiIoWrapper::MidiIoWrapper(int fd, off64_t offset, int64_t size) { in MidiIoWrapper() argument 49 mLength = size; in MidiIoWrapper() 67 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { in readAt() argument 68 return mSource->readAt(mSource->handle, offset, data, size); in readAt() 72 virtual status_t getSize(off64_t *size) { in getSize() argument 73 return mSource->getSize(mSource->handle, size); in getSize() [all …]
|
/frameworks/rs/tests/lldb/jni/BranchingFunCalls/jnibranchingfuncalls/ |
D | jnibranchingfuncalls.cpp | 30 static const int size = 64; in Java_com_android_rs_jnibranchingfuncalls_MainActivity_nativeRS() local 39 tb.setX(size); in Java_com_android_rs_jnibranchingfuncalls_MainActivity_nativeRS() 40 tb.setY(size); in Java_com_android_rs_jnibranchingfuncalls_MainActivity_nativeRS() 46 int * input = new int[size*size]; in Java_com_android_rs_jnibranchingfuncalls_MainActivity_nativeRS() 47 for(int i = 0; i < size*size; ++i) { in Java_com_android_rs_jnibranchingfuncalls_MainActivity_nativeRS() 48 input[i] = i - (size*size / 2); in Java_com_android_rs_jnibranchingfuncalls_MainActivity_nativeRS() 50 a->copy2DRangeFrom(0, 0, size, size, input); in Java_com_android_rs_jnibranchingfuncalls_MainActivity_nativeRS() 58 int32_t * output = new int32_t[size*size]; in Java_com_android_rs_jnibranchingfuncalls_MainActivity_nativeRS() 59 b->copy2DRangeTo(0, 0, size, size, output); in Java_com_android_rs_jnibranchingfuncalls_MainActivity_nativeRS()
|
/frameworks/layoutlib/bridge/src/dalvik/system/ |
D | VMRuntime_Delegate.java | 36 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 …]
|