/frameworks/base/services/java/com/android/server/pm/ |
H A D | PreferredIntentResolver.java | 26 protected PreferredActivity[] newArray(int size) { argument 27 return new PreferredActivity[size];
|
/frameworks/compile/libbcc/bcinfo/Wrap/ |
H A D | in_memory_wrapper_input.cpp | 22 InMemoryWrapperInput::InMemoryWrapperInput(const char* buffer, size_t size) : argument 23 _buffer(buffer), _pos(0), _size(size) {
|
/frameworks/compile/linkloader/include/ |
H A D | ELFSectionBits.h | 56 size_t size() const { function in class:ELFSectionBits 57 return chunk.size();
|
H A D | ELFSectionRelTable.h | 45 size_t size() const { function in class:ELFSectionRelTable 46 return table.size();
|
/frameworks/native/include/binder/ |
H A D | MemoryBase.h | 33 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 D | Menu.java | 62 int size = in.readInt(); 63 for (int i=0; i<size; i++) { 83 int size = items.size(); 84 dest.writeInt(size); 85 for (int i=0; i<size; i++) { 101 public Menu[] newArray(int size) { 102 return new Menu[size];
|
/frameworks/wilhelm/src/android/ |
H A D | BufferQueueSource.cpp | 34 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 D | BufferQueueSource.h | 23 // 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 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. 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/tests/RenderScriptTests/SurfaceTexture/src/com/example/android/rs/sto/ |
H A D | CameraCapture.java | 142 // Find closest size 163 for (Camera.Size size : previewSizes) { 165 // the requested size, but as close as possible. The below isn't a 166 // stable selection (reording the size list can give different 168 if ( size.width <= width && 169 size.height <= height && 170 size.width >= closestWidth && 171 size.height >= closestHeight) { 172 closestWidth = size.width; 173 closestHeight = size [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/util/ |
H A D | LruCache.java | 39 * <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 D | LruCache.java | 33 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 D | CursorWindow.cpp | 33 void* data, size_t size, bool readOnly) : 34 mName(name), mAshmemFd(ashmemFd), mData(data), mSize(size), mReadOnly(readOnly) { 43 status_t CursorWindow::create(const String8& name, size_t size, CursorWindow** outCursorWindow) { argument 48 int ashmemFd = ashmem_create_region(ashmemName.string(), size); 54 void* data = ::mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, ashmemFd, 0); 61 data, size, false /*readOnly*/); 76 ::munmap(data, size); 92 ssize_t size = ashmem_get_size_region(ashmemFd); local 93 if (size < 0) { 100 void* data = ::mmap(NULL, size, PROT_REA 32 CursorWindow(const String8& name, int ashmemFd, void* data, size_t size, bool readOnly) argument 200 alloc(size_t size, bool aligned) argument 272 putBlob(uint32_t row, uint32_t column, const void* value, size_t size) argument 281 putBlobOrString(uint32_t row, uint32_t column, const void* value, size_t size, int32_t type) argument 297 memcpy(offsetToPtr(offset), value, size); local [all...] |
/frameworks/native/libs/utils/ |
H A D | BlobCache.cpp | 67 ALOGV("set: not caching because the combined key/value size is too " 97 "total cache size limit would be exceeded: %d " 119 "size limit would be exceeded: %d (limit: %d)", 144 ALOGV("get: no cache entry found for key of size %d", keySize); 162 static inline size_t align4(size_t size) { argument 163 return (size + 3) & ~3; 167 size_t size = sizeof(Header); local 168 for (size_t i = 0; i < mCacheEntries.size(); i++) { 172 size = align4(size); 183 flatten(void* buffer, size_t size, int fds[], size_t count) const argument 231 unflatten(void const* buffer, size_t size, int fds[], size_t count) argument 312 Blob(const void* data, size_t size, bool copyData) argument 317 memcpy(const_cast<void*>(mData), data, size); local [all...] |
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
H A D | Scene.java | 201 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/support/renderscript/v8/java/src/android/support/v8/renderscript/ |
H A D | ScriptGroup.java | 175 //android.util.Log.v("RSR", " validateRecurse outputCount " + n.mOutputs.size()); 176 for (int ct=0; ct < n.mOutputs.size(); ct++) { 198 for (int ct=0; ct < mNodes.size(); ct++) { 199 for (int ct2=0; ct2 < mNodes.size(); ct2++) { 203 if (n.mInputs.size() == 0) { 210 for (int ct=0; ct < mNodes.size(); ct++) { 219 for (int ct=0; ct < mNodes.size(); ct++) { 221 for (int ct2=0; ct2 < n.mKernels.size(); ct2++) { 239 if (mLines.size() != 0) { 344 for (int ct=0; ct < mNodes.size(); c [all...] |
/frameworks/av/libvideoeditor/osal/inc/ |
H A D | M4OSA_Memory.h | 41 M4OSAL_MEMORY_EXPORT_TYPE extern M4OSA_MemAddr32 M4OSA_32bitAlignedMalloc (M4OSA_UInt32 size,
|
/frameworks/av/media/libstagefright/ |
H A D | ThrottledSource.cpp | 38 ssize_t ThrottledSource::readAt(off64_t offset, void *data, size_t size) { argument 41 ssize_t n = mSource->readAt(offset, data, size); 69 status_t ThrottledSource::getSize(off64_t *size) { argument 70 return mSource->getSize(size);
|
/frameworks/av/media/libstagefright/chromium_http/ |
H A D | DataUriSource.cpp | 47 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 D | hexdump.cpp | 42 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 D | TextDescriptions.h | 37 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 D | Parcelable.java | 46 * 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 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/widget/ |
H A D | Space.java | 66 * 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/opengl/java/android/opengl/ |
H A D | ManagedEGLContext.java | 107 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++) {
|