Searched refs:size (Results 101 - 125 of 2165) sorted by relevance

1234567891011>>

/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DRandomScheduler.java48 if (candidates.size() > 0) {
49 int r = mRand.nextInt(candidates.size());
/frameworks/base/services/java/com/android/server/pm/
H A DPreferredIntentResolver.java26 protected PreferredActivity[] newArray(int size) { argument
27 return new PreferredActivity[size];
/frameworks/compile/libbcc/bcinfo/Wrap/
H A Din_memory_wrapper_input.cpp22 InMemoryWrapperInput::InMemoryWrapperInput(const char* buffer, size_t size) : argument
23 _buffer(buffer), _pos(0), _size(size) {
/frameworks/compile/mclinker/lib/Fragment/
H A DStub.cpp33 assert(pOffset < size());
39 assert(pFixup.offset() < size());
/frameworks/native/include/binder/
H A DMemoryBase.h33 MemoryBase(const sp<IMemoryHeap>& heap, ssize_t offset, size_t size);
35 virtual sp<IMemoryHeap> getMemory(ssize_t* offset, size_t* size) const;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DMenu.java62 int size = in.readInt();
63 for (int i=0; i<size; i++) {
85 int size = items.size();
86 dest.writeInt(size);
87 for (int i=0; i<size; i++) {
105 public Menu[] newArray(int size) {
106 return new Menu[size];
/frameworks/rs/cpu_ref/linkloader/include/
H A DELFSectionBits.h56 size_t size() const { function in class:ELFSectionBits
57 return chunk.size();
H A DELFSectionRelTable.h45 size_t size() const { function in class:ELFSectionRelTable
46 return table.size();
/frameworks/wilhelm/src/android/
H A DBufferQueueSource.cpp34 sizeof(SLuint32), // item size
57 ssize_t BufferQueueSource::readAt(off64_t offset, void *data, size_t size) { argument
58 SL_LOGD("BufferQueueSource::readAt(offset=%lld, data=%p, size=%d)", offset, data, size);
99 if (offset + size <= mStreamToBqOffset + oldFront->mDataSize) {
102 if (offset - mStreamToBqOffset + size == oldFront->mDataSize) {
124 memcpy(data, pSrc, size);
125 readSize = size;
165 status_t BufferQueueSource::getSize(off64_t *size) { argument
168 *size
[all...]
H A DBufferQueueSource.h23 // to the item key (SLuint32), the item size (SLuint32), and the item data (mask on SLuint32)
40 virtual ssize_t readAt(off64_t offset, void *data, size_t size);
42 virtual status_t getSize(off64_t *size);
/frameworks/base/core/java/android/util/
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.
90 * @param maxSize The new maximum size.
146 size += safeSizeOf(key, createdValue);
173 size += safeSizeOf(key, value);
176 size -= safeSizeOf(key, previous);
190 * below the requested size.
192 * @param maxSize the maximum size o
317 public synchronized final int size() { method in class:LruCache
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/util/
H A DLruCache.java39 * <p>By default, the cache size is measured in the number of entries. Override
40 * {@link #sizeOf} to size the cache in different units. For example, this cache
70 private int size; field in class:LruCache
93 * Sets the size of the cache.
94 * @param maxSize The new maximum size.
150 size += safeSizeOf(key, createdValue);
177 size += safeSizeOf(key, value);
180 size -= safeSizeOf(key, previous);
193 * @param maxSize the maximum size of the cache before returning. May be -1
201 if (size <
327 public synchronized final int size() { method in class:LruCache
[all...]
/frameworks/support/v4/java/android/support/v4/util/
H A DLruCache.java33 private int size; field in class:LruCache
96 size += safeSizeOf(key, createdValue);
123 size += safeSizeOf(key, value);
126 size -= safeSizeOf(key, previous);
140 * below the requested size.
142 * @param maxSize the maximum size of the cache before returning. May be -1
150 if (size < 0 || (map.isEmpty() && size != 0)) {
155 if (size <= maxSize || map.isEmpty()) {
163 size
263 public synchronized final int size() { method in class:LruCache
[all...]
/frameworks/base/libs/androidfw/
H A DCursorWindow.cpp34 void* data, size_t size, bool readOnly) :
35 mName(name), mAshmemFd(ashmemFd), mData(data), mSize(size), mReadOnly(readOnly) {
44 status_t CursorWindow::create(const String8& name, size_t size, CursorWindow** outCursorWindow) { argument
49 int ashmemFd = ashmem_create_region(ashmemName.string(), size);
55 void* data = ::mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, ashmemFd, 0);
62 data, size, false /*readOnly*/);
77 ::munmap(data, size);
93 ssize_t size = ashmem_get_size_region(ashmemFd); local
94 if (size < 0) {
101 void* data = ::mmap(NULL, size, PROT_REA
33 CursorWindow(const String8& name, int ashmemFd, void* data, size_t size, bool readOnly) argument
201 alloc(size_t size, bool aligned) argument
273 putBlob(uint32_t row, uint32_t column, const void* value, size_t size) argument
282 putBlobOrString(uint32_t row, uint32_t column, const void* value, size_t size, int32_t type) argument
298 memcpy(offsetToPtr(offset), value, size); local
[all...]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DScene.java201 int numRenderables = mRenderables.size();
212 int numRenderables = mRenderables.size();
221 int numEntries = entries.size();
260 if (mRenderPasses.size() != 0) {
261 mRenderPassAlloc = new ScriptField_RenderPass_s(mRS, mRenderPasses.size());
262 for (int i = 0; i < mRenderPasses.size(); i ++) {
273 mRenderables.size());
274 Allocation[] drawableAllocs = new Allocation[mRenderables.size()];
275 for (int i = 0; i < mRenderables.size(); i ++) {
287 if (mVertexShaders.size() >
[all...]
/frameworks/av/libvideoeditor/osal/inc/
H A DM4OSA_Memory.h41 M4OSAL_MEMORY_EXPORT_TYPE extern M4OSA_MemAddr32 M4OSA_32bitAlignedMalloc (M4OSA_UInt32 size,
/frameworks/av/media/libstagefright/chromium_http/
H A DDataUriSource.cpp47 ssize_t DataUriSource::readAt(off64_t offset, void *out, size_t size) { argument
52 const off64_t length = mData.size();
59 offset + size >= length ? (length - offset) : size;
/frameworks/av/media/libstagefright/foundation/
H A Dhexdump.cpp42 void hexdump(const void *_data, size_t size, size_t indent, AString *appendTo) { argument
46 while (offset < size) {
60 if (offset + i >= size) {
71 if (offset + i >= size) {
/frameworks/av/media/libstagefright/timedtext/
H A DTextDescriptions.h37 const uint8_t *data, ssize_t size,
71 const uint8_t *data, ssize_t size,
74 const uint8_t *data, ssize_t size,
77 const uint8_t *data, ssize_t size,
/frameworks/base/core/java/android/os/
H A DParcelable.java46 * public MyParcelable[] newArray(int size) {
47 * return new MyParcelable[size];
110 * @param size Size of the array.
114 public T[] newArray(int size); argument
/frameworks/base/core/java/android/text/style/
H A DAbsoluteSizeSpan.java30 * 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/widget/
H A DSpace.java66 * If mode is AT_MOST, return the child size instead of the parent size
69 private static int getDefaultSize2(int size, int measureSpec) { argument
70 int result = size;
76 result = size;
79 result = Math.min(size, specSize);
/frameworks/base/core/jni/
H A Dcom_android_internal_net_NetworkStatsFactory.cpp39 jfieldID size; member in struct:android::__anon1056
100 int size = lines.size(); local
102 ScopedLocalRef<jobjectArray> iface(env, env->NewObjectArray(size, gStringClass, NULL));
104 ScopedIntArrayRW uid(env, env->NewIntArray(size));
106 ScopedIntArrayRW set(env, env->NewIntArray(size));
108 ScopedIntArrayRW tag(env, env->NewIntArray(size));
110 ScopedLongArrayRW rxBytes(env, env->NewLongArray(size));
112 ScopedLongArrayRW rxPackets(env, env->NewLongArray(size));
114 ScopedLongArrayRW txBytes(env, env->NewLongArray(size));
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DManagedEGLContext.java107 if (sActive.size() <= 0) {
121 if (EGLImpl.getInitCount(display) != sActive.size()) {
123 + " but managed count is " + sActive.size());
131 for (int i = 0; i < active.size(); i++) {
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DSimpleCache.java36 return super.size() > mMaxEntries;

Completed in 761 milliseconds

1234567891011>>