Searched defs:size (Results 151 - 175 of 1111) sorted by relevance

1234567891011>>

/frameworks/av/media/libstagefright/include/media/stagefright/foundation/
H A DABuffer.h38 size_t size() const { return mRangeLength; } function in struct:android::ABuffer
41 void setRange(size_t offset, size_t size);
/frameworks/av/media/utils/
H A DMemoryLeakTrackUtil.cpp76 // The memory is sorted based on total size which is useful for finding
81 size_t size; // bit 31 is set if this is zygote allocated memory member in struct:android::AllocEntry
88 oss << (e->size * e->allocations)
89 << " bytes ( " << e->size << " bytes * " << e->allocations << " allocations )\n";
/frameworks/av/services/medialog/
H A DIMediaLogService.cpp43 virtual void registerWriter(const sp<IMemory>& shared, size_t size, const char *name) { argument
47 data.writeInt64((int64_t) size);
82 size_t size = (size_t) data.readInt64(); local
84 registerWriter(shared, size, name);
/frameworks/base/cmds/statsd/src/guardrail/
H A DMemoryLeakTrackUtil.cpp76 // The memory is sorted based on total size which is useful for finding
81 size_t size; // bit 31 is set if this is zygote allocated memory member in struct:android::os::statsd::AllocEntry
88 oss << (e->size * e->allocations) << " bytes ( " << e->size << " bytes * " << e->allocations
/frameworks/base/core/java/android/app/backup/
H A DFullBackupDataOutput.java76 public void addSize(long size) { argument
77 if (size > 0) {
78 mSize += size;
/frameworks/base/core/java/android/os/
H A DParcelable.java50 * public MyParcelable[] newArray(int size) {
51 * return new MyParcelable[size];
149 * @param size Size of the array.
153 public T[] newArray(int size); argument
/frameworks/base/core/java/android/util/
H A DKeyValueListParser.java185 public int size() { method in class:KeyValueListParser
186 return mValues.size();
190 * @return the key at {@code index}. Use with {@link #size()} to enumerate all key-value pairs.
/frameworks/base/core/java/android/view/
H A DHandlerActionQueue.java93 public int size() { method in class:HandlerActionQueue
/frameworks/base/core/java/com/android/internal/util/
H A DRingBuffer.java44 public int size() { method in class:RingBuffer
49 return size() == 0;
53 for (int i = 0; i < size(); ++i) {
89 T[] out = Arrays.copyOf(mBuffer, size(), (Class<T[]>) mBuffer.getClass());
/frameworks/base/core/jni/
H A Dandroid_os_SharedMemory.cpp50 static jobject SharedMemory_create(JNIEnv* env, jobject, jstring jname, jint size) { argument
55 int fd = ashmem_create_region(name, size);
77 size_t size = ashmem_get_size_region(fd); local
78 return static_cast<jint>(std::min(size, static_cast<size_t>(std::numeric_limits<jint>::max())));
H A Dscoped_nullable_primitive_array.h79 size_t size() const { return mSize; } function in class:android::ScopedArrayRO
91 // These accept nullptr. In that case, get() returns nullptr and size() returns 0.
/frameworks/base/core/jni/hwbinder/
H A DEphemeralStorage.cpp37 hidl_string *EphemeralStorage::allocStringArray(size_t size) { argument
41 item.mPtr = new hidl_string[size];
47 void *EphemeralStorage::allocTemporaryStorage(size_t size) { argument
51 item.mPtr = malloc(size);
68 hidl_string *s = allocStringArray(1 /* size */);
116 for (size_t i = mItems.size(); i--;) {
/frameworks/base/core/tests/utiltests/src/android/util/
H A DMemoryIntArrayTest.java47 assertEquals("size must be three", 3, array.size());
134 array.size();
210 fail("Cannot use over max size");
295 fail("MemoryIntArray should catch ahshmem size changing under it");
299 private native int nativeCreateAshmem(String name, int size); argument
300 private native void nativeSetAshmemSize(int fd, int size); argument
/frameworks/base/libs/hwui/utils/
H A DRingBuffer.h35 size_t size() const { return mCount; } function in class:android::uirenderer::RingBuffer
47 T& back() { return (*this)[size() - 1]; }
/frameworks/base/media/jni/
H A Dandroid_media_Media2DataSource.cpp68 ssize_t JMedia2DataSource::readAt(off64_t offset, void *data, size_t size) { argument
74 if (size > kBufferSize) {
75 size = kBufferSize;
80 (jlong)offset, mByteArrayObj, (jint)0, (jint)size);
98 if ((size_t)numread > size) {
104 ALOGV("readAt %lld / %zu => %d.", (long long)offset, size, numread);
109 status_t JMedia2DataSource::getSize(off64_t* size) { argument
116 *size = mCachedSize;
121 *size = env->CallLongMethod(mMedia2DataSourceObj, mGetSizeMethod);
126 // After returning an error, size should
[all...]
H A Dandroid_media_MediaDataSource.cpp72 ssize_t JMediaDataSource::readAt(off64_t offset, size_t size) { argument
78 if (size > kBufferSize) {
79 size = kBufferSize;
84 (jlong)offset, mByteArrayObj, (jint)0, (jint)size);
102 if ((size_t)numread > size) {
108 ALOGV("readAt %lld / %zu => %d.", (long long)offset, size, numread);
113 status_t JMediaDataSource::getSize(off64_t* size) { argument
120 *size = mCachedSize;
125 *size = env->CallLongMethod(mMediaDataSourceObj, mGetSizeMethod);
130 // After returning an error, size should
[all...]
/frameworks/base/media/mca/filterfw/jni/
H A Djni_native_buffer.cpp20 char* GetJBufferData(JNIEnv* env, jobject buffer, int* size) { argument
29 if (size) {
30 *size = env->GetIntField(buffer, size_field);
39 bool AttachDataToJBuffer(JNIEnv* env, jobject buffer, char* data, int size) { argument
48 env->SetIntField(buffer, size_field, size);
53 jboolean Java_android_filterfw_core_NativeBuffer_allocate(JNIEnv* env, jobject thiz, jint size) { argument
54 char* data = new char[size];
55 return ToJBool(AttachDataToJBuffer(env, thiz, data, size));
72 int size; local
73 char* source_data = GetJBufferData(env, thiz, &size);
[all...]
H A Djni_vertex_frame.cpp26 jint size) {
27 std::unique_ptr<VertexFrame> frame(new VertexFrame(size));
24 Java_android_filterfw_core_VertexFrame_nativeAllocate(JNIEnv* env, jobject thiz, jint size) argument
/frameworks/base/obex/javax/obex/
H A DPrivateOutputStream.java69 public int size() { method in class:PrivateOutputStream
70 return mArray.size();
86 if (mArray.size() == mMaxPacketSize) {
110 while ((mArray.size() + remainLength) >= mMaxPacketSize) {
111 int bufferLeft = mMaxPacketSize - mArray.size();
124 * @param size the size of the array to return
127 public synchronized byte[] readBytes(int size) { argument
128 if (mArray.size() > 0) {
131 byte[] result = new byte[size];
[all...]
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
H A DMtpFileWriter.java52 int write(long offset, int size, byte[] bytes) throws IOException, ErrnoException { argument
54 Preconditions.checkArgumentNonnegative(size, "size");
55 Preconditions.checkArgument(size <= bytes.length);
56 if (size == 0) {
61 return Os.write(mCacheFd.getFileDescriptor(), bytes, 0, size);
79 // Create the target object info with a correct file size and upload the file.
80 final long size = Os.lseek(mCacheFd.getFileDescriptor(), 0, OsConstants.SEEK_END);
82 .setCompressedSize(size)
99 size);
[all...]
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/
H A DSharedStorageAgent.java67 public void onRestoreFile(ParcelFileDescriptor data, long size, argument
95 FullBackup.restoreFile(data, size, type, -1, mtime, outFile);
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DResizingSpace.java75 * If mode is AT_MOST, return the child size instead of the parent size
78 private static int getDefaultSize2(int size, int measureSpec) { argument
79 int result = size;
85 result = size;
88 result = Math.min(size, specSize);
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
H A DTrackedObjects.java63 public int size() { method in class:TrackedObjects.TrackedClass
64 return instances.size();
/frameworks/base/services/backup/java/com/android/server/backup/
H A DFileMetadata.java38 public long size; // bytes of content field in class:FileMetadata
55 sb.append(size);
74 b.append(String.format(" %9d ", size));
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DUnmodifiableSparseArray.java33 public int size() { method in class:UnmodifiableSparseArray
34 return mArray.size();

Completed in 222 milliseconds

1234567891011>>