jni-android-sys 0.0.8

Autogenerated glue code for access Android JVM APIs from Rust
Documentation
[[documentation.pattern]]

class_url_pattern  = "https://developer.android.com/reference/{CLASS}.html"

method_url_pattern = "https://developer.android.com/reference/{CLASS}.html#{METHOD}({ARGUMENTS})"

field_url_pattern  = "https://developer.android.com/reference/{CLASS}.html#{FIELD}"

method_argument_seperator = ",%2520"



[input]

files = ["%LOCALAPPDATA%/Android/Sdk/platforms/android-28/android.jar"] # NOTE: Overridden by build.rs



[output]

path = "src/generated/api-level-28.rs" # NOTE:  Overridden by build.rs



[logging]

# verbose = true







# https://developer.android.com/reference/java/io/RandomAccessFile

[[ignore]]

# writeByte already exists, does the same thing, has the same signature, and should be used instead.

class = "java/io/RandomAccessFile"

method = "write"

signature = "(I)V"



# https://developer.android.com/reference/java/io/ObjectOutputStream

[[ignore]]

# writeByte already exists, does the same thing, has the same signature, and should be used instead.

class = "java/io/ObjectOutputStream"

method = "write"

signature = "(I)V"



# https://developer.android.com/reference/java/io/DataOutputStream

[[ignore]]

# writeByte already exists, does the same thing, has the same signature, and should be used instead.

class = "java/io/DataOutputStream"

method = "write"

signature = "(I)V"



# https://developer.android.com/reference/java/io/DataOutput

[[ignore]]

# writeByte already exists, does the same thing, has the same signature, and should be used instead.

class = "java/io/DataOutput"

method = "write"

signature = "(I)V"







# https://developer.android.com/reference/java/lang/Long

[[rename]]

class       = "java/lang/Long"

method      = "getLong"

signature   = "(Ljava/lang/String;Ljava/lang/Long;)Ljava/lang/Long;"

to          = "get_long_string_long_object"







# https://developer.android.com/reference/java/net/URLConnection

[[rename]]

class     = "java/net/URLConnection"

method    = "getHeaderField"

signature = "(I)Ljava/lang/String;"

to        = "get_header_field_by_index"



[[rename]]

class     = "java/net/URLConnection"

method    = "getHeaderField"

signature = "(Ljava/lang/String;)Ljava/lang/String;"

to        = "get_header_field_by_name"







# https://developer.android.com/reference/java/nio/ByteBuffer

[[rename]]

class     = "java/nio/ByteBuffer"

method    = "get"

signature = "(I)B"

to        = "get_at"







# There are two BigDecimal s:  One for java.math.BigDecimal (hereafter: java_big_decimal), one for android.icu.math.BigDecimal (hereafter: big_decimal).

# https://developer.android.com/reference/android/icu/text/NumberFormat

[[rename]]

class     = "android/icu/text/NumberFormat"

method    = "format"

signature = "(Ljava/math/BigDecimal;)Ljava/lang/String;"

to        = "format_java_big_decimal"



[[rename]]

class     = "android/icu/text/NumberFormat"

method    = "format"

signature = "(Landroid/icu/math/BigDecimal;)Ljava/lang/String;"

to        = "format_big_decimal"



[[rename]]

class     = "android/icu/text/NumberFormat"

method    = "format"

signature = "(Ljava/math/BigDecimal;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;"

to        = "format_java_big_decimal_string_buffer_field_position"



[[rename]]

class     = "android/icu/text/NumberFormat"

method    = "format"

signature = "(Landroid/icu/math/BigDecimal;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;"

to        = "format_big_decimal_string_buffer_field_position"



# https://developer.android.com/reference/android/icu/text/DecimalFormat

[[rename]]

class     = "android/icu/text/DecimalFormat"

method    = "setRoundingIncrement"

signature = "(Ljava/math/BigDecimal;)V"

to        = "set_rounding_increment_java_big_decimal"



[[rename]]

class     = "android/icu/text/DecimalFormat"

method    = "setRoundingIncrement"

signature = "(Landroid/icu/math/BigDecimal;)V"

to        = "set_rounding_increment_big_decimal"



[[rename]]

class     = "android/icu/text/DecimalFormat"

method    = "format"

signature = "(Ljava/math/BigDecimal;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;"

to        = "format_java_big_decimal_string_buffer_field_position"



[[rename]]

class     = "android/icu/text/DecimalFormat"

method    = "format"

signature = "(Landroid/icu/math/BigDecimal;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;"

to        = "format_big_decimal_string_buffer_field_position"







# https://developer.android.com/reference/android/media/AudioTrack

[[rename]]

class     = "android/media/AudioTrack"

method    = "addOnRoutingChangedListener"

signature = "(Landroid/media/AudioRouting$OnRoutingChangedListener;Landroid/os/Handler;)V"

to        = "add_on_routing_changed_audio_routing_listener"



[[rename]]

class     = "android/media/AudioTrack"

method    = "addOnRoutingChangedListener"

signature = "(Landroid/media/AudioTrack$OnRoutingChangedListener;Landroid/os/Handler;)V"

to        = "add_on_routing_changed_audio_track_listener"



[[rename]]

class     = "android/media/AudioTrack"

method    = "removeOnRoutingChangedListener"

signature = "(Landroid/media/AudioRouting$OnRoutingChangedListener;)V"

to        = "remove_on_routing_changed_audio_routing_listener"



[[rename]]

class     = "android/media/AudioTrack"

method    = "removeOnRoutingChangedListener"

signature = "(Landroid/media/AudioTrack$OnRoutingChangedListener;)V"

to        = "remove_on_routing_changed_audio_track_listener"



# https://developer.android.com/reference/android/media/AudioRecord

[[rename]]

class     = "android/media/AudioRecord"

method    = "addOnRoutingChangedListener"

signature = "(Landroid/media/AudioRouting$OnRoutingChangedListener;Landroid/os/Handler;)V"

to        = "add_on_routing_changed_audio_routing_listener"



[[rename]]

class     = "android/media/AudioRecord"

method    = "addOnRoutingChangedListener"

signature = "(Landroid/media/AudioTrack$OnRoutingChangedListener;Landroid/os/Handler;)V"

to        = "add_on_routing_changed_audio_track_listener"



[[rename]]

class     = "android/media/AudioRecord"

method    = "removeOnRoutingChangedListener"

signature = "(Landroid/media/AudioRouting$OnRoutingChangedListener;)V"

to        = "remove_on_routing_changed_audio_routing_listener"



[[rename]]

class     = "android/media/AudioRecord"

method    = "removeOnRoutingChangedListener"

signature = "(Landroid/media/AudioTrack$OnRoutingChangedListener;)V"

to        = "remove_on_routing_changed_audio_track_listener"







# https://developer.android.com/reference/android/app/ActionBar.LayoutParams

[[rename]]

class       = "android/app/ActionBar$LayoutParams"

method      = "<init>"

signature   = "(Landroid/view/ViewGroup$LayoutParams;)V"

to          = "new_view_group_layout_params"



# https://developer.android.com/reference/android/widget/Toolbar.LayoutParams

[[rename]]

class       = "android/widget/Toolbar$LayoutParams"

method      = "<init>"

signature   = "(Landroid/app/ActionBar$LayoutParams;)V"

to          = "new_action_bar_layout_params"



[[rename]]

class       = "android/widget/Toolbar$LayoutParams"

method      = "<init>"

signature   = "(Landroid/view/ViewGroup$MarginLayoutParams;)V"

to          = "new_view_group_margin_layout_params"



[[rename]]

class       = "android/widget/Toolbar$LayoutParams"

method      = "<init>"

signature   = "(Landroid/view/ViewGroup$LayoutParams;)V"

to          = "new_view_group_layout_params"



# https://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams

[[rename]]

class       = "android/widget/RelativeLayout$LayoutParams"

method      = "<init>"

signature   = "(Landroid/view/ViewGroup$MarginLayoutParams;)V"

to          = "new_view_group_margin_layout_params"



[[rename]]

class       = "android/widget/RelativeLayout$LayoutParams"

method      = "<init>"

signature   = "(Landroid/view/ViewGroup$LayoutParams;)V"

to          = "new_view_group_layout_params"



# https://developer.android.com/reference/android/widget/LinearLayout.LayoutParams

[[rename]]

class       = "android/widget/LinearLayout$LayoutParams"

method      = "<init>"

signature   = "(Landroid/view/ViewGroup$MarginLayoutParams;)V"

to          = "new_view_group_margin_layout_params"



[[rename]]

class       = "android/widget/LinearLayout$LayoutParams"

method      = "<init>"

signature   = "(Landroid/view/ViewGroup$LayoutParams;)V"

to          = "new_view_group_layout_params"



# https://developer.android.com/reference/android/widget/GridLayout.LayoutParams

[[rename]]

class       = "android/widget/GridLayout$LayoutParams"

method      = "<init>"

signature   = "(Landroid/view/ViewGroup$MarginLayoutParams;)V"

to          = "new_view_group_margin_layout_params"



[[rename]]

class       = "android/widget/GridLayout$LayoutParams"

method      = "<init>"

signature   = "(Landroid/view/ViewGroup$LayoutParams;)V"

to          = "new_view_group_layout_params"



# https://developer.android.com/reference/android/widget/FrameLayout.LayoutParams

[[rename]]

class       = "android/widget/FrameLayout$LayoutParams"

method      = "<init>"

signature   = "(Landroid/view/ViewGroup$MarginLayoutParams;)V"

to          = "new_view_group_margin_layout_params"



[[rename]]

class       = "android/widget/FrameLayout$LayoutParams"

method      = "<init>"

signature   = "(Landroid/view/ViewGroup$LayoutParams;)V"

to          = "new_view_group_layout_params"



# https://developer.android.com/reference/android/widget/ActionMenuView.LayoutParams

[[rename]] # XXX: Doesn't actually take a margin layout params, remove this if I start adding warnings for catching this stuff.

class       = "android/widget/ActionMenuView$LayoutParams"

method      = "<init>"

signature   = "(Landroid/view/ViewGroup$MarginLayoutParams;)V"

to          = "new_view_group_margin_layout_params"



[[rename]]

class       = "android/widget/ActionMenuView$LayoutParams"

method      = "<init>"

signature   = "(Landroid/view/ViewGroup$LayoutParams;)V"

to          = "new_view_group_layout_params"