/art/test/ti-agent/ |
D | suspend_event_helper.cc | 87 TestData* data; in PerformSuspension() local 91 jvmti->GetThreadLocalStorage(/* thread */ nullptr, reinterpret_cast<void**>(&data)))) { in PerformSuspension() 94 CHECK(data != nullptr); in PerformSuspension() 95 data->PerformSuspend(jvmti, env); in PerformSuspension() 100 TestData* data; in cbSingleStep() local 102 env, jvmti, jvmti->GetThreadLocalStorage(thr, reinterpret_cast<void**>(&data)))) { in cbSingleStep() 105 CHECK(data != nullptr); in cbSingleStep() 106 if (meth != data->target_method || loc != data->target_loc) { in cbSingleStep() 109 data->PerformSuspend(jvmti, env); in cbSingleStep() 118 TestData* data; in cbExceptionCatch() local [all …]
|
D | monitors_helper.cc | 85 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 …]
|
D | trace_helper.cc | 31 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 …]
|
D | exceptions_helper.cc | 45 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/test/911-get-stack-trace/src/art/ |
D | Recurse.java | 20 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 …]
|
D | OtherThread.java | 24 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/ |
D | fill_array_data.smali | 8 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/ |
D | bit_memory_region_test.cc | 23 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 …]
|
D | histogram_test.cc | 68 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 …]
|
D | leb128.h | 33 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/ |
D | expected.txt | 1 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 …]
|
D | ddm_ext.cc | 41 DdmCallbackData(jint type, jint size, jbyte* data) : type_(type), data_(data, data + size) {} in DdmCallbackData() 65 DdmsTrackingData* data = nullptr; in Java_art_Test1940_processChunk() local 67 env, jvmti_env, jvmti_env->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in Java_art_Test1940_processChunk() 71 CHECK(data != nullptr); in Java_art_Test1940_processChunk() 72 CHECK(data->send_ddm_chunk != nullptr); in Java_art_Test1940_processChunk() 93 if (JvmtiErrorToException(env, jvmti_env, data->send_ddm_chunk(jvmti_env, in Java_art_Test1940_processChunk() 127 DdmsTrackingData* data = nullptr; in Java_art_Test1940_publishListen() local 129 env, jvmti_env, jvmti_env->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in Java_art_Test1940_publishListen() 134 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorEnter(data->callback_mon))) { in Java_art_Test1940_publishListen() 137 while (data->callbacks_received.empty()) { in Java_art_Test1940_publishListen() [all …]
|
/art/compiler/optimizing/ |
D | suspend_check_test.cc | 33 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 …]
|
D | liveness_test.cc | 32 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() 87 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local 91 TestCode(data, expected); in TEST_F() 109 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local 113 TestCode(data, expected); in TEST_F() 135 const std::vector<uint16_t> data = TWO_REGISTERS_CODE_ITEM( in TEST_F() local 142 TestCode(data, expected); in TEST_F() 182 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local [all …]
|
D | pretty_printer_test.cc | 32 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 …]
|
D | ssa_test.cc | 34 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 …]
|
D | linearize_test.cc | 36 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() 70 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local 78 TestCode(data, blocks); in TEST_F() 95 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local 103 TestCode(data, blocks); in TEST_F() 121 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local 130 TestCode(data, blocks); in TEST_F() 151 const std::vector<uint16_t> data = ONE_REGISTER_CODE_ITEM( in TEST_F() local [all …]
|
D | dominator_test.cc | 29 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 …]
|
D | graph_checker_test.cc | 25 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 …]
|
/art/tools/ |
D | add_package_property.sh | 26 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/runtime/ |
D | string_builder_append.cc | 49 static size_t RemainingSpace(ObjPtr<mirror::String> new_string, const uint8_t* data) in RemainingSpace() argument 52 DCHECK_GE(new_string->GetLength(), data - new_string->GetValueCompressed()); in RemainingSpace() 53 return new_string->GetLength() - (data - new_string->GetValueCompressed()); in RemainingSpace() 56 static size_t RemainingSpace(ObjPtr<mirror::String> new_string, const uint16_t* data) in RemainingSpace() argument 59 DCHECK_GE(new_string->GetLength(), data - new_string->GetValue()); in RemainingSpace() 60 return new_string->GetLength() - (data - new_string->GetValue()); in RemainingSpace() 65 CharType* data, 70 CharType* data, 75 CharType* data, 79 void StoreData(ObjPtr<mirror::String> new_string, CharType* data) const [all …]
|
/art/test/1962-multi-thread-events/ |
D | multi_thread_events.cc | 43 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/ |
D | compact_offset_table_test.cc | 40 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/tools/dexfuzz/src/dexfuzz/rawdex/ |
D | StringDataItem.java | 26 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()
|
/art/test/1940-ddms-ext/src-art/art/ |
D | Test1940.java | 40 public void HandleChunk(int type, byte[] data) throws Exception; in HandleChunk() argument 57 Arrays.equals(a.data, b.data); in chunkEq() 62 System.arraycopy(k.data, k.offset, out, 0, k.length); in printChunk() 76 a.update(req.data, req.offset, req.length); in handleChunk() 99 public static void HandlePublish(int type, byte[] data) throws Exception { in HandlePublish() argument 102 "Unknown Chunk published: " + printChunk(new Chunk(type, data, 0, data.length))); in HandlePublish() 104 CURRENT_HANDLER.HandleChunk(type, data); in HandlePublish() 118 public static boolean IsFromThread(Thread t, byte[] data) { in IsFromThread() argument 120 ByteBuffer b = ByteBuffer.wrap(data); in IsFromThread() 133 public void HandleChunk(int type, byte[] data) throws Exception { in HandleChunk() argument [all …]
|