class Debug


Utilities useful for debugging

Summary

Public constructors

Public functions

java-static Unit
dumpLayoutParams(layout: ViewGroup!, str: String!)
java-static Unit
java-static Unit
dumpPoc(obj: Any!)
java-static String!

Convert a motion event action to a string

java-static String!

Get file name and location where this method is called.

java-static String!

Get file name and location where this method is called.

java-static String!

Get file name and location where this method is called.

java-static String!

Get file name and location where this method is called.

java-static String!
getName(view: View!)

This provides return the name of a view

java-static String!
getName(context: Context!, id: IntArray!)

This returns the name of a view given its id

java-static String!
getName(context: Context!, id: Int)

This returns the name of a view given its id

java-static String!
getState(layout: MotionLayout!, stateId: Int)

convert an id number to an id String useful in debugging

java-static String!
getState(layout: MotionLayout!, stateId: Int, len: Int)

convert an id number to an id String useful in debugging

java-static Unit
logStack(tag: String!, msg: String!, n: Int)

This logs n elements in the stack

java-static Unit
printStack(msg: String!, n: Int)

This logs n elements in the stack

Public constructors

Debug

Added in 2.2.0-alpha13
Debug()

Public functions

dumpLayoutParams

Added in 2.2.0-alpha13
java-static fun dumpLayoutParams(layout: ViewGroup!, str: String!): Unit
Parameters
layout: ViewGroup!
str: String!

dumpLayoutParams

Added in 2.2.0-alpha13
java-static fun dumpLayoutParams(param: ViewGroup.LayoutParams!, str: String!): Unit
Parameters
param: ViewGroup.LayoutParams!
str: String!

dumpPoc

Added in 2.2.0-alpha13
java-static fun dumpPoc(obj: Any!): Unit
Parameters
obj: Any!

getActionType

Added in 2.2.0-alpha13
java-static fun getActionType(event: MotionEvent!): String!

Convert a motion event action to a string

Parameters
event: MotionEvent!
Returns
String!

getCallFrom

Added in 2.2.0-alpha13
java-static fun getCallFrom(n: Int): String!

Get file name and location where this method is called. Formatting it such that it is clickable by Intellij

Returns
String!

(filename : line_no)

getLoc

Added in 2.2.0-alpha13
java-static fun getLoc(): String!

Get file name and location where this method is called. Formatting it such that it is clickable by Intellij

Returns
String!

(filename : line_no)

getLocation

Added in 2.2.0-alpha13
java-static fun getLocation(): String!

Get file name and location where this method is called. Formatting it such that it is clickable by Intellij

Returns
String!

(filename : line_no)

getLocation2

Added in 2.2.0-alpha13
java-static fun getLocation2(): String!

Get file name and location where this method is called. Formatting it such that it is clickable by Intellij

Returns
String!

(filename : line_no)

getName

Added in 2.2.0-alpha13
java-static fun getName(view: View!): String!

This provides return the name of a view

Parameters
view: View!
Returns
String!

name of view

getName

Added in 2.2.0-alpha13
java-static fun getName(context: Context!, id: IntArray!): String!

This returns the name of a view given its id

Parameters
context: Context!
id: IntArray!
Returns
String!

name of view

getName

Added in 2.2.0-alpha13
java-static fun getName(context: Context!, id: Int): String!

This returns the name of a view given its id

Parameters
context: Context!
id: Int
Returns
String!

name of view

getState

Added in 2.2.0-alpha13
java-static fun getState(layout: MotionLayout!, stateId: Int): String!

convert an id number to an id String useful in debugging

Parameters
layout: MotionLayout!
stateId: Int
Returns
String!

getState

Added in 2.2.0-alpha13
java-static fun getState(layout: MotionLayout!, stateId: Int, len: Int): String!

convert an id number to an id String useful in debugging

Parameters
layout: MotionLayout!
stateId: Int
len: Int

trim if string >len

Returns
String!

logStack

Added in 2.2.0-alpha13
java-static fun logStack(tag: String!, msg: String!, n: Int): Unit

This logs n elements in the stack

Parameters
tag: String!
msg: String!
n: Int

printStack

Added in 2.2.0-alpha13
java-static fun printStack(msg: String!, n: Int): Unit

This logs n elements in the stack

Parameters
msg: String!
n: Int