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

1234567891011>>

/frameworks/base/tools/aapt2/format/binary/
H A DChunkWriter.h37 start_size_ = buffer_->size();
58 inline size_t size() { function in class:aapt::ChunkWriter
59 return buffer_->size() - start_size_;
64 header_->size = util::HostToDevice32(buffer_->size() - start_size_);
78 start_size_ = buffer_->size();
/frameworks/native/cmds/lshal/
H A DTextTable.cpp26 if (mWidths.size() < v.size()) {
27 mWidths.resize(v.size());
29 for (size_t i = 0; i < v.size(); ++i) {
42 for (size_t i = 0; i < row.fields().size(); ++i) {
47 if (i < row.fields().size() - 1) {
/frameworks/opt/net/wifi/service/jni/
H A Dcom_android_server_wifi_WifiNative.cpp38 int size = klogctl(/* SYSLOG_ACTION_SIZE_BUFFER */ 10, 0, 0); local
39 if (size < 1) {
44 char *buf = (char *)malloc(size);
50 int read = klogctl(/* SYSLOG_ACTION_READ_ALL */ 3, buf, size);
59 if (read != size) {
60 ALOGV("read %d bytes, expecting %d", read, size);
/frameworks/support/car/src/main/java/androidx/car/widget/
H A DMinTouchTargetHelper.java26 * Helper class that will ensure that a given view meets a minimum touch target size that is
33 * Sets up the view that will be checked and ensured to meet a minimum touch target size.
47 * expanded to meet a minimum touch size.
60 * Sets the minimum touch target size in pixels for the subject view. Calling this method
66 * @param size The minimum touch target size in pixels.
68 void hasMinTouchSize(int size) { argument
69 if (size <= 0) {
71 "Minimum touch target size must be greater than 0.");
87 // Ensure that the touch target for the icon is the minimum touch size
[all...]
/frameworks/support/transition/src/main/java/androidx/transition/
H A DAnimatorUtils.java42 for (int i = 0, size = listeners.size(); i < size; i++) {
58 for (int i = 0, size = listeners.size(); i < size; i++) {
/frameworks/av/media/extractors/mp4/
H A DItemTable.cpp47 offset(0), size(0), nextTileIndex(0) {}
57 if (nextTileIndex >= dimgRefs.size()) {
73 size_t size; member in struct:android::heif::ImageItem
85 size_t size; member in struct:android::heif::ExifItem
101 uint32_t /*type*/, off64_t /*offset*/, size_t /*size*/) {
111 status_t parseChunks(off64_t offset, size_t size);
144 ALOGE("invalid chunk size 0 for non-top level box");
148 ALOGE("invalid chunk size: %lld", (long long)chunk_size);
171 status_t Box::parseChunks(off64_t offset, size_t size) { argument
172 off64_t stopOffset = offset + size;
203 parseFullBoxHeader(off64_t *offset, size_t *size) argument
230 parse(off64_t offset, size_t size, uint32_t *primaryItemId) argument
275 getLoc(off64_t *offset, size_t *size, off64_t idatOffset, size_t idatSize) const argument
320 parse(off64_t offset, size_t size) argument
595 parse(off64_t offset, size_t size) argument
642 parse(off64_t offset, size_t size) argument
653 onChunkData(uint32_t type, off64_t offset, size_t size) argument
706 parse(off64_t offset, size_t size) argument
740 parse(off64_t offset, size_t size) argument
773 parse(off64_t offset, size_t size) argument
802 parse(off64_t offset, size_t size) argument
845 parse(off64_t offset, size_t size) argument
922 parse(off64_t offset, size_t size) argument
929 onChunkData(uint32_t type, off64_t offset, size_t size) argument
983 parse(off64_t offset, size_t size) argument
993 onChunkData(uint32_t type, off64_t offset, size_t size) argument
1034 parseNullTerminatedString( off64_t *offset, size_t *size, String8 *out) argument
1058 parse(off64_t offset, size_t size, ItemInfo *itemInfo) argument
1146 parse(off64_t offset, size_t size) argument
1180 onChunkData(uint32_t type, off64_t offset, size_t size) argument
1254 parseIlocBox(off64_t offset, size_t size) argument
1270 parseIinfBox(off64_t offset, size_t size) argument
1286 parsePitmBox(off64_t offset, size_t size) argument
1298 parseIprpBox(off64_t offset, size_t size) argument
1310 parseIdatBox(off64_t offset, size_t size) argument
1320 parseIrefBox(off64_t offset, size_t size) argument
1377 size_t size; local
1611 getImageOffsetAndSize( uint32_t *itemIndex, off64_t *offset, size_t *size) argument
1651 getExifOffsetAndSize(off64_t *offset, size_t *size) argument
[all...]
/frameworks/av/media/libstagefright/mpeg2ts/
H A DHlsSampleDecryptor.cpp51 if (keyDataBuffer != NULL && keyDataBuffer->size() == AES_BLOCK_SIZE &&
52 initVecBuffer != NULL && initVecBuffer->size() == AES_BLOCK_SIZE) {
74 keyDataBuffer.get(), (keyDataBuffer.get() == NULL)? -1 : keyDataBuffer->size(),
75 initVecBuffer.get(), (initVecBuffer.get() == NULL)? -1 : initVecBuffer->size());
144 void HlsSampleDecryptor::processAAC(size_t adtsHdrSize, uint8_t *data, size_t size) { argument
147 ALOGV("processAAC: (%p)/%zu Skipping due to invalid key", data, size);
151 // ADTS header is included in the size
153 size_t remainingBytes = size - adtsHdrSize;
157 adtsHdrSize, data, size, isEncrypted);
199 ALOGV("processAAC: Unencrypted frame (without lead bytes) size
[all...]
/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/base/location/tests/locationtests/src/android/location/
H A DSatelliteInfo.java78 int[] svidWithFlags = new int[svInfos.size()];
79 for (int i = 0; i< svInfos.size(); i++) {
89 float[] cn0s = new float[svInfos.size()];
90 for (int i = 0; i< svInfos.size(); i++) {
100 float[] elevations = new float[svInfos.size()];
101 for (int i = 0; i< svInfos.size(); i++) {
111 float[] azimuths = new float[svInfos.size()];
112 for (int i = 0; i< svInfos.size(); i++) {
122 float[] carrierFrequencies = new float[svInfos.size()];
123 for (int i = 0; i< svInfos.size();
[all...]
/frameworks/ml/nn/runtime/
H A DMemory.cpp27 int Memory::create(uint32_t size) { argument
28 mHidlMemory = allocateSharedMemory(size);
38 if (offset + length > mHidlMemory.size()) {
39 LOG(ERROR) << "Request size larger than the memory size.";
49 munmap(mMapping, mHidlMemory.size());
61 int MemoryFd::set(size_t size, int prot, int fd, size_t offset) { argument
66 if (size == 0 || fd < 0) {
67 LOG(ERROR) << "Invalid size or fd";
77 if (munmap(mMapping, mHidlMemory.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/drm/mediadrm/plugins/clearkey/default/include/
H A DDrmPlugin.h66 if (sessionId.size() == 0) {
76 if (sessionId.size() == 0 || keySetId.size() == 0) {
104 if (response.size() == 0) {
117 if (ssid.size() == 0) {
126 if (ssRelease.size() == 0) {
179 if (sessionId.size() == 0 || algorithm.size() == 0) {
187 if (sessionId.size() == 0 || algorithm.size()
[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/support/paging/common/src/main/java/androidx/paging/
H A DPagedStorage.java102 mStorageCount = page.size();
106 mPageSize = page.size();
115 callback.onInitialized(size());
120 if (i < 0 || i >= size()) {
121 throw new IndexOutOfBoundsException("Index: " + i + ", Size: " + size());
141 final int localPageCount = mPages.size();
143 int pageSize = mPages.get(localPageIndex).size();
153 if (page == null || page.size() == 0) {
161 * Returns true if all pages are the same size, except for the last, which may be smaller
188 return mPages.size();
204 public int size() { method in class:PagedStorage
[all...]
/frameworks/av/media/libmediaextractor/
H A DMediaBuffer.cpp34 MediaBuffer::MediaBuffer(void *data, size_t size) argument
38 mSize(size),
40 mRangeLength(size),
46 MediaBuffer::MediaBuffer(size_t size) argument
50 mSize(size),
52 mRangeLength(size),
56 if (size < kSharedMemThreshold
58 mData = malloc(size);
62 new MemoryDealer(size + sizeof(SharedControl), "MediaBuffer");
63 mMemory = memoryDealer->allocate(size
126 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);
50 paint.setTextSize(size / 2);
52 const SkPoint pos[] = {{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/base/tools/aapt2/io/
H A DData.h36 virtual size_t size() const = 0;
39 return size();
53 size_t size() const override { return len_; }
55 bool Next(const void** data, size_t* size) override {
60 *size = len_ - (next_read_ - offset_);
102 size_t size() const override { return map_.getDataLength(); }
104 bool Next(const void** data, size_t* size) override {
109 *size = map_.getDataLength() - next_read_;
144 MallocData(std::unique_ptr<const uint8_t[]> data, size_t size) argument
145 : data_(std::move(data)), size_(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...]
/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;
86 int size = p != NULL ? p - last + 1 : strlen(last); local
87 fwrite(last, size, 1, mOut);

Completed in 236 milliseconds

1234567891011>>