/frameworks/base/media/java/android/media/ |
H A D | SoundPool.java | 249 * and the length specifies the length of the sound within the file. 253 * @param length length of the sound 258 public int load(FileDescriptor fd, long offset, long length, int priority) { argument 259 return mImpl.load(fd, offset, length, priority); 486 FileDescriptor fd, long offset, long length, int priority); 556 id = _load(fd.getFileDescriptor(), 0, f.length(), priority); 583 throw new AndroidRuntimeException("no length for fd"); 591 public int load(FileDescriptor fd, long offset, long length, in argument 485 load( FileDescriptor fd, long offset, long length, int priority) argument 597 _load(FileDescriptor fd, long offset, long length, int priority) argument 740 load(FileDescriptor fd, long offset, long length, int priority) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaMetadataRetriever.cpp | 146 static void android_media_MediaMetadataRetriever_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument 159 if (offset < 0 || length < 0 || fd < 0) { 163 if (length < 0) { 164 ALOGE("negative length (%lld)", (long long)length); 172 process_media_retriever_call(env, retriever->setDataSource(fd, offset, length), "java/lang/RuntimeException", "setDataSource failed");
|
H A D | android_media_MediaRecorder.cpp | 254 android_media_MediaRecorder_setOutputFileFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument 263 status_t opStatus = mr->setOutputFile(fd, offset, length);
|
H A D | android_mtp_MtpDevice.cpp | 178 int length = storageIDs->size(); local 179 jintArray array = env->NewIntArray(length); 181 env->SetIntArrayRegion(array, 0, length, (const jint *)storageIDs->array()); 232 int length = handles->size(); local 233 jintArray array = env->NewIntArray(length); 235 env->SetIntArrayRegion(array, 0, length, (const jint *)handles->array()); 308 static bool get_object_callback(void* data, int offset, int length, void* clientData) argument 311 cbData->env->SetByteArrayRegion(cbData->array, offset, length, (jbyte *)data); 344 int length; local 345 void* thumbnail = device->getThumbnail(objectID, length); [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | Frame.java | 105 public abstract void setData(ByteBuffer buffer, int offset, int length); argument 111 public void setData(byte[] bytes, int offset, int length) { argument 112 setData(ByteBuffer.wrap(bytes, offset, length));
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_shader_program.cpp | 275 const int length = env->GetArrayLength(values); local 285 length,
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | Matrix.java | 69 * resultOffset + 16 > result.length or lhsOffset + 16 > lhs.length or 70 * rhsOffset + 16 > rhs.length. 93 * or rhsVec are null, or if resultVecOffset + 4 > resultVec.length 94 * or lhsMatOffset + 16 > lhsMat.length or 95 * rhsVecOffset + 4 > rhsVec.length. 407 * Computes the length of a vector. 412 * @return the length of a vector 414 public static float length(float x, float y, float z) { method in class:Matrix 611 float len = length( [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | GsmAlphabet.java | 54 * User data header requires one octet for length. Count as one septet, because 62 * requires a user data header of 3 octets, or 4 septets, plus UDH length. 68 * requires a user data header of 6 octets, or 7 septets, plus UDH length. 74 * plus UDH length. 263 * @param header Optional header (including length byte) that precedes 288 * @param header Optional header (including length byte) that precedes 299 if (header == null || header.length == 0) { 303 int headerBits = (header.length + 1) * 8; 310 ret[1] = (byte)header.length; 311 System.arraycopy(header, 0, ret, 2, header.length); 559 gsm8BitUnpackedToString(byte[] data, int offset, int length) argument 574 gsm8BitUnpackedToString(byte[] data, int offset, int length, String characterset) argument 677 stringToGsm8BitUnpackedField(String s, byte dest[], int offset, int length) argument [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
H A D | TestWebServer.java | 470 * @param length Amount of data to read 473 private int readData(InputStream is, int length) { argument 477 byte[] buf = new byte[length]; 481 count = is.read(buf, read, length-read); 630 int length = new Integer(lengthString).intValue(); 633 length = readData(is, length); 634 return length; 698 if ((testNum < 0) || (testNum > TestWebData.tests.length - 1)) { 709 if ((testNum > 0) || (testNum < TestWebData.tests.length [all...] |
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/jni/ |
H A D | jni_stochastic_linear_ranker.cpp | 31 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 D | vec.h | 206 TYPE PURE length(const V<TYPE, SIZE>& v) { function in namespace:android 225 return v * (1/length(v));
|
/frameworks/rs/cpp/ |
H A D | ScriptIntrinsics.cpp | 541 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/rs/ |
H A D | rsScript.cpp | 171 void rsi_ScriptSetTimeZone(Context * rsc, RsScript vs, const char * timeZone, size_t length) { argument 175 char *tz = (char *) malloc(length + 1); 180 strncpy(tz, timeZone, length); 181 tz[length] = '\0';
|
/frameworks/wilhelm/src/android/ |
H A D | android_GenericPlayer.cpp | 101 void GenericPlayer::setDataSource(int fd, int64_t offset, int64_t length, bool closeAfterUse) { argument 102 SL_LOGV("GenericPlayer::setDataSource(fd=%d, offset=%lld, length=%lld, closeAfterUse=%s)", fd, 103 offset, length, closeAfterUse ? "true" : "false"); 121 if (PLAYER_FD_FIND_FILE_SIZE == length) { 122 mDataLocator.fdi.length = sb.st_size; 123 } else if (offset + length > sb.st_size) { 124 mDataLocator.fdi.length = sb.st_size - offset; 126 mDataLocator.fdi.length = length;
|
H A D | android_defs.h | 195 int64_t length; member in struct:android::FdInfo
|
/frameworks/av/cmds/stagefright/ |
H A D | sf2.cpp | 354 size_t length = U16_AT(ptr); local 359 CHECK(size >= length); 362 memcpy(buffer->data() + buffer->size() + 4, ptr, length); 363 buffer->setRange(0, buffer->size() + 4 + length); 365 ptr += length; 366 size -= length; 382 size_t length = U16_AT(ptr); local 387 CHECK(size >= length); 390 memcpy(buffer->data() + buffer->size() + 4, ptr, length); 391 buffer->setRange(0, buffer->size() + 4 + length); [all...] |
/frameworks/av/drm/common/ |
H A D | IDrmManagerService.cpp | 244 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 D | DrmManager.cpp | 183 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 D | DrmManagerClientImpl.cpp | 250 int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) { 252 if ((NULL != drmSupportInfoArray) && (NULL != length)) { 254 uniqueId, length, drmSupportInfoArray); 261 off64_t length, const char* mime) { 264 uniqueId, fd, offset, length, mime); 249 getAllSupportInfo( int uniqueId, int* length, DrmSupportInfo** drmSupportInfoArray) argument 259 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 D | FwdLockEngine.cpp | 349 if (((0 == path.length()) || onCanHandle(uniqueId, path)) && 350 ((0 == mimeType.length()) || IsMimeTypeSupported(mimeType)) && (mimeType != path) ) { 412 inputData->length, 421 convResult->length = convSession->output.fromConvertData.numBytes; 424 convResult->length); 454 convResult->length = FWD_LOCK_SIGNATURES_SIZE; 457 convResult->length); 471 off64_t length) { 477 int length) { 542 // offset is always 0 and length i 467 onOpenDecryptSession(int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument [all...] |
/frameworks/av/media/libmedia/ |
H A D | IMediaPlayer.cpp | 105 status_t setDataSource(int fd, int64_t offset, int64_t length) { argument 110 data.writeInt64(length); 388 int64_t length = data.readInt64(); local 389 reply->writeInt32(setDataSource(fd, offset, length));
|
H A D | SoundPool.cpp | 216 int SoundPool::load(int fd, int64_t offset, int64_t length, int priority __unused) argument 218 ALOGV("load: fd=%d, offset=%" PRId64 ", length=%" PRId64 ", priority=%d", 219 fd, offset, length, priority); 221 sp<Sample> sample = new Sample(++mNextSampleID, fd, offset, length); 461 Sample::Sample(int sampleID, int fd, int64_t offset, int64_t length) argument 467 mLength = length; 468 ALOGV("create sampleID=%d, fd=%d, offset=%" PRId64 " length=%" PRId64,
|
H A D | mediaplayer.cpp | 165 status_t MediaPlayer::setDataSource(int fd, int64_t offset, int64_t length) argument 167 ALOGV("setDataSource(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length); 173 (NO_ERROR != player->setDataSource(fd, offset, length))) { 866 /*static*/ status_t MediaPlayer::decode(int fd, int64_t offset, int64_t length, argument 871 ALOGV("decode(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length); 875 status = service->decode(fd, offset, length, pSampleRate,
|
/frameworks/av/media/libstagefright/ |
H A D | MPEG2TSWriter.cpp | 205 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 1013 crc32(const uint8_t *p_start, size_t length) argument [all...] |
H A D | Utils.cpp | 207 size_t length = U16_AT(ptr); local 212 CHECK(size >= length); 215 memcpy(buffer->data() + buffer->size() + 4, ptr, length); 216 buffer->setRange(0, buffer->size() + 4 + length); 218 ptr += length; 219 size -= length; 237 size_t length = U16_AT(ptr); local 242 CHECK(size >= length); 245 memcpy(buffer->data() + buffer->size() + 4, ptr, length); 246 buffer->setRange(0, buffer->size() + 4 + length); 286 size_t length = U16_AT(ptr); local [all...] |