/frameworks/base/core/java/com/android/internal/app/ |
H A D | ProcessMap.java | 46 if (uids.size() == 0) { 58 public int size() { method in class:ProcessMap 59 return mMap.size();
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | RingBufferIndices.java | 65 * Return the current size of the ring buffer. 67 public int size() { method in class:RingBufferIndices 72 * Convert a position in the ring buffer that is [0..size()] to an offset
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ScrollBarUtils.java | 21 public static int getThumbLength(int size, int thickness, int extent, int range) { argument 24 int length = Math.round((float) size * extent / range); 31 public static int getThumbOffset(int size, int thumbLength, int extent, int range, int offset) { argument 33 int thumbOffset = Math.round((float) (size - thumbLength) * offset / (range - extent)); 34 if (thumbOffset > size - thumbLength) { 35 thumbOffset = size - thumbLength;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | FontUtils.cpp | 37 jint ListHelper::size() const { function in class:android::ListHelper 56 gListClassInfo.mSize = GetMethodIDOrDie(env, listClass, "size", "()I");
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
H A D | BandwidthTestUtil.java | 76 * @param size in bytes of the file to download 81 public static String buildDownloadUrl(String server, int size, String deviceId, argument 83 String downloadUrl = server + "/download?size=" + size + "&device_id=" + deviceId +
|
/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | ByteBucketArray.h | 28 * Stores a sparsely populated array. Has a fixed size of 256 45 inline size_t size() const { return kNumBuckets * kBucketSize; } function in class:android::ByteBucketArray 50 if (index >= size()) { 63 CHECK(index < size()) << "ByteBucketArray.getOrCreate(index=" << index 64 << ") with size=" << size(); 75 if (index >= size()) {
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | HwBitmapInCompositeShader.cpp | 43 size_t size = variable 45 memset(pixels, 0, size);
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | FontRendererTests.cpp | 24 static bool isZero(uint8_t* data, int size) { argument 25 for (int i = 0; i < size; i++) { 47 auto result = fontRenderer.renderDropShadow(&paint, glyphs.data(), glyphs.size(), radius,
|
/frameworks/base/libs/protoutil/src/ |
H A D | protobuf.cpp | 37 size_t size = 1; local 39 size++; 42 return size; 61 write_length_delimited_tag_header(uint8_t* buf, uint32_t fieldId, size_t size) argument 64 buf = write_raw_varint(buf, size);
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | native_frame.cpp | 22 NativeFrame::NativeFrame(int size) : data_(NULL), size_(size), capacity_(size) { argument 30 bool NativeFrame::WriteData(const uint8_t* data, int offset, int size) { argument 31 if (size_ >= (offset + size)) { 32 memcpy(data_ + offset, data, size); 38 bool NativeFrame::SetData(uint8_t* data, int size) { argument 40 size_ = capacity_ = size;
|
H A D | vertex_frame.cpp | 28 VertexFrame::VertexFrame(int size) argument 30 size_(size) { 42 bool VertexFrame::WriteData(const uint8_t* data, int size) { argument 55 if (first_upload && size == size_) 56 glBufferData(GL_ARRAY_BUFFER, size, data, GL_STATIC_DRAW); 57 else if (!first_upload && size <= size_) 58 glBufferSubData(GL_ARRAY_BUFFER, 0, size, data); 61 "inside the vertex frame (%d bytes)!", size, size_); 69 // Subsequent uploads are now bound to the size given here 70 size_ = size; [all...] |
/frameworks/base/native/android/ |
H A D | sharedmem.cpp | 47 int ASharedMemory_create(const char *name, size_t size) { argument 48 if (size == 0) { 51 return ashmem_create_region(name, size);
|
/frameworks/base/packages/ExtServices/src/android/ext/services/storage/ |
H A D | CacheQuotaServiceImpl.java | 42 final int requestCount = requests.size(); 62 int size = uidGroupedList.size(); 63 if (size < 2) { 67 for (int i = 1; i < size; i++) { 88 double sum = getSumOfFairShares(flattenedRequests.size()); 91 for (int count = 0; count < flattenedRequests.size(); count++) { 110 private double getSumOfFairShares(int size) { argument 112 for (int i = 0; i < size; i++) { 119 // TODO: Revisit the cache size afte [all...] |
/frameworks/base/packages/MtpDocumentsProvider/perf_tests/src/com/android/mtp/ |
H A D | AppFusePerfTest.java | 109 public int onRead(long offset, int size, byte[] data) throws ErrnoException { argument 110 return size; 114 public int onWrite(long offset, int size, byte[] data) throws ErrnoException { argument 115 return size;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | AppIconDragShadowBuilder.java | 34 // The Drawable may not be the same size as the ImageView, so use the ImageView size. 41 public void onProvideShadowMetrics(Point size, Point touch) { argument 42 size.set(mIconSize, mIconSize); 51 // to the correct size.
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/util/ |
H A D | IntArray.java | 39 public int size() { method in class:IntArray
|
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | CrossProfileIntentResolver.java | 30 protected CrossProfileIntentFilter[] newArray(int size) { argument 31 return new CrossProfileIntentFilter[size];
|
H A D | PreferredIntentResolver.java | 26 protected PreferredActivity[] newArray(int size) { argument 27 return new PreferredActivity[size];
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_PersistentDataBlockService.cpp | 37 uint64_t size = 0; local 40 ret = ioctl(fd, BLKGETSIZE64, &size); 45 return size; 87 const uint64_t size = get_block_device_size(fd); local 91 return size;
|
/frameworks/base/tools/aapt2/format/binary/ |
H A D | ChunkWriter.h | 37 start_size_ = buffer_->size(); 58 inline size_t size() { function in class:aapt::ChunkWriter 59 return buffer_->size() - start_size_; 64 header_->size = util::HostToDevice32(buffer_->size() - start_size_); 78 start_size_ = buffer_->size();
|
/frameworks/base/tools/aapt2/io/ |
H A D | BigBufferStream.cpp | 26 bool BigBufferInputStream::Next(const void** data, size_t* size) { argument 31 if (offset_ == iter_->size) { 40 *size = iter_->size - offset_; 41 bytes_read_ += iter_->size - offset_; 42 offset_ = iter_->size; 76 return buffer_->size(); 83 bool BigBufferOutputStream::Next(void** data, size_t* size) { argument 84 *data = buffer_->NextBlock(size); 93 return buffer_->size(); [all...] |
H A D | Util.h | 56 bool Next(void** data, size_t* size) override { 59 *size = static_cast<size_t>(out_size); 90 bool Next(const void** data, int* size) override { 93 *size = static_cast<int>(out_size); 103 int size; variable 104 while (Next(&data, &size)) { 105 if (size > count) { 106 BackUp(size - count); 109 count -= size;
|
/frameworks/base/tools/aapt2/jni/ |
H A D | ScopedUtfChars.h | 68 size_t size() const { function in class:ScopedUtfChars
|
/frameworks/base/tools/aapt2/util/ |
H A D | BigBuffer.cpp | 27 void* BigBuffer::NextBlockImpl(size_t size) { argument 30 if (block.block_size_ - block.size >= size) { 31 void* out_buffer = block.buffer.get() + block.size; 32 block.size += size; 33 size_ += size; 38 const size_t actual_size = std::max(block_size_, size); 46 block.size = size; 59 size_t size = block.block_size_ - block.size; local [all...] |
/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) {
|