/art/test/413-regalloc-regression/src/ |
H A D | Main.java | 19 private int size; field in class:Main 23 size = 0; 27 for (int i = index; i < size - 1; i++) { 30 data[--size] = null; 35 main.size++; 37 if (main.size != 0) { 38 throw new Error("Unexpected size");
|
/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
H A D | Type.java | 76 final int size; field in class:Type 78 Type(String name, int size) { argument 80 this.size = size;
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
H A D | RawDexFile.java | 86 // - but only update the items that we expect to have changed size. 91 if (mapItem.size != stringIds.size()) { 92 Log.debug("Updating StringIDs List size: " + stringIds.size()); 93 mapItem.size = stringIds.size(); 94 header.stringIdsSize = stringIds.size(); 98 if (mapItem.size != stringDatas.size()) { [all...] |
H A D | DebugInfoItem.java | 23 // Right now we are not parsing debug_info_item, just take the raw size 25 private int size; field in class:DebugInfoItem 28 public DebugInfoItem(int size) { argument 29 this.size = size; 35 data = new byte[size]; 39 if (data[size - 1] != 0) {
|
H A D | EncodedAnnotation.java | 23 public int size; field in class:EncodedAnnotation 29 size = file.readUleb128(); 30 if (size != 0) { 31 elements = new AnnotationElement[size]; 32 for (int i = 0; i < size; i++) { 41 file.writeUleb128(size); 42 if (size != 0) { 54 if (size != 0) {
|
H A D | EncodedArray.java | 22 public int size; field in class:EncodedArray 27 size = file.readUleb128(); 28 if (size != 0) { 29 values = new EncodedValue[size]; 30 for (int i = 0; i < size; i++) { 38 file.writeUleb128(size); 39 if (size != 0) { 48 if (size != 0) {
|
H A D | EncodedCatchHandlerList.java | 22 public int size; field in class:EncodedCatchHandlerList 27 size = file.readUleb128(); 28 list = new EncodedCatchHandler[size]; 29 for (int i = 0; i < size; i++) { 36 file.writeUleb128(size);
|
H A D | StringDataItem.java | 25 private int size; field in class:StringDataItem 33 size = file.readUleb128(); 34 if (size != 0) { 35 dataAsBytes = file.readDexUtf(size); 37 if (size != data.length()) { 51 file.writeUleb128(size); 52 if (size > 0) { 69 public void setSize(int size) { argument 70 this.size = size; [all...] |
H A D | EncodedCatchHandler.java | 22 public int size; field in class:EncodedCatchHandler 28 size = file.readSleb128(); 29 int absoluteSize = Math.abs(size); 32 for (int i = 0; i < Math.abs(size); i++) { 36 if (size <= 0) { 43 file.writeSleb128(size); 49 if (size <= 0) {
|
H A D | EncodedValue.java | 43 int size = 0; 47 size = 1; 51 size = 0; // So we don't read into value. 55 size = 0; // So we don't read into value. 60 size = 0; 63 // All others encode value_arg as (size - 1), so... 64 size = valueArg + 1; 68 if (size != 0) { 69 value = new byte[size]; 70 for (int i = 0; i < size; [all...] |
H A D | TypeList.java | 22 public int size; field in class:TypeList 29 size = file.readUInt(); 30 list = new TypeItem[size]; 31 for (int i = 0; i < size; i++) { 40 file.writeUInt(size); 58 int checkSize = Math.min(size, other.size); 66 if (size == other.size) {
|
H A D | MapList.java | 29 public int size; field in class:MapList 44 size = file.readUInt(); 47 mapItems = new ArrayList<MapItem>(size); 48 for (int i = 0; i < size; i++) { 69 for (int i = 0; i < mapItem.size; i++) { 76 for (int i = 0; i < mapItem.size; i++) { 83 for (int i = 0; i < mapItem.size; i++) { 90 for (int i = 0; i < mapItem.size; i++) { 97 for (int i = 0; i < mapItem.size; i++) { 104 for (int i = 0; i < mapItem.size; [all...] |
H A D | AnnotationSetItem.java | 22 public int size; field in class:AnnotationSetItem 29 size = file.readUInt(); 30 entries = new AnnotationOffItem[size]; 31 for (int i = 0; i < size; i++) { 40 file.writeUInt(size);
|
H A D | AnnotationSetRefList.java | 22 public int size; field in class:AnnotationSetRefList 29 size = file.readUInt(); 30 list = new AnnotationSetRefItem[size]; 31 for (int i = 0; i < size; i++) { 40 file.writeUInt(size);
|
/art/compiler/utils/ |
H A D | stack_checks.h | 37 static inline bool FrameNeedsStackCheck(size_t size, InstructionSet isa ATTRIBUTE_UNUSED) { argument 38 return size >= kLargeFrameSize;
|
H A D | swap_space.cc | 31 // The chunk size by which the swap file is increased and mapped. 40 if (last_size != entry.size) { 41 last_size = entry.size; 45 << " size=" << std::dec << entry.free_by_start_entry->size; 56 DCHECK_NE(chunk.size, 0u); 59 free_by_size_.emplace(chunk.size, insert_result.first); 73 // this point, so there should be only full size chunks in free_by_start_. 75 if (munmap(chunk.ptr, chunk.size) != 0) { 77 << static_cast<const void*>(chunk.ptr) << " size 108 Alloc(size_t size) argument 190 Free(void* ptr, size_t size) argument [all...] |
/art/libartbase/base/ |
H A D | strlcpy.h | 31 static inline size_t strlcpy(char* dst, const char* src, size_t size) { argument 33 return snprintf(dst, size, "%s", src);
|
H A D | bit_field.h | 35 static constexpr size_t size = kSize; member in class:art::BitField 38 static_assert(size != 0u, "Invalid size."); 39 static_assert(size <= sizeof(uintptr_t) * kBitsPerByte, "Invalid size."); 40 static_assert(size + position <= sizeof(uintptr_t) * kBitsPerByte, "Invalid position + size."); 44 return (static_cast<uintptr_t>(value) & ~((kUintPtrTOne << size) - 1)) == 0; 49 return (kUintPtrTOne << size) - 1; 55 return ((kUintPtrTOne << size) [all...] |
/art/runtime/base/ |
H A D | arena_object.h | 32 // Allocate a new ArenaObject of 'size' bytes in the Arena. 33 void* operator new(size_t size, ArenaAllocator* allocator) { argument 34 return allocator->Alloc(size, kAllocKind); 37 static void* operator new(size_t size, ScopedArenaAllocator* allocator) { argument 38 return allocator->Alloc(size, kAllocKind); 56 // Allocate a new ArenaObject of 'size' bytes in the Arena. 57 void* operator new(size_t size, ArenaAllocator* allocator) { argument 58 return allocator->Alloc(size, kAllocKind); 61 static void* operator new(size_t size, ScopedArenaAllocator* allocator) { argument 62 return allocator->Alloc(size, kAllocKin [all...] |
/art/test/617-clinit-oome/src/ |
H A D | Main.java | 23 int size = 256 * 1024 * 1024; 27 data[index] = new byte[size]; 30 size /= 2; 31 if (size == 0) {
|
/art/libdexfile/dex/ |
H A D | compact_offset_table_test.cc | 45 EXPECT_LT(table_offset, data.size()); 46 ASSERT_GT(data.size(), 0u); 47 const size_t before_size = offsets.size() * sizeof(offsets.front()); 48 EXPECT_LT(data.size(), before_size); 54 std::vector<uint8_t> fake_dex(data.size() + kExtraOffset); 58 for (size_t i = 0; i < offsets.size(); ++i) { 70 EXPECT_LT(sorted_data.size(), data.size()); 73 LOG(INFO) << "raw size " << before_size 74 << " table size " << dat [all...] |
/art/tools/ahat/src/main/com/android/ahat/ |
H A D | SizeTable.java | 27 * added before the size columns: 35 * Start a size table with a custom left column. 42 * Set showDiff to true if size diffs should be shown. 54 doc.table(cols.toArray(new Column[cols.size()])); 58 * Add a row to the currently active size table with custom left column. 62 static void row(Doc doc, DocString left, Size size, Size base, DocString... values) { argument 65 vals.add(DocString.size(size.getJavaSize(), false)); 66 vals.add(DocString.delta(false, false, size.getJavaSize(), base.getJavaSize())); 67 vals.add(DocString.size(siz 96 row(Doc doc, Size size, Size base, DocString... values) argument [all...] |
/art/test/004-NativeAllocations/src-art/ |
H A D | Main.java | 50 int size = (int)(maxMem / 32); 58 runtime.registerNativeAllocation(size); 59 total += size; 76 runtime.registerNativeFree(size); 77 total -= size; 85 int size = (int)(maxMem / 5); 90 runtime.registerNativeAllocation(size); 91 total += size; 95 runtime.registerNativeFree(size); 96 total -= size; [all...] |
/art/openjdkjvmti/ |
H A D | ti_allocator.cc | 60 jlong size, 62 if (size < 0) { 64 } else if (size == 0) { 68 *mem_ptr = AllocateImpl(size); 75 unsigned char* AllocUtil::AllocateImpl(jlong size) { argument 76 unsigned char* ret = size != 0 ? reinterpret_cast<unsigned char*>(malloc(size)) : nullptr; 59 Allocate(jvmtiEnv* env ATTRIBUTE_UNUSED, jlong size, unsigned char** mem_ptr) argument
|
/art/test/163-app-image-methods/src/ |
H A D | Main.java | 67 int size = 1000000; 68 while (result == null && size != 0) { 70 result = new Object[size]; 72 size /= 2; 77 while (index != result.length && size != 0) { 79 result[index] = new byte[size]; 82 size /= 2;
|