/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | TintTypedArray.java | 87 public int length() { method in class:TintTypedArray 88 return mWrapped.length();
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | StaggeredGridLayoutManagerTest.java | 626 for (int i = 0; i < childSpanTuples.length; i++) { 662 newSpans, 0, 0, newSpans.length); 673 Math.min(original.length - from, newLength)); 720 int length) { 721 for (int i = 0; i < length; i++) { 719 assertSpanAssignmentEquality(String msg, int[] set1, int[] set2, int start1, int start2, int length) argument
|
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
H A D | DiskBasedCache.java | 119 byte[] data = streamToBytes(cis, (int) (file.length() - cis.bytesRead)); 158 entry.size = file.length(); 197 pruneIfNeeded(entry.data.length); 239 int firstHalfLength = key.length() / 2; 322 private static byte[] streamToBytes(InputStream in, int length) throws IOException { argument 323 byte[] bytes = new byte[length]; 326 while (pos < length && ((count = in.read(bytes, pos, length - pos)) != -1)) { 329 if (pos != length) { 330 throw new IOException("Expected " + length [all...] |
/frameworks/wilhelm/include/OMXAL/ |
H A D | OpenMAXAL_Android.h | 166 XAAint64 length; member in struct:XADataLocator_AndroidFD_
|
/frameworks/av/drm/libdrmframework/plugins/passthru/src/ |
H A D | DrmPassthruPlugIn.cpp | 66 charValue = new char[value.length() + 1]; 67 strncpy(charValue, value.string(), value.length()); 68 charValue[value.length()] = '\0'; 150 int length = dataString.length(); local 152 data = new char[length]; 153 memcpy(data, dataString.string(), length); 155 DrmBuffer(data, length), drmInfoRequest->getMimeType()); 222 if (NULL != inputData && 0 < inputData->length) { 223 int length local 237 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument [all...] |
/frameworks/av/include/drm/ |
H A D | drm_framework_common.h | 68 int length; member in class:android::DrmBuffer 72 length(0) { 77 length(dataLength) {
|
/frameworks/av/media/img_utils/src/ |
H A D | TiffWriter.cpp | 29 const TagDefinition_t* definitions, size_t length) { 31 for(size_t i = 0; i < length; ++i) { 55 size_t length) : mTagMaps(enabledDefinitions), mNumTagMaps(length) {} 383 size_t length = mNamedIfds.size(); local 384 for (size_t i = 0; i < length; ++i) { 28 buildTagMap( const TagDefinition_t* definitions, size_t length) argument 54 TiffWriter(KeyedVector<uint16_t, const TagDefinition_t*>* enabledDefinitions, size_t length) argument
|
/frameworks/av/media/libmedia/ |
H A D | IMediaRecorder.cpp | 174 status_t setOutputFile(int fd, int64_t offset, int64_t length) { argument 175 ALOGV("setOutputFile(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length); 180 data.writeInt64(length); 432 int64_t length = data.readInt64(); local 433 reply->writeInt32(setOutputFile(fd, offset, length));
|
H A D | IMediaSource.cpp | 169 size_t length = reply.readInt32(); local 171 buf->set_range(offset, length); 360 const size_t length = buf->range_length(); local 362 if (length >= (supportNonblockingRead() && buf->mMemory != nullptr ? 365 ALOGV("Use shared memory: %zu", length); 368 ALOGD("Large buffer %zu without IMemory!", length); 370 &transferBuf, false /* nonBlocking */, length); 375 length, ret); 383 memcpy(transferBuf->data(), (uint8_t*)buf->data() + offset, length); 413 reply->writeInt32(length); [all...] |
/frameworks/av/media/libstagefright/id3/ |
H A D | ID3.cpp | 370 // Strip data length indicator 641 const uint8_t *ID3::Iterator::getData(size_t *length) const { 642 *length = 0; 653 *length = mFrameSize - getHeaderLength(); 764 // Per-frame unsynchronization and data-length indicator 856 ID3::getAlbumArt(size_t *length, String8 *mime) const { argument 857 *length = 0; 893 *length = size - 2 - mimeLen - descLen; 920 *length = size - 5 - descLen;
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ARTPWriter.cpp | 323 uint32_t length = tolel(buffer->size()); local 325 write(fd, &length, sizeof(length));
|
/frameworks/av/media/ndk/ |
H A D | NdkMediaExtractor.cpp | 75 off64_t length) { 76 ALOGV("setDataSource(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length); 77 return translate_error(mData->mImpl->setDataSource(fd, offset, length)); 242 // 4 byte data length N 262 // get data length 307 // get/copy data length 346 // The two must be of the same length. 355 // Keys must be 16 bytes in length. 364 // IVs must be 16 bytes in length. 74 AMediaExtractor_setDataSourceFd(AMediaExtractor *mData, int fd, off64_t offset, off64_t length) argument
|
/frameworks/base/core/java/android/content/res/ |
H A D | TypedArray.java | 57 if (attrs.mData.length >= fullLen) { 89 public int length() { method in class:TypedArray 1104 * @return an array of length {@link #getIndexCount()} populated with theme 1127 final int N = length(); 1146 if (scrap != null && scrap.length == N) { 1177 final int N = length();
|
/frameworks/base/core/java/android/os/ |
H A D | Bundle.java | 68 /* package */ Bundle(Parcel parcelledData, int length) { argument 69 super(parcelledData, length); 261 for (int n = array.length - 1; n >= 0; n--) {
|
/frameworks/base/core/java/android/util/ |
H A D | JsonReader.java | 221 * and length in the buffer. 612 /* In lenient mode, a 0-length literal means 'null' */ 742 while ((total = in.read(buffer, limit, buffer.length - limit)) != -1) { 858 for (; pos + toFind.length() <= limit || fillBuffer(toFind.length()); pos++) { 859 for (int c = 0; c < toFind.length(); c++) { 960 if (i < buffer.length) { 1106 private JsonToken decodeNumber(char[] chars, int offset, int length) { argument 1147 if (i == offset + length) {
|
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | BaseInputConnection.java | 80 Object[] sps = text.getSpans(0, text.length(), Object.class); 82 for (int i=sps.length-1; i>=0; i--) { 92 setComposingSpans(text, 0, text.length()); 99 for (int i=sps.length-1; i>=0; i--) { 259 if (end > content.length()) end = content.length(); 274 final int N = cs.length(); 284 return currentIndex; // Reached to the requested length in code points. 318 final int N = cs.length(); 329 return currentIndex; // Reached to the requested length i 482 getTextBeforeCursor(int length, int flags) argument 538 getTextAfterCursor(int length, int flags) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_graphics_drawable_AnimatedVectorDrawable.cpp | 148 jfloatArray srcData, jint length) { 152 holder->setPropertyDataSource(propertyData, length); 157 jintArray srcData, jint length) { 161 holder->setPropertyDataSource(propertyData, length); 147 setFloatPropertyHolderData(JNIEnv* env, jobject, jlong propertyHolderPtr, jfloatArray srcData, jint length) argument 156 setIntPropertyHolderData(JNIEnv* env, jobject, jlong propertyHolderPtr, jintArray srcData, jint length) argument
|
/frameworks/base/libs/androidfw/ |
H A D | Asset.cpp | 137 off64_t length; local 152 length = lseek64(fd, 0, SEEK_END); 153 if (length < 0) { 172 result = pAsset->openChunk(fileName, fd, 0, length); 248 size_t length, AccessMode mode) 254 result = pAsset->openChunk(NULL, fd, offset, length); 323 * length. 390 * Zero-length chunks are allowed. 392 status_t _FileAsset::openChunk(const char* fileName, int fd, off64_t offset, size_t length) argument 400 * Seek to end to get file length [all...] |
/frameworks/base/libs/hwui/ |
H A D | Matrix.cpp | 345 const float length = sqrtf(x * x + y * y + z * z); local 346 float recipLen = 1.0f / length;
|
H A D | RenderNode.h | 304 size_t length() const { function in class:android::uirenderer::RenderNode::TextContainer
|
/frameworks/base/media/java/android/media/ |
H A D | SoundPool.java | 222 id = _load(fd.getFileDescriptor(), 0, f.length(), priority); 272 throw new AndroidRuntimeException("no length for fd"); 285 * and the length specifies the length of the sound within the file. 289 * @param length length of the sound 294 public int load(FileDescriptor fd, long offset, long length, int priority) { argument 295 return _load(fd, offset, length, priority); 546 private native final int _load(FileDescriptor fd, long offset, long length, int priority); argument
|
/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");
|
/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...] |