(int reason)
| 853 | } |
| 854 | |
| 855 | static String getExitReason(int reason) { |
| 856 | switch (reason) { |
| 857 | case ApplicationExitInfo.REASON_UNKNOWN: |
| 858 | return "Unknown"; |
| 859 | case ApplicationExitInfo.REASON_EXIT_SELF: |
| 860 | return "ExitSelf"; |
| 861 | case ApplicationExitInfo.REASON_SIGNALED: |
| 862 | return "Signaled"; |
| 863 | case ApplicationExitInfo.REASON_LOW_MEMORY: |
| 864 | return "LowMemory"; |
| 865 | case ApplicationExitInfo.REASON_CRASH: |
| 866 | return "Crash"; |
| 867 | case ApplicationExitInfo.REASON_CRASH_NATIVE: |
| 868 | return "CrashNative"; |
| 869 | case ApplicationExitInfo.REASON_ANR: |
| 870 | return "ANR"; |
| 871 | case ApplicationExitInfo.REASON_INITIALIZATION_FAILURE: |
| 872 | return "InitializationFailure"; |
| 873 | case ApplicationExitInfo.REASON_PERMISSION_CHANGE: |
| 874 | return "PermissionChange"; |
| 875 | case ApplicationExitInfo.REASON_EXCESSIVE_RESOURCE_USAGE: |
| 876 | return "ExcessiveResourceUsage"; |
| 877 | case ApplicationExitInfo.REASON_USER_REQUESTED: |
| 878 | return "UserRequested"; |
| 879 | case ApplicationExitInfo.REASON_USER_STOPPED: |
| 880 | return "UserStopped"; |
| 881 | case ApplicationExitInfo.REASON_DEPENDENCY_DIED: |
| 882 | return "DependencyDied"; |
| 883 | case ApplicationExitInfo.REASON_OTHER: |
| 884 | return "Other"; |
| 885 | default: |
| 886 | return Integer.toString(reason); |
| 887 | } |
| 888 | } |
| 889 | |
| 890 | static String getInterruptionFilter(int filter) { |
| 891 | switch (filter) { |
no test coverage detected