Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 261) sorted by relevance

1234567891011

/art/benchmark/string-indexof/src/
DStringIndexOfBenchmark.java20 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/benchmark/stringbuilder-append/src/
DStringBuilderAppendBenchmark.java28 public void timeAppendStrings(int count) { in timeAppendStrings() argument
32 for (int i = 0; i < count; ++i) { in timeAppendStrings()
36 if (sum != count * (s1.length() + s2.length())) { in timeAppendStrings()
41 public void timeAppendLongStrings(int count) { in timeAppendLongStrings() argument
45 for (int i = 0; i < count; ++i) { in timeAppendLongStrings()
49 if (sum != count * (s1.length() + s2.length())) { in timeAppendLongStrings()
54 public void timeAppendStringAndInt(int count) { in timeAppendStringAndInt() argument
58 for (int i = 0; i < count; ++i) { in timeAppendStringAndInt()
62 if (sum != count * (s1.length() + Integer.toString(i1).length())) { in timeAppendStringAndInt()
67 public void timeAppendStringAndDouble(int count) { in timeAppendStringAndDouble() argument
[all …]
/art/benchmark/type-check/src/
DTypeCheckBenchmark.java18 public void timeCheckCastLevel1ToLevel1(int count) { in timeCheckCastLevel1ToLevel1() argument
20 for (int i = 0; i < count; ++i) { in timeCheckCastLevel1ToLevel1()
25 public void timeCheckCastLevel2ToLevel1(int count) { in timeCheckCastLevel2ToLevel1() argument
27 for (int i = 0; i < count; ++i) { in timeCheckCastLevel2ToLevel1()
32 public void timeCheckCastLevel3ToLevel1(int count) { in timeCheckCastLevel3ToLevel1() argument
34 for (int i = 0; i < count; ++i) { in timeCheckCastLevel3ToLevel1()
39 public void timeCheckCastLevel9ToLevel1(int count) { in timeCheckCastLevel9ToLevel1() argument
41 for (int i = 0; i < count; ++i) { in timeCheckCastLevel9ToLevel1()
46 public void timeCheckCastLevel9ToLevel2(int count) { in timeCheckCastLevel9ToLevel2() argument
48 for (int i = 0; i < count; ++i) { in timeCheckCastLevel9ToLevel2()
[all …]
/art/test/1954-pop-frame-jit/
Dexpected-stdout.jvm.txt2 Single call with PopFrame on StandardTestObject { cnt: 0 } base-call-count: 0
3 result is StandardTestObject { cnt: 2 } base-call count: 1
5 Single call with PopFrame on SynchronizedFunctionTestObject { cnt: 0 } base-call-count: 0
6 result is SynchronizedFunctionTestObject { cnt: 2 } base-call count: 1
8 Single call with PopFrame on SynchronizedTestObject { cnt: 0 } base-call-count: 0
9 result is SynchronizedTestObject { cnt: 2 } base-call count: 1
11 Single call with PopFrame on StandardTestObject { cnt: 0 } base-call-count: 0
12 result is StandardTestObject { cnt: 2 } base-call count: 1
14 Single call with PopFrame on FieldBasedTestObject { cnt: 0, TARGET_FIELD: 0 } base-call-count: 0
15 result is FieldBasedTestObject { cnt: 2, TARGET_FIELD: 10 } base-call count: 1
[all …]
Dexpected-stdout.txt2 Single call with PopFrame on StandardTestObject { cnt: 0 } base-call-count: 0
3 result is StandardTestObject { cnt: 2 } base-call count: 1
5 Single call with PopFrame on SynchronizedFunctionTestObject { cnt: 0 } base-call-count: 0
6 result is SynchronizedFunctionTestObject { cnt: 2 } base-call count: 1
8 Single call with PopFrame on SynchronizedTestObject { cnt: 0 } base-call-count: 0
9 result is SynchronizedTestObject { cnt: 2 } base-call count: 1
11 Single call with PopFrame on StandardTestObject { cnt: 0 } base-call-count: 0
12 result is StandardTestObject { cnt: 2 } base-call count: 1
14 Single call with PopFrame on FieldBasedTestObject { cnt: 0, TARGET_FIELD: 0 } base-call-count: 0
15 result is FieldBasedTestObject { cnt: 2, TARGET_FIELD: 10 } base-call count: 1
[all …]
/art/test/1956-pop-frame-jit-calling/
Dexpected-stdout.jvm.txt2 Single call with PopFrame on StandardTestObject { cnt: 0 } base-call-count: 0
3 result is StandardTestObject { cnt: 2 } base-call count: 1
5 Single call with PopFrame on SynchronizedFunctionTestObject { cnt: 0 } base-call-count: 0
6 result is SynchronizedFunctionTestObject { cnt: 2 } base-call count: 1
8 Single call with PopFrame on SynchronizedTestObject { cnt: 0 } base-call-count: 0
9 result is SynchronizedTestObject { cnt: 2 } base-call count: 1
11 Single call with PopFrame on StandardTestObject { cnt: 0 } base-call-count: 0
12 result is StandardTestObject { cnt: 2 } base-call count: 1
14 Single call with PopFrame on FieldBasedTestObject { cnt: 0, TARGET_FIELD: 0 } base-call-count: 0
15 result is FieldBasedTestObject { cnt: 2, TARGET_FIELD: 10 } base-call count: 1
[all …]
Dexpected-stdout.txt2 Single call with PopFrame on StandardTestObject { cnt: 0 } base-call-count: 0
3 result is StandardTestObject { cnt: 2 } base-call count: 1
5 Single call with PopFrame on SynchronizedFunctionTestObject { cnt: 0 } base-call-count: 0
6 result is SynchronizedFunctionTestObject { cnt: 2 } base-call count: 1
8 Single call with PopFrame on SynchronizedTestObject { cnt: 0 } base-call-count: 0
9 result is SynchronizedTestObject { cnt: 2 } base-call count: 1
11 Single call with PopFrame on StandardTestObject { cnt: 0 } base-call-count: 0
12 result is StandardTestObject { cnt: 2 } base-call count: 1
14 Single call with PopFrame on FieldBasedTestObject { cnt: 0, TARGET_FIELD: 0 } base-call-count: 0
15 result is FieldBasedTestObject { cnt: 2, TARGET_FIELD: 10 } base-call count: 1
[all …]
/art/test/1953-pop-frame/
Dexpected-stdout.txt2 Single call with PopFrame on StandardTestObject { cnt: 0 } base-call-count: 0
3 result is StandardTestObject { cnt: 2 } base-call count: 1
5 Single call with PopFrame on SynchronizedFunctionTestObject { cnt: 0 } base-call-count: 0
6 result is SynchronizedFunctionTestObject { cnt: 2 } base-call count: 1
8 Single call with PopFrame on SynchronizedTestObject { cnt: 0 } base-call-count: 0
9 result is SynchronizedTestObject { cnt: 2 } base-call count: 1
11 Single call with PopFrame on StandardTestObject { cnt: 0 } base-call-count: 0
12 result is StandardTestObject { cnt: 2 } base-call count: 1
14 Single call with PopFrame on FieldBasedTestObject { cnt: 0, TARGET_FIELD: 0 } base-call-count: 0
15 result is FieldBasedTestObject { cnt: 2, TARGET_FIELD: 10 } base-call count: 1
[all …]
Dexpected-stdout.no-jvm.txt2 Single call with PopFrame on StandardTestObject { cnt: 0 } base-call-count: 0
3 result is StandardTestObject { cnt: 2 } base-call count: 1
5 Single call with PopFrame on SynchronizedFunctionTestObject { cnt: 0 } base-call-count: 0
6 result is SynchronizedFunctionTestObject { cnt: 2 } base-call count: 1
8 Single call with PopFrame on SynchronizedTestObject { cnt: 0 } base-call-count: 0
9 result is SynchronizedTestObject { cnt: 2 } base-call count: 1
11 Single call with PopFrame on StandardTestObject { cnt: 0 } base-call-count: 0
12 result is StandardTestObject { cnt: 2 } base-call count: 1
14 Single call with PopFrame on FieldBasedTestObject { cnt: 0, TARGET_FIELD: 0 } base-call-count: 0
15 result is FieldBasedTestObject { cnt: 2, TARGET_FIELD: 10 } base-call count: 1
[all …]
/art/test/1955-pop-frame-jit-called/
Dexpected-stdout.jvm.txt2 Single call with PopFrame on StandardTestObject { cnt: 0 } base-call-count: 0
3 result is StandardTestObject { cnt: 2 } base-call count: 1
5 Single call with PopFrame on SynchronizedFunctionTestObject { cnt: 0 } base-call-count: 0
6 result is SynchronizedFunctionTestObject { cnt: 2 } base-call count: 1
8 Single call with PopFrame on SynchronizedTestObject { cnt: 0 } base-call-count: 0
9 result is SynchronizedTestObject { cnt: 2 } base-call count: 1
11 Single call with PopFrame on StandardTestObject { cnt: 0 } base-call-count: 0
12 result is StandardTestObject { cnt: 2 } base-call count: 1
14 Single call with PopFrame on FieldBasedTestObject { cnt: 0, TARGET_FIELD: 0 } base-call-count: 0
15 result is FieldBasedTestObject { cnt: 2, TARGET_FIELD: 10 } base-call count: 1
[all …]
Dexpected-stdout.txt2 Single call with PopFrame on StandardTestObject { cnt: 0 } base-call-count: 0
3 result is StandardTestObject { cnt: 2 } base-call count: 1
5 Single call with PopFrame on SynchronizedFunctionTestObject { cnt: 0 } base-call-count: 0
6 result is SynchronizedFunctionTestObject { cnt: 2 } base-call count: 1
8 Single call with PopFrame on SynchronizedTestObject { cnt: 0 } base-call-count: 0
9 result is SynchronizedTestObject { cnt: 2 } base-call count: 1
11 Single call with PopFrame on StandardTestObject { cnt: 0 } base-call-count: 0
12 result is StandardTestObject { cnt: 2 } base-call count: 1
14 Single call with PopFrame on FieldBasedTestObject { cnt: 0, TARGET_FIELD: 0 } base-call-count: 0
15 result is FieldBasedTestObject { cnt: 2, TARGET_FIELD: 10 } base-call count: 1
[all …]
/art/libartbase/base/
Dstats.h37 void AddBytes(double bytes, size_t count = 1) { Add(bytes, count); }
38 void AddBits(double bits, size_t count = 1) { Add(bits / kBitsPerByte, count); }
39 void AddSeconds(double s, size_t count = 1) { Add(s, count); }
40 void AddNanoSeconds(double ns, size_t count = 1) { Add(ns / 1000000000.0, count); }
53 void Add(double value, size_t count = 1) {
55 count_ += count;
/art/test/165-lock-owner-proxy/src/
DMain.java77 int count = totalOperations; in run() local
78 while (count > 0) { in run()
81 inf.foo(10000 - count, 11000 - count, 12000 - count, 13000 - count, in run()
82 14000 - count, 15000 - count); in run()
88 count--; in run()
95 int count = totalOperations; in run() local
96 while (count > 0) { in run()
106 count--; in run()
/art/runtime/native/
Djava_lang_System.cc53 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()
106 dstPos, ObjPtr<mirror::ByteArray>::DownCast(srcArray), srcPos, count); in System_arraycopy()
113 dstPos, ObjPtr<mirror::ShortArray>::DownCast(srcArray), srcPos, count); in System_arraycopy()
120 dstPos, ObjPtr<mirror::IntArray>::DownCast(srcArray), srcPos, count); in System_arraycopy()
127 dstPos, ObjPtr<mirror::LongArray>::DownCast(srcArray), srcPos, count); in System_arraycopy()
134 dstObjArray->AssignableMemmove(dstPos, srcObjArray, srcPos, count); in System_arraycopy()
[all …]
Dlibcore_io_Memory.cc64 static inline void swapShorts(jshort* dstShorts, const jshort* srcShorts, size_t count) { in swapShorts() argument
68 for (size_t i = 0; i < count / 2; ++i) { in swapShorts()
72 if ((count % 2) != 0) { in swapShorts()
78 static inline void swapInts(jint* dstInts, const jint* srcInts, size_t count) { in swapInts() argument
79 for (size_t i = 0; i < count; ++i) { in swapInts()
85 static inline void swapLongs(jlong* dstLongs, const jlong* srcLongs, size_t count) { in swapLongs() argument
88 for (size_t i = 0; i < count; ++i) { in swapLongs()
116 SWAP_FN(reinterpret_cast<SWAP_TYPE*>(elements.get()) + dstOffset, src, count); /*NOLINT*/ \
119 env->Set##JNI_NAME##ArrayRegion(dst, dstOffset, count, src); \
128 jint count, in Memory_peekCharArray() argument
[all …]
/art/tools/ahat/src/test-dump/android/graphics/
DBitmap.java41 private int count; field in Bitmap.DumpData
48 this.count = 0; in DumpData()
52 natives[count] = nativePtr; in add()
53 buffers[count] = buffer; in add()
54 count = (count >= max) ? max : count + 1; in add()
/art/runtime/mirror/
Darray-inl.h111 static inline void ArrayBackwardCopy(T* d, const T* s, int32_t count) { in ArrayBackwardCopy() argument
112 d += count; in ArrayBackwardCopy()
113 s += count; in ArrayBackwardCopy()
114 for (int32_t i = 0; i < count; ++i) { in ArrayBackwardCopy()
124 static inline void ArrayForwardCopy(T* d, const T* s, int32_t count) { in ArrayForwardCopy() argument
125 for (int32_t i = 0; i < count; ++i) { in ArrayForwardCopy()
136 int32_t count) { in Memmove() argument
137 if (UNLIKELY(count == 0)) { in Memmove()
142 DCHECK_GT(count, 0); in Memmove()
145 DCHECK_LE(dst_pos, GetLength() - count); in Memmove()
[all …]
/art/test/444-checker-nce/src/
DMain.java97 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/test/1339-dead-reference-safe/
Dexpected-stdout.txt2 DeadReferenceUnsafe count: 5
3 DeadReferenceSafe count: N
4 ReachabilitySensitive count: 5
5 ReachabilitySensitiveFun count: 5
6 ReachabilityFence count: 5
/art/runtime/
Dthread_pool_test.cc30 explicit CountTask(AtomicInteger* count) : count_(count), verbose_(false) {} in CountTask() argument
66 AtomicInteger count(0); in TEST_F() local
69 thread_pool->AddTask(self, new CountTask(&count)); in TEST_F()
75 EXPECT_EQ(num_tasks, count.load(std::memory_order_seq_cst)); in TEST_F()
82 AtomicInteger count(0); in TEST_F() local
85 thread_pool->AddTask(self, new CountTask(&count)); in TEST_F()
89 EXPECT_EQ(0, count.load(std::memory_order_seq_cst)); in TEST_F()
109 AtomicInteger count(0); in TEST_F() local
112 thread_pool->AddTask(self, new CountTask(&count)); in TEST_F()
130 TreeTask(ThreadPool* const thread_pool, AtomicInteger* count, int depth) in TreeTask() argument
[all …]
/art/test/911-get-stack-trace/src/art/
DFrames.java41 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/test/626-const-class-linking/src/
DRacyMisbehavingLoader.java26 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()
DRacyLoader.java26 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/runtime/arch/
Dmemcmp16.cc22 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()
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DAhatArrayInstance.java274 String asString(int offset, int count, int maxChars) { in asString() argument
279 if (count == 0) { in asString()
283 if (0 <= maxChars && maxChars < count) { in asString()
284 count = maxChars; in asString()
287 int end = offset + count - 1; in asString()
289 return new String(mCharArray, offset, count); in asString()
298 String asAsciiString(int offset, int count, int maxChars) { in asAsciiString() argument
303 if (count == 0) { in asAsciiString()
307 if (0 <= maxChars && maxChars < count) { in asAsciiString()
308 count = maxChars; in asAsciiString()
[all …]

1234567891011