/art/benchmark/string-indexof/src/ |
D | StringIndexOfBenchmark.java | 20 public void timeIndexOf0(int count) { in timeIndexOf0() argument 23 for (int i = 0; i < count; ++i) { in timeIndexOf0() 28 public void timeIndexOf1(int count) { in timeIndexOf1() argument 31 for (int i = 0; i < count; ++i) { in timeIndexOf1() 36 public void timeIndexOf2(int count) { in timeIndexOf2() argument 39 for (int i = 0; i < count; ++i) { in timeIndexOf2() 44 public void timeIndexOf3(int count) { in timeIndexOf3() argument 47 for (int i = 0; i < count; ++i) { in timeIndexOf3() 52 public void timeIndexOf4(int count) { in timeIndexOf4() argument 55 for (int i = 0; i < count; ++i) { in timeIndexOf4() [all …]
|
/art/runtime/native/ |
D | java_lang_System.cc | 53 const jint count = length; in System_arraycopy() local 81 if (UNLIKELY(srcPos < 0) || UNLIKELY(dstPos < 0) || UNLIKELY(count < 0) || in System_arraycopy() 82 UNLIKELY(srcPos > srcArray->GetLength() - count) || in System_arraycopy() 83 UNLIKELY(dstPos > dstArray->GetLength() - count)) { in System_arraycopy() 87 count); in System_arraycopy() 104 dstArray->AsByteSizedArray()->Memmove(dstPos, srcArray->AsByteSizedArray(), srcPos, count); in System_arraycopy() 109 … dstArray->AsShortSizedArray()->Memmove(dstPos, srcArray->AsShortSizedArray(), srcPos, count); in System_arraycopy() 113 dstArray->AsIntArray()->Memmove(dstPos, srcArray->AsIntArray(), srcPos, count); in System_arraycopy() 117 dstArray->AsFloatArray()->Memmove(dstPos, srcArray->AsFloatArray(), srcPos, count); in System_arraycopy() 121 dstArray->AsLongArray()->Memmove(dstPos, srcArray->AsLongArray(), srcPos, count); in System_arraycopy() [all …]
|
/art/test/444-checker-nce/src/ |
D | Main.java | 97 public Main forRemoveTest(int count) { in forRemoveTest() argument 100 for (int i = 0; i < count; i++) { in forRemoveTest() 113 public Main forKeepTest(int count) { in forKeepTest() argument 116 for (int i = 0; i < count; i++) { in forKeepTest() 131 public Main phiFlowRemoveTest(int count) { in phiFlowRemoveTest() argument 134 for (int i = 0; i < count; i++) { in phiFlowRemoveTest() 140 for (int i = 0; i < count; i++) { in phiFlowRemoveTest() 153 public Main phiFlowKeepTest(int count) { in phiFlowKeepTest() argument 156 for (int i = 0; i < count; i++) { in phiFlowKeepTest() 164 for (int i = 0; i < count; i++) { in phiFlowKeepTest() [all …]
|
/art/runtime/ |
D | thread_pool_test.cc | 30 explicit CountTask(AtomicInteger* count) : count_(count), verbose_(false) {} in CountTask() argument 65 AtomicInteger count(0); in TEST_F() local 68 thread_pool.AddTask(self, new CountTask(&count)); in TEST_F() 74 EXPECT_EQ(num_tasks, count.LoadSequentiallyConsistent()); in TEST_F() 80 AtomicInteger count(0); in TEST_F() local 83 thread_pool.AddTask(self, new CountTask(&count)); in TEST_F() 87 EXPECT_EQ(0, count.LoadSequentiallyConsistent()); in TEST_F() 106 AtomicInteger count(0); in TEST_F() local 109 thread_pool.AddTask(self, new CountTask(&count)); in TEST_F() 127 TreeTask(ThreadPool* const thread_pool, AtomicInteger* count, int depth) in TreeTask() argument [all …]
|
D | barrier.cc | 26 Barrier::Barrier(int count) in Barrier() argument 27 : count_(count), in Barrier() 41 void Barrier::Init(Thread* self, int count) { in Init() argument 43 SetCountLocked(self, count); in Init() 88 void Barrier::SetCountLocked(Thread* self, int count) { in SetCountLocked() argument 89 count_ = count; in SetCountLocked() 90 if (count == 0) { in SetCountLocked()
|
D | native_bridge_art_interface.cc | 64 uint32_t count = 0; in GetNativeMethods() local 67 if (count < method_count) { in GetNativeMethods() 68 methods[count].name = m.GetName(); in GetNativeMethods() 69 methods[count].signature = m.GetShorty(); in GetNativeMethods() 70 methods[count].fnPtr = m.GetEntryPointFromJni(); in GetNativeMethods() 71 count++; in GetNativeMethods() 78 return count; in GetNativeMethods()
|
D | nth_caller_visitor.h | 33 count(0), in StackVisitor() 48 if (count == n) { in VisitFrame() 53 count++; in VisitFrame() 60 size_t count; member
|
/art/runtime/interpreter/mterp/arm/ |
D | header.S | 160 .macro FETCH_ADVANCE_INST count argument 161 ldrh rINST, [rPC, #((\count)*2)]! 168 .macro PREFETCH_ADVANCE_INST dreg, sreg, count argument 169 ldrh \dreg, [\sreg, #((\count)*2)]! 177 .macro PREFETCH_INST count argument 178 ldrh rINST, [rPC, #((\count)*2)] 182 .macro ADVANCE count argument 183 add rPC, #((\count)*2) 206 .macro FETCH reg, count argument 207 ldrh \reg, [rPC, #((\count)*2)] [all …]
|
/art/tools/ahat/src/heapdump/ |
D | AhatArrayInstance.java | 151 String asString(int offset, int count, int maxChars) { in asString() argument 156 if (count == 0) { in asString() 160 if (0 <= maxChars && maxChars < count) { in asString() 161 count = maxChars; in asString() 164 int end = offset + count - 1; in asString() 166 return new String(mCharArray, offset, count); in asString() 175 String asAsciiString(int offset, int count, int maxChars) { in asAsciiString() argument 180 if (count == 0) { in asAsciiString() 184 if (0 <= maxChars && maxChars < count) { in asAsciiString() 185 count = maxChars; in asAsciiString() [all …]
|
/art/test/626-const-class-linking/src/ |
D | RacyMisbehavingLoader.java | 26 private int count; field in RacyMisbehavingLoader 31 public RacyMisbehavingLoader(ClassLoader parent, int count, boolean throw_error) { in RacyMisbehavingLoader() argument 33 this.count = count; in RacyMisbehavingLoader() 44 if (index == 2 * count) { in reportAfterLoading() 62 int my_index = syncWithOtherInstances(count); in loadClass() 69 syncWithOtherInstances(2 * count); in loadClass()
|
D | RacyLoader.java | 26 private int count; field in RacyLoader 30 public RacyLoader(ClassLoader parent, int count) { in RacyLoader() argument 32 this.count = count; in RacyLoader() 51 int my_index = syncWithOtherInstances(count); in loadClass() 53 syncWithOtherInstances(2 * count); in loadClass()
|
/art/test/911-get-stack-trace/src/art/ |
D | Frames.java | 41 int count = getFrameCount(t); in doTestSameThread() local 42 System.out.println(count); in doTestSameThread() 48 for (int i = 0; i < count; i++) { in doTestSameThread() 52 System.out.println(Arrays.toString(getFrameLocation(t, count))); in doTestSameThread() 74 int count = getFrameCount(t); in doTestOtherThreadWait() local 75 System.out.println(count); in doTestOtherThreadWait() 81 for (int i = 0; i < count; i++) { in doTestOtherThreadWait() 85 System.out.println(Arrays.toString(getFrameLocation(t, count))); in doTestOtherThreadWait() 112 int count = getFrameCount(t); in doTestOtherThreadBusyLoop() local 113 System.out.println(count); in doTestOtherThreadBusyLoop() [all …]
|
/art/runtime/arch/ |
D | memcmp16.cc | 22 int32_t memcmp16_generic_static(const uint16_t* s0, const uint16_t* s1, size_t count); 23 int32_t memcmp16_generic_static(const uint16_t* s0, const uint16_t* s1, size_t count) { in memcmp16_generic_static() argument 24 for (size_t i = 0; i < count; i++) { in memcmp16_generic_static() 36 int32_t MemCmp16Testing(const uint16_t* s0, const uint16_t* s1, size_t count) { in MemCmp16Testing() argument 37 return MemCmp16(s0, s1, count); in MemCmp16Testing()
|
D | memcmp16.h | 35 extern "C" uint32_t __memcmp16(const uint16_t* s0, const uint16_t* s1, size_t count); 41 static inline int32_t MemCmp16(const uint16_t* s0, const uint16_t* s1, size_t count) { in MemCmp16() argument 42 for (size_t i = 0; i < count; i++) { in MemCmp16() 50 extern "C" int32_t memcmp16_generic_static(const uint16_t* s0, const uint16_t* s1, size_t count); 60 int32_t MemCmp16Testing(const uint16_t* s0, const uint16_t* s1, size_t count);
|
/art/runtime/interpreter/mterp/arm64/ |
D | header.S | 157 .macro FETCH_ADVANCE_INST count argument 158 ldrh wINST, [xPC, #((\count)*2)]! 165 .macro PREFETCH_ADVANCE_INST dreg, sreg, count argument 166 ldrh \dreg, [\sreg, #((\count)*2)]! 174 .macro PREFETCH_INST count argument 175 ldrh wINST, [xPC, #((\count)*2)] 179 .macro ADVANCE count argument 180 add xPC, xPC, #((\count)*2) 200 .macro FETCH reg, count argument 201 ldrh \reg, [xPC, #((\count)*2)] [all …]
|
/art/test/023-many-interfaces/ |
D | iface-gen.c | 11 static int createFiles(int count) in createFiles() argument 16 for (i = 0; i < count; i++) { in createFiles() 35 for (i = 0; i < count; i++) { in createFiles() 36 fprintf(fp, " Interface%03d%s\n", i, (i == count-1) ? "" : ","); in createFiles() 39 for (i = 1; i < count; i += 2) { in createFiles()
|
/art/runtime/mirror/ |
D | array-inl.h | 276 static inline void ArrayBackwardCopy(T* d, const T* s, int32_t count) { in ArrayBackwardCopy() argument 277 d += count; in ArrayBackwardCopy() 278 s += count; in ArrayBackwardCopy() 279 for (int32_t i = 0; i < count; ++i) { in ArrayBackwardCopy() 289 static inline void ArrayForwardCopy(T* d, const T* s, int32_t count) { in ArrayForwardCopy() argument 290 for (int32_t i = 0; i < count; ++i) { in ArrayForwardCopy() 301 int32_t count) { in Memmove() argument 302 if (UNLIKELY(count == 0)) { in Memmove() 307 DCHECK_GT(count, 0); in Memmove() 310 DCHECK_LE(dst_pos, GetLength() - count); in Memmove() [all …]
|
D | object_array-inl.h | 134 int32_t count) { in AssignableMemmove() argument 136 for (int i = 0; i < count; ++i) { in AssignableMemmove() 147 const bool copy_forward = (src != this) || (dst_pos < src_pos) || (dst_pos - src_pos >= count); in AssignableMemmove() 158 for (int i = 0; i < count; ++i) { in AssignableMemmove() 167 for (int i = 0; i < count; ++i) { in AssignableMemmove() 183 for (int i = count - 1; i >= 0; --i) { in AssignableMemmove() 192 for (int i = count - 1; i >= 0; --i) { in AssignableMemmove() 199 Runtime::Current()->GetHeap()->WriteBarrierArray(this, dst_pos, count); in AssignableMemmove() 201 for (int i = 0; i < count; ++i) { in AssignableMemmove() 212 int32_t count) { in AssignableMemcpy() argument [all …]
|
/art/test/004-NativeAllocations/src-art/ |
D | Main.java | 74 int count = 16; in main() local 75 int size = (int)(maxMem / 2 / count); in main() 77 NativeAllocation[] allocations = new NativeAllocation[count]; in main() 79 allocations[i % count] = new NativeAllocation(size, false); in main() 86 allocations[i % count] = new NativeAllocation(size, true); in main() 91 allocations[i % count] = new NativeAllocation(size, true); in main()
|
/art/test/004-StackWalk/ |
D | stack_walk_jni.cc | 79 extern "C" JNIEXPORT jint JNICALL Java_Main_stackmap(JNIEnv*, jobject, jint count) { in Java_Main_stackmap() argument 81 CHECK_EQ(count, 0); in Java_Main_stackmap() 88 return count + 1; in Java_Main_stackmap() 91 extern "C" JNIEXPORT jint JNICALL Java_Main_refmap2(JNIEnv*, jobject, jint count) { in Java_Main_refmap2() argument 99 return count + 1; in Java_Main_refmap2()
|
/art/test/023-many-interfaces/src/ |
D | ManyInterfaces.java | 302 static void testIface001(Interface001 iface, int count) { in testIface001() argument 303 while (count-- != 0) { in testIface001() 311 static void testIface049(Interface049 iface, int count) { in testIface049() argument 312 while (count-- != 0) { in testIface049() 320 static void testIface099(Interface099 iface, int count) { in testIface099() argument 321 while (count-- != 0) { in testIface099() 329 static void testVirt001(ManyInterfaces obj, int count) { in testVirt001() argument 330 while (count-- != 0) { in testVirt001() 338 static void testVirt049(ManyInterfaces obj, int count) { in testVirt049() argument 339 while (count-- != 0) { in testVirt049() [all …]
|
/art/test/080-oom-fragmentation/src/ |
D | Main.java | 22 int count = 0; in main() local 25 holder[count++] = new Object[1025]; // A bit over one page. in main() 28 for (int i = 0; i < count; ++i) { in main()
|
/art/test/903-hello-tagging/ |
D | tagging.cc | 137 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jlong base_tag, jint count) { in Java_art_Test903_testTagsInDifferentEnvs() argument 138 std::unique_ptr<jvmtiEnv*[]> envs = std::unique_ptr<jvmtiEnv*[]>(new jvmtiEnv*[count]); in Java_art_Test903_testTagsInDifferentEnvs() 140 for (int32_t i = 1; i != count; ++i) { in Java_art_Test903_testTagsInDifferentEnvs() 144 for (int32_t i = 0; i != count; ++i) { in Java_art_Test903_testTagsInDifferentEnvs() 147 std::unique_ptr<jlong[]> vals = std::unique_ptr<jlong[]>(new jlong[count]); in Java_art_Test903_testTagsInDifferentEnvs() 148 for (int32_t i = 0; i != count; ++i) { in Java_art_Test903_testTagsInDifferentEnvs() 152 for (int32_t i = 1; i != count; ++i) { in Java_art_Test903_testTagsInDifferentEnvs() 156 jlongArray res = env->NewLongArray(count); in Java_art_Test903_testTagsInDifferentEnvs() 160 env->SetLongArrayRegion(res, 0, count, vals.get()); in Java_art_Test903_testTagsInDifferentEnvs()
|
/art/runtime/base/ |
D | hex_dump.cc | 71 size_t count = std::min(byte_count, 16 - gap); in Dump() local 82 for (i = gap ; i < count + gap; i++) { in Dump() 104 byte_count -= count; in Dump() 105 offset += count; in Dump()
|
/art/test/050-sync-test/src/ |
D | Main.java | 118 int count = mCount; in output() local 128 count++; in output() 129 mCount = count; in output() 137 private static int count = 0; field in SleepyThread 143 setName("thread#" + count); in SleepyThread() 144 count++; in SleepyThread()
|