Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 346) sorted by relevance

12345678910>>...14

/art/test/1953-pop-frame/
Dpop_frame.cc91 TestData *data; in cbSingleStep() local
94 jvmti->GetThreadLocalStorage(thr, reinterpret_cast<void**>(&data)))) { in cbSingleStep()
97 CHECK(data != nullptr); in cbSingleStep()
98 if (meth != data->target_method || loc != data->target_loc) { in cbSingleStep()
101 data->PerformSuspend(jvmti, env); in cbSingleStep()
110 TestData *data; in cbExceptionCatch() local
113 jvmti->GetThreadLocalStorage(thr, reinterpret_cast<void**>(&data)))) { in cbExceptionCatch()
116 CHECK(data != nullptr); in cbExceptionCatch()
117 if (method != data->target_method) { in cbExceptionCatch()
120 data->PerformSuspend(jvmti, env); in cbExceptionCatch()
[all …]
/art/test/911-get-stack-trace/src/art/
DRecurse.java20 public static int foo(int x, int start, int max, ControlData data) { in foo() argument
21 bar(x, start, max, data); in foo()
25 private static long bar(int x, int start, int max, ControlData data) { in bar() argument
26 baz(x, start, max, data); in bar()
30 private static Object baz(int x, int start, int max, ControlData data) { in baz() argument
32 printOrWait(start, max, data); in baz()
34 foo(x - 1, start, max, data); in baz()
39 private static void printOrWait(int start, int max, ControlData data) { in printOrWait() argument
40 if (data == null) { in printOrWait()
43 if (data.waitFor != null) { in printOrWait()
[all …]
DOtherThread.java24 final ControlData data = new ControlData(); in doTestOtherThreadWait() local
25 data.waitFor = new Object(); in doTestOtherThreadWait()
28 Recurse.foo(4, 0, 0, data); in doTestOtherThreadWait()
32 data.reached.await(); in doTestOtherThreadWait()
49 synchronized(data.waitFor) { in doTestOtherThreadWait()
50 data.waitFor.notifyAll(); in doTestOtherThreadWait()
59 final ControlData data = new ControlData(); in doTestOtherThreadBusyLoop() local
62 Recurse.foo(4, 0, 0, data); in doTestOtherThreadBusyLoop()
66 data.reached.await(); in doTestOtherThreadBusyLoop()
82 data.stop = true; in doTestOtherThreadBusyLoop()
/art/test/412-new-array/smali/
Dfill_array_data.smali8 fill-array-data v0, :ArrayData
12 .array-data 4
13 .end array-data
20 fill-array-data v0, :ArrayData
24 .array-data 4
26 .end array-data
35 .array-data 4
37 .end array-data
40 fill-array-data v0, :ArrayData
48 fill-array-data v0, :ArrayData
[all …]
/art/libartbase/base/
Dbit_memory_region_test.cc23 static void CheckBits(uint8_t* data, in CheckBits() argument
31 uint8_t actual = data[i / kBitsPerByte] >> (i % kBitsPerByte); in CheckBits()
44 BitMemoryReader reader(buffer.data(), start_bit_offset); in TEST()
55 uint8_t data[sizeof(uint32_t) * 2]; in TEST() local
60 std::fill_n(data, sizeof(data), initial_value * 0xFF); in TEST()
61 BitMemoryRegion bmr1(MemoryRegion(&data, sizeof(data)), bit_offset, 1); in TEST()
64 CheckBits(data, sizeof(data), initial_value, bit_offset, 1, value); in TEST()
66 std::fill_n(data, sizeof(data), initial_value * 0xFF); in TEST()
67 BitMemoryRegion bmr2(MemoryRegion(&data, sizeof(data))); in TEST()
70 CheckBits(data, sizeof(data), initial_value, bit_offset, 1, value); in TEST()
[all …]
Dhistogram_test.cc68 Histogram<uint64_t>::CumulativeData data; in TEST() local
88 hist->CreateHistogram(&data); in TEST()
89 PerValue = hist->Percentile(0.50, data); in TEST()
95 Histogram<uint64_t>::CumulativeData data; in TEST() local
120 hist->CreateHistogram(&data); in TEST()
121 PerValue = hist->Percentile(0.50, data); in TEST()
126 hist->PrintConfidenceIntervals(stream, 0.99, data); in TEST()
162 Histogram<uint64_t>::CumulativeData data; in TEST() local
163 hist->CreateHistogram(&data); in TEST()
164 PerValue = hist->Percentile(0.50, data); in TEST()
[all …]
Dleb128.h33 static inline uint32_t DecodeUnsignedLeb128(const uint8_t** data) { in DecodeUnsignedLeb128() argument
34 const uint8_t* ptr = *data; in DecodeUnsignedLeb128()
54 *data = ptr; in DecodeUnsignedLeb128()
58 static inline uint32_t DecodeUnsignedLeb128WithoutMovingCursor(const uint8_t* data) { in DecodeUnsignedLeb128WithoutMovingCursor() argument
59 return DecodeUnsignedLeb128(&data); in DecodeUnsignedLeb128WithoutMovingCursor()
62 static inline bool DecodeUnsignedLeb128Checked(const uint8_t** data, in DecodeUnsignedLeb128Checked() argument
65 const uint8_t* ptr = *data; in DecodeUnsignedLeb128Checked()
100 *data = ptr; in DecodeUnsignedLeb128Checked()
109 static inline int32_t DecodeUnsignedLeb128P1(const uint8_t** data) { in DecodeUnsignedLeb128P1() argument
110 return DecodeUnsignedLeb128(data) - 1; in DecodeUnsignedLeb128P1()
[all …]
/art/test/1940-ddms-ext/
Dexpected.txt1 Sending data [1, 2, 3, 4, 5, 6, 7, 8]
2 MyDdmHandler: Chunk received: Chunk(Type: 0xDEADBEEF, Len: 8, data: [1, 2, 3, 4, 5, 6, 7, 8])
4 MyDdmHandler: Chunk returned: Chunk(Type: 0xFADE7357, Len: 8, data: [0, 0, 0, 0, 0, -128, 0, 37])
5 JVMTI returned chunk: Chunk(Type: 0xFADE7357, Len: 8, data: [0, 0, 0, 0, 0, -128, 0, 37])
6 Sending empty data array
7 MyDdmHandler: Chunk received: Chunk(Type: 0xDEADBEEF, Len: 0, data: [])
9 MyDdmHandler: Chunk returned: Chunk(Type: 0xFADE7357, Len: 8, data: [0, 0, 0, 0, 0, 0, 0, 1])
10 JVMTI returned chunk: Chunk(Type: 0xFADE7357, Len: 8, data: [0, 0, 0, 0, 0, 0, 0, 1])
11 Sending chunk: Chunk(Type: 0xDEADBEEF, Len: 8, data: [9, 10, 11, 12, 13, 14, 15, 16])
12 Chunk published: Chunk(Type: 0xDEADBEEF, Len: 8, data: [9, 10, 11, 12, 13, 14, 15, 16])
[all …]
/art/compiler/optimizing/
Dsuspend_check_test.cc33 void TestCode(const std::vector<uint16_t>& data);
36 void SuspendCheckTest::TestCode(const std::vector<uint16_t>& data) { in TestCode() argument
37 HGraph* graph = CreateCFG(data); in TestCode()
46 const std::vector<uint16_t> data = ZERO_REGISTER_CODE_ITEM( in TEST_F() local
50 TestCode(data); in TEST_F()
54 const std::vector<uint16_t> data = ZERO_REGISTER_CODE_ITEM( in TEST_F() local
57 TestCode(data); in TEST_F()
61 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
66 TestCode(data); in TEST_F()
70 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
[all …]
Dliveness_test.cc32 void TestCode(const std::vector<uint16_t>& data, const char* expected);
47 void LivenessTest::TestCode(const std::vector<uint16_t>& data, const char* expected) { in TestCode() argument
48 HGraph* graph = CreateCFG(data); in TestCode()
85 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
89 TestCode(data, expected); in TEST_F()
107 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
111 TestCode(data, expected); in TEST_F()
133 const std::vector<uint16_t> data = TWO_REGISTERS_CODE_ITEM( in TEST_F() local
140 TestCode(data, expected); in TEST_F()
180 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
[all …]
Dssa_test.cc34 void TestCode(const std::vector<uint16_t>& data, const char* expected);
83 void SsaTest::TestCode(const std::vector<uint16_t>& data, const char* expected) { in TestCode() argument
84 HGraph* graph = CreateCFG(data); in TestCode()
122 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
128 TestCode(data, expected); in TEST_F()
153 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
159 TestCode(data, expected); in TEST_F()
184 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
192 TestCode(data, expected); in TEST_F()
217 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
[all …]
Dpretty_printer_test.cc32 void TestCode(const std::vector<uint16_t>& data, const char* expected);
35 void PrettyPrinterTest::TestCode(const std::vector<uint16_t>& data, const char* expected) { in TestCode() argument
36 HGraph* graph = CreateCFG(data); in TestCode()
43 const std::vector<uint16_t> data = ZERO_REGISTER_CODE_ITEM( in TEST_F() local
55 TestCode(data, expected); in TEST_F()
70 const std::vector<uint16_t> data = in TEST_F() local
75 TestCode(data, expected); in TEST_F()
92 const std::vector<uint16_t> data = ZERO_REGISTER_CODE_ITEM( in TEST_F() local
97 TestCode(data, expected); in TEST_F()
169 const std::vector<uint16_t> data = ZERO_REGISTER_CODE_ITEM( in TEST_F() local
[all …]
Dlinearize_test.cc36 void TestCode(const std::vector<uint16_t>& data,
41 void LinearizeTest::TestCode(const std::vector<uint16_t>& data, in TestCode() argument
43 HGraph* graph = CreateCFG(data); in TestCode()
68 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
76 TestCode(data, blocks); in TEST_F()
93 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
101 TestCode(data, blocks); in TEST_F()
119 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
128 TestCode(data, blocks); in TEST_F()
149 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
[all …]
Ddominator_test.cc29 void TestCode(const std::vector<uint16_t>& data, const uint32_t* blocks, size_t blocks_length);
32 void OptimizerTest::TestCode(const std::vector<uint16_t>& data, in TestCode() argument
35 HGraph* graph = CreateCFG(data); in TestCode()
54 const std::vector<uint16_t> data = ZERO_REGISTER_CODE_ITEM( in TEST_F() local
63 TestCode(data, dominators, sizeof(dominators) / sizeof(int)); in TEST_F()
67 const std::vector<uint16_t> data = ZERO_REGISTER_CODE_ITEM( in TEST_F() local
78 TestCode(data, dominators, sizeof(dominators) / sizeof(int)); in TEST_F()
82 const std::vector<uint16_t> data = ZERO_REGISTER_CODE_ITEM( in TEST_F() local
95 TestCode(data, dominators, sizeof(dominators) / sizeof(int)); in TEST_F()
150 const std::vector<uint16_t> data = ZERO_REGISTER_CODE_ITEM( in TEST_F() local
[all …]
Dgraph_checker_test.cc25 void TestCode(const std::vector<uint16_t>& data);
51 void GraphCheckerTest::TestCode(const std::vector<uint16_t>& data) { in TestCode() argument
52 HGraph* graph = CreateCFG(data); in TestCode()
61 const std::vector<uint16_t> data = ZERO_REGISTER_CODE_ITEM( in TEST_F() local
64 TestCode(data); in TEST_F()
68 const std::vector<uint16_t> data = ZERO_REGISTER_CODE_ITEM( in TEST_F() local
72 TestCode(data); in TEST_F()
76 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
82 TestCode(data); in TEST_F()
86 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
[all …]
Dfind_loops_test.cc34 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
38 HGraph* graph = CreateCFG(data); in TEST_F()
45 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
49 HGraph* graph = CreateCFG(data); in TEST_F()
56 const std::vector<uint16_t> data = TWO_REGISTERS_CODE_ITEM( in TEST_F() local
63 HGraph* graph = CreateCFG(data); in TEST_F()
70 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
78 HGraph* graph = CreateCFG(data); in TEST_F()
85 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local
91 HGraph* graph = CreateCFG(data); in TEST_F()
[all …]
/art/test/ti-agent/
Dmonitors_helper.cc85 MonitorsData* data = nullptr; in monitorEnterCB() local
87 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in monitorEnterCB()
90 if (!jnienv->IsInstanceOf(obj, data->monitor_klass)) { in monitorEnterCB()
93 jnienv->CallStaticVoidMethod(data->test_klass, data->monitor_enter, thr, obj); in monitorEnterCB()
99 MonitorsData* data = nullptr; in monitorEnteredCB() local
101 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in monitorEnteredCB()
104 if (!jnienv->IsInstanceOf(obj, data->monitor_klass)) { in monitorEnteredCB()
107 jnienv->CallStaticVoidMethod(data->test_klass, data->monitor_entered, thr, obj); in monitorEnteredCB()
114 MonitorsData* data = nullptr; in monitorWaitCB() local
116 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in monitorWaitCB()
[all …]
Dtrace_helper.cc31 void* data; in IsInCallback() local
34 jvmti->GetThreadLocalStorage(thr, &data); in IsInCallback()
38 if (data == nullptr) { in IsInCallback()
101 TraceData* data = nullptr; in threadStartCB() local
103 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in threadStartCB()
106 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in threadStartCB()
110 CHECK(data->thread_start != nullptr); in threadStartCB()
111 jnienv->CallStaticVoidMethod(klass.get(), data->thread_start, thread); in threadStartCB()
116 TraceData* data = nullptr; in threadEndCB() local
118 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in threadEndCB()
[all …]
Dexceptions_helper.cc45 ExceptionsData* data = nullptr; in exceptionCB() local
47 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in exceptionCB()
51 if (!jnienv->IsInstanceOf(throwable, data->exception_klass)) { in exceptionCB()
56 CHECK(data->exception_event != nullptr); in exceptionCB()
60 jnienv->CallStaticVoidMethod(data->test_klass, in exceptionCB()
61 data->exception_event, in exceptionCB()
84 ExceptionsData* data = nullptr; in exceptionCatchCB() local
86 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in exceptionCatchCB()
89 if (!jnienv->IsSameObject(data->exception_klass, jnienv->GetObjectClass(throwable))) { in exceptionCatchCB()
94 CHECK(data->exception_catch_event != nullptr); in exceptionCatchCB()
[all …]
/art/tools/
Dadd_package_property.sh26 adb push $PROPERTY_SCRIPT_PATH /data/data/$PACKAGE_NAME/
27 adb shell chmod o+x /data/data/$PACKAGE_NAME/$PROPERTY_SCRIPT_NAME
28 adb shell restorecon /data/data/$PACKAGE_NAME/$PROPERTY_SCRIPT_NAME
29 adb shell setprop wrap.$PACKAGE_NAME /data/data/$PACKAGE_NAME/$PROPERTY_SCRIPT_NAME
/art/test/1962-multi-thread-events/
Dmulti_thread_events.cc43 BreakpointData* data = nullptr; in cbMethodEntry() local
45 env, jvmti, jvmti->GetThreadLocalStorage(thread, reinterpret_cast<void**>(&data)))) { in cbMethodEntry()
48 if (data->target != method) { in cbMethodEntry()
54 CHECK(data != nullptr); in cbMethodEntry()
55 env->CallStaticVoidMethod(klass, handler, thread, data->events); in cbMethodEntry()
74 BreakpointData* data = nullptr; in Java_art_Test1962_setupThread() local
76 env, jvmti_env, jvmti_env->Allocate(sizeof(*data), reinterpret_cast<uint8_t**>(&data)))) { in Java_art_Test1962_setupThread()
79 data->events = env->NewGlobalRef(events); in Java_art_Test1962_setupThread()
80 data->target = env->FromReflectedMethod(target); in Java_art_Test1962_setupThread()
81 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->SetThreadLocalStorage(thr, data))) { in Java_art_Test1962_setupThread()
/art/libdexfile/dex/
Dcompact_offset_table_test.cc40 std::vector<uint8_t> data; in TEST() local
43 CompactOffsetTable::Build(offsets, /*out*/ &data, /*out*/ &min_offset, /*out*/ &table_offset); in TEST()
45 EXPECT_LT(table_offset, data.size()); in TEST()
46 ASSERT_GT(data.size(), 0u); in TEST()
48 EXPECT_LT(data.size(), before_size); in TEST()
54 std::vector<uint8_t> fake_dex(data.size() + kExtraOffset); in TEST()
55 std::copy(data.begin(), data.end(), fake_dex.data() + kExtraOffset); in TEST()
57 CompactOffsetTable::Accessor accessor(fake_dex.data() + kExtraOffset, min_offset, table_offset); in TEST()
70 EXPECT_LT(sorted_data.size(), data.size()); in TEST()
74 << " table size " << data.size() in TEST()
/art/build/apex/
Dart_postinstall_hook.sh23 if [ ! -d /data/ota/dalvik-cache ] ; then
33 FILES=`find /data/ota/dalvik-cache -type f`
40 rm -rf /data/ota/dalvik-cache
46 rm -rf /data/dalvik-cache/* || exit 102
47 mv /data/ota/dalvik-cache/* /data/dalvik-cache/ || exit 103
48 restorecon -R -F /data/dalvik-cache/* || exit 104
/art/test/1940-ddms-ext/src-art/art/
DTest1940.java39 public void HandleChunk(int type, byte[] data); in HandleChunk() argument
54 System.arraycopy(k.data, k.offset, out, 0, k.length); in printChunk()
68 a.update(req.data, req.offset, req.length); in handleChunk()
91 public static void HandlePublish(int type, byte[] data) { in HandlePublish() argument
94 "Unknown Chunk published: " + printChunk(new Chunk(type, data, 0, data.length))); in HandlePublish()
96 CURRENT_HANDLER.HandleChunk(type, data); in HandlePublish()
110 public static boolean IsFromThread(Thread t, byte[] data) { in IsFromThread() argument
112 ByteBuffer b = ByteBuffer.wrap(data); in IsFromThread()
118 CURRENT_HANDLER = (type, data) -> { in run()
119 System.out.println("Chunk published: " + printChunk(new Chunk(type, data, 0, data.length))); in run()
[all …]
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DStringDataItem.java26 private String data; field in StringDataItem
36 data = new String(dataAsBytes, StandardCharsets.US_ASCII); in read()
37 if (size != data.length()) { in read()
56 file.writeDexUtf(data.getBytes(StandardCharsets.US_ASCII)); in write()
77 public void setString(String data) { in setString() argument
78 this.data = data; in setString()
86 return data; in getString()

12345678910>>...14