Home
last modified time | relevance | path

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

12345678910>>...186

/frameworks/native/libs/gui/
DBufferItem.cpp65 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 …]
DHdrMetadata.cpp23 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 …]
/frameworks/rs/tests/java_api/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/native/cmds/installd/tests/
Dinstalld_cache_test.cpp89 static int64_t size(const char* path) { in size() function
197 EXPECT_EQ(2 * kMbInBytes, size("com.example/cache/bar/bar1")); in TEST_F()
198 EXPECT_EQ(2 * kMbInBytes, size("com.example/cache/bar/bar2")); in TEST_F()
207 EXPECT_EQ(0, size("com.example/cache/bar/bar1")); in TEST_F()
208 EXPECT_EQ(0, size("com.example/cache/bar/bar2")); in TEST_F()
270 EXPECT_EQ(kMbInBytes, size("com.example/cache/group/file1")); in TEST_F()
271 EXPECT_EQ(kMbInBytes, size("com.example/cache/group/file2")); in TEST_F()
272 EXPECT_EQ(kMbInBytes, size("com.example/cache/group/dir/file1")); in TEST_F()
273 EXPECT_EQ(kMbInBytes, size("com.example/cache/group/dir/file2")); in TEST_F()
274 EXPECT_EQ(kMbInBytes, size("com.example/cache/group/tomb/file1")); in TEST_F()
[all …]
/frameworks/av/media/mtp/tests/
DMtpFfsHandle_test.cpp128 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/
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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DIntArrayList.java66 private int size; field in IntArrayList
79 private IntArrayList(int[] other, int size) { in IntArrayList() argument
81 this.size = size; in IntArrayList()
93 if (size != other.size) { in equals()
98 for (int i = 0; i < size; i++) { in equals()
110 for (int i = 0; i < size; i++) { in hashCode()
118 if (capacity < size) { in mutableCopyWithCapacity()
121 return new IntArrayList(Arrays.copyOf(array, capacity), size); in mutableCopyWithCapacity()
136 public int size() { in size() method in IntArrayList
137 return size; in size()
[all …]
DDoubleArrayList.java66 private int size; field in DoubleArrayList
79 private DoubleArrayList(double[] other, int size) { in DoubleArrayList() argument
81 this.size = size; in DoubleArrayList()
93 if (size != other.size) { in equals()
98 for (int i = 0; i < size; i++) { in equals()
110 for (int i = 0; i < size; i++) { in hashCode()
119 if (capacity < size) { in mutableCopyWithCapacity()
122 return new DoubleArrayList(Arrays.copyOf(array, capacity), size); in mutableCopyWithCapacity()
137 public int size() { in size() method in DoubleArrayList
138 return size; in size()
[all …]
DFloatArrayList.java66 private int size; field in FloatArrayList
79 private FloatArrayList(float[] other, int size) { in FloatArrayList() argument
81 this.size = size; in FloatArrayList()
93 if (size != other.size) { in equals()
98 for (int i = 0; i < size; i++) { in equals()
110 for (int i = 0; i < size; i++) { in hashCode()
118 if (capacity < size) { in mutableCopyWithCapacity()
121 return new FloatArrayList(Arrays.copyOf(array, capacity), size); in mutableCopyWithCapacity()
136 public int size() { in size() method in FloatArrayList
137 return size; in size()
[all …]
DBooleanArrayList.java66 private int size; field in BooleanArrayList
79 private BooleanArrayList(boolean[] other, int size) { in BooleanArrayList() argument
81 this.size = size; in BooleanArrayList()
93 if (size != other.size) { in equals()
98 for (int i = 0; i < size; i++) { in equals()
110 for (int i = 0; i < size; i++) { in hashCode()
118 if (capacity < size) { in mutableCopyWithCapacity()
121 return new BooleanArrayList(Arrays.copyOf(array, capacity), size); in mutableCopyWithCapacity()
136 public int size() { in size() method in BooleanArrayList
137 return size; in size()
[all …]
DLongArrayList.java66 private int size; field in LongArrayList
79 private LongArrayList(long[] other, int size) { in LongArrayList() argument
81 this.size = size; in LongArrayList()
93 if (size != other.size) { in equals()
98 for (int i = 0; i < size; i++) { in equals()
110 for (int i = 0; i < size; i++) { in hashCode()
118 if (capacity < size) { in mutableCopyWithCapacity()
121 return new LongArrayList(Arrays.copyOf(array, capacity), size); in mutableCopyWithCapacity()
136 public int size() { in size() method in LongArrayList
137 return size; in size()
[all …]
DByteString.java106 byte[] copyFrom(byte[] bytes, int offset, int size); in copyFrom() argument
112 public byte[] copyFrom(byte[] bytes, int offset, int size) { in copyFrom() argument
113 byte[] copy = new byte[size]; in copyFrom()
114 System.arraycopy(bytes, offset, copy, 0, size); in copyFrom()
122 public byte[] copyFrom(byte[] bytes, int offset, int size) { in copyFrom() argument
123 return Arrays.copyOfRange(bytes, offset, offset + size); in copyFrom()
172 private final int limit = size(); in iterator()
221 public abstract int size(); in size() method
229 return size() == 0; in isEmpty()
245 return substring(beginIndex, size()); in substring()
[all …]
/frameworks/base/libs/hwui/tests/common/scenes/
DShapeAnimation.cpp34 [](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/
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.cpp107 const uint8_t *ptr, size_t size, sp<MetaData> *metaData) { in parseAC3SyncFrame() argument
133 ABitReader bits(ptr, size); in parseAC3SyncFrame()
217 const uint8_t *ptr, size_t size, sp<MetaData> *metaData) { in parseEAC3SyncFrame() argument
222 ABitReader bits(ptr, size); in parseEAC3SyncFrame()
293 const uint8_t *ptr, size_t size, unsigned &frameSize, sp<MetaData> *metaData) { in parseAC4SyncFrame() argument
300 ABitReader bits(ptr, size); in parseAC4SyncFrame()
358 static status_t IsSeeminglyValidAC4Header(const uint8_t *ptr, size_t size, unsigned &frameSize) { in IsSeeminglyValidAC4Header() argument
359 return parseAC4SyncFrame(ptr, size, frameSize, NULL); in IsSeeminglyValidAC4Header()
363 const uint8_t *ptr, size_t size, size_t *frameLength) { in IsSeeminglyValidADTSHeader() argument
364 if (size < 7) { in IsSeeminglyValidADTSHeader()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dmap_test_util_impl.h244 EXPECT_EQ(0, message.map_int32_int32().size()); in ExpectClear()
245 EXPECT_EQ(0, message.map_int64_int64().size()); in ExpectClear()
246 EXPECT_EQ(0, message.map_uint32_uint32().size()); in ExpectClear()
247 EXPECT_EQ(0, message.map_uint64_uint64().size()); in ExpectClear()
248 EXPECT_EQ(0, message.map_sint32_sint32().size()); in ExpectClear()
249 EXPECT_EQ(0, message.map_sint64_sint64().size()); in ExpectClear()
250 EXPECT_EQ(0, message.map_fixed32_fixed32().size()); in ExpectClear()
251 EXPECT_EQ(0, message.map_fixed64_fixed64().size()); in ExpectClear()
252 EXPECT_EQ(0, message.map_sfixed32_sfixed32().size()); in ExpectClear()
253 EXPECT_EQ(0, message.map_sfixed64_sfixed64().size()); in ExpectClear()
[all …]
/frameworks/native/libs/gui/bufferqueue/1.0/
DConversion.cpp166 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/
DFileStream_test.cpp35 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/
DItemTable.cpp50 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/
DMemoryDealer.cpp115 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 …]
/frameworks/base/tools/aapt2/util/
DBigBuffer.cpp27 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/
DRDsp.h59 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/
DLifecycle.java98 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/
DBranchingFunCalls.cpp23 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()

12345678910>>...186