/art/test/107-int-math2/src/ |
D | Main.java | 517 int res = 1234; in switchTest() local 520 case -1: res = 1; return res; in switchTest() 521 case 0: res = 2; return res; in switchTest() 523 case 2: res = 3; return res; in switchTest() 524 case 3: res = 4; return res; in switchTest() 525 case 4: res = 5; return res; in switchTest() 526 default: res = 6; return res; in switchTest() 529 case 3: res = 7; return res; in switchTest() 530 case 4: res = 8; return res; in switchTest() 538 case 0x12345679: res = 9; return res; in switchTest() [all …]
|
/art/test/012-math/ |
D | expected.txt | 1 res:10 2 res:-4 3 res:2 4 res:-2 5 res:21 6 res:0 7 res:3 8 res:4 9 res:384 10 res:0 [all …]
|
/art/test/106-exceptions2/src/ |
D | Main.java | 161 int res; in checkAIOBE() local 164 res = 123; in checkAIOBE() 166 res = 768; in checkAIOBE() 168 res = 456; in checkAIOBE() 172 res += 123; in checkAIOBE() 174 res += 768; in checkAIOBE() 176 res += 456; in checkAIOBE() 178 return res; in checkAIOBE() 200 int res; in main() local 202 res = nullCheckTestNoThrow(1976); in main() [all …]
|
/art/test/012-math/src/ |
D | Main.java | 24 int a, b, res; in math_012() local 30 res = a + b; in math_012() 31 System.out.println("res:" +res); in math_012() 32 res = a - b; in math_012() 33 System.out.println("res:" +res); in math_012() 34 res = 5 - a; in math_012() 35 System.out.println("res:" +res); in math_012() 36 res = a - 5; in math_012() 37 System.out.println("res:" +res); in math_012() 38 res = a * b; in math_012() [all …]
|
/art/test/2009-structural-local-ref/src-art/art/ |
D | Test2009.java | 103 String res = in doTest() local 110 System.out.println("Result was " + res); in doTest() 112 res = in doTest() 119 System.out.println("Result was " + res); in doTest() 121 res = in doTest() 128 System.out.println("Result was " + res); in doTest() 130 res = in doTest() 137 System.out.println("Result was " + res); in doTest()
|
/art/test/068-classloader/src/ |
D | FancyLoader.java | 186 Class<?> res; in loadClass() local 194 res = findLoadedClass(name); in loadClass() 195 if (res != null) { in loadClass() 199 resolveClass(res); in loadClass() 200 return res; in loadClass() 207 res = findClass(name); in loadClass() 209 resolveClass(res); in loadClass() 224 res = super.loadClass(name, resolve); // returns class or throws in loadClass() 225 return res; in loadClass()
|
/art/test/071-dexfile-get-static-size/ |
D | build | 25 cp res/test1.dex test-jar/classes.dex 26 cp res/test2.dex test-jar/classes2.dex 27 zip -j res/test-jar.jar test-jar/classes.dex 28 zip -j res/multi-jar.jar test-jar/classes.dex test-jar/classes2.dex
|
/art/test/647-jni-get-field-id/src/ |
D | DefiningLoader.java | 199 Class<?> res; in loadClass() local 207 res = findLoadedClass(name); in loadClass() 208 if (res != null) { in loadClass() 211 resolveClass(res); in loadClass() 212 return res; in loadClass() 219 res = findClass(name); in loadClass() 221 resolveClass(res); in loadClass() 236 res = super.loadClass(name, resolve); // returns class or throws in loadClass() 237 return res; in loadClass()
|
/art/test/626-const-class-linking/src/ |
D | DefiningLoader.java | 199 Class<?> res; in loadClass() local 207 res = findLoadedClass(name); in loadClass() 208 if (res != null) { in loadClass() 211 resolveClass(res); in loadClass() 212 return res; in loadClass() 219 res = findClass(name); in loadClass() 221 resolveClass(res); in loadClass() 236 res = super.loadClass(name, resolve); // returns class or throws in loadClass() 237 return res; in loadClass()
|
/art/tools/jvmti-agents/wrapagentproperties/ |
D | wrapagentproperties.cc | 83 static jint WrapAttachCurrentThread(ProxyJavaVM* vm, JNIEnv** env, void* res) { in WrapAttachCurrentThread() 84 return vm->real_vm->AttachCurrentThread(env, res); in WrapAttachCurrentThread() 89 static jint WrapAttachCurrentThreadAsDaemon(ProxyJavaVM* vm, JNIEnv** env, void* res) { in WrapAttachCurrentThreadAsDaemon() 90 return vm->real_vm->AttachCurrentThreadAsDaemon(env, res); in WrapAttachCurrentThreadAsDaemon() 135 jvmtiError res = (*out_iface)->DisposeEnvironment(env); in WrapDisposeEnvironment() local 136 return res; in WrapDisposeEnvironment() 146 jvmtiError res = env->Allocate(val.size() + 1, reinterpret_cast<unsigned char**>(out)); in WrapGetSystemProperty() local 147 if (res != JVMTI_ERROR_NONE) { in WrapGetSystemProperty() 148 return res; in WrapGetSystemProperty() 162 jvmtiError res = funcs->original_interface->GetSystemProperties(env, &init_cnt, &init_prop_ptr); in WrapGetSystemProperties() local [all …]
|
/art/test/529-long-split/src/ |
D | Main.java | 67 boolean res = a == b; in testOddLow1() 70 return res; in testOddLow1() 107 boolean res = a == b; in testNonFollowingHigh() 110 return res; in testNonFollowingHigh() 163 boolean res = a == b; in testOddLow2() 166 return res; in testOddLow2()
|
/art/tools/jvmti-agents/enable-vlog/ |
D | enablevlog.cc | 62 void* res = nullptr; in GetExtensionFunction() local 70 res = reinterpret_cast<void*>(info.func); in GetExtensionFunction() 76 return reinterpret_cast<T>(res); in GetExtensionFunction() 80 jint res = 0; in SetupJvmtiEnv() local 81 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), JVMTI_VERSION_1_1); in SetupJvmtiEnv() 83 if (res != JNI_OK || *jvmti == nullptr) { in SetupJvmtiEnv() 84 LOG(ERROR) << "Unable to access JVMTI, error code " << res; in SetupJvmtiEnv() 87 return res; in SetupJvmtiEnv()
|
/art/test/602-deoptimizeable/src/ |
D | Main.java | 61 int res = $noinline$run1(arr); in main() 62 if (res != 79) { in main() 78 double res = (double)method.invoke(Main.class, arr); in main() 79 if (res != 79.3d) { in main() 92 float res = $noinline$run3B(); in main() 93 if (res != 0.034f) { in main() 186 float res = $noinline$run3A(); in $noinline$run3B() local 187 return res; in $noinline$run3B()
|
/art/dt_fd_forward/ |
D | dt_fd_forward.cc | 160 int res = TEMP_FAILURE_RETRY(read(read_fd_, bdata + nbytes, ndata - nbytes)); in ReadFullyWithoutChecks() local 161 if (res < 0) { in ReadFullyWithoutChecks() 164 } else if (res == 0) { in ReadFullyWithoutChecks() 167 nbytes += res; in ReadFullyWithoutChecks() 176 int res = TEMP_FAILURE_RETRY(ioctl(read_fd_, FIONREAD, &avail)); in ReadUpToMax() local 177 if (res < 0) { in ReadUpToMax() 186 res = TEMP_FAILURE_RETRY(poll(&pollfd, /*nfds*/1, /*timeout*/0)); in ReadUpToMax() 187 if (res < 0 || (pollfd.revents & POLLERR) == POLLERR) { in ReadUpToMax() 212 IOResult res = ReadUpToMax(reinterpret_cast<uint8_t*>(data) + nbytes, in ReadFully() local 215 if (res != IOResult::kOk) { in ReadFully() [all …]
|
/art/runtime/ |
D | plugin.cc | 40 void* res = dlopen(library_.c_str(), RTLD_LAZY); in Load() local 41 if (res == nullptr) { in Load() 47 dlsym(res, PLUGIN_INITIALIZATION_FUNCTION_NAME)); in Load() 50 dlclose(res); in Load() 57 dlopen_handle_ = res; in Load()
|
/art/openjdkjvmti/ |
D | transform.cc | 107 ArtClassDefinition* res = nullptr; in Action() local 119 res = *it; in Action() 123 initializing_class_definitions_.push_back(res); in Action() 144 VLOG(signals) << "Lazy initialization of dex file for transformation of " << res->GetName() in Action() 146 res->InitializeMemory(); in Action() 153 res)); in Action() 154 initialized_class_definitions_.push_back(res); in Action() 330 jvmtiError res = OK; in RetransformClasses() local 332 res = Redefiner::GetClassRedefinitionError<RedefinitionType::kNormal>(classes[i], &error_msg); in RetransformClasses() 333 if (res != OK) { in RetransformClasses() [all …]
|
/art/adbconnection/ |
D | adbconnection.cc | 410 ssize_t res = TEMP_FAILURE_RETRY(writev(adb_connection_socket_, iovs, kIovSize)); in SendDdmPacket() local 411 if (static_cast<size_t>(res) != (kDdmPacketHeaderSize + data.size())) { in SendDdmPacket() 417 res, data.size() + kDdmPacketHeaderSize); in SendDdmPacket() 465 int res = TEMP_FAILURE_RETRY(sendmsg(local_agent_control_sock_, &msg, MSG_EOR)); in SendAgentFds() local 466 if (res < 0) { in SendAgentFds() 554 int res = TEMP_FAILURE_RETRY(poll(pollfds, 4, -1)); in RunPollLoop() local 555 if (res < 0) { in RunPollLoop() 568 res = TEMP_FAILURE_RETRY(recv(local_agent_control_sock_, buf, sizeof(buf) - 1, 0)); in RunPollLoop() 569 if (res < 0) { in RunPollLoop() 573 buf[res + 1] = '\0'; in RunPollLoop() [all …]
|
/art/test/706-checker-scheduler/src/ |
D | Main.java | 59 int res = 0; in arrayAccess() local 62 res += array[i]; in arrayAccess() 63 res += array[i + 1]; in arrayAccess() 65 return res; in arrayAccess() 514 int res = 0; in intDiv() local 518 res = res / i; // div-zero check barrier. in intDiv() 521 res += tmp; in intDiv() 522 return res; in intDiv()
|
/art/tools/jvmti-agents/dump-jvmti-state/ |
D | dump-jvmti.cc | 48 jint res = 0; in SetupJvmtiEnv() local 49 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), JVMTI_VERSION_1_1); in SetupJvmtiEnv() 51 if (res != JNI_OK || *jvmti == nullptr) { in SetupJvmtiEnv() 52 LOG(ERROR) << "Unable to access JVMTI, error code " << res; in SetupJvmtiEnv() 53 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), kArtTiVersion); in SetupJvmtiEnv() 54 if (res != JNI_OK) { in SetupJvmtiEnv() 55 return res; in SetupJvmtiEnv()
|
/art/test/ti-agent/ |
D | redefinition_helper.cc | 47 jvmtiError res) { in throwCommonRedefinitionError() argument 50 jvmti->GetErrorName(res, &error); in throwCommonRedefinitionError() 139 jvmtiError res) { in throwRedefinitionError() argument 140 return throwCommonRedefinitionError<true>(jvmti, env, num_targets, target, res); in throwRedefinitionError() 158 jvmtiError res = CallRedefineEntrypoint<kType>(env, jvmti_env, num_redefines, defs.data()); in DoMultiClassRedefine() local 159 if (res != JVMTI_ERROR_NONE) { in DoMultiClassRedefine() 160 throwRedefinitionError(jvmti_env, env, num_redefines, targets, res); in DoMultiClassRedefine() 337 CommonTransformationResult& res = gTransformations[name_str][0]; in CommonClassFileLoadHookRetransformable() local 338 const std::vector<unsigned char>& desired_array = IsJVM() ? res.class_bytes : res.dex_bytes; in CommonClassFileLoadHookRetransformable() 376 jvmtiError res = jvmti_env->SetEventNotificationMode(enable ? JVMTI_ENABLE : JVMTI_DISABLE, in Java_art_Redefinition_enableCommonRetransformation() local [all …]
|
/art/test/1980-obsolete-object-cleared/src/ |
D | Main.java | 237 String res = o.toString(); 238 if (res.endsWith("-transformed)")) { 239 res = res.substring(0, res.lastIndexOf(" ")) + " <transformed-jar>)"; 240 } else if (res.endsWith(".jar)")) { 241 res = res.substring(0, res.lastIndexOf(" ")) + " <original-jar>)"; 243 return res; 275 Object[] res = new Object[nv.length + 1]; 276 res[0] = cur; 278 res[i + 1] = nv[i]; 280 return res;
|
/art/test/409-materialized-condition/src/ |
D | Main.java | 98 int res = foo1(); in main() local 99 if (res != 42) { in main() 100 throw new Error("Unexpected return value for foo1: " + res + ", expected 42."); in main() 104 res = foo2(); in main() 105 if (res != 42) { in main() 106 throw new Error("Unexpected return value for foo2: " + res + ", expected 42."); in main()
|
/art/tools/bisection_search/ |
D | bisection_test.py | 66 res = BugSearch(self.testable_mock) 67 self.assertEqual(res, (None, None)) 76 res = BugSearch(self.testable_mock) 77 self.assertEqual(res, (self._FAILING_METHOD, None)) 81 res = BugSearch(self.testable_mock) 82 self.assertEqual(res, (self._FAILING_METHOD, self._FAILING_PASS))
|
/art/test/685-deoptimizeable/src/ |
D | Main.java | 91 int res = $noinline$run1(arr); in main() 93 if (res != 79) { in main() 115 double res = (double)method.invoke(Main.class, arr); in main() 117 if (res != 79.3d) { in main() 136 float res = $noinline$run3B(); in main() 138 if (res != 0.034f) { in main() 248 float res = $noinline$run3A(); in $noinline$run3B() local 250 return res; in $noinline$run3B()
|
/art/test/1987-structural-redefine-recursive-stack-scope/src/ |
D | Main.java | 65 Runnable res = in main() local 70 final Runnable next = res; in main() 72 res = in main() 81 res.run(); in main()
|