| 1 | package org.lsposed.lsplant; |
| 2 | |
| 3 | public class LSPTest { |
| 4 | |
| 5 | static { |
| 6 | System.loadLibrary("test"); |
| 7 | } |
| 8 | |
| 9 | boolean field; |
| 10 | |
| 11 | LSPTest() { |
| 12 | field = false; |
| 13 | } |
| 14 | |
| 15 | native static boolean initHooker(); |
| 16 | |
| 17 | static boolean staticMethod() { |
| 18 | return false; |
| 19 | } |
| 20 | |
| 21 | String normalMethod(String a, int b, long c) { |
| 22 | return a + b + c; |
| 23 | } |
| 24 | |
| 25 | String manyParametersMethod(String a, boolean b, byte c, short d, int e, long f, float g, double h, Integer i, Long j) { |
| 26 | return a + b + c + d + e + f + g + h + i + j; |
| 27 | } |
| 28 | |
| 29 | |
| 30 | public static class NeedInitialize { |
| 31 | static int x; |
| 32 | |
| 33 | static { |
| 34 | x = 0; |
| 35 | } |
| 36 | |
| 37 | static boolean staticMethod() { |
| 38 | try { |
| 39 | return x != 0; |
| 40 | } catch (Throwable e) { |
| 41 | return false; |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | static boolean callStaticMethod() { |
| 46 | try { |
| 47 | return staticMethod(); |
| 48 | } catch (Throwable e) { |
| 49 | return false; |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | public interface ForProxy { |
| 55 | String abstractMethod(String a, boolean b, byte c, short d, int e, long f, float g, double h, Integer i, Long j); |
| 56 | } |
| 57 | } |
nothing calls this directly
no outgoing calls
no test coverage detected