Searched refs:size (Results 101 - 125 of 5695) sorted by relevance

1234567891011>>

/frameworks/native/libs/sensor/
H A DSensor.cpp473 status_t Sensor::flatten(void* buffer, size_t size) const {
474 if (size < getFlattenedSize()) {
478 flattenString8(buffer, size, mName);
479 flattenString8(buffer, size, mVendor);
480 FlattenableUtils::write(buffer, size, mVersion);
481 FlattenableUtils::write(buffer, size, mHandle);
482 FlattenableUtils::write(buffer, size, mType);
483 FlattenableUtils::write(buffer, size, mMinValue);
484 FlattenableUtils::write(buffer, size, mMaxValue);
485 FlattenableUtils::write(buffer, size, mResolutio
511 unflatten(void const* buffer, size_t size) argument
560 flattenString8(void*& buffer, size_t& size, const String8& string8) argument
568 unflattenString8(void const*& buffer, size_t& size, String8& outputString8) argument
[all...]
/frameworks/base/core/java/android/service/carrier/
H A DMessagePdu.java65 dest.writeInt(mPduList.size());
79 int size = source.readInt();
81 if (size == NULL_LENGTH) {
84 pduList = new ArrayList<>(size);
85 for (int i = 0; i < size; i++) {
93 public MessagePdu[] newArray(int size) {
94 return new MessagePdu[size];
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
H A DShadowBackupDataOutput.java63 final int size;
66 size = byteStream.size();
69 return size;
81 public int writeEntityData(byte[] data, int size) throws IOException { argument
82 mOutput.write(data, 0, size);
84 return size;
/frameworks/minikin/tests/unittest/
H A DLocaleListTest.cpp34 EXPECT_EQ(1U, getLocaleList(langTag).size());
38 EXPECT_EQ(2U, getLocaleList(langTag).size());
43 EXPECT_EQ(2U, getLocaleList(langTag).size());
47 EXPECT_EQ(0U, getLocaleList("").size());
52 EXPECT_EQ(1U, getLocaleList(langTag).size());
56 EXPECT_EQ(1U, getLocaleList(langTag).size());
60 EXPECT_EQ(0U, getLocaleList(langTag).size());
/frameworks/rs/tests/lldb/jni/DebugWaitAttach/jnidebugwaitattach/
H A Djnidebugwaitattach.cpp30 static const int size = 8; local
39 tb.setX(size);
40 tb.setY(size);
49 uint32_t * output = new uint32_t[size*size];
50 b->copy2DRangeTo(0, 0, size, size, output);
/frameworks/rs/tests/lldb/jni/InfiniteLoop/jniinfiniteloop/
H A Djniinfiniteloop.cpp31 static const int size = 64; local
40 tb.setX(size);
41 tb.setY(size);
58 uint32_t * output = new uint32_t[size*size];
59 b->copy2DRangeTo(0, 0, size, size, output);
/frameworks/rs/tests/lldb/jni/MultipleRSFiles/jnimultiplersfiles/
H A Djnimultiplersfiles.cpp31 static const int size = 64; local
40 tb.setX(size);
41 tb.setY(size);
52 uint32_t * output = new uint32_t[size*size];
53 b->copy2DRangeTo(0, 0, size, size, output);
/frameworks/av/media/libstagefright/bqhelper/
H A DConversion.cpp162 * \param[in] size The size of the buffer.
166 hidl_vec<uint8_t> inHidlBytes(void const* l, size_t size) { argument
168 t.setToExternal(static_cast<uint8_t*>(const_cast<void*>(l)), size, false);
176 * \param[in] size The size of the buffer.
180 hidl_vec<uint8_t> toHidlBytes(void const* l, size_t size) { argument
182 t.resize(size);
184 std::copy(src, src + size, t.data());
248 size_t size local
373 unflattenFence(hidl_handle* fence, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
416 flattenFence(hidl_handle const& fence, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
462 size_t size = baseSize; local
524 size_t size = baseSize; local
595 flatten(HGraphicBufferProducer::FenceTimeSnapshot const& t, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
634 unflatten( HGraphicBufferProducer::FenceTimeSnapshot* t, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
731 unflatten(HGraphicBufferProducer::FrameEventsDelta* t, std::vector<native_handle_t*>* nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
800 flatten(HGraphicBufferProducer::FrameEventsDelta const& t, void*& buffer, size_t& size, int*& fds, size_t numFds) argument
853 size_t size = 4 + // mDeltas.size() local
892 unflatten( HGraphicBufferProducer::FrameEventHistoryDelta* t, std::vector<std::vector<native_handle_t*> >* nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
933 flatten( HGraphicBufferProducer::FrameEventHistoryDelta const& t, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
988 size_t size = baseSize; local
1034 size_t size = baseSize; local
1072 unflatten(Region* t, void const*& buffer, size_t& size) argument
1111 flatten(Region const& t, void*& buffer, size_t& size) argument
1148 size_t size = baseSize; local
1178 size_t size = baseSize; local
1252 flatten(HGraphicBufferProducer::QueueBufferInput const& t, native_handle_t** nh, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
1303 unflatten( HGraphicBufferProducer::QueueBufferInput* t, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
1374 size_t size = baseSize; local
1420 size_t size = baseSize; local
[all...]
/frameworks/av/include/media/
H A DMidiIoWrapper.h29 explicit MidiIoWrapper(int fd, off64_t offset, int64_t size);
34 int readAt(void *buffer, int offset, int size);
35 int size();
/frameworks/av/media/libaudioclient/
H A DAudioPolicy.cpp73 size_t size = (size_t)parcel->readInt32(); local
74 if (size > MAX_CRITERIA_PER_MIX) {
75 size = MAX_CRITERIA_PER_MIX;
77 for (size_t i = 0; i < size; i++) {
96 size_t size = mCriteria.size(); local
97 if (size > MAX_CRITERIA_PER_MIX) {
98 size = MAX_CRITERIA_PER_MIX;
101 parcel->writeInt32(size);
102 size_t finalSize = size;
[all...]
/frameworks/av/media/libmedia/include/media/
H A DMidiIoWrapper.h29 explicit MidiIoWrapper(int fd, off64_t offset, int64_t size);
34 int readAt(void *buffer, int offset, int size);
35 int size();
/frameworks/base/core/java/android/util/apk/
H A DByteBufferDataSource.java40 public long size() { method in class:ByteBufferDataSource
45 public void feedIntoDataDigester(DataDigester md, long offset, int size) argument
59 mBuf.limit((int) offset + size);
/frameworks/base/core/jni/android/graphics/
H A DUtils.cpp84 size_t AssetStreamAdaptor::read(void* buffer, size_t size) { argument
88 if (0 == size) {
99 off64_t newOffset = fAsset->seek(size, SEEK_CUR);
101 SkDebugf("---- fAsset->seek(%d) failed\n", size);
106 amount = fAsset->read(buffer, size);
126 const off64_t size = asset->getLength(); local
127 if (size <= 0) {
128 SkDebugf("---- copyAsset: asset->getLength() returned %d\n", size);
132 sk_sp<SkData> data(SkData::MakeUninitialized(size));
133 const off64_t len = asset->read(data->writable_data(), size);
[all...]
/frameworks/base/media/mca/filterfw/jni/
H A Djni_native_buffer.h24 * Given a Java NativeBuffer instance, get access to the underlying C pointer and its size. The
25 * size argument may be NULL, in which case the object is not queried for its size.
27 char* GetJBufferData(JNIEnv* env, jobject buffer, int* size);
30 * Attach a given C data buffer and its size to a given allocated Java NativeBuffer instance. After
35 bool AttachDataToJBuffer(JNIEnv* env, jobject buffer, char* data, int size);
43 Java_android_filterfw_core_NativeBuffer_allocate(JNIEnv* env, jobject thiz, jint size);
/frameworks/base/media/mca/filterfw/native/core/
H A Dnative_frame.h30 explicit NativeFrame(int size);
34 // Set the frame data and size in bytes. The NativeFrame object takes ownership of the data.
36 bool SetData(uint8_t* data, int size);
38 // Write the specified data of the given size to the frame at the specified offset. The
40 bool WriteData(const uint8_t* data, int offset, int size);
52 // Resize the frame. You can only resize to a size that fits within the frame's capacity.
56 // Returns the size of the frame in bytes.
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
H A Darray_wrapper.h32 ArrayWrapper(pointer buffer, size_type capacity, size_type size) argument
35 end_(capacity < size ? capacity : size) {}
37 ArrayWrapper(pointer buffer, size_type size) argument
38 : ArrayWrapper(buffer, size, size) {}
79 size_type size() const { return end_; } function in class:android::pdx::rpc::ArrayWrapper
83 // Moves the end marker to |size|, clamping the end marker to the max capacity
84 // of the underlying array. This method does not change the size of the
86 void resize(size_type size) { argument
103 WrapArray(T* buffer, SizeType size) argument
[all...]
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DInfoStoreTrojan.java30 final int size = store.mLayoutHolderMap.size();
31 for (int i = 0; i < size; i ++) {
/frameworks/av/media/libstagefright/httplive/
H A DLiveDataSource.cpp54 return mBufferQueue.size();
58 off64_t offset, void *data, size_t size) {
71 totalAvailable += buffer->size();
73 if (totalAvailable >= size) {
78 if (totalAvailable < size) {
82 return readAt_l(offset, data, size);
85 ssize_t LiveDataSource::readAt(off64_t offset, void *data, size_t size) { argument
87 return readAt_l(offset, data, size);
90 ssize_t LiveDataSource::readAt_l(off64_t offset, void *data, size_t size) { argument
98 while (sizeDone < size) {
57 readAtNonBlocking( off64_t offset, void *data, size_t size) argument
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
H A DRectangle.java38 public Rectangle(Point origin, Point size) { argument
40 origin.plus(size.x, 0.0f),
41 origin.plus(0.0f, size.y),
42 origin.plus(size.x, size.y));
45 public static Rectangle fromRotatedRect(Point center, Point size, float rotation) { argument
46 Point p0 = new Point(center.x - size.x/2f, center.y - size.y/2f);
47 Point p1 = new Point(center.x + size.x/2f, center.y - size
60 fromCenterVerticalAxis(Point center, Point vAxis, Point size) argument
[all...]
/frameworks/support/coordinatorlayout/src/main/java/androidx/coordinatorlayout/widget/
H A DDirectedAcyclicGraph.java110 for (int i = 0, size = mGraph.size(); i < size; i++) {
130 for (int i = 0, size = mGraph.size(); i < size; i++) {
143 for (int i = 0, size = mGraph.size(); i < size; i++) {
166 for (int i = 0, size
199 int size() { method in class:DirectedAcyclicGraph
[all...]
/frameworks/av/media/libmediaextractor/
H A DMetaDataBase.cpp42 void setData(uint32_t type, const void *data, size_t size);
43 void getData(uint32_t *type, const void **data, size_t *size) const;
60 void *allocateStorage(size_t size);
156 size_t size; local
157 if (!findData(key, &type, &data, &size) || type != TYPE_C_STRING) {
169 size_t size; local
170 if (!findData(key, &type, &data, &size) || type != TYPE_INT32) {
174 CHECK_EQ(size, sizeof(*value));
184 size_t size; local
185 if (!findData(key, &type, &data, &size) || typ
199 size_t size; local
214 size_t size; local
232 size_t size; local
248 setData( uint32_t key, uint32_t type, const void *data, size_t size) argument
331 setData( uint32_t type, const void *data, size_t size) argument
350 allocateStorage(size_t size) argument
464 size_t size; local
503 uint32_t size; local
[all...]
/frameworks/compile/mclinker/include/mcld/LD/
H A DELFFileFormat.h43 return (f_pNULLSection != NULL) && (f_pNULLSection->size() != 0);
46 bool hasGOT() const { return (f_pGOT != NULL) && (f_pGOT->size() != 0); }
48 bool hasPLT() const { return (f_pPLT != NULL) && (f_pPLT->size() != 0); }
51 return (f_pRelDyn != NULL) && (f_pRelDyn->size() != 0);
55 return (f_pRelPlt != NULL) && (f_pRelPlt->size() != 0);
59 return (f_pRelaDyn != NULL) && (f_pRelaDyn->size() != 0);
63 return (f_pRelaPlt != NULL) && (f_pRelaPlt->size() != 0);
68 return (f_pComment != NULL) && (f_pComment->size() != 0);
72 return (f_pData1 != NULL) && (f_pData1->size() != 0);
76 return (f_pDebug != NULL) && (f_pDebug->size() !
[all...]
/frameworks/av/include/media/stagefright/foundation/
H A Dhexdump.h28 const void *_data, size_t size,
/frameworks/av/media/libstagefright/
H A DCallbackDataSource.cpp57 ssize_t CallbackDataSource::readAt(off64_t offset, void* data, size_t size) { argument
62 // IDataSource can only read up to mMemory->size() bytes at a time, but this
65 size_t numLeft = size;
66 const size_t bufferSize = mMemory->size();
92 status_t CallbackDataSource::getSize(off64_t *size) { argument
93 status_t err = mIDataSource->getSize(size);
97 if (*size < 0) {
98 // IDataSource will set size to -1 to indicate unknown size, but
133 ssize_t TinyCacheSource::readAt(off64_t offset, void* data, size_t size) { argument
185 getSize(off64_t *size) argument
[all...]
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
H A Dhexdump.h28 const void *_data, size_t size,

Completed in 3425 milliseconds

1234567891011>>