/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | AcrossThreads.java | 63 public void test(StackWalker walker) { in test() argument 64 Thread t1 = new T1(walker); in test() 73 threads.add(new T1(walker)); in test() 74 threads.add(new T2(walker)); in test() 75 threads.add(new T3(walker)); in test() 94 default public void assertWalker(StackWalker walker, int n) { in assertWalker() argument 97 walker.forEach(f -> { in assertWalker() 110 assertTrue(walker.walk(s -> s.map(StackFrame::getMethodName) in assertWalker() 113 assertTrue(walker.walk(s -> s.map(StackFrame::getMethodName) in assertWalker() 116 assertTrue(walker.walk(s -> s.map(StackFrame::getMethodName) in assertWalker() [all …]
|
D | EmbeddedStackWalkTest.java | 66 public void test(StackWalker walker) { in test() argument 67 C1.call(walker, BIG_LOOP); in test() 76 public static void call(StackWalker walker, int loops) { in call() argument 78 String caller = walker.walk(s -> in call() 85 walker.forEach(f -> C2.testEmbeddedWalker()); in call() 87 call(walker, --loops); in call() 106 .forEach(walker -> run(walker)); in walk() 112 static void run(StackWalker walker) { in run() argument 118 handle.invoke(walker); in run() 124 static void call(StackWalker walker) { in call() argument [all …]
|
D | WalkFunction.java | 40 private static final StackWalker walker = StackWalker.getInstance(); field in WalkFunction 48 walker.walk(counter()); in main() 49 walker.walk(wildCounter()); in main() 53 walker.walk(Stream::count); in testFunctions() 56 walker.walk(null); in testFunctions() 60 Optional<StackFrame> result = walker.walk(WalkFunction::reduce); in testFunctions() 95 walker.walk(f1); in testWildcards() 96 walker.walk(f2); in testWildcards() 97 walker.walk(f3); in testWildcards() 98 walker.walk(f4); in testWildcards() [all …]
|
D | VerifyStackTrace.java | 56 StackWalker walker(); in walker() method 61 private final StackWalker walker = StackWalker.getInstance(RETAIN_CLASS_REFERENCE); field in VerifyStackTrace.TestCase1 96 @Override public StackWalker walker() { return walker;} in walker() method in VerifyStackTrace.TestCase1 101 private final StackWalker walker = StackWalker.getInstance( field in VerifyStackTrace.TestCase2 143 @Override public StackWalker walker() { return walker;} in walker() method in VerifyStackTrace.TestCase2 148 private final StackWalker walker = StackWalker.getInstance( field in VerifyStackTrace.TestCase3 194 @Override public StackWalker walker() { return walker;} in walker() method in VerifyStackTrace.TestCase3 200 private final StackWalker walker = StackWalker.getInstance( field in VerifyStackTrace.TestCase4 208 @Override public StackWalker walker() {return walker;} in walker() method in VerifyStackTrace.TestCase4 299 final Runnable run = () -> test.walker().forEach( in test()
|
D | GetCallerClassTest.java | 52 private final StackWalker walker; field in GetCallerClassTest 56 this.walker = sw; in GetCallerClassTest() 184 GetCallerClassTest.staticGetCallerClass(walker, this.getClass(), expectUOE); in run() 185 GetCallerClassTest.reflectiveGetCallerClass(walker, this.getClass(), expectUOE); in run() 186 GetCallerClassTest.methodHandleGetCallerClass(walker, this.getClass(), expectUOE); in run() 194 Class<?> c = walker.getCallerClass(); in run() 221 GetCallerClassTest.staticGetCallerClass(walker, this.getClass(), expectUOE); in run() 222 GetCallerClassTest.reflectiveGetCallerClass(walker, this.getClass(), expectUOE); in run() 223 GetCallerClassTest.methodHandleGetCallerClass(walker, this.getClass(), expectUOE); in run() 234 GetCallerClassTest.staticGetCallerClass(walker, this.getClass(), expectUOE); in test() [all …]
|
D | ReflectionFrames.java | 81 StackInspector.walker.set(StackInspector.walkerHide); in testNewStackInspector() 153 StackInspector.walker.set(StackInspector.walkerShow); in testNewStackInspector() 257 StackInspector.walker.set(StackInspector.walkerHide); in testConstructor() 329 StackInspector.walker.set(StackInspector.walkerShow); in testConstructor() 454 StackInspector.walker.set(StackInspector.walkerHide); in testNewInstance() 561 StackInspector.walker.set(StackInspector.walkerShow); in testNewInstance() 684 StackInspector.walker.set(StackInspector.walkerHide); in testGetCaller() 692 StackInspector.walker.set(StackInspector.walkerShow); in testGetCaller() 703 StackInspector.walker.set(StackInspector.walkerHide); in testReflectCaller() 711 StackInspector.walker.set(StackInspector.walkerShow); in testReflectCaller() [all …]
|
D | StackStreamState.java | 47 private final StackWalker walker = StackWalker.getInstance(); field in StackStreamState 53 walker.walk(s -> { in testStatic() 64 walker.walk(s -> { in testInstance() 74 Stream<StackFrame> stream = walker.walk(s -> { in testLocal()
|
D | HiddenFrames.java | 52 private final StackWalker walker; field in HiddenFrames 58 this.walker = StackWalker.getInstance(); in HiddenFrames() 62 this.walker = StackWalker.getInstance(option); in HiddenFrames() 71 Stream.of(0).forEach(i -> walker.walk(s -> in walk()
|
D | NativeMethod.java | 45 private final StackWalker walker; field in NativeMethod 47 this.walker = StackWalker.getInstance(Option.SHOW_REFLECT_FRAMES); in NativeMethod() 59 List<StackFrame> nativeFrames = walker.walk(s -> in walk()
|
D | Basic.java | 135 static final StackWalker walker = field in Basic.ConstructorNewInstance 139 testFramesOrReflectionFrames = walker.walk(this::parse); in ConstructorNewInstance() 223 StackWalker walker = StackWalker.getInstance(RETAIN_CLASS_REFERENCE); in walk() local 224 result = walker.walk(s -> s.limit(limit).collect(Collectors.toList())); in walk()
|
D | LocalsAndOperands.java | 250 private StackWalker walker; field in LocalsAndOperands.KnownLocalsTester 253 this.walker = extendedWalker; in KnownLocalsTester() 268 return walker.walk(s -> in testLocalsUnused() 285 StackFrame[] frames = walker.walk(s -> in testLocalsKeepAlive() 302 StackFrame[] frames = walker.walk(s -> in testLocalsKeepAliveArgs()
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | FileTreeIterator.java | 51 private final FileTreeWalker walker; field in FileTreeIterator 70 this.walker = new FileTreeWalker(Arrays.asList(options), maxDepth); in FileTreeIterator() 71 this.next = walker.walk(start); in FileTreeIterator() 83 FileTreeWalker.Event ev = walker.next(); in fetchNextIfNeeded() 94 ev = walker.next(); in fetchNextIfNeeded() 101 if (!walker.isOpen()) in hasNext() 109 if (!walker.isOpen()) in next() 121 walker.close(); in close()
|
D | Files.java | 2661 try (FileTreeWalker walker = new FileTreeWalker(options, maxDepth)) { 2662 FileTreeWalker.Event ev = walker.walk(start); 2684 walker.pop(); 2703 walker.skipRemainingSiblings(); 2706 ev = walker.next();
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StackStreamFactory.java | 88 … makeStackTraverser(StackWalker walker, Function<? super Stream<StackFrame>, ? extends T> function) in makeStackTraverser() argument 90 if (walker.hasLocalsOperandsOption()) in makeStackTraverser() 91 return new LiveStackInfoTraverser<>(walker, function); in makeStackTraverser() 93 return new StackFrameTraverser<>(walker, function); in makeStackTraverser() 99 static CallerClassFinder makeCallerFinder(StackWalker walker) { in makeCallerFinder() argument 100 return new CallerClassFinder(walker); in makeCallerFinder() 122 protected final StackWalker walker; field in StackStreamFactory.AbstractStackWalker 133 protected AbstractStackWalker(StackWalker walker, int mode) { in AbstractStackWalker() argument 134 this(walker, mode, Integer.MAX_VALUE); in AbstractStackWalker() 136 protected AbstractStackWalker(StackWalker walker, int mode, int maxDepth) { in AbstractStackWalker() argument [all …]
|
D | StackFrameInfo.java | 57 StackFrameInfo(StackWalker walker) { in StackFrameInfo() argument 58 this.retainClassRef = walker.retainClassRef; in StackFrameInfo()
|
D | LiveStackFrameInfo.java | 34 LiveStackFrameInfo(StackWalker walker) { in LiveStackFrameInfo() argument 35 super(walker); in LiveStackFrameInfo()
|
/libcore/luni/src/test/dex_src/libcore/java/lang/stackwalker/ |
D | Test1.java | 32 StackWalker walker = StackWalker.getInstance(); in invokeWalker() local 33 return walker.walk(s -> s.collect(toList())); in invokeWalker()
|