Searched defs:size (Results 226 - 250 of 1014) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/util/
H A DIntArray.java64 * @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 DLongSparseLongArray.java155 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 DLruCache.java35 * <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 DSparseIntArray.java155 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 DSparseLongArray.java153 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 DCollectionUtils.java50 for (int i = 0; i < size(list); i++) {
63 * The resulting list will have the same {@link #size} as the input one.
72 for (int i = 0; i < cur.size(); i++) {
93 for (int i = 0; i < cur.size(); i++) {
125 * Returns the size of the given list, or 0 if the list is null
127 public static int size(@Nullable Collection<?> cur) { method in class:CollectionUtils
128 return cur != null ? cur.size() : 0;
137 for (int i = 0; i < list.size(); i++) {
162 for (int i = 0; i < items.size(); i++) {
H A DImageUtils.java62 // 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 DHttpConnectionParams.java130 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 DUtils.cpp52 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);
94 const off64_t size = asset->getLength(); local
95 if (size <= 0) {
96 SkDebugf("---- copyAsset: asset->getLength() returned %d\n", size);
100 sk_sp<SkData> data(SkData::MakeUninitialized(size));
101 const off64_t len = asset->read(data->writable_data(), size);
[all...]
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfUtils.cpp32 unsigned long size) {
34 const int readCount = pread(fd, outBuffer, size, position);
104 jlong nativeOpen(JNIEnv* env, jclass thiz, jint fd, jlong size) { argument
111 loader.m_FileLen = size;
31 getBlock(void* param, unsigned long position, unsigned char* outBuffer, unsigned long size) argument
/frameworks/base/core/jni/
H A Dandroid_backup_BackupDataInput.cpp94 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 Dandroid_backup_BackupDataOutput.cpp63 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 Dandroid_os_Trace.cpp33 size_t size = utf8Chars.size(); local
34 char* str = utf8Chars.lockBuffer(size);
35 for (size_t i = 0; i < size; i++) {
59 String8 utf8Chars(reinterpret_cast<const char16_t*>(jchars.get()), jchars.size());
76 String8 utf8Chars(reinterpret_cast<const char16_t*>(jchars.get()), jchars.size());
86 String8 utf8Chars(reinterpret_cast<const char16_t*>(jchars.get()), jchars.size());
H A Dandroid_util_MemoryIntArray.cpp25 jint size)
32 if (size <= 0) {
33 jniThrowException(env, "java/io/IOException", "bad size");
38 const int ashmemSize = sizeof(std::atomic_int) * size;
71 jniThrowException(env, "java/io/IOException", "bad ashmem size");
75 // IMPORTANT: Ashmem allows the caller to change its size until
77 // the underlying VFS file. So the size we get above may not
78 // reflect the size of the underlying shared memory region. Therefore,
79 // we first memory map to set the size in stone an verify if
80 // the underlying ashmem region has the same size a
24 android_util_MemoryIntArray_create(JNIEnv* env, jobject clazz, jstring name, jint size) argument
99 int size = ashmemSize / sizeof(std::atomic_int); local
[all...]
H A Dandroid_view_PointerIcon.cpp99 jsize size = env->GetArrayLength(bitmapFramesObj.get()); local
100 outPointerIcon->bitmapFrames.resize(size);
101 for (jsize i = 0; i < size; ++i) {
/frameworks/base/core/tests/coretests/src/android/widget/
H A DLabelView.java97 * Sets the text size for this label
98 * @param size Font size
100 public void setTextSize(int size) { argument
101 mTextPaint.setTextSize(size);
/frameworks/base/core/tests/utiltests/src/android/util/
H A DRemoteIntArray.java43 public RemoteIntArray(int size) throws IOException, TimeoutException { argument
51 mRemoteInstance.create(size);
90 public int size() throws IOException { method in class:RemoteIntArray
92 return mRemoteInstance.size();
/frameworks/base/libs/androidfw/include/androidfw/
H A DChunk.h44 // Returns the size of the entire chunk. This can be useful for skipping
46 inline size_t size() const { return dtohl(device_chunk_->size); } function in class:android::Chunk
48 // Returns the size of the header. Caller need not worry about endianness.
63 inline size_t data_size() const { return size() - header_size(); }
/frameworks/base/libs/hwui/
H A DRenderBufferCache.cpp128 const uint32_t size = buffer->getSize(); local
129 if (size < mMaxSize) {
130 while (mSize + size > mMaxSize) {
139 mSize += size;
149 buffer->getWidth(), buffer->getHeight(), size, mMaxSize);
H A DTextDropShadowCache.cpp132 ALOGD("Shadow texture deleted, size = %d", texture->bitmapSize);
171 const uint32_t size = shadow.width * shadow.height; local
174 if (size < mMaxSize) {
175 while (mSize + size > mMaxSize) {
178 PRIu32 ", mCache.size() = %zu", mSize, mCache.size());
188 if (size < mMaxSize) {
190 ALOGD("Shadow texture created, size = %d", texture->bitmapSize);
H A DTextureCache.cpp72 TEXTURE_LOGD("TextureCache::callback: name, removed size, mSize = %d, %d, %d",
75 ALOGD("Texture deleted, size = %d", texture->bitmapSize);
122 ALOGD("Texture created for hw bitmap size = %d", texture->bitmapSize);
136 const uint32_t size = bitmap->rowBytes() * bitmap->height(); local
137 bool canCache = size < mMaxSize;
139 while (canCache && mSize + size > mMaxSize) {
150 mSize += size;
151 TEXTURE_LOGD("TextureCache::get: create texture(%p): name, size, mSize = %d, %d, %d",
152 bitmap, texture->id, size, mSize);
154 ALOGD("Texture created, size
[all...]
/frameworks/base/libs/hwui/renderstate/
H A DMeshState.cpp92 void MeshState::genOrUpdateMeshBuffer(GLuint* buffer, GLsizeiptr size, argument
98 glBufferData(GL_ARRAY_BUFFER, size, data, usage);
102 GLsizeiptr size, const void* data) {
104 glBufferSubData(GL_ARRAY_BUFFER, offset, size, data);
101 updateMeshBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr size, const void* data) argument
/frameworks/base/libs/services/src/os/
H A DDropBoxManager.cpp159 entry.mData.assign(text.c_str(), text.c_str() + text.size());
165 size_t size, int flags)
168 entry.mData.assign(data, data+size);
164 addData(const String16& tag, uint8_t const* data, size_t size, int flags) argument
/frameworks/base/media/java/android/media/midi/
H A DMidiPortImpl.java37 * Maximum size of a packet that can be passed between processes.
42 * size of message timestamp in bytes
47 * Data packet overhead is timestamp size plus packet type byte
60 * messageSize is size of variable length MIDI message
63 * returns size of packed message
65 public static int packData(byte[] message, int offset, int size, long timestamp, argument
67 if (size > MAX_PACKET_DATA_SIZE) {
68 size = MAX_PACKET_DATA_SIZE;
74 System.arraycopy(message, offset, dest, length, size);
75 length += size;
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DMutableFrameFormat.java57 public void setDimensions(int size) { argument
59 dimensions[0] = size;

Completed in 206 milliseconds

1234567891011>>