Searched refs:size (Results 51 - 75 of 2722) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/hardware/camera2/utils/
H A DSizeAreaComparator.java37 public int compare(Size size, Size size2) { argument
38 checkNotNull(size, "size must not be null");
41 if (size.equals(size2)) {
45 long width = size.getWidth();
47 long area = width * size.getHeight();
58 * Get the largest {@code Size} from the list by comparing each size's area
62 * @return a non-{@code null} size
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DSmsRawData.java33 int size;
34 size = source.readInt();
35 byte[] data = new byte[size];
40 public SmsRawData[] newArray(int size) {
41 return new SmsRawData[size];
/frameworks/native/libs/binder/
H A DMemoryDealer.cpp115 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size);
129 SimpleBestFitAllocator(size_t size);
132 size_t allocate(size_t size, uint32_t flags = 0);
134 size_t size() const;
141 chunk_t(size_t start, size_t size) argument
142 : start(start), size(size), free(1), prev(0), next(0) {
145 size_t size : 28; member in struct:android::SimpleBestFitAllocator::chunk_t
151 ssize_t alloc(size_t size, uint32_t flags);
166 const sp<IMemoryHeap>& heap, ssize_t offset, size_t size)
164 Allocation( const sp<MemoryDealer>& dealer, const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) argument
203 size_t size = end-start; local
228 MemoryDealer(size_t size, const char* name, uint32_t flags) argument
239 allocate(size_t size) argument
272 SimpleBestFitAllocator(size_t size) argument
288 size_t SimpleBestFitAllocator::size() const function in class:android::SimpleBestFitAllocator
293 allocate(size_t size, uint32_t flags) argument
310 alloc(size_t size, uint32_t flags) argument
431 size_t size = 0; local
[all...]
/frameworks/av/media/libstagefright/
H A DDataURISource.cpp45 for (size_t i = encoded.size(); i-- > 0;) {
59 size_t dataLen = strlen(uri) - tmp.size() - 6;
87 ssize_t DataURISource::readAt(off64_t offset, void *data, size_t size) { argument
88 if ((offset < 0) || (offset >= (off64_t)mBuffer->size())) {
92 size_t copy = mBuffer->size() - offset;
93 if (copy > size) {
94 copy = size;
102 status_t DataURISource::getSize(off64_t *size) { argument
103 *size = mBuffer->size();
[all...]
/frameworks/av/media/libstagefright/mpeg2ts/
H A DESQueue.cpp61 // update metadata only applicable, and return the payload size
63 const uint8_t *ptr, size_t size, sp<MetaData> *metaData) {
91 ABitReader bits(ptr, size);
172 static bool IsSeeminglyValidAC3Header(const uint8_t *ptr, size_t size) { argument
173 return parseAC3SyncFrame(ptr, size, NULL) > 0;
177 const uint8_t *ptr, size_t size, size_t *frameLength) {
178 if (size < 7) {
203 if (frameLengthInHeader > size) {
211 static bool IsSeeminglyValidMPEGAudioHeader(const uint8_t *ptr, size_t size) { argument
212 if (size <
62 parseAC3SyncFrame( const uint8_t *ptr, size_t size, sp<MetaData> *metaData) argument
176 IsSeeminglyValidADTSHeader( const uint8_t *ptr, size_t size, size_t *frameLength) argument
248 appendData( const void *data, size_t size, int64_t timeUs) argument
708 fetchTimestamp(size_t size) argument
742 fetchTimestampAAC(size_t size) argument
788 size_t size = mBuffer->size(); local
904 size_t size = mBuffer->size(); local
965 EncodeSize14(uint8_t **_ptr, size_t size) argument
1007 size_t size = mBuffer->size(); local
1112 getNextChunkSize( const uint8_t *data, size_t size) argument
1138 size_t size = mBuffer->size(); local
[all...]
/frameworks/rs/cpu_ref/linkloader/include/impl/
H A DELFSectionRelTable.hxx31 for (size_t i = 0; i < table.size(); ++i) {
45 for (size_t i = 0; i < this->size(); ++i) {
66 size_t size = sh->getSize() / sh->getEntrySize(); local
70 rsl_assert(sh->getEntrySize() == TypeTraits<ELFRelocRelTy>::size);
71 for (size_t i = 0; i < size; ++i) {
76 rsl_assert(sh->getEntrySize() == TypeTraits<ELFRelocRelaTy>::size);
77 for (size_t i = 0; i < size; ++i) {
98 for (size_t i = 0; i < size(); ++i) {
111 return sym_index_set.size();
118 for (size_t i = 0; i < size();
[all...]
H A DELFSectionSymTab.hxx26 for (size_t i = 0; i < table.size(); ++i) {
34 for (size_t i = 0; i < table.size(); ++i) {
45 for (size_t i = 0; i < table.size(); ++i) {
55 for (size_t i = 0; i < table.size(); ++i) {
76 ELFSectionSymTab<Bitwidth>::getFuncNameList(size_t size, argument
78 for (size_t i = 0, j = 0; i < table.size() && j < size; ++i) {
94 // Assert that entry size will be the same as standard.
95 rsl_assert(sh->getEntrySize() == TypeTraits<ELFSymbolTy>::size);
101 size_t size local
[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/wifi/java/android/net/wifi/
H A DScanSettings.java62 out.writeInt(channelSet == null ? 0 : channelSet.size());
73 int size = in.readInt();
74 if (size > 0) {
75 settings.channelSet = new ArrayList<WifiChannel>(size);
76 while (size-- > 0)
83 public ScanSettings[] newArray(int size) {
84 return new ScanSettings[size];
/frameworks/rs/cpu_ref/linkloader/lib/
H A DMemChunk.cpp64 bool MemChunk::allocate(size_t size) { argument
65 if (size == 0) {
69 buf = (unsigned char*)(*VendorAlloc)(size, 0);
74 buf = (unsigned char *)mmap((void *)StartAddr, size,
79 buf = (unsigned char *)mmap(0, size,
91 StartAddr += (size + 4095) / 4096 * 4096;
94 buf_size = size;
/frameworks/av/media/libmedia/
H A DAudioPolicy.cpp71 size_t size = (size_t)parcel->readInt32(); local
72 if (size > MAX_CRITERIA_PER_MIX) {
73 size = MAX_CRITERIA_PER_MIX;
75 for (size_t i = 0; i < size; i++) {
92 size_t size = mCriteria.size(); local
93 if (size > MAX_CRITERIA_PER_MIX) {
94 size = MAX_CRITERIA_PER_MIX;
97 parcel->writeInt32(size);
98 size_t finalSize = 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 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.
H A Dvertex_frame.h32 // Create a VertexFrame of the specified size (in bytes).
33 explicit VertexFrame(int size);
37 // Upload the given data to the vertex buffer. The size must match the size
39 // be able to fit within the allocated space (i.e. size must not exceed the
40 // frame's size).
41 bool WriteData(const uint8_t* data, int size);
43 // The size of the vertex buffer in bytes.
70 // The size of this frame in bytes
/frameworks/base/tools/aapt/
H A Dprintapk.cpp30 off_t size; local
50 size = lseek(fd, 0, SEEK_END);
53 if (size < 0 || amt < 0) {
54 fprintf(stderr, "apk: error determining file size: %s\n", filename);
58 buf = malloc(size);
64 amt = read(fd, buf, size);
65 if (amt != size) {
72 zip = init_zipfile(buf, size);
89 size = get_zipentry_size(entry);
90 bufsize = size
[all...]
/frameworks/compile/mclinker/unittests/
H A DDirIteratorTest.cpp55 size_t size = 0; local
58 size = entry.path()->native().size();
/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/compile/mclinker/include/mcld/LD/
H A DELFFileFormat.h44 { return (NULL != f_pNULLSection) && (0 != f_pNULLSection->size()); }
47 { return (NULL != f_pGOT) && (0 != f_pGOT->size()); }
50 { return (NULL != f_pPLT) && (0 != f_pPLT->size()); }
53 { return (NULL != f_pRelDyn) && (0 != f_pRelDyn->size()); }
56 { return (NULL != f_pRelPlt) && (0 != f_pRelPlt->size()); }
59 { return (NULL != f_pRelaDyn) && (0 != f_pRelaDyn->size()); }
62 { return (NULL != f_pRelaPlt) && (0 != f_pRelaPlt->size()); }
66 { return (NULL != f_pComment) && (0 != f_pComment->size()); }
69 { return (NULL != f_pData1) && (0 != f_pData1->size()); }
72 { return (NULL != f_pDebug) && (0 != f_pDebug->size()); }
[all...]
/frameworks/av/include/media/stagefright/foundation/
H A Dbase64.h29 void encodeBase64(const void *data, size_t size, AString *out);
H A Dhexdump.h28 const void *_data, size_t size,
/frameworks/av/media/libstagefright/include/
H A DDataUriSource.h37 virtual ssize_t readAt(off64_t offset, void *data, size_t size);
39 virtual status_t getSize(off64_t *size) { argument
44 *size = mData.size();
/frameworks/av/camera/camera2/
H A DCaptureRequest.cpp46 int32_t size; local
47 if ((err = parcel->readInt32(&size)) != OK) {
48 ALOGE("%s: Failed to read surface list size from parcel", __FUNCTION__);
51 ALOGV("%s: Read surface list size = %d", __FUNCTION__, size);
54 for (int i = 0; i < size; ++i) {
99 int32_t size = static_cast<int32_t>(mSurfaceList.size()); local
102 parcel->writeInt32(size);
104 for (int32_t i = 0; i < size;
[all...]
/frameworks/av/services/medialog/
H A DMediaLogService.cpp29 void MediaLogService::registerWriter(const sp<IMemory>& shared, size_t size, const char *name) argument
32 size < kMinSize || size > kMaxSize || name == NULL ||
33 shared->size() < NBLog::Timeline::sharedSize(size)) {
36 sp<NBLog::Reader> reader(new NBLog::Reader(size, shared));
48 for (size_t i = 0; i < mNamedReaders.size(); ) {
74 for (size_t i = 0; i < namedReaders.size(); i++) {
/frameworks/base/services/core/java/com/android/server/pm/
H A DCrossProfileIntentResolver.java31 protected CrossProfileIntentFilter[] newArray(int size) { argument
32 return new CrossProfileIntentFilter[size];

Completed in 3999 milliseconds

1234567891011>>