Searched defs:length (Results 176 - 200 of 291) sorted by relevance

1234567891011>>

/frameworks/av/drm/libdrmframework/plugins/passthru/src/
H A DDrmPassthruPlugIn.cpp66 charValue = new char[value.length() + 1];
67 strncpy(charValue, value.string(), value.length());
149 int length = dataString.length(); local
151 data = new char[length];
152 memcpy(data, dataString.string(), length);
154 DrmBuffer(data, length), drmInfoRequest->getMimeType());
221 if (NULL != inputData && 0 < inputData->length) {
222 int length = inputData->length; local
236 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument
[all...]
/frameworks/av/include/drm/
H A Ddrm_framework_common.h68 int length; member in class:android::DrmBuffer
72 length(0) {
77 length(dataLength) {
/frameworks/av/media/libmedia/
H A DIMediaRecorder.cpp168 status_t setOutputFile(int fd, int64_t offset, int64_t length) { argument
169 ALOGV("setOutputFile(%d, %lld, %lld)", fd, offset, length);
174 data.writeInt64(length);
392 int64_t length = data.readInt64(); local
393 reply->writeInt32(setOutputFile(fd, offset, length));
/frameworks/av/media/libstagefright/
H A DStagefrightMetadataRetriever.cpp83 int fd, int64_t offset, int64_t length) {
86 ALOGV("setDataSource(%d, %lld, %lld)", fd, offset, length);
93 mSource = new FileSource(fd, offset, length);
82 setDataSource( int fd, int64_t offset, int64_t length) argument
/frameworks/av/media/libstagefright/id3/
H A DID3.cpp306 // Strip data length indicator
563 const uint8_t *ID3::Iterator::getData(size_t *length) const {
564 *length = 0;
570 *length = mFrameSize - getHeaderLength();
659 // Per-frame unsynchronization and data-length indicator
751 ID3::getAlbumArt(size_t *length, String8 *mime) const { argument
752 *length = 0;
779 *length = size - 2 - mimeLen - descLen;
806 *length = size - 5 - descLen;
/frameworks/av/media/libstagefright/rtsp/
H A DARTPWriter.cpp323 uint32_t length = tolel(buffer->size()); local
325 write(fd, &length, sizeof(length));
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothSocket.java193 if(fds == null || fds.length != 1) {
410 /*package*/ int read(byte[] b, int offset, int length) throws IOException { argument
412 if (VDBG) Log.d(TAG, "read in: " + mSocketIS + " len: " + length);
413 int ret = mSocketIS.read(b, offset, length);
420 /*package*/ int write(byte[] b, int offset, int length) throws IOException { argument
422 if (VDBG) Log.d(TAG, "write: " + mSocketOS + " length: " + length);
423 mSocketOS.write(b, offset, length);
425 if (VDBG) Log.d(TAG, "write out: " + mSocketOS + " length: " + length);
[all...]
/frameworks/base/core/java/android/util/
H A DJsonReader.java221 * and length in the buffer.
609 /* In lenient mode, a 0-length literal means 'null' */
739 while ((total = in.read(buffer, limit, buffer.length - limit)) != -1) {
855 for (; pos + toFind.length() <= limit || fillBuffer(toFind.length()); pos++) {
856 for (int c = 0; c < toFind.length(); c++) {
957 if (i < buffer.length) {
1103 private JsonToken decodeNumber(char[] chars, int offset, int length) { argument
1144 if (i == offset + length) {
/frameworks/base/core/java/android/view/inputmethod/
H A DBaseInputConnection.java77 Object[] sps = text.getSpans(0, text.length(), Object.class);
79 for (int i=sps.length-1; i>=0; i--) {
89 setComposingSpans(text, 0, text.length());
96 for (int i=sps.length-1; i>=0; i--) {
250 if (end > content.length()) end = content.length();
311 public CharSequence getTextBeforeCursor(int length, int flags) { argument
328 if (length > a) {
329 length = a;
333 return content.subSequence(a - length,
367 getTextAfterCursor(int length, int flags) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DInputConnectionWrapper.java183 public CharSequence getTextAfterCursor(int length, int flags) { argument
187 mIInputContext.getTextAfterCursor(length, flags, callback.mSeq, callback);
201 public CharSequence getTextBeforeCursor(int length, int flags) { argument
205 mIInputContext.getTextBeforeCursor(length, flags, callback.mSeq, callback);
/frameworks/base/core/tests/coretests/src/android/util/
H A DJsonReaderTest.java280 private void testLongNumericLiterals(int length, JsonToken expectedToken) throws IOException { argument
281 char[] longNumber = new char[length];
/frameworks/base/libs/androidfw/
H A DAsset.cpp125 off64_t length; local
140 length = lseek64(fd, 0, SEEK_END);
141 if (length < 0) {
160 result = pAsset->openChunk(fileName, fd, 0, length);
236 size_t length, AccessMode mode)
242 result = pAsset->openChunk(NULL, fd, offset, length);
311 * length.
371 * Zero-length chunks are allowed.
373 status_t _FileAsset::openChunk(const char* fileName, int fd, off64_t offset, size_t length) argument
381 * Seek to end to get file length
[all...]
/frameworks/base/services/jni/
H A Dcom_android_server_BatteryService.cpp251 int length = readFromFile(path, buf, sizeof(buf)); local
252 if (length > 0) {
253 if (buf[length - 1] == '\n')
254 buf[length - 1] = 0;
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DGsmAlphabet.java54 * 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
668 stringToGsm8BitUnpackedField(String s, byte dest[], int offset, int length) argument
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DTestWebServer.java470 * @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/compile/libbcc/lib/Renderscript/runtime/
H A Drs_cl.c852 extern float __attribute__((overloadable)) length(float v) { function
855 extern float __attribute__((overloadable)) length(float2 v) { function
858 extern float __attribute__((overloadable)) length(float3 v) { function
861 extern float __attribute__((overloadable)) length(float4 v) { function
866 return length(lhs - rhs);
869 return length(lhs - rhs);
872 return length(lhs - rhs);
875 return length(lhs - rhs);
882 return v / length(v);
885 return v / length(
[all...]
/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/include/utils/
H A DVector.h124 ssize_t insertArrayAt(const TYPE* array, size_t index, size_t length);
127 ssize_t appendArray(const TYPE* array, size_t length);
310 ssize_t Vector<TYPE>::insertArrayAt(const TYPE* array, size_t index, size_t length) { argument
311 return VectorImpl::insertArrayAt(array, index, length);
315 ssize_t Vector<TYPE>::appendArray(const TYPE* array, size_t length) { argument
316 return VectorImpl::appendArray(array, length);
/frameworks/native/libs/utils/
H A DString8.cpp317 size_t oldLength = length();
395 void String8::toLower(size_t start, size_t length) argument
401 if (start+length > len) {
402 length = len-start;
406 while (length > 0) {
409 length--;
419 void String8::toUpper(size_t start, size_t length) argument
425 if (start+length > len) {
426 length = len-start;
430 while (length >
[all...]
/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/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/base/media/jni/
H A Dandroid_media_MediaMetadataRetriever.cpp134 static void android_media_MediaMetadataRetriever_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument
147 if (offset < 0 || length < 0 || fd < 0) {
151 if (length < 0) {
152 ALOGE("negative length (%lld)", length);
160 process_media_retriever_call(env, retriever->setDataSource(fd, offset, length), "java/lang/RuntimeException", "setDataSource failed");
H A Dandroid_media_MediaRecorder.cpp250 android_media_MediaRecorder_setOutputFileFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument
259 status_t opStatus = mr->setOutputFile(fd, offset, length);

Completed in 237 milliseconds

1234567891011>>