blob: 2a3f18b971f9f65b2ec0bbd11b6458b3153c0cf5 [file] [log] [blame]
Elliott Hughes8daa0922011-09-11 13:46:25 -07001/*
2 * Copyright (C) 2008 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include "jni_internal.h"
18#include "object.h"
19
20#include "JniConstants.h" // Last to avoid problems with LOG redefinition.
21
22namespace art {
23
24namespace {
25
26jint VMStack_fillStackTraceElements(JNIEnv* env, jclass, jobject targetThread, jobjectArray javaSteArray) {
27 UNIMPLEMENTED(FATAL);
28 return 0;
29}
30
31jobject VMStack_getCallingClassLoader(JNIEnv* env, jclass) {
32 UNIMPLEMENTED(WARNING);
33 return NULL;
34}
35
36jobjectArray VMStack_getClasses(JNIEnv* env, jclass, jint maxDepth) {
37 UNIMPLEMENTED(FATAL);
38 return NULL;
39}
40
41jclass VMStack_getStackClass2(JNIEnv* env, jclass) {
42 UNIMPLEMENTED(FATAL);
43 return NULL;
44}
45
46jobjectArray VMStack_getThreadStackTrace(JNIEnv* env, jclass, jobject targetThread) {
47 UNIMPLEMENTED(FATAL);
48 return NULL;
49}
50
51static JNINativeMethod gMethods[] = {
52 NATIVE_METHOD(VMStack, fillStackTraceElements, "(Ljava/lang/Thread;[Ljava/lang/StackTraceElement;)I"),
53 NATIVE_METHOD(VMStack, getCallingClassLoader, "()Ljava/lang/ClassLoader;"),
54 NATIVE_METHOD(VMStack, getClasses, "(I)[Ljava/lang/Class;"),
55 NATIVE_METHOD(VMStack, getStackClass2, "()Ljava/lang/Class;"),
56 NATIVE_METHOD(VMStack, getThreadStackTrace, "(Ljava/lang/Thread;)[Ljava/lang/StackTraceElement;"),
57};
58
59} // namespace
60
61void register_dalvik_system_VMStack(JNIEnv* env) {
62 jniRegisterNativeMethods(env, "dalvik/system/VMStack", gMethods, NELEM(gMethods));
63}
64
65} // namespace art