/frameworks/base/libs/androidfw/tests/ |
H A D | TypeWrappers_test.cpp | 35 t.header.size = t.entriesStart; 40 e1.size = sizeof(e1); 42 t.header.size += sizeof(e1); 46 t.header.size += sizeof(v1); 53 e2.size = sizeof(e2); 55 t.header.size += sizeof(e2); 59 t.header.size += sizeof(v2); 61 uint8_t* data = (uint8_t*)malloc(t.header.size);
|
/frameworks/base/libs/hwui/protos/ |
H A D | ProtoHelpers.h | 33 size_t size = src.writeToMemory(nullptr); local 34 dest->resize(size);
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | ListViewAnimation.cpp | 47 cards.push_back(createCard(cards.size(), y)); 51 for (size_t ci = 0; ci < cards.size(); ci++) { 68 for (size_t ci = 0; ci < cards.size(); ci++) { 70 auto card = cards[(ci + cardIndexOffset) % cards.size()]; 83 int size = cardHeight - (dp(10) * 2); local 84 SkBitmap bitmap = TestUtils::createSkBitmap(size, size); 92 canvas.drawCircle(size / 2, size / 2, size / [all...] |
/frameworks/base/media/java/android/media/ |
H A D | IMediaHTTPConnection.aidl | 29 int readAt(long offset, int size);
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | RandomScheduler.java | 48 if (candidates.size() > 0) { 49 int r = mRand.nextInt(candidates.size());
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
H A D | MtpFileWriter.java | 52 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/services/core/java/com/android/server/hdmi/ |
H A D | UnmodifiableSparseIntArray.java | 33 public int size() { method in class:UnmodifiableSparseIntArray 34 return mArray.size();
|
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PreferredIntentResolver.java | 26 protected PreferredActivity[] newArray(int size) { argument 27 return new PreferredActivity[size];
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | CallInfo.java | 57 public CallInfo[] newArray(int size) { 58 return new CallInfo[size];
|
H A D | DcParamObject.java | 50 public DcParamObject[] newArray(int size) { 51 return new DcParamObject[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/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
H A D | ObservableArrayMapTest.java | 81 assertEquals(1, mNotifications.size()); 83 assertEquals(0, mObservable.size()); 88 assertEquals(1, mNotifications.size()); 94 assertEquals(1, mNotifications.size()); 99 assertEquals(2, mNotifications.size()); 104 assertEquals(3, mNotifications.size()); 116 assertEquals(3, mObservable.size()); 119 assertEquals(2, mNotifications.size()); 132 assertEquals(3, mObservable.size()); 135 assertEquals(2, mNotifications.size()); [all...] |
/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/native/include/ui/ |
H A D | FrameStats.h | 58 status_t flatten(void* buffer, size_t size) const; 59 status_t unflatten(void const* buffer, size_t size);
|
/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++) { 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/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 + (off64_t) 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/packages/MtpDocumentsProvider/jni/ |
H A D | com_android_mtp_AppFuse.cpp | 45 // The request size is bounded by the maximum size of a FUSE_WRITE request 82 void prepare_buffer(size_t size = sizeof(T)) { 83 memset(buffer_, 0, size); 84 size_ = size; 87 void set_size(size_t size) { argument 88 size_ = size; 91 size_t size() const { return size_; } function in class:__anon1111::FuseResponse 179 int64_t size = get_file_size(n); local 180 if (size < 246 int64_t size = get_file_size(header.nodeid); local 286 uint32_t size = in->size; local 309 const uint32_t size = in->size; local 361 get_object_bytes( int inode, uint64_t offset, uint32_t size, void* buf) argument 388 write_object_bytes(uint64_t handle, int inode, uint64_t offset, uint32_t size, const void* buffer, uint32_t* written_size) argument [all...] |
/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. 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 | MemoryIntArray.java | 62 * @param size The size of the array in terms of integer slots. Cannot be 67 public MemoryIntArray(int size, boolean clientWritable) throws IOException { argument 68 if (size > MAX_SIZE) { 69 throw new IllegalArgumentException("Max size is " + MAX_SIZE); 74 mFd = nativeCreate(name, size); 132 * Gets the array size. 136 public int size() throws IOException { method in class:MemoryIntArray 216 final int size = size(); 229 nativeCreate(String name, int size) argument [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/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | Call.java | 106 return connections.size() > 0; 148 if (l.size() == 0) { 152 for (int i = 0, s = l.size() ; i < s ; i++) { 174 if (l.size() == 0) { 178 for (int i = 0, s = l.size() ; i < s ; i++) { 195 if (l.size() == 0) { 199 for (int i = 0, s = l.size() ; i < s ; i++) { 229 if (l.size() == 0) { 235 for (int i = 0, s = l.size() ; i < s ; i++) { 265 for (int i = mConnections.size() [all...] |
/frameworks/support/compat/java/android/support/v4/util/ |
H A D | LruCache.java | 33 private int size; field in class:LruCache 56 * Sets the size of the cache. 58 * @param maxSize The new maximum size. 112 size += safeSizeOf(key, createdValue); 139 size += safeSizeOf(key, value); 142 size -= safeSizeOf(key, previous); 156 * below the requested size. 158 * @param maxSize the maximum size of the cache before returning. May be -1 166 if (size < 0 || (map.isEmpty() && size ! 279 public synchronized final int size() { method in class:LruCache [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/util/ |
H A D | StateMachine.java | 161 for (int i = 0, size = mSortedList.size(); i < size; i++) { 169 for (int i = 0, size = mSortedList.size(); i < size; i++) { 187 for (int i = mSortedList.size() - 1; i >= 0 ; i--) { 189 if (state.mPriorStates != null && state.mPriorStates.size() > 0) { 198 State state = S.remove(S.size() - 1); 207 if (fromStates.size() [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | CreateJavaOutputStreamAdaptor.cpp | 28 virtual size_t read(void* buffer, size_t size) { argument 30 if (0 == size) { 39 size_t amount = this->doSkip(size - amountSkipped); 50 } while (amountSkipped < size); 54 return this->doRead(buffer, size); 62 size_t doRead(void* buffer, size_t size) { argument 68 if (size > static_cast<size_t>(fCapacity)) { 73 requested = static_cast<jint>(size); 106 size -= n; 108 } while (size ! 113 doSkip(size_t size) argument 192 write(const void* buffer, size_t size) argument [all...] |