Home | History | Annotate | Download | only in hit
      1 /*
      2  * Copyright (C) 2008 Google Inc.
      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 package com.android.hit;
     18 
     19 public enum RootType {
     20     UNREACHABLE         (0, "unreachable object"),
     21     INVALID_TYPE        (1, "invalid type"),
     22     INTERNED_STRING     (2, "interned string"),
     23     UNKNOWN             (3, "unknown"),
     24     SYSTEM_CLASS        (4, "system class"),
     25     VM_INTERNAL         (5, "vm internal"),
     26     DEBUGGER            (6, "debugger"),
     27     NATIVE_LOCAL        (7, "native local"),
     28     NATIVE_STATIC       (8, "native static"),
     29     THREAD_BLOCK        (9, "thread block"),
     30     BUSY_MONITOR        (10, "busy monitor"),
     31     NATIVE_MONITOR      (11, "native monitor"),
     32     REFERENCE_CLEANUP   (12, "reference cleanup"),
     33     FINALIZING          (13, "finalizing"),
     34     JAVA_LOCAL          (14, "java local"),
     35     NATIVE_STACK        (15, "native stack"),
     36     JAVA_STATIC         (16, "java static");
     37 
     38     private final int mType;
     39     private final String mName;
     40 
     41     RootType(int type, String name) {
     42         mType = type;
     43         mName = name;
     44     }
     45 
     46     public final int getType() {
     47         return mType;
     48     }
     49 
     50     public final String getName() {
     51         return mName;
     52     }
     53 }
     54