Class: Android::Resource::ResTableConfig
- Defined in:
- lib/android/resource.rb
Instance Attribute Summary collapse
-
#imei ⇒ Object
readonly
Returns the value of attribute imei.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#locale_contry ⇒ Object
readonly
Returns the value of attribute locale_contry.
-
#locale_lang ⇒ Object
readonly
Returns the value of attribute locale_lang.
-
#screen_config ⇒ Object
readonly
Returns the value of attribute screen_config.
-
#screen_input ⇒ Object
readonly
Returns the value of attribute screen_input.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
Methods inherited from Chunk
#current_position, #exec_parse, #initialize, #read_int16, #read_int32, #read_int8
Constructor Details
This class inherits a constructor from Android::Resource::Chunk
Instance Attribute Details
#imei ⇒ Object (readonly)
Returns the value of attribute imei.
451 452 453 |
# File 'lib/android/resource.rb', line 451 def imei @imei end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
451 452 453 |
# File 'lib/android/resource.rb', line 451 def input @input end |
#locale_contry ⇒ Object (readonly)
Returns the value of attribute locale_contry.
451 452 453 |
# File 'lib/android/resource.rb', line 451 def locale_contry @locale_contry end |
#locale_lang ⇒ Object (readonly)
Returns the value of attribute locale_lang.
451 452 453 |
# File 'lib/android/resource.rb', line 451 def locale_lang @locale_lang end |
#screen_config ⇒ Object (readonly)
Returns the value of attribute screen_config.
452 453 454 |
# File 'lib/android/resource.rb', line 452 def screen_config @screen_config end |
#screen_input ⇒ Object (readonly)
Returns the value of attribute screen_input.
452 453 454 |
# File 'lib/android/resource.rb', line 452 def screen_input @screen_input end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
451 452 453 |
# File 'lib/android/resource.rb', line 451 def size @size end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
452 453 454 |
# File 'lib/android/resource.rb', line 452 def version @version end |
Instance Method Details
#inspect ⇒ Object
464 465 466 |
# File 'lib/android/resource.rb', line 464 def inspect "<ResTableConfig size:#{@size}, imei:#{@imei}, la:'#{@locale_lang}' cn:'#{@locale_contry}'" end |
#parse ⇒ Object
453 454 455 456 457 458 459 460 461 462 463 |
# File 'lib/android/resource.rb', line 453 def parse @size = read_int32 @imei = read_int32 @locale_lang = unpack_locale(@data_io.read(1), @data_io.read(1), 'a') @locale_contry = unpack_locale(@data_io.read(1), @data_io.read(1), '0') @screen_type = read_int32 @input = read_int32 @screen_input = read_int32 @version = read_int32 @screen_config = read_int32 end |