Searched refs:size (Results 151 - 175 of 3680) sorted by relevance

1234567891011>>

/frameworks/base/libs/hwui/protos/
H A DProtoHelpers.h33 size_t size = src.writeToMemory(nullptr); local
34 dest->resize(size);
/frameworks/base/libs/hwui/tests/common/scenes/
H A DListViewAnimation.cpp47 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 DIMediaHTTPConnection.aidl29 int readAt(long offset, int size);
/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/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/services/core/java/com/android/server/hdmi/
H A DUnmodifiableSparseIntArray.java33 public int size() { method in class:UnmodifiableSparseIntArray
34 return mArray.size();
/frameworks/base/services/core/java/com/android/server/pm/
H A DPreferredIntentResolver.java26 protected PreferredActivity[] newArray(int size) { argument
27 return new PreferredActivity[size];
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCallInfo.java57 public CallInfo[] newArray(int size) {
58 return new CallInfo[size];
H A DDcParamObject.java50 public DcParamObject[] newArray(int size) {
51 return new DcParamObject[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/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DObservableArrayMapTest.java81 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 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/native/include/ui/
H A DFrameStats.h58 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 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/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 + (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 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/packages/MtpDocumentsProvider/jni/
H A Dcom_android_mtp_AppFuse.cpp45 // 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:__anon1105::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 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 DMemoryIntArray.java62 * @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 = ParcelFileDescriptor.fromFd(nativeCreate(name, size));
131 * Gets the array size.
135 public int size() throws IOException { method in class:MemoryIntArray
218 final int size = size();
231 nativeCreate(String name, int size) argument
[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/opt/telephony/src/java/com/android/internal/telephony/
H A DCall.java106 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/v17/leanback/src/android/support/v17/leanback/util/
H A DStateMachine.java156 for (int i = 0, size = mSortedList.size(); i < size; i++) {
164 for (int i = 0, size = mSortedList.size(); i < size; i++) {
182 for (int i = mSortedList.size() - 1; i >= 0 ; i--) {
184 if (state.mPriorStates != null && state.mPriorStates.size() > 0) {
193 State state = S.remove(S.size() - 1);
202 if (fromStates.size()
[all...]
/frameworks/support/v4/java/android/support/v4/util/
H A DLruCache.java33 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/base/core/jni/android/graphics/
H A DCreateJavaOutputStreamAdaptor.cpp28 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...]
/frameworks/compile/mclinker/lib/Target/X86/
H A DX86PLT.cpp88 uint64_t size = 0; local
89 // plt0 size
90 size = getPLT0()->size();
96 // plt1 size
98 size += (m_pSectionData->size() - 1) * plt1->size();
100 m_Section.setSize(size);
106 offset += frag->size();
[all...]

Completed in 2008 milliseconds

1234567891011>>