Searched defs:length (Results 201 - 225 of 299) sorted by relevance

1234567891011>>

/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/jni/
H A Djni_stochastic_linear_ranker.cpp31 const int length, SparseWeightVector<string> * sample) {
33 for (int i = 0; i < length; ++i) {
52 const int length, SparseWeightVector<string> *sample) {
30 CreateSparseWeightVector(JNIEnv* env, const jobjectArray keys, const float* values, const int length, SparseWeightVector<string> * sample) argument
51 DecomposeSparseWeightVector(JNIEnv* env, jobjectArray *keys, jfloatArray *values, const int length, SparseWeightVector<string> *sample) argument
/frameworks/native/services/sensorservice/
H A Dvec.h206 TYPE PURE length(const V<TYPE, SIZE>& v) { function in namespace:android
225 return v * (1/length(v));
/frameworks/rs/cpp/
H A DScriptIntrinsics.cpp541 void ScriptIntrinsicLUT::setTable(unsigned int offset, unsigned char base, unsigned int length, unsigned char* lutValues) { argument
542 if ((base + length) > 256 || length == 0) {
547 for (unsigned int i = 0; i < length; i++) {
552 void ScriptIntrinsicLUT::setRed(unsigned char base, unsigned int length, unsigned char* lutValues) { argument
553 setTable(0, base, length, lutValues);
556 void ScriptIntrinsicLUT::setGreen(unsigned char base, unsigned int length, unsigned char* lutValues) { argument
557 setTable(256, base, length, lutValues);
560 void ScriptIntrinsicLUT::setBlue(unsigned char base, unsigned int length, unsigned char* lutValues) { argument
561 setTable(512, base, length, lutValue
564 setAlpha(unsigned char base, unsigned int length, unsigned char* lutValues) argument
[all...]
/frameworks/wilhelm/include/SLES/
H A DOpenSLES_Android.h308 SLAint64 length; member in struct:SLDataLocator_AndroidFD_
/frameworks/wilhelm/src/android/
H A Dandroid_GenericPlayer.cpp100 void GenericPlayer::setDataSource(int fd, int64_t offset, int64_t length, bool closeAfterUse) { argument
101 SL_LOGV("GenericPlayer::setDataSource(fd=%d, offset=%lld, length=%lld, closeAfterUse=%s)", fd,
102 offset, length, closeAfterUse ? "true" : "false");
120 if (PLAYER_FD_FIND_FILE_SIZE == length) {
121 mDataLocator.fdi.length = sb.st_size;
122 } else if (offset + length > sb.st_size) {
123 mDataLocator.fdi.length = sb.st_size - offset;
125 mDataLocator.fdi.length = length;
H A Dandroid_defs.h195 int64_t length; member in struct:android::FdInfo
/frameworks/av/cmds/stagefright/
H A Dsf2.cpp330 size_t length = U16_AT(ptr); local
335 CHECK(size >= length);
338 memcpy(buffer->data() + buffer->size() + 4, ptr, length);
339 buffer->setRange(0, buffer->size() + 4 + length);
341 ptr += length;
342 size -= length;
358 size_t length = U16_AT(ptr); local
363 CHECK(size >= length);
366 memcpy(buffer->data() + buffer->size() + 4, ptr, length);
367 buffer->setRange(0, buffer->size() + 4 + length);
[all...]
/frameworks/av/drm/common/
H A DIDrmManagerService.cpp244 const int dataBufferSize = dataBuffer.length;
348 data.writeInt32(dataBuffer.length);
349 data.write(dataBuffer.data, dataBuffer.length);
508 data.writeInt32(inputData->length);
509 data.write(inputData->data, inputData->length);
568 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) {
599 *length = arraySize;
604 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
612 data.writeInt64(length);
663 if (buf.data != NULL && buf.length >
567 getAllSupportInfo( int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) argument
603 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
1271 int length = 0; local
1308 const off64_t length = data.readInt64(); local
[all...]
/frameworks/av/drm/drmserver/
H A DDrmManager.cpp183 if (0 < path.length()) {
373 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) {
400 *length = validPlugins;
405 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
418 result = rDrmEngine.openDecryptSession(uniqueId, handle, fd, offset, length, mime);
372 getAllSupportInfo( int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) argument
404 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
/frameworks/av/drm/libdrmframework/
H A DDrmManagerClientImpl.cpp239 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) {
241 if ((NULL != drmSupportInfoArray) && (NULL != length)) {
243 uniqueId, length, drmSupportInfoArray);
250 off64_t length, const char* mime) {
253 uniqueId, fd, offset, length, mime);
238 getAllSupportInfo( int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) argument
248 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
H A DFwdLockEngine.cpp348 if (((0 == path.length()) || onCanHandle(uniqueId, path)) &&
349 ((0 == mimeType.length()) || IsMimeTypeSupported(mimeType)) && (mimeType != path) ) {
411 inputData->length,
420 convResult->length = convSession->output.fromConvertData.numBytes;
423 convResult->length);
453 convResult->length = FWD_LOCK_SIGNATURES_SIZE;
456 convResult->length);
470 off64_t length) {
476 int length) {
541 // offset is always 0 and length i
466 onOpenDecryptSession(int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument
[all...]
/frameworks/av/libvideoeditor/vss/src/
H A DM4xVSS_API.c71 M4OSA_UInt32 length = 0, i; local
601 M4OSA_UInt32 length = 0; local
840 UTFConversionContext.pTempOutConversionBuffer, &length);
850 pSettings->uiOutputPathSize = length;
1495 pTempOutConversionBuffer, &length);
1803 length = strlen(pDecodedPath);
1816 &length);
1833 pParams->pFileIn = (M4OSA_Void *)M4OSA_32bitAlignedMalloc(length + 1, M4VS,
1846 (length + 1)); /* Copy input file path */
1876 length
4762 M4OSA_UInt32 length = 0; local
[all...]
/frameworks/av/media/libmedia/
H A DIMediaPlayer.cpp98 status_t setDataSource(int fd, int64_t offset, int64_t length) { argument
103 data.writeInt64(length);
373 int64_t length = data.readInt64(); local
374 reply->writeInt32(setDataSource(fd, offset, length));
H A DSoundPool.cpp212 int SoundPool::load(int fd, int64_t offset, int64_t length, int priority) argument
214 ALOGV("load: fd=%d, offset=%lld, length=%lld, priority=%d",
215 fd, offset, length, priority);
217 sp<Sample> sample = new Sample(++mNextSampleID, fd, offset, length);
457 Sample::Sample(int sampleID, int fd, int64_t offset, int64_t length) argument
463 mLength = length;
464 ALOGV("create sampleID=%d, fd=%d, offset=%lld, length=%lld", mSampleID, mFd, mLength, mOffset);
H A Dmediaplayer.cpp157 status_t MediaPlayer::setDataSource(int fd, int64_t offset, int64_t length) argument
159 ALOGV("setDataSource(%d, %lld, %lld)", fd, offset, length);
165 (NO_ERROR != player->setDataSource(fd, offset, length))) {
802 /*static*/ status_t MediaPlayer::decode(int fd, int64_t offset, int64_t length, argument
807 ALOGV("decode(%d, %lld, %lld)", fd, offset, length);
811 status = service->decode(fd, offset, length, pSampleRate,
/frameworks/av/media/libstagefright/
H A DMPEG2TSWriter.cpp205 size_t length = U16_AT(ptr); local
210 CHECK(size >= length);
212 CHECK_LE(out->size() + 4 + length, out->capacity());
214 memcpy(out->data() + out->size() + 4, ptr, length);
215 out->setRange(0, out->size() + length + 4);
217 ptr += length;
218 size -= length;
228 size_t length = U16_AT(ptr); local
233 CHECK(size >= length);
235 CHECK_LE(out->size() + 4 + length, ou
1012 crc32(const uint8_t *p_start, size_t length) argument
[all...]
/frameworks/av/media/mtp/
H A DMtpDevice.cpp576 bool (* callback)(void* data, int offset, int length, void* clientData),
585 uint32_t length = mData.getContainerLength(); local
586 if (length - MTP_CONTAINER_HEADER_SIZE != objectSize) {
587 ALOGE("readObject error objectSize: %d, length: %d",
588 objectSize, length);
591 length -= MTP_CONTAINER_HEADER_SIZE;
592 uint32_t remaining = length;
689 uint32_t length = mData.getContainerLength(); local
690 if (length < MTP_CONTAINER_HEADER_SIZE)
692 length
575 readObject(MtpObjectHandle handle, bool (* callback)(void* data, int offset, int length, void* clientData), int objectSize, void* clientData) argument
[all...]
/frameworks/base/core/java/android/text/
H A DHtml.java156 withinStyle(out, text, 0, text.length());
161 int len = text.length();
164 for (int i = 0; i < text.length(); i = next) {
170 for(int j = 0; j < style.length; j++) {
265 for (int j = 0; j < style.length; j++) {
317 while (color.length() < 6) {
327 for (int j = style.length - 1; j >= 0; j--) {
455 Object[] obj = mSpannableStringBuilder.getSpans(0, mSpannableStringBuilder.length(), ParagraphStyle.class);
456 for (int i = 0; i < obj.length; i++) {
517 } else if (tag.length()
771 characters(char ch[], int start, int length) argument
809 ignorableWhitespace(char ch[], int start, int length) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DIInputConnectionWrapper.java91 public void getTextAfterCursor(int length, int flags, int seq, IInputContextCallback callback) { argument
92 dispatchMessage(obtainMessageIISC(DO_GET_TEXT_AFTER_CURSOR, length, flags, seq, callback));
95 public void getTextBeforeCursor(int length, int flags, int seq, IInputContextCallback callback) { argument
96 dispatchMessage(obtainMessageIISC(DO_GET_TEXT_BEFORE_CURSOR, length, flags, seq, callback));
/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java81 int traceCapacity = mTraceX.length;
178 if (altStrategy.length() != 0) {
749 for (int i = 0; i < deviceIds.length; i++) {
782 final int valueLength = value.length();
861 private int reserve(int length) { argument
863 final int newLength = mLength + length;
865 final int oldCapacity = oldChars.length;
/frameworks/base/core/jni/
H A Dandroid_os_Parcel.cpp164 jint offset, jint length)
171 const status_t err = parcel->writeInt32(length);
177 void* dest = parcel->writeInplace(length);
185 memcpy(dest, ar + offset, length);
282 // sanity check the stored length against the true data size
521 jbyteArray data, jint offset, jint length)
524 if (parcel == NULL || length < 0) {
531 parcel->setDataSize(length);
534 void* raw = parcel->writeInplace(length);
535 memcpy(raw, (array + offset), length);
163 android_os_Parcel_writeNative(JNIEnv* env, jclass clazz, jint nativePtr, jobject data, jint offset, jint length) argument
520 android_os_Parcel_unmarshall(JNIEnv* env, jclass clazz, jint nativePtr, jbyteArray data, jint offset, jint length) argument
541 android_os_Parcel_appendFrom(JNIEnv* env, jclass clazz, jint thisNativePtr, jint otherNativePtr, jint offset, jint length) argument
[all...]
/frameworks/base/libs/hwui/
H A DCaches.h367 static void eventMarkNull(GLsizei length, const GLchar* marker) { } argument
368 static void startMarkNull(GLsizei length, const GLchar* marker) { } argument
371 static void setLabelNull(GLenum type, uint object, GLsizei length, argument
374 GLsizei* length, char* label) {
375 if (length) *length = 0;
373 getLabelNull(GLenum type, uint object, GLsizei bufferSize, GLsizei* length, char* label) argument
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DGLFrame.java207 public void setData(ByteBuffer buffer, int offset, int length) { argument
211 if (getFormat().getSize() != bytes.length) {
213 } else if (!setNativeData(bytes, offset, length)) {
380 private native boolean setNativeData(byte[] data, int offset, int length); argument
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifParser.java297 // Some camera models use invalid length of the offset
692 for (int i = 0, n = value.length; i < n; i++) {
700 for (int i = 0, n = value.length; i < n; i++) {
708 for (int i = 0, n = value.length; i < n; i++) {
716 for (int i = 0, n = value.length; i < n; i++) {
724 for (int i = 0, n = value.length; i < n; i++) {
762 int length = dataStream.readUnsignedShort();
768 if (length >= 8) {
771 length -= 6;
774 mApp1End = length;
800 read(byte[] buffer, int offset, int length) argument
[all...]
H A DExifTag.java211 * setValue() if the length of value does not match the component count.
232 * <li>The value.length does NOT match the component count in the definition
237 if (checkBadComponentCount(value.length)) {
250 long[] data = new long[value.length];
251 for (int i = 0; i < value.length; i++) {
255 mComponentCountActual = value.length;
282 * <li>The value.length does NOT match the component count in the definition
287 if (checkBadComponentCount(value.length) || mDataType != TYPE_UNSIGNED_LONG) {
294 mComponentCountActual = value.length;
316 * Characters that cannot be converted are replaced with '?'. The length o
411 setValue(byte[] value, int offset, int length) argument
850 getBytes(byte[] buf, int offset, int length) argument
[all...]

Completed in 602 milliseconds

1234567891011>>