/frameworks/av/media/libstagefright/foundation/ |
H A D | base64.cpp | 25 size_t n = s.size(); 50 if (out == NULL || buffer->size() < outLen) { 108 const void *_data, size_t size, AString *out) { 114 for (i = 0; i < (size / 3) * 3; i += 3) { 124 switch (size % 3) { 107 encodeBase64( const void *_data, size_t size, AString *out) argument
|
/frameworks/av/media/libstagefright/httplive/ |
H A D | LiveDataSource.cpp | 54 return mBufferQueue.size(); 58 off64_t offset, void *data, size_t size) { 71 totalAvailable += buffer->size(); 73 if (totalAvailable >= size) { 78 if (totalAvailable < size) { 82 return readAt_l(offset, data, size); 85 ssize_t LiveDataSource::readAt(off64_t offset, void *data, size_t size) { argument 87 return readAt_l(offset, data, size); 90 ssize_t LiveDataSource::readAt_l(off64_t offset, void *data, size_t size) { argument 98 while (sizeDone < size) { 57 readAtNonBlocking( off64_t offset, void *data, size_t size) argument [all...] |
/frameworks/av/media/libstagefright/id3/ |
H A D | testid3.cpp | 32 static void hexdump(const void *_data, size_t size) { argument 35 while (offset < size) { 38 size_t n = size - offset; 48 if (offset + i < size) { 104 printf("found album art: size=%zu mime='%s'\n", dataSize,
|
/frameworks/av/media/libstagefright/include/ |
H A D | ThrottledSource.h | 32 virtual ssize_t readAt(off64_t offset, void *data, size_t size); 45 virtual status_t getSize(off64_t *size) { argument 46 return mSource->getSize(size);
|
/frameworks/av/media/libstagefright/omx/tests/ |
H A D | FrameDropper_test.cpp | 99 void RunTest(const TestFrame* frames, size_t size) { argument 100 for (size_t i = 0; i < size; ++i) {
|
/frameworks/av/media/libstagefright/timedtext/ |
H A D | TextDescriptions.cpp | 27 const uint8_t *data, ssize_t size, 33 return extract3GPPGlobalDescriptions(data, size, parcel); 35 return extract3GPPLocalDescriptions(data, size, timeMs, parcel); 39 return extractSRTLocalDescriptions(data, size, timeMs, parcel); 50 const uint8_t *data, ssize_t size, int timeMs, Parcel *parcel) { 56 // write the size of the text sample 57 parcel->writeInt32(size); 59 parcel->writeInt32(size); 60 parcel->write(data, size); 71 const uint8_t *data, ssize_t size, 26 getParcelOfDescriptions( const uint8_t *data, ssize_t size, uint32_t flags, int timeMs, Parcel *parcel) argument 49 extractSRTLocalDescriptions( const uint8_t *data, ssize_t size, int timeMs, Parcel *parcel) argument 70 extract3GPPLocalDescriptions( const uint8_t *data, ssize_t size, int timeMs, Parcel *parcel) argument 374 extract3GPPGlobalDescriptions( const uint8_t *data, ssize_t size, Parcel *parcel) argument [all...] |
/frameworks/av/services/medialog/ |
H A D | MediaLogService.cpp | 31 void MediaLogService::registerWriter(const sp<IMemory>& shared, size_t size, const char *name) argument 34 size < kMinSize || size > kMaxSize || name == NULL || 35 shared->size() < NBLog::Timeline::sharedSize(size)) { 38 sp<NBLog::Reader> reader(new NBLog::Reader(size, shared)); 50 for (size_t i = 0; i < mNamedReaders.size(); ) { 92 write(fd, result.string(), result.size()); 102 for (size_t i = 0; i < namedReaders.size(); i++) {
|
/frameworks/base/core/java/android/app/backup/ |
H A D | BackupDataInput.java | 134 * Report the size in bytes of the data associated with the current entity in the 137 * @return The size of the record's raw data, in bytes 155 * @param data An allocated byte array of at least 'size' bytes 158 * @param size The number of bytes to read in this pass 163 public int readEntityData(byte[] data, int offset, int size) throws IOException { argument 165 int result = readEntityData_native(mBackupReader, data, offset, size); 196 private native int readEntityData_native(long mBackupReader, byte[] data, int offset, int size); argument
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | ParamsUtils.java | 40 * @param size a non-{@code null} size 44 * @throws NullPointerException if {@code size} was {@code null} 46 public static Rect createRect(Size size) { argument 47 checkNotNull(size, "size must not be null"); 49 return new Rect(/*left*/0, /*top*/0, size.getWidth(), size.getHeight()); 58 * @param size a non-{@code null} rect 96 * Create a {@link Size} from a {@code Rect} by creating a new size whos [all...] |
/frameworks/base/core/java/android/net/http/ |
H A D | HttpResponseCache.java | 67 * This cache will evict entries as necessary to keep its size from exceeding 68 * 10 MiB. The best cache size is application specific and depends on the size 176 * @param maxSize the maximum size of the cache in bytes. 216 * deletion is pending. {@code -1} is returned if the size cannot be determined. 218 public long size() { method in class:HttpResponseCache 220 return delegate.size();
|
/frameworks/base/core/java/android/os/ |
H A D | RegistrantList.java | 52 for (int i = registrants.size() - 1; i >= 0 ; i--) { 62 size() method in class:RegistrantList 64 return registrants.size(); 76 for (int i = 0, s = registrants.size(); i < s ; i++) { 110 for (int i = 0, s = registrants.size() ; i < s ; i++) {
|
/frameworks/base/core/java/android/text/ |
H A D | PackedObjectVector.java | 92 if (mRowGapLength > size() * 2) 100 size() method in class:PackedObjectVector 115 GrowingArrayUtils.growSize(size()) * mColumns);
|
/frameworks/base/core/java/android/text/style/ |
H A D | AbsoluteSizeSpan.java | 30 * Set the text size to <code>size</code> physical pixels. 32 public AbsoluteSizeSpan(int size) { argument 33 mSize = size; 37 * Set the text size to <code>size</code> physical pixels, 38 * or to <code>size</code> device-independent pixels if 41 public AbsoluteSizeSpan(int size, boolean dip) { argument 42 mSize = size;
|
/frameworks/base/core/java/android/util/ |
H A D | IntArray.java | 64 * @throws IndexOutOfBoundsException when index < 0 || index > size() 91 * {@link #size()} if all elements in the array are less than the specified key. 178 public int size() { method in class:IntArray
|
H A D | LongSparseLongArray.java | 155 public int size() { method in class:LongSparseLongArray 160 * Given an index in the range <code>0...size()-1</code>, returns 166 * smallest key and <code>keyAt(size()-1)</code> will return the largest 174 * Given an index in the range <code>0...size()-1</code>, returns 181 * smallest key and <code>valueAt(size()-1)</code> will return the value 242 if (size() <= 0) {
|
H A D | LruCache.java | 35 * <p>By default, the cache size is measured in the number of entries. Override 36 * {@link #sizeOf} to size the cache in different units. For example, this cache 66 private int size; field in class:LruCache 89 * Sets the size of the cache. 91 * @param maxSize The new maximum size. 145 size += safeSizeOf(key, createdValue); 172 size += safeSizeOf(key, value); 175 size -= safeSizeOf(key, previous); 189 * below the requested size. 191 * @param maxSize the maximum size o 316 public synchronized final int size() { method in class:LruCache [all...] |
H A D | SparseIntArray.java | 155 public int size() { method in class:SparseIntArray 160 * Given an index in the range <code>0...size()-1</code>, returns 166 * smallest key and <code>keyAt(size()-1)</code> will return the largest 174 * Given an index in the range <code>0...size()-1</code>, returns 181 * smallest key and <code>valueAt(size()-1)</code> will return the value 249 if (size() == 0) { 252 return Arrays.copyOf(mKeys, size()); 262 if (size() <= 0) {
|
H A D | SparseLongArray.java | 153 public int size() { method in class:SparseLongArray 158 * Given an index in the range <code>0...size()-1</code>, returns 164 * smallest key and <code>keyAt(size()-1)</code> will return the largest 172 * Given an index in the range <code>0...size()-1</code>, returns 179 * smallest key and <code>valueAt(size()-1)</code> will return the value 240 if (size() <= 0) {
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ImageUtils.java | 62 // shrink to a more manageable (yet hopefully no more or less colorful) size 83 final int size = height*width; 84 ensureBufferSize(size); 86 for (int i = 0; i < size; i++) { 95 * Makes sure that {@code mTempBuffer} has at least length {@code size}. 97 private void ensureBufferSize(int size) { argument 98 if (mTempBuffer == null || mTempBuffer.length < size) { 99 mTempBuffer = new int[size];
|
/frameworks/base/core/java/org/apache/http/params/ |
H A D | HttpConnectionParams.java | 130 public static void setSocketBufferSize(final HttpParams params, int size) { argument 134 params.setIntParameter(CoreConnectionPNames.SOCKET_BUFFER_SIZE, size);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Utils.cpp | 52 size_t AssetStreamAdaptor::read(void* buffer, size_t size) { argument 56 if (0 == size) { 67 off64_t newOffset = fAsset->seek(size, SEEK_CUR); 69 SkDebugf("---- fAsset->seek(%d) failed\n", size); 74 amount = fAsset->read(buffer, size); 76 SkDebugf("---- fAsset->read(%d) returned %d\n", size, amount); 97 const off64_t size = asset->getLength(); local 98 if (size <= 0) { 99 SkDebugf("---- copyAsset: asset->getLength() returned %d\n", size); 103 SkAutoTUnref<SkData> data(SkData::NewUninitialized(size)); [all...] |
/frameworks/base/core/jni/ |
H A D | android_backup_BackupDataInput.cpp | 94 readEntityData_native(JNIEnv* env, jobject clazz, jlong r, jbyteArray data, jint offset, jint size) argument 99 if (env->GetArrayLength(data) < (size+offset)) { 100 // size mismatch 109 err = reader->ReadEntityData(dataBytes+offset, size);
|
H A D | android_backup_BackupDataOutput.cpp | 63 writeEntityData_native(JNIEnv* env, jobject clazz, jlong w, jbyteArray data, jint size) argument 68 if (env->GetArrayLength(data) < size) { 69 // size mismatch 78 err = writer->WriteEntityData(dataBytes, size);
|
H A D | android_os_Trace.cpp | 34 size_t size = utf8Chars.size(); local 35 char* str = utf8Chars.lockBuffer(size); 36 for (size_t i = 0; i < size; i++) { 60 String8 utf8Chars(reinterpret_cast<const char16_t*>(jchars.get()), jchars.size()); 77 String8 utf8Chars(reinterpret_cast<const char16_t*>(jchars.get()), jchars.size()); 87 String8 utf8Chars(reinterpret_cast<const char16_t*>(jchars.get()), jchars.size());
|
H A D | android_util_MemoryIntArray.cpp | 25 jint size) 32 if (size <= 0) { 33 jniThrowException(env, "java/io/IOException", "bad size"); 38 const int ashmemSize = sizeof(std::atomic_int) * size; 66 jniThrowException(env, "java/io/IOException", "bad ashmem size"); 78 int size = ashmemSize / sizeof(std::atomic_int); local 79 new (ashmemAddr) std::atomic_int[size]; 103 jniThrowException(env, "java/io/IOException", "bad ashmem size"); 24 android_util_MemoryIntArray_create(JNIEnv* env, jobject clazz, jstring name, jint size) argument
|