Home
last modified time | relevance | path

Searched refs:error (Results 1 – 25 of 177) sorted by relevance

12345678

/art/openjdkjvmti/
Dti_extension.cc86 jvmtiError error; in GetExtensionFunctions() local
90 JvmtiUniquePtr<char[]> id_ptr = CopyString(env, id, &error); in GetExtensionFunctions()
92 return error; in GetExtensionFunctions()
97 JvmtiUniquePtr<char[]> descr = CopyString(env, short_description, &error); in GetExtensionFunctions()
99 return error; in GetExtensionFunctions()
107 AllocJvmtiUniquePtr<jvmtiParamInfo[]>(env, params.size(), &error); in GetExtensionFunctions()
109 return error; in GetExtensionFunctions()
115 func_info.params[i] = params[i].ToParamInfo(env, &char_buffers, &error); in GetExtensionFunctions()
116 if (error != OK) { in GetExtensionFunctions()
117 return error; in GetExtensionFunctions()
[all …]
Dfixed_up_dex_file.cc78 std::string error; in DCheckVerifyDexFile() local
84 &error)) { in DCheckVerifyDexFile()
85 LOG(FATAL) << "Failed to verify de-quickened dex file: " << error; in DCheckVerifyDexFile()
95 std::string error; in Create() local
125 &error); in Create()
126 CHECK(result) << "Failed to generate dex file " << error; in Create()
144 &error); in Create()
147 LOG(ERROR) << "Unable to open dex file from memory for unquickening! error: " << error; in Create()
Dti_ddms.cc76 jvmtiError error = OK; in HandleChunk() local
78 JvmtiUniquePtr<jbyte[]> ret = AllocJvmtiUniquePtr<jbyte[]>(env, out_data.size(), &error); in HandleChunk()
79 if (error != OK) { in HandleChunk()
80 return error; in HandleChunk()
Dart_jvmti.h195 static inline JvmtiUniquePtr<T> AllocJvmtiUniquePtr(jvmtiEnv* env, jvmtiError* error) { in AllocJvmtiUniquePtr() argument
197 *error = env->Allocate(sizeof(T), &tmp); in AllocJvmtiUniquePtr()
198 if (*error != ERR(NONE)) { in AllocJvmtiUniquePtr()
208 jvmtiError* error) { in AllocJvmtiUniquePtr() argument
210 *error = env->Allocate(sizeof(typename std::remove_extent<T>::type) * count, &tmp); in AllocJvmtiUniquePtr()
211 if (*error != ERR(NONE)) { in AllocJvmtiUniquePtr()
234 static inline JvmtiUniquePtr<char[]> CopyString(jvmtiEnv* env, const char* src, jvmtiError* error) { in CopyString() argument
236 JvmtiUniquePtr<char[]> ret = AllocJvmtiUniquePtr<char[]>(env, 0, error); in CopyString()
240 JvmtiUniquePtr<char[]> ret = AllocJvmtiUniquePtr<char[]>(env, len, error); in CopyString()
/art/test/921-hello-failure/
Dexpected.txt2 Transformation error : java.lang.Exception(Failed to redefine class <LTransform;> due to JVMTI_ERRO…
5 Transformation error : java.lang.Exception(Failed to redefine class <LTransform;> due to JVMTI_ERRO…
8 Transformation error : java.lang.Exception(Failed to redefine class <LTransform;> due to JVMTI_ERRO…
11 Transformation error : java.lang.Exception(Failed to redefine class <LTransform2;> due to JVMTI_ERR…
14 Transformation error : java.lang.Exception(Failed to redefine class <LTransform2;> due to JVMTI_ERR…
17 Transformation error : java.lang.Exception(Failed to redefine class <LTransform2;> due to JVMTI_ERR…
21 Transformation error : java.lang.Exception(Failed to redefine classes <LTransform2;, LTransform;> d…
24 Transformation error : java.lang.Exception(Failed to redefine classes <LTransform;, LTransform2;> d…
29 Transformation error : java.lang.Exception(Failed to retransform classes <LTransform2;, LTransform;…
32 Transformation error : java.lang.Exception(Failed to retransform classes <LTransform;, LTransform2;…
[all …]
/art/profman/
Dprofile_assistant.cc100 bool Init(const std::vector<std::string>& filenames, /* out */ std::string* error) { in Init() argument
102 flocks_[i] = LockedFile::Open(filenames[i].c_str(), O_RDWR, /* block= */ true, error); in Init()
104 *error += " (index=" + std::to_string(i) + ")"; in Init()
112 bool Init(const std::vector<int>& fds, /* out */ std::string* error) { in Init() argument
116 /* read_only_mode= */ true, error); in Init()
118 *error += " (index=" + std::to_string(i) + ")"; in Init()
138 std::string error; in ProcessProfiles() local
140 if (!profile_files.Init(profile_files_fd, &error)) { in ProcessProfiles()
141 LOG(WARNING) << "Could not lock profile files: " << error; in ProcessProfiles()
150 &error); in ProcessProfiles()
[all …]
/art/libartbase/base/
Dfile_utils_test.cc31 std::string error; in TEST_F() local
33 EXPECT_TRUE(GetDalvikCacheFilename("/system/app/Foo.apk", "/foo", &name, &error)) << error; in TEST_F()
36 EXPECT_TRUE(GetDalvikCacheFilename("/data/app/foo-1.apk", "/foo", &name, &error)) << error; in TEST_F()
39 EXPECT_TRUE(GetDalvikCacheFilename("/system/framework/core.jar", "/foo", &name, &error)) << error; in TEST_F()
42 EXPECT_TRUE(GetDalvikCacheFilename("/system/framework/boot.art", "/foo", &name, &error)) << error; in TEST_F()
45 EXPECT_TRUE(GetDalvikCacheFilename("/system/framework/boot.oat", "/foo", &name, &error)) << error; in TEST_F()
Dzip_archive.cc62 const int32_t error = ExtractEntryToFile(handle_, zip_entry_, file.Fd()); in ExtractToFile() local
63 if (error) { in ExtractToFile()
64 *error_msg = std::string(ErrorCodeString(error)); in ExtractToFile()
87 const int32_t error = ExtractToMemory(handle_, zip_entry_, map.Begin(), map.Size()); in ExtractToMemMap() local
88 if (error) { in ExtractToMemMap()
89 *error_msg = std::string(ErrorCodeString(error)); in ExtractToMemMap()
229 const int32_t error = OpenArchive(filename, &handle); in Open() local
230 if (error) { in Open()
231 *error_msg = std::string(ErrorCodeString(error)); in Open()
245 const int32_t error = OpenArchiveFd(fd, filename, &handle); in OpenFromFd() local
[all …]
Dglobals.h81 # error "Either ART_TARGET_LINUX, ART_TARGET_ANDROID or ART_TARGET_FUCHSIA " \
87 # error "ART_TARGET_LINUX defined for host build."
89 # error "ART_TARGET_ANDROID defined for host build."
91 # error "ART_TARGET_FUCHSIA defined for host build."
/art/runtime/verifier/
Dclass_verifier.cc52 std::string* error) { in VerifyClass() argument
73 *error = "Verifier rejected class " + klass->PrettyDescriptor() + failure_message; in VerifyClass()
92 error); in VerifyClass()
104 std::string* error) { in VerifyClass() argument
107 *error = "Verifier rejected class "; in VerifyClass()
108 *error += PrettyDescriptor(dex_file->GetClassDescriptor(class_def)); in VerifyClass()
109 *error += ": class is abstract and final."; in VerifyClass()
160 *error += "\n"; in VerifyClass()
163 *error += "Verifier rejected class "; in VerifyClass()
164 *error += PrettyDescriptor(dex_file->GetClassDescriptor(class_def)); in VerifyClass()
[all …]
/art/test/989-method-trace-throw/
Dexpected.txt9 Received expected error for test[class art.Test989$NormalTracer, class art.Test989$throwAClass] - a…
12 Received expected error for test[class art.Test989$NormalTracer, class art.Test989$throwANativeClas…
50 …ceived expected error for test[class art.Test989$ThrowEnterTracer, class art.Test989$doNothingClas…
53 …ved expected error for test[class art.Test989$ThrowEnterTracer, class art.Test989$doNothingNativeC…
56 …eceived expected error for test[class art.Test989$ThrowEnterTracer, class art.Test989$throwAClass]…
59 …ived expected error for test[class art.Test989$ThrowEnterTracer, class art.Test989$throwANativeCla…
62 …eived expected error for test[class art.Test989$ThrowEnterTracer, class art.Test989$returnValueCla…
65 …ed expected error for test[class art.Test989$ThrowEnterTracer, class art.Test989$returnValueNative…
68 …eived expected error for test[class art.Test989$ThrowEnterTracer, class art.Test989$acceptValueCla…
71 …ed expected error for test[class art.Test989$ThrowEnterTracer, class art.Test989$acceptValueNative…
[all …]
/art/test/536-checker-needs-access-check/
Dexpected.txt1 Got expected error instanceof
2 Got expected error instanceof null
3 Got expected error checkcast null
4 Got expected error instanceof (keep LoadClass with access check)
/art/test/901-hello-ti-agent/src/art/
DTest901.java54 String error = null; in testErrorNames() local
58 error = e.getMessage(); in testErrorNames()
62 (errorName != null || (error != null && !lastError.equals(error)))) { in testErrorNames()
71 lastError = error; in testErrorNames()
83 private static native String getErrorName(int error); in getErrorName() argument
/art/test/995-breakpoints-throw/
Dexpected.txt3 Test "call Test995::breakpoint": No error caught with handler "do nothing"
7 Test "call Test995::breakpointCatch": No error caught with handler "do nothing"
11 Test "call Test995::breakpointCatchLate": No error caught with handler "do nothing"
15 Test "catch subroutine Test995::breakpoint": No error caught with handler "do nothing"
19 Test "call Test995::breakpoint": Caught error java.lang.Error:"throwing error!" with handler "throw"
23 Caught java.lang.Error: "throwing error!"
24 Test "call Test995::breakpointCatch": No error caught with handler "throw"
28 Test "call Test995::breakpointCatchLate": Caught error java.lang.Error:"throwing error!" with handl…
32 Caught java.lang.Error:"throwing error!"
33 Test "catch subroutine Test995::breakpoint": No error caught with handler "throw"
/art/tools/dexfuzz/src/dexfuzz/
DOptions.java213 Log.error("Unrecognised flag: --" + flag); in handleFlagOption()
275 Log.error("Unrecognised key: --" + key); in handleKeyValueOption()
300 Log.error("Unable to open mutation probability table file: " + tableFilename); in setupMutationLikelihoodTable()
302 Log.error("Unable to read mutation probability table file: " + tableFilename); in setupMutationLikelihoodTable()
314 Log.error("Unrecognised option: " + arg); in readOptions()
369 Log.error("--repeat must be at least 1!"); in validateOptions()
373 Log.error("--divergence-retry cannot be negative!"); in validateOptions()
377 Log.error("Cannot use --repeat with --seed"); in validateOptions()
381 Log.error("Cannot both load and dump mutations"); in validateOptions()
385 Log.error("Must use --repeat if you have provided more than one input"); in validateOptions()
[all …]
DStreamConsumer.java92 Log.error("Client of StreamConsumer was interrupted while waiting for output?"); in getOutput()
134 Log.error("StreamConsumer stopped consuming, but was not told to?"); in consume()
141 Log.error("StreamConsumer caught IOException while consuming"); in consume()
144 Log.error("StreamConsumer caught InterruptedException while consuming"); in consume()
159 Log.error("StreamConsumer caught InterruptedException while waiting for work"); in run()
172 Log.error("invalid state: StreamConsumer told about work, but not CONSUMING?"); in run()
173 Log.error("state was: " + getCurrentState()); in run()
188 Log.error("StreamConsumer Unexpected state: " + state + ", expected " + previousState); in changeState()
/art/tools/jvmti-agents/titrace/
Dtitrace.cc105 jvmtiError error; in Initialize() local
107 error = jvmti->GetSystemProperty("java.vm.name", /*out*/ &value_ptr); in Initialize()
108 CHECK_JVMTI_ERROR(jvmti, error) << "Failed to get property 'java.vm.name'"; in Initialize()
173 jvmtiError error; in LookupBytecode() local
181 error = jvmti_env->GetBytecodes(method, &bytecode_count_ptr, &bytecodes_ptr); in LookupBytecode()
182 CHECK_JVMTI_ERROR(jvmti_env, error) << "Failed to get bytecodes for method " << method; in LookupBytecode()
264 jvmtiError error{}; in Agent_OnLoad() local
272 error = jvmti->AddCapabilities(&caps); in Agent_OnLoad()
273 CHECK_JVMTI_ERROR(jvmti, error) in Agent_OnLoad()
283 error = jvmti->SetEventCallbacks(&callbacks, in Agent_OnLoad()
[all …]
/art/runtime/ti/
Dagent.cc50 /*out*/LoadError* error, in Load() argument
53 return DoLoadHelper(nullptr, false, nullptr, call_res, error, error_msg); in Load()
60 /*out*/LoadError* error, in Attach() argument
63 return DoLoadHelper(env, true, class_loader, call_res, error, error_msg); in Attach()
72 /*out*/LoadError* error, in DoLoadHelper() argument
78 std::unique_ptr<Agent> agent = DoDlOpen(env, class_loader, error, error_msg); in DoLoadHelper()
89 *error = kLoadingError; in DoLoadHelper()
103 *error = kInitializationError; in DoLoadHelper()
111 /*out*/LoadError* error, in DoDlOpen() argument
135 *error = kLoadingError; in DoDlOpen()
[all …]
/art/tools/class2greylist/src/com/android/class2greylist/
DAnnotatedClassContext.java46 Formatter error = new Formatter(); in reportError() local
47 error in reportError()
51 status.error(error.toString()); in reportError()
DAnnotatedMemberContext.java51 Formatter error = new Formatter(); in reportError() local
52 error in reportError()
57 status.error(error.toString()); in reportError()
/art/libprofile/profile/
Dprofile_compilation_info.cc209 std::string error; in MergeWith() local
216 LockedFile::Open(filename.c_str(), flags, /*block=*/false, &error); in MergeWith()
219 LOG(WARNING) << "Couldn't lock the profile file " << filename << ": " << error; in MergeWith()
225 ProfileLoadStatus status = LoadInternal(fd, &error); in MergeWith()
230 LOG(WARNING) << "Could not load profile data from file " << filename << ": " << error; in MergeWith()
236 std::string error; in Load() local
251 LockedFile::Open(filename.c_str(), flags, /*block=*/false, &error); in Load()
254 LOG(WARNING) << "Couldn't lock the profile file " << filename << ": " << error; in Load()
260 ProfileLoadStatus status = LoadInternal(fd, &error); in Load()
268 << filename << ": " << error; in Load()
[all …]
/art/runtime/
Ddebugger.cc416 static ObjPtr<mirror::Array> DecodeNonNullArray(JDWP::RefTypeId id, JDWP::JdwpError* error) in DecodeNonNullArray() argument
418 ObjPtr<mirror::Object> o = Dbg::GetObjectRegistry()->Get<mirror::Object*>(id, error); in DecodeNonNullArray()
420 *error = JDWP::ERR_INVALID_OBJECT; in DecodeNonNullArray()
424 *error = JDWP::ERR_INVALID_ARRAY; in DecodeNonNullArray()
427 *error = JDWP::ERR_NONE; in DecodeNonNullArray()
431 static ObjPtr<mirror::Class> DecodeClass(JDWP::RefTypeId id, JDWP::JdwpError* error) in DecodeClass() argument
433 ObjPtr<mirror::Object> o = Dbg::GetObjectRegistry()->Get<mirror::Object*>(id, error); in DecodeClass()
435 *error = JDWP::ERR_INVALID_OBJECT; in DecodeClass()
439 *error = JDWP::ERR_INVALID_CLASS; in DecodeClass()
442 *error = JDWP::ERR_NONE; in DecodeClass()
[all …]
/art/test/ti-agent/
Djvmti_helper.cc32 void CheckJvmtiError(jvmtiEnv* env, jvmtiError error) { in CheckJvmtiError() argument
33 if (error != JVMTI_ERROR_NONE) { in CheckJvmtiError()
35 jvmtiError name_error = env->GetErrorName(error, &error_name); in CheckJvmtiError()
37 LOG(FATAL) << "Unable to get error name for " << error; in CheckJvmtiError()
109 bool JvmtiErrorToException(JNIEnv* env, jvmtiEnv* jvmtienv, jvmtiError error) { in JvmtiErrorToException() argument
110 if (error == JVMTI_ERROR_NONE) { in JvmtiErrorToException()
121 CheckJvmtiError(jvmtienv, jvmtienv->GetErrorName(error, &err)); in JvmtiErrorToException()
/art/test/907-get-loaded-classes/src/art/
DTest907.java57 boolean error = false; in doTest()
61 error = true; in doTest()
67 error = true; in doTest()
71 if (error) { in doTest()
/art/tools/jvmti-agents/breakpoint-logger/
Dbreakpoint_logger.cc355 jvmtiError error = JVMTI_ERROR_NONE; in AgentStart() local
367 error = jvmti->Allocate(sizeof(BreakpointTargets), in AgentStart()
369 if (error != JVMTI_ERROR_NONE) { in AgentStart()
375 error = jvmti->SetEnvironmentLocalStorage(data); in AgentStart()
376 if (error != JVMTI_ERROR_NONE) { in AgentStart()
391 error = jvmti->AddCapabilities(&caps); in AgentStart()
392 if (error != JVMTI_ERROR_NONE) { in AgentStart()
401 error = jvmti->SetEventCallbacks(&callbacks, static_cast<jint>(sizeof(callbacks))); in AgentStart()
403 if (error != JVMTI_ERROR_NONE) { in AgentStart()
408 error = jvmti->SetEventNotificationMode(JVMTI_ENABLE, in AgentStart()
[all …]

12345678