Searched refs:size (Results 151 - 175 of 4916) sorted by relevance

1234567891011>>

/frameworks/av/media/libstagefright/rtsp/
H A DAAVCAssembler.cpp81 size_t size = buffer->size(); local
83 if (size < 1 || (data[0] & 0x80)) {
127 ALOGV("addSingleNALUnit of size %zu", buffer->size());
129 hexdump(buffer->data(), buffer->size());
145 size_t size = buffer->size(); local
147 if (size < 3) {
153 --size;
186 size_t size = buffer->size(); local
233 size_t size = buffer->size(); local
[all...]
/frameworks/av/media/libaudioclient/
H A DIEffectClient.cpp69 int size = cmdSize; local
71 size = 0;
73 data.writeInt32(size);
74 if (size) {
75 data.write(pCmdData, size);
77 size = replySize;
79 size = 0;
81 data.writeInt32(size);
82 if (size) {
83 data.write(pReplyData, size);
[all...]
/frameworks/native/libs/vr/libpdx/private/pdx/
H A Dutility.h23 resize(other.size());
24 if (other.size())
25 memcpy(data_, other.data(), other.size());
30 resize(other.size());
31 if (other.size())
32 memcpy(data_, other.data(), other.size());
46 inline size_t size() const { return size_; } function in class:android::pdx::ByteBuffer
63 inline void reserve(size_t size) { argument
64 if (size <= capacity_)
66 // Find next power of 2 (assuming the size i
80 resize(size_t size) argument
[all...]
/frameworks/av/media/libmedia/
H A DIHDCP.cpp97 const void *inData, size_t size, uint32_t streamCTR,
101 data.writeInt32(size);
102 data.write(inData, size);
115 reply.read(outData, size);
122 size_t offset, size_t size, uint32_t streamCTR,
128 data.writeInt32(size);
140 reply.read(outData, size);
146 const void *inData, size_t size,
151 data.writeInt32(size);
152 data.write(inData, size);
96 encrypt( const void *inData, size_t size, uint32_t streamCTR, uint64_t *outInputCTR, void *outData) argument
120 encryptNative( const sp<GraphicBuffer> &graphicBuffer, size_t offset, size_t size, uint32_t streamCTR, uint64_t *outInputCTR, void *outData) argument
145 decrypt( const void *inData, size_t size, uint32_t streamCTR, uint64_t inputCTR, void *outData) argument
245 size_t size = data.readInt32(); local
289 size_t size = data.readInt32(); local
320 size_t size = data.readInt32(); local
[all...]
H A DIDataSource.cpp53 virtual ssize_t readAt(off64_t offset, size_t size) { argument
57 data.writeInt64(size);
70 virtual status_t getSize(off64_t* size) { argument
75 *size = reply.readInt64();
123 size_t size = data.readInt32(); local
124 for (size_t i = 0; i < size; ++i) {
130 size = data.readInt32();
131 for (size_t i = 0; i < size; ++i) {
154 size_t size = (size_t) data.readInt64(); local
155 reply->writeInt64(readAt(offset, size));
160 off64_t size; local
201 size_t size = handle->copyControlVector.size(); local
[all...]
/frameworks/base/tools/bit/
H A Dadb.cpp39 Buffer(char* begin, size_t size);
42 Buffer::Buffer(char* begin, size_t size) argument
44 this->setg(begin, begin, begin + size);
114 uint64_t size = read_varint(fd, err, &done); local
118 if (size == 0) {
123 if (size > 10*1024*1024) {
124 print_error("result buffer too large: %llu", size);
127 char* buf = (char*)malloc(size);
129 print_error("Can't allocate a buffer of size for test results: %llu", size);
157 size_t size; local
182 skip_bytes(int fd, ssize_t size, char* scratch, int scratchSize) argument
[all...]
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
H A Dbuffer_wrapper.h32 BufferWrapper(pointer buffer, size_type capacity, size_type size) argument
35 end_(capacity < size ? capacity : size) {}
37 BufferWrapper(pointer buffer, size_type size) argument
38 : BufferWrapper(buffer, size, size) {}
79 size_type size() const { return end_; } function in class:android::pdx::rpc::BufferWrapper
83 void resize(size_type size) { argument
84 if (size <= capacity_)
85 end_ = size;
132 size_type size() const { return buffer_.size(); } function in class:android::pdx::rpc::BufferWrapper
136 resize(size_type size) argument
137 reserve(size_type size) argument
150 WrapBuffer(T* buffer, SizeType size) argument
155 WrapBuffer(void* buffer, SizeType size) argument
160 WrapBuffer(const void* buffer, SizeType size) argument
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DMediaBuffer.cpp36 MediaBuffer::MediaBuffer(void *data, size_t size) argument
40 mSize(size),
42 mRangeLength(size),
48 MediaBuffer::MediaBuffer(size_t size) argument
52 mSize(size),
54 mRangeLength(size),
58 if (size < kSharedMemThreshold
60 mData = malloc(size);
64 new MemoryDealer(size + sizeof(SharedControl), "MediaBuffer");
65 mMemory = memoryDealer->allocate(size
142 size_t MediaBuffer::size() const { function in class:android::MediaBuffer
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DSparseLongArrayTest.java48 if (array1.size() != array2.size()) {
51 for (int i = 0; i < array1.size(); i++) {
74 * @param size the number of keys to return in the array. Should be < (2^31)/1000.
77 private int[] generateRandomKeys(int size) { argument
78 final int[] keys = new int[size];
79 keys[0] = -1 * mRandom.nextInt(size * 500);
80 for (int i = 1; i < size; i++) {
102 assertEquals(TEST_SIZE - 100, mSparseLongArray.size());
109 assertEquals(TEST_SIZE - 200, mSparseLongArray.size());
[all...]
/frameworks/base/libs/hwui/tests/common/scenes/
H A DListViewAnimation.cpp34 int size = cardHeight - (dp(10) * 2); local
35 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(size, size, &skBitmap));
43 canvas.drawCircle(size / 2, size / 2, size / 2, paint);
49 paint.setTextSize(size / 2);
52 SkIntToScalar(size / 2),
53 /*approximate centering*/ SkFloatToScalar(size * 0.7f)}};
59 int size
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_GraphicsStatsService.cpp49 LOG_ALWAYS_FATAL_IF(buffer.size() != sizeof(ProfileData),
50 "Buffer size %zu doesn't match expected %zu!", buffer.size(), sizeof(ProfileData));
55 LOG_ALWAYS_FATAL_IF(pathChars.size() <= 0 || !pathChars.c_str(), "Failed to get path chars");
56 path.assign(pathChars.c_str(), pathChars.size());
59 LOG_ALWAYS_FATAL_IF(packageChars.size() <= 0 || !packageChars.c_str(), "Failed to get path chars");
63 const std::string package(packageChars.c_str(), packageChars.size());
69 LOG_ALWAYS_FATAL_IF(pathChars.size() <= 0 || !pathChars.c_str(), "Failed to get path chars");
70 const std::string path(pathChars.c_str(), pathChars.size());
83 LOG_ALWAYS_FATAL_IF(buffer.size() !
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DClientWakelockTrackerTest.java41 assertEquals(1, myTracker.mActiveClients.size());
43 assertEquals(2, myTracker.mActiveClients.size());
50 assertEquals(1, myTracker.mActiveClients.size());
55 assertEquals(0, myTracker.mActiveClients.size());
75 assertEquals(1, myTracker.mActiveClients.size());
77 assertEquals(1, myTracker.mActiveClients.size());
83 assertEquals(1, myTracker.mActiveClients.size());
88 assertEquals(0, myTracker.mActiveClients.size());
101 assertEquals(1, myTracker.mActiveClients.size());
104 assertEquals(1, myTracker.mActiveClients.size());
[all...]
H A DIntRangeManagerTest.java104 assertEquals("expecting empty configlist", 0, testManager.mConfigList.size());
122 assertEquals("configlist size", 1, testManager.mConfigList.size());
128 assertEquals("configlist size", 1, testManager.mConfigList.size());
138 assertEquals("configlist size", 1, testManager.mConfigList.size());
143 assertEquals("configlist size", 0, testManager.mConfigList.size());
148 assertEquals("configlist size",
[all...]
/frameworks/av/include/media/stagefright/
H A DRemoteDataSource.h46 virtual ssize_t readAt(off64_t offset, size_t size) { argument
47 ALOGV("readAt(%lld, %zu)", (long long)offset, size);
48 if (size > kBufferSize) {
49 size = kBufferSize;
51 return mSource->readAt(offset, mMemory->pointer(), size);
53 virtual status_t getSize(off64_t *size) { argument
54 return mSource->getSize(size);
/frameworks/av/media/libstagefright/include/media/stagefright/
H A DRemoteDataSource.h46 virtual ssize_t readAt(off64_t offset, size_t size) { argument
47 ALOGV("readAt(%lld, %zu)", (long long)offset, size);
48 if (size > kBufferSize) {
49 size = kBufferSize;
51 return mSource->readAt(offset, mMemory->pointer(), size);
53 virtual status_t getSize(off64_t *size) { argument
54 return mSource->getSize(size);
/frameworks/base/tools/incident_report/
H A Dprinter.cpp44 Out::reallocate(int size) argument
46 if (size > mBufSize) {
47 char* p = (char*)malloc(size);
50 mBufSize = size;
52 return size;
87 int size = p != NULL ? p - last + 1 : strlen(last); local
88 fwrite(last, size, 1, mOut);
/frameworks/base/tools/preload/
H A DLoadedClass.java85 int size = operations.size();
86 if (size == 0) {
90 int[] times = new int[size];
91 for (int i = 0; i < size; i++) {
96 int middle = size / 2;
97 if (size % 2 == 1) {
/frameworks/compile/mclinker/include/mcld/ADT/
H A Dilist_sort.h22 void sort(llvm::iplist<T, Alloc>& xs, size_t size, Comparator is_less_than) { argument
26 assert(xs.size() == size && "Incorrect list size argument");
29 switch (size) {
46 size_t mid = size / 2;
55 sort(ys, size - mid, is_less_than);
79 detail::sort(list, list.size(), is_less_than);
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
H A DSortedListTest.java116 assertEquals("empty", mList.size(), 0);
123 assertEquals(size(), 1);
128 assertEquals(size(), 2);
134 assertEquals(size(), 3);
145 assertEquals(1, size());
146 assertEquals(1, mAdditions.size());
147 assertEquals(0, mUpdates.size());
154 assertEquals(0, mRemovals.size());
157 assertEquals(1, mRemovals.size());
159 assertEquals(0, size());
304 assertIntegrity(int size, String context) argument
708 private int size() { method in class:SortedListTest
[all...]
/frameworks/base/core/java/android/service/autofill/
H A DCustomDescription.java103 final int size = mTransformations.size();
104 if (sDebug) Log.d(TAG, "getPresentation(): applying " + size + " transformations");
105 for (int i = 0; i < size; i++) {
211 final int size = mTransformations.size();
212 final int[] ids = new int[size];
213 final InternalTransformation[] values = new InternalTransformation[size];
214 for (int i = 0; i < size; i++) {
235 final int size
[all...]
H A DImageTransformation.java79 final int size = mOptions.size();
81 Log.d(TAG, size + " multiple options on id " + childViewId + " to compare against");
84 for (int i = 0; i < size; i++) {
180 final int size = mOptions.size();
181 final Pattern[] regexs = new Pattern[size];
182 final int[] resIds = new int[size];
183 for (int i = 0; i < size; i++) {
206 final int size
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaDataSource.cpp72 ssize_t JMediaDataSource::readAt(off64_t offset, size_t size) { argument
78 if (size > kBufferSize) {
79 size = kBufferSize;
84 (jlong)offset, mByteArrayObj, (jint)0, (jint)size);
102 if ((size_t)numread > size) {
108 ALOGV("readAt %lld / %zu => %d.", (long long)offset, size, numread);
113 status_t JMediaDataSource::getSize(off64_t* size) { argument
120 *size = mCachedSize;
125 *size = env->CallLongMethod(mMediaDataSourceObj, mGetSizeMethod);
130 // After returning an error, size should
[all...]
/frameworks/base/tools/aapt2/io/
H A DData.h36 virtual size_t size() const = 0;
49 size_t size() const override { return len_; }
51 bool Next(const void** data, size_t* size) override {
56 *size = len_ - (next_read_ - offset_);
98 size_t size() const override { return map_.getDataLength(); }
100 bool Next(const void** data, size_t* size) override {
105 *size = map_.getDataLength() - next_read_;
140 MallocData(std::unique_ptr<const uint8_t[]> data, size_t size) argument
141 : data_(std::move(data)), size_(size) {}
146 size_t size() cons
[all...]
/frameworks/av/drm/common/
H A DReadWriteUtils.cpp85 int size = data.size(); local
86 if (FAILURE != ftruncate(fd, size)) {
87 if (size != write(fd, data.string(), size)) {
102 int size = data.size(); local
103 if (size != write(fd, data.string(), size)) {
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/
H A DConversion.h518 * \param[in] size The size of the buffer.
522 inline hidl_vec<uint8_t> inHidlBytes(void const* l, size_t size) { argument
524 t.setToExternal(static_cast<uint8_t*>(const_cast<void*>(l)), size, false);
532 * \param[in] size The size of the buffer.
536 inline hidl_vec<uint8_t> toHidlBytes(void const* l, size_t size) { argument
538 t.resize(size);
540 std::copy(src, src + size, t.data());
604 size_t size local
1014 unflattenFence(hidl_handle* fence, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
1057 flattenFence(hidl_handle const& fence, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
1103 size_t size = baseSize; local
1165 size_t size = baseSize; local
1236 flatten(HGraphicBufferProducer::FenceTimeSnapshot const& t, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
1275 unflatten( HGraphicBufferProducer::FenceTimeSnapshot* t, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
1372 unflatten(HGraphicBufferProducer::FrameEventsDelta* t, std::vector<native_handle_t*>* nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
1441 flatten(HGraphicBufferProducer::FrameEventsDelta const& t, void*& buffer, size_t& size, int*& fds, size_t numFds) argument
1494 size_t size = 4 + // mDeltas.size() local
1533 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
1574 flatten( HGraphicBufferProducer::FrameEventHistoryDelta const& t, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
1629 size_t size = baseSize; local
1675 size_t size = baseSize; local
1713 unflatten(Region* t, void const*& buffer, size_t& size) argument
1752 flatten(Region const& t, void*& buffer, size_t& size) argument
1789 size_t size = baseSize; local
1819 size_t size = baseSize; local
1892 flatten(HGraphicBufferProducer::QueueBufferInput const& t, native_handle_t** nh, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
1938 unflatten( HGraphicBufferProducer::QueueBufferInput* t, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
2008 size_t size = baseSize; local
2054 size_t size = baseSize; local
[all...]

Completed in 3410 milliseconds

1234567891011>>