/frameworks/av/libvideoeditor/vss/src/ |
H A D | M4AMRR_CoreReader.c | 89 M4OSA_Int32 m_structSize; /* size of structure*/ 103 * @brief Internal function to the AMR Parser, returns the AU size of the Frame 108 * @returns The frame size based on the frame type. 163 M4OSA_UInt32 size ; local 221 size = 6; 223 (M4OSA_MemAddr8)M4_Token, &size); 224 if(size != 6) 245 size = 5; 247 (M4OSA_MemAddr8)M4_Token, &size); 248 if(size ! 294 M4OSA_UInt32 size, auCount=0; local 422 M4OSA_Int32 size = 0 ; local 468 M4OSA_UInt32 size ; local 585 M4OSA_UInt32 size ; local [all...] |
/frameworks/native/libs/utils/tests/ |
H A D | BlobCache_test.cpp | 274 size_t size = mBC->getFlattenedSize(); local 275 uint8_t* flat = new uint8_t[size]; 276 ASSERT_EQ(OK, mBC->flatten(flat, size, NULL, 0)); 277 ASSERT_EQ(OK, mBC2->unflatten(flat, size, NULL, 0)); 322 size_t size = mBC->getFlattenedSize(); local 323 uint8_t* flat = new uint8_t[size]; 324 ASSERT_EQ(OK, mBC->flatten(flat, size, NULL, 0)); 344 size_t size = mBC->getFlattenedSize() - 1; local 345 uint8_t* flat = new uint8_t[size]; 346 ASSERT_EQ(BAD_VALUE, mBC->flatten(flat, size, NUL 354 size_t size = mBC->getFlattenedSize(); local 371 size_t size = mBC->getFlattenedSize(); local 390 size_t size = mBC->getFlattenedSize(); local 409 size_t size = mBC->getFlattenedSize(); local [all...] |
H A D | BasicHashtable_test.cpp | 159 ALOGD("hashtable %p, size=%u, capacity=%u, bucketCount=%u", 160 &h, h.size(), h.capacity(), h.bucketCount()); 181 EXPECT_EQ(0U, h.size()); 190 EXPECT_EQ(0U, h.size()); 199 EXPECT_EQ(0U, h.size()); 208 EXPECT_EQ(0U, h.size()); 220 ASSERT_EQ(1U, h.size()); 230 ASSERT_EQ(0U, h.size()); 245 ASSERT_EQ(i + 1, h.size()); 257 ASSERT_EQ(i, h.size()); [all...] |
/frameworks/av/media/libstagefright/timedtext/ |
H A D | TextDescriptions.cpp | 27 const uint8_t *data, ssize_t size, 33 return extract3GPPGlobalDescriptions(data, size, parcel, 0); 35 return extract3GPPLocalDescriptions(data, size, timeMs, parcel, 0); 39 return extractSRTLocalDescriptions(data, size, timeMs, parcel); 50 const uint8_t *data, ssize_t size, int timeMs, Parcel *parcel) { 56 // write the size of the text sample 57 parcel->writeInt32(size); 59 parcel->writeInt32(size); 60 parcel->write(data, size); 71 const uint8_t *data, ssize_t size, 26 getParcelOfDescriptions( const uint8_t *data, ssize_t size, uint32_t flags, int timeMs, Parcel *parcel) argument 49 extractSRTLocalDescriptions( const uint8_t *data, ssize_t size, int timeMs, Parcel *parcel) argument 70 extract3GPPLocalDescriptions( const uint8_t *data, ssize_t size, int timeMs, Parcel *parcel, int depth) argument 287 extract3GPPGlobalDescriptions( const uint8_t *data, ssize_t size, Parcel *parcel, int depth) argument [all...] |
/frameworks/compile/mclinker/unittests/ |
H A D | NamePoolTest.cpp | 76 uint64_t size = 0; local 84 size, 95 EXPECT_EQ(size, result1.info->size()); 104 size, 115 EXPECT_EQ(size, result1.info->size()); 127 uint64_t size = 0; local 135 size, 146 EXPECT_EQ(size, result 185 uint64_t size = 0; local 218 uint64_t size = 0; local [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | sf2.cpp | 299 size_t size; local 300 if (meta->findData(kKeyAVCC, &type, &data, &size)) { 305 CHECK(size >= 7); 323 size -= 6; 329 CHECK(size >= 2); 333 size -= 2; 335 CHECK(size >= length); 337 memcpy(buffer->data() + buffer->size(), "\x00\x00\x00\x01", 4); 338 memcpy(buffer->data() + buffer->size() + 4, ptr, length); 339 buffer->setRange(0, buffer->size() [all...] |
/frameworks/av/media/libmedia/ |
H A D | MemoryLeakTrackUtil.cpp | 59 size_t size() const { function in struct:android::MyString8 77 size_t size; member in struct:android::__anon493 104 e->size = *reinterpret_cast<size_t *>(ptr); 114 // Now we need to sort the entries. They come sorted by size but 123 bool swap = e1->size < e2->size; 124 if (e1->size == e2->size) { 145 snprintf(buffer, SIZE, "size %8i, dup %4i, ", e->size, [all...] |
/frameworks/av/media/libstagefright/ |
H A D | MediaBuffer.cpp | 34 MediaBuffer::MediaBuffer(void *data, size_t size) argument 39 mSize(size), 41 mRangeLength(size), 47 MediaBuffer::MediaBuffer(size_t size) argument 51 mData(malloc(size)), 52 mSize(size), 54 mRangeLength(size), 79 mSize(buffer->size()), 123 size_t MediaBuffer::size() const { function in class:android::MediaBuffer
|
/frameworks/base/core/java/android/database/ |
H A D | MatrixCursor.java | 118 * @throws IllegalArgumentException if {@code columnValues.size() != 139 "columnValues.size() > columnNames.length"); 147 "columnValues.size() < columnNames.length"); 156 int size = columnValues.size(); 157 if (size != columnCount) { 159 + columnCount + ", columnValues.size() = " + size); 164 for (int i = 0; i < size; i++) { 170 private void ensureCapacity(int size) { argument [all...] |
/frameworks/base/include/androidfw/ |
H A D | CursorWindow.h | 46 * FieldSlot per column, which has the size, offset, and type of the data for that field. 53 void* data, size_t size, bool readOnly); 74 uint32_t size; member in struct:android::CursorWindow::FieldSlot::__anon1012::__anon1013 83 static status_t create(const String8& name, size_t size, CursorWindow** outCursorWindow); 89 inline size_t size() { return mSize; } function in class:android::CursorWindow 104 status_t putBlob(uint32_t row, uint32_t column, const void* value, size_t size); 130 *outSizeIncludingNull = fieldSlot->data.buffer.size; 135 *outSize = fieldSlot->data.buffer.size; 182 uint32_t alloc(size_t size, bool aligned = false); 188 const void* value, size_t size, int32_ [all...] |
/frameworks/base/libs/hwui/ |
H A D | LayerCache.cpp | 38 INIT_LOGD(" Setting layer cache size to %sMB", property); 41 INIT_LOGD(" Using default layer cache size of %.2fMB", DEFAULT_LAYER_CACHE_SIZE); 80 size_t count = mCache.size(); 124 size_t size = mCache.size(); local 125 for (size_t i = 0; i < size; i++) { 127 LAYER_LOGD(" Layer size %dx%d", entry.mWidth, entry.mHeight); 133 // size already in the cache, and reuse it instead of creating a new one 159 const uint32_t size = layer->getWidth() * layer->getHeight() * 4; local 161 if (size < mMaxSiz [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/ |
H A D | FakeExpandableAdapter.java | 59 typeIndex = types.size(); 67 if (children.size() > 0) { 75 AdapterItem item = new AdapterItem(dataBindingItem, typeIndex, mItems.size(), 79 if (children.size() > 0) { 89 createItems(item, item.getChildren().size(), item.getCount(), mChildrenTypes, depth); 104 return mItems.size(); 110 return item.getChildren().size(); 184 return mChildrenTypes.size(); 194 return mGroupTypes.size();
|
/frameworks/wilhelm/src/android/ |
H A D | AacBqToPcmCbRenderer.cpp | 25 // ADTS header size is 7, but frame size information ends on byte 6 (when counting from byte 1) 29 * Returns the size of an AAC ADTS frame. 30 * Note that if the returned value + offset > size, it means that a partial frame starts at that 31 * offset, but this function will still return the size of the full frame. 34 * @param size the size in bytes of the data block starting at data 35 * @return the size in bytes of the AAC ADTS frame starting at the given offset of the given 38 static size_t getAdtsFrameSize(const uint8_t *data, off64_t offset, size_t size) { argument 41 if (!(offset + ADTS_HEADER_SIZE_UP_TO_FRAMESIZE < size)) { 83 validateBufferStartEndOnFrameBoundaries(void* data, size_t size) argument [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ASessionDescription.cpp | 37 bool ASessionDescription::setTo(const void *data, size_t size) { argument 38 mIsValid = parse(data, size); 48 bool ASessionDescription::parse(const void *data, size_t size) { argument 55 AString desc((const char *)data, size); 79 if (line.size() < 2 || line.c_str()[1] != '=') { 117 value.setTo(line, colonPos + 1, line.size() - colonPos - 1); 125 mTracks.editItemAt(mTracks.size() - 1).add(key, value); 132 AString(line, 2, line.size() - 2).c_str()); 135 mFormats.push(AString(line, 2, line.size() - 2)); 146 value = AString(line, equalPos + 1, line.size() [all...] |
H A D | APacketSource.cpp | 73 if ((s.size() % 2) != 0) { 77 size_t outLen = s.size() / 2; 82 for (size_t i = 0; i < s.size(); ++i) { 116 CHECK_EQ(profileLevelID->size(), 3u); 133 size_t end = (commaPos < 0) ? val.size() : commaPos; 138 CHECK_GT(nal->size(), 0u); 139 CHECK_LE(nal->size(), 65535u); 149 totalSeqParameterSetSize += nal->size(); 153 totalPicParameterSetSize += nal->size(); 192 *out++ = nal->size() >> [all...] |
/frameworks/base/libs/androidfw/ |
H A D | BackupData.cpp | 152 BackupDataWriter::WriteEntityData(const void* data, size_t size) argument 154 if (DEBUG) ALOGD("Writing data: size=%lu", (unsigned long) size); 166 ssize_t amt = write(m_fd, data, size); 167 if (amt != (ssize_t)size) { 272 size_t size = m_header.entity.keyLen; local 273 char* buf = m_key.lockBuffer(size); 278 int amt = read(m_fd, buf, size+1); 279 CHECK_SIZE(amt, (int)size+1); 280 m_key.unlockBuffer(size); 337 ReadEntityData(void* data, size_t size) argument [all...] |
/frameworks/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_context.cpp | 220 void GLTraceContext::bindBuffer(GLuint bufferId, GLvoid *data, GLsizeiptr size) { argument 227 mElementArrayBuffers.add(bufferId, new ElementArrayBuffer(data, size)); 230 void GLTraceContext::getBuffer(GLuint bufferId, GLvoid **data, GLsizeiptr *size) { argument 234 *size = 0; 237 *size = buffer->getSize(); 242 GLsizeiptr size) { 245 buffer->updateSubBuffer(offset, data, size); 257 ElementArrayBuffer::ElementArrayBuffer(GLvoid *buf, GLsizeiptr size) { argument 258 mBuf = malloc(size); 259 mSize = size; 241 updateBufferSubData(GLuint bufferId, GLintptr offset, GLvoid *data, GLsizeiptr size) argument 275 updateSubBuffer(GLintptr offset, const GLvoid* data, GLsizeiptr size) argument [all...] |
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | glGetActiveAttrib.cpp | 1 /* void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) */ 13 GLint *size = (GLint *) 0; local 41 _exceptionMessage = "size == null"; 53 size = size_base + sizeOffset; 94 (GLint *)size, 121 /* void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) */ 134 GLint *size = (GLint *) 0; local 139 size = (GLint *)getPointer(_env, size_buf, &_sizeArray, &_sizeRemaining, &_sizeBufferOffset); 145 if (size == NULL) { 147 size 182 GLint *size = (GLint *) 0; local 279 GLint *size = (GLint *) 0; local [all...] |
H A D | glGetActiveUniform.cpp | 1 /* void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) */ 13 GLint *size = (GLint *) 0; local 41 _exceptionMessage = "size == null"; 53 size = size_base + sizeOffset; 94 (GLint *)size, 121 /* void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) */ 134 GLint *size = (GLint *) 0; local 139 size = (GLint *)getPointer(_env, size_buf, &_sizeArray, &_sizeRemaining, &_sizeBufferOffset); 145 if (size == NULL) { 147 size 183 GLint *size = (GLint *) 0; local 280 GLint *size = (GLint *) 0; local [all...] |
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_native_frame.cpp | 37 jint size) { 38 return ToJBool(WrapObjectInJava(new NativeFrame(size), env, thiz, true)); 74 jint size) { 78 if (!data || size > frame->Size()) 80 jbyteArray result = env->NewByteArray(size); 81 env->SetByteArrayRegion(result, 0, size, reinterpret_cast<const jbyte*>(data)); 118 jint size) { 122 if (!data || size > frame->Size() || (size % sizeof(jint)) != 0) 124 const int count = size / sizeo 35 Java_android_filterfw_core_NativeFrame_nativeAllocate(JNIEnv* env, jobject thiz, jint size) argument 72 Java_android_filterfw_core_NativeFrame_getNativeData(JNIEnv* env, jobject thiz, jint size) argument 116 Java_android_filterfw_core_NativeFrame_getNativeInts(JNIEnv* env, jobject thiz, jint size) argument 150 Java_android_filterfw_core_NativeFrame_getNativeFloats(JNIEnv* env, jobject thiz, jint size) argument 166 Java_android_filterfw_core_NativeFrame_setNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size, jint bytes_per_sample) argument 216 Java_android_filterfw_core_NativeFrame_getNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size, jint bytes_per_sample) argument [all...] |
/frameworks/av/media/libstagefright/httplive/ |
H A D | LiveSession.cpp | 185 for (size_t i = 0; i < playlist->size(); ++i) { 197 CHECK_GT(mBandwidthItems.size(), 0u); 255 off64_t size; local 256 status_t err = source->getSize(&size); 259 size = 65536; 262 sp<ABuffer> buffer = new ABuffer(size); 266 size_t bufferRemaining = buffer->capacity() - buffer->size(); 272 buffer->size() + bufferRemaining); 274 sp<ABuffer> copy = new ABuffer(buffer->size() + bufferRemaining); 275 memcpy(copy->data(), buffer->data(), buffer->size()); [all...] |
/frameworks/av/drm/common/ |
H A D | DrmSupportInfo.cpp | 50 for (unsigned int i = 0; i < mMimeTypeVector.size(); i++) { 61 for (unsigned int i = 0; i < mFileSuffixVector.size(); i++) { 79 return mMimeTypeVector.size(); 83 return mFileSuffixVector.size(); 128 return mIndex < mDrmSupportInfo->mFileSuffixVector.size(); 152 return mIndex < mDrmSupportInfo->mMimeTypeVector.size();
|
/frameworks/av/drm/libdrmframework/plugins/common/util/src/ |
H A D | MimeTypeUtil.cpp | 43 int size; // Number of bytes. e.g. "audio/" = 6 bytes member in struct:android::MimeGroup 49 int size; // Number of bytes. e.g. "x-mpeg" = 6 bytes member in struct:android::MimeTypeList 138 if (0 == strncmp(pMimeType, pGroup->pGroup, pGroup->size)) { 147 len = strlen (pMimeType+pGroup->size); 150 (len == pMimeItem->size) && 151 (0 == strcmp(pMimeType+pGroup->size, pMimeItem->pMimeExt))) {
|
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/ |
H A D | VideoEditorUtils.cpp | 57 size_t size; local 86 if (meta->findData(kKeyESDS, &type, &data, &size)) { 87 LOG1("displayMetaData kKeyESDS type=%d size=%d", type, size); 89 if (meta->findData(kKeyAVCC, &type, &data, &size)) { 90 LOG1("displayMetaData kKeyAVCC data=0x%X type=%d size=%d", 91 *((unsigned int*)data), type, size); 93 if (meta->findData(kKeyVorbisInfo, &type, &data, &size)) { 94 LOG1("displayMetaData kKeyVorbisInfo type=%d size=%d", type, size); 264 buildAVCCodecSpecificData(uint8_t **pOutputData, size_t *pOutputSize, const uint8_t *data, size_t size, MetaData *param) argument [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | base64.cpp | 25 if ((s.size() % 4) != 0) { 29 size_t n = s.size(); 39 size_t outLen = 3 * s.size() / 4 - padding; 99 const void *_data, size_t size, AString *out) { 105 for (i = 0; i < (size / 3) * 3; i += 3) { 115 switch (size % 3) { 98 encodeBase64( const void *_data, size_t size, AString *out) argument
|