/frameworks/base/services/core/jni/ |
H A D | com_android_server_HardwarePropertiesManagerService.cpp | 68 ssize_t size = gThermalModule->getCoolingDevices(gThermalModule, list, list_size); local 69 if (size >= 0) { 70 if (list_size > size) { 71 list_size = size; 98 ssize_t size = gThermalModule->getTemperatures(gThermalModule, list, list_size); local 99 if (size >= 0) { 100 if (list_size > size) { 101 list_size = size; 156 ssize_t size = gThermalModule->getCpuUsages(gThermalModule, nullptr); local 157 if (size > [all...] |
/frameworks/native/opengl/libs/GLES_CM/ |
H A D | gl.cpp | 39 GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride, 43 GL_API void GL_APIENTRY glTexCoordPointerBounds(GLint size, GLenum type, 45 GL_API void GL_APIENTRY glVertexPointerBounds(GLint size, GLenum type, 49 GL_API void GL_APIENTRY glMatrixIndexPointerOESBounds(GLint size, GLenum type, 51 GL_API void GL_APIENTRY glWeightPointerOESBounds(GLint size, GLenum type, 55 void glColorPointerBounds(GLint size, GLenum type, GLsizei stride, argument 57 glColorPointer(size, type, stride, ptr); 63 void glTexCoordPointerBounds(GLint size, GLenum type, argument 65 glTexCoordPointer(size, type, stride, pointer); 67 void glVertexPointerBounds(GLint size, GLenu argument 77 glMatrixIndexPointerOESBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) argument 82 glWeightPointerOESBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) argument [all...] |
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | MPEG2TSExtractor.cpp | 121 return mSourceImpls.size(); 125 if (index >= mSourceImpls.size()) { 137 return index < mSourceImpls.size() 196 off64_t size; local 197 if (mDataSource->getSize(&size) == OK && (haveAudio || haveVideo)) { 209 if (mSeekSyncPoints->size() > prevSyncSize) { 210 prevSyncSize = mSeekSyncPoints->size(); 215 durationUs = size * diffUs / diffOffset; 217 if (durations.size() > 5) { 285 for (size_t i = 0; i < mSourceImpls.size(); 290 size_t size = syncPoints->size(); local [all...] |
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioPort.cpp | 76 for (size_t profileIndex = 0; profileIndex < mProfiles.size(); profileIndex++) { 85 for (size_t rateIndex = 0; rateIndex < ratesToExport.size(); rateIndex++) { 91 for (size_t chanIndex = 0; chanIndex < channelsToExport.size(); chanIndex++) { 97 if (flatenedRates.size() > AUDIO_PORT_MAX_SAMPLING_RATES || 98 flatenedChannels.size() > AUDIO_PORT_MAX_CHANNEL_MASKS || 99 flatenedFormats.size() > AUDIO_PORT_MAX_FORMATS) { 108 port->num_sample_rates = flatenedRates.size(); 109 port->num_channel_masks = flatenedChannels.size(); 110 port->num_formats = flatenedFormats.size(); 111 for (size_t i = 0; i < flatenedRates.size(); [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | sf2.cpp | 322 size_t size; local 323 if (meta->findData(kKeyAVCC, &type, &data, &size)) { 328 CHECK(size >= 7); 346 size -= 6; 352 CHECK(size >= 2); 356 size -= 2; 358 CHECK(size >= length); 360 memcpy(buffer->data() + buffer->size(), "\x00\x00\x00\x01", 4); 361 memcpy(buffer->data() + buffer->size() + 4, ptr, length); 362 buffer->setRange(0, buffer->size() [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerCCDecoder.cpp | 62 while (offset < ccBuf->size()) { 108 if (out.size() > 0) { 134 return mTracks.size(); 223 for (size_t i = 0; i < sei->size() / sizeof(NALPosition); ++i, ++nal) { 232 bool NuPlayer::CCDecoder::parseSEINalUnit(int64_t timeUs, const uint8_t *data, size_t size) { argument 241 NALBitReader br(data + 1, size - 1); 310 for (size_t i = 0; i < mpegUserData->size() / sizeof(size_t); ++i) { 312 timeUs, accessUnit->data() + userData[i], accessUnit->size() - userData[i]); 319 bool NuPlayer::CCDecoder::parseMPEGUserDataUnit(int64_t timeUs, const uint8_t *data, size_t size) { argument 326 return parseMPEGCCData(timeUs, data + 9, size 333 parseMPEGCCData(int64_t timeUs, const uint8_t *data, size_t size) argument 423 parseDTVCCPacket(int64_t timeUs, const uint8_t *data, size_t size) argument 514 size_t size = 0; local [all...] |
H A D | NuPlayerStreamListener.cpp | 55 void NuPlayer::NuPlayerStreamListener::queueBuffer(size_t index, size_t size) { argument 59 entry.mSize = size; 96 void *data, size_t size, sp<AMessage> *extra) { 97 CHECK_GT(size, 0u); 143 if (copy > size) { 144 copy = size; 147 if (entry->mIndex >= mBuffers.size()) { 152 if (mem == NULL || mem->size() < copy || mem->size() - copy < entry->mOffset) { 95 read( void *data, size_t size, sp<AMessage> *extra) argument
|
/frameworks/av/media/libstagefright/httplive/ |
H A D | M3UParser.cpp | 106 Media &item = mMediaItems.editItemAt(mMediaItems.size() - 1); 134 if (mSelectedIndex >= (ssize_t)mMediaItems.size()) { 135 mSelectedIndex = mMediaItems.size() - 1; 159 mSelectedIndex = (rand() * mMediaItems.size()) / RAND_MAX; 170 if (index >= mMediaItems.size()) { 193 return mMediaItems.size(); 197 if (index >= mMediaItems.size()) { 231 for (size_t i = 0; i < mMediaItems.size(); ++i) { 246 const char *baseURI, const void *data, size_t size) 259 mInitCheck = parse(data, size); 245 M3UParser( const char *baseURI, const void *data, size_t size) argument 306 size_t M3UParser::size() { function in class:android::M3UParser 547 parse(const void *_data, size_t size) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | avc_utils.cpp | 95 ABitReader br(seqParamSet->data() + 1, seqParamSet->size() - 1); 262 size_t size = *_size; local 267 if (size < 3) { 274 for (; offset + 2 < size; ++offset) { 280 if (offset + 2 >= size) { 290 while (offset < size && data[offset] != 0x01) { 294 if (offset == size) { 296 offset = size + 2; 318 if (offset + 2 < size) { 320 *_size = size 329 FindNAL(const uint8_t *data, size_t size, unsigned nalType) argument 367 size_t size = accessUnit->size(); local 452 size_t size = buffer->size(); local 474 size_t size = accessUnit->size(); local 541 ExtractDimensionsFromVOLHeader( const uint8_t *data, size_t size, int32_t *width, int32_t *height) 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::__anon968::__anon969 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | ButtonDispatcher.java | 89 final int N = mViews.size(); 98 final int N = mViews.size(); 107 final int N = mViews.size(); 115 final int N = mViews.size(); 123 final int N = mViews.size(); 131 final int N = mViews.size(); 139 final int N = mViews.size(); 147 final int N = mViews.size(); 155 final int N = mViews.size();
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
H A D | MipsPLT.cpp | 63 uint64_t size = sizeof(PLT0) + (m_pSectionData->size() - 1) * sizeof(PLTA); local 64 m_Section.setSize(size); 70 offset += frag->size(); 75 return m_pSectionData->size() > 1; 109 uint32_t* data = static_cast<uint32_t*>(malloc(plt->size())); 114 memcpy(data, PLT0, plt->size()); 124 uint32_t* data = static_cast<uint32_t*>(malloc(plt->size())); 129 memcpy(data, PLTA, plt->size());
|
/frameworks/rs/ |
H A D | rsScriptGroup.cpp | 37 for (size_t ct=0; ct < mLinks.size(); ct++) { 61 //ALOGE("find %p %i", s, (int)mNodes.size()); 62 for (size_t ct=0; ct < mNodes.size(); ct++) { 64 for (size_t ct2=0; ct2 < n->mKernels.size(); ct2++) { 81 for (size_t ct=0; ct < n->mOutputs.size(); ct++) { 121 for (size_t ct=0; ct < mKernels.size(); ct++) { 134 //ALOGE("link count %i", (int)mLinks.size()); 135 for (size_t ct=0; ct < mLinks.size(); ct++) { 154 //ALOGE("node count %i", (int)mNodes.size()); 157 for (size_t ct=0; ct < mNodes.size(); c [all...] |
/frameworks/wilhelm/src/android/ |
H A D | AacBqToPcmCbRenderer.cpp | 26 // ADTS header size is 7, but frame size information ends on byte 6 (when counting from byte 1) 30 * Returns the size of an AAC ADTS frame. 31 * Note that if the returned value + offset > size, it means that a partial frame starts at that 32 * offset, but this function will still return the size of the full frame. 35 * @param size the size in bytes of the data block starting at data 36 * @return the size in bytes of the AAC ADTS frame starting at the given offset of the given 39 static size_t getAdtsFrameSize(const uint8_t *data, off64_t offset, size_t size) { argument 42 if (!(offset + ADTS_HEADER_SIZE_UP_TO_FRAMESIZE < (off64_t) size)) { 84 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/core/tests/coretests/src/android/app/backup/ |
H A D | FullBackupTest.java | 66 assertEquals("Excluding files when there was no <exclude/> tag.", 0, excludesSet.size()); 67 assertEquals("Unexpected number of <include/>s", 1, includeMap.size()); 70 assertEquals("Didn't find expected file domain include.", 1, fileDomainIncludes.size()); 85 assertEquals("Including files when there was no <include/> tag.", 0, includeMap.size()); 86 assertEquals("Unexpected number of <exclude/>s", 1, excludesSet.size()); 103 assertEquals("Didn't find expected file domain include.", 1, fileDomainIncludes.size()); 108 assertEquals("Unexpected number of <exclude/>s", 1, excludesSet.size()); 132 assertEquals("Didn't find expected file domain include.", 1, fileDomainIncludes.size()); 140 3, databaseDomainIncludes.size()); 163 3, sharedPrefDomainIncludes.size()); [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | ArrayUtilsTest.java | 48 assertEquals(1, collection.size()); 53 assertEquals(0, collection.size()); 57 assertEquals(2, collection.size()); 63 assertEquals(1, collection.size()); 68 assertEquals(1, collection.size()); 73 assertEquals(0, collection.size()); 77 assertEquals(3, collection.size()); 84 assertEquals(2, collection.size()); 90 assertEquals(2, collection.size()); 96 assertEquals(2, collection.size()); [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/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 37 _exceptionMessage = "size == null"; 49 size = size_base + sizeOffset; 90 (GLint *)size, 117 /* void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) */ 130 GLint *size = (GLint *) 0; local 135 size = (GLint *)getPointer(_env, size_buf, (jarray*)&_sizeArray, &_sizeRemaining, &_sizeBufferOffset); 141 if (size == NULL) { 143 size 178 GLint *size = (GLint *) 0; local 275 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 37 _exceptionMessage = "size == null"; 49 size = size_base + sizeOffset; 90 (GLint *)size, 117 /* void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name ) */ 130 GLint *size = (GLint *) 0; local 135 size = (GLint *)getPointer(_env, size_buf, (jarray*)&_sizeArray, &_sizeRemaining, &_sizeBufferOffset); 141 if (size == NULL) { 143 size 179 GLint *size = (GLint *) 0; local 276 GLint *size = (GLint *) 0; local [all...] |
/frameworks/rs/api/ |
H A D | rs_graphics.spec | 33 size: 32 52 size: 32 70 size: 32 83 size: 32 102 size: 32 119 size: 32 131 size: 32 142 size: 32 153 size: 32 164 size [all...] |
/frameworks/av/services/audioflinger/ |
H A D | Effects.cpp | 113 size_t size = mHandles.size(); local 116 for (i = 0; i < size; i++) { 149 size_t size = mHandles.size(); local 151 for (i = 0; i < size; i++) { 156 if (i == size) { 157 return size; 173 if (mHandles.size() == 0 && !mPinned) { 177 return mHandles.size(); 322 uint32_t size; local 438 uint32_t size = sizeof(status_t); local 480 uint32_t size = sizeof(status_t); local 515 uint32_t size = sizeof(status_t); local 574 uint32_t size = (replySize == NULL) ? 0 : *replySize; local 688 uint32_t size = sizeof(volume); local 721 uint32_t size = sizeof(status_t); local 743 uint32_t size = sizeof(status_t); local 765 uint32_t size = 0; local 813 uint32_t size = sizeof(status_t); local 1244 int size = *p++; local 1327 dumpToBuffer(char* buffer, size_t size) argument 1374 size_t size = mEffects.size(); local 1387 size_t size = mEffects.size(); local 1402 size_t size = mEffects.size(); local 1468 size_t size = mEffects.size(); local 1523 size_t size = mEffects.size(); local 1599 size_t size = mEffects.size(); local 1632 size_t size = mEffects.size(); local 1641 size_t size = mEffects.size(); local 1650 size_t size = mEffects.size(); local 1663 size_t size = mEffects.size(); local 1951 size_t size = mEffects.size(); local [all...] |
/frameworks/av/drm/common/ |
H A D | DrmSupportInfo.cpp | 50 for (size_t i = 0; i < mMimeTypeVector.size(); i++) { 61 for (size_t 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))) {
|