Searched refs:size (Results 1 - 25 of 559) sorted by relevance

1234567891011>>

/art/test/413-regalloc-regression/src/
H A DMain.java19 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 DType.java76 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 DRawDexFile.java86 // - 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 DDebugInfoItem.java23 // 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 DEncodedAnnotation.java23 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 DEncodedArray.java22 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 DEncodedCatchHandlerList.java22 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 DStringDataItem.java25 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 DEncodedCatchHandler.java22 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 DEncodedValue.java43 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 DTypeList.java22 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 DMapList.java29 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 DAnnotationSetItem.java22 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 DAnnotationSetRefList.java22 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 Dstack_checks.h37 static inline bool FrameNeedsStackCheck(size_t size, InstructionSet isa ATTRIBUTE_UNUSED) { argument
38 return size >= kLargeFrameSize;
H A Dswap_space.cc31 // 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 Dstrlcpy.h31 static inline size_t strlcpy(char* dst, const char* src, size_t size) { argument
33 return snprintf(dst, size, "%s", src);
H A Dbit_field.h35 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 Darena_object.h32 // 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 DMain.java23 int size = 256 * 1024 * 1024;
27 data[index] = new byte[size];
30 size /= 2;
31 if (size == 0) {
/art/libdexfile/dex/
H A Dcompact_offset_table_test.cc45 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 DSizeTable.java27 * 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 DMain.java50 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 Dti_allocator.cc60 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 DMain.java67 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;

Completed in 383 milliseconds

1234567891011>>