1{ 2 "methods": { 3 "beginSection(java.lang.String)": { 4 "isImplementation": true, 5 "modifiers": [ 6 "protected", 7 "static" 8 ], 9 "params": [ 10 "sectionName" 11 ], 12 "returnType": "void", 13 "exceptions": [], 14 "minSdk": 18, 15 "name": "beginSection(java.lang.String)", 16 "documentation": "Starts a new trace section with given name. " 17 }, 18 "doNotUseSetCrashOnIncorrectUsage(boolean)": { 19 "isImplementation": false, 20 "modifiers": [ 21 "public", 22 "static" 23 ], 24 "params": [ 25 "crashOnIncorrectUsage" 26 ], 27 "returnType": "void", 28 "exceptions": [], 29 "name": "doNotUseSetCrashOnIncorrectUsage(boolean)", 30 "documentation": "Do not use this method unless absolutely necessary. Prefer fixing the tests instead.\n\n\u003cp\u003eSets whether to crash on incorrect usage (e.g., calling {@link #endSection()} before {@link\nbeginSection(String)}. Default value - {@code false}.\n" 31 }, 32 "endSection()": { 33 "isImplementation": true, 34 "modifiers": [ 35 "protected", 36 "static" 37 ], 38 "params": [], 39 "returnType": "void", 40 "exceptions": [], 41 "minSdk": 18, 42 "name": "endSection()", 43 "documentation": "Ends the most recent active trace section.\n\n@throws {@link AssertionError} if called without any active trace section.\n" 44 }, 45 "getCurrentSections()": { 46 "isImplementation": false, 47 "modifiers": [ 48 "public", 49 "static" 50 ], 51 "params": [], 52 "returnType": "java.util.Deque\u003cjava.lang.String\u003e", 53 "exceptions": [], 54 "name": "getCurrentSections()", 55 "documentation": "Returns a stack of the currently active trace sections. " 56 }, 57 "getPreviousSections()": { 58 "isImplementation": false, 59 "modifiers": [ 60 "public", 61 "static" 62 ], 63 "params": [], 64 "returnType": "java.util.Queue\u003cjava.lang.String\u003e", 65 "exceptions": [], 66 "name": "getPreviousSections()", 67 "documentation": "Returns a queue of all the previously active trace sections. " 68 }, 69 "isTagEnabled(long)": { 70 "isImplementation": true, 71 "modifiers": [ 72 "protected", 73 "static" 74 ], 75 "params": [ 76 "traceTag" 77 ], 78 "returnType": "boolean", 79 "exceptions": [], 80 "minSdk": 18, 81 "name": "isTagEnabled(long)" 82 }, 83 "reset()": { 84 "isImplementation": false, 85 "modifiers": [ 86 "public", 87 "static" 88 ], 89 "params": [], 90 "returnType": "void", 91 "exceptions": [], 92 "name": "reset()", 93 "documentation": "Resets internal lists of active trace sections. " 94 }, 95 "setAppTracingAllowed(boolean)": { 96 "isImplementation": true, 97 "modifiers": [ 98 "protected", 99 "static" 100 ], 101 "params": [ 102 "appTracingAllowed" 103 ], 104 "returnType": "void", 105 "exceptions": [], 106 "minSdk": 18, 107 "name": "setAppTracingAllowed(boolean)" 108 } 109 }, 110 "imports": [ 111 "android.os.Build.VERSION_CODES.JELLY_BEAN_MR2", 112 "org.robolectric.shadow.api.Shadow.directlyOn", 113 "android.os.Trace", 114 "android.util.Log", 115 "java.util.ArrayDeque", 116 "java.util.Deque", 117 "java.util.Queue", 118 "javax.annotation.concurrent.GuardedBy", 119 "org.robolectric.annotation.Implementation", 120 "org.robolectric.annotation.Implements", 121 "org.robolectric.annotation.Resetter", 122 "org.robolectric.util.ReflectionHelpers.ClassParameter" 123 ], 124 "name": "org.robolectric.shadows.ShadowTrace", 125 "documentation": "Shadow implementation for {@link Trace}, which stores the traces locally in arrays (unlike the\nreal implementation) and allows reading them.\n\n\u003cp\u003eThe shadow doesn\u0027t enforce the constrains by default (e.g., null section names, or incorrect\n{@link ShadowTrace.beginSection(String)} / {@link ShadowTrace.endSection()} sequences), but can\nbe configured to do so by calling {@link ShadowTrace.setCrashOnIncorrectUsage(boolean)}.\n" 126}