Class: Android::Resource::ResTableConfig

Inherits:
Chunk
  • Object
show all
Defined in:
lib/android/resource.rb

Instance Attribute Summary collapse

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

#imeiObject (readonly)

Returns the value of attribute imei.



451
452
453
# File 'lib/android/resource.rb', line 451

def imei
  @imei
end

#inputObject (readonly)

Returns the value of attribute input.



451
452
453
# File 'lib/android/resource.rb', line 451

def input
  @input
end

#locale_contryObject (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_langObject (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_configObject (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_inputObject (readonly)

Returns the value of attribute screen_input.



452
453
454
# File 'lib/android/resource.rb', line 452

def screen_input
  @screen_input
end

#sizeObject (readonly)

Returns the value of attribute size.



451
452
453
# File 'lib/android/resource.rb', line 451

def size
  @size
end

#versionObject (readonly)

Returns the value of attribute version.



452
453
454
# File 'lib/android/resource.rb', line 452

def version
  @version
end

Instance Method Details

#inspectObject



464
465
466
# File 'lib/android/resource.rb', line 464

def inspect
  "<ResTableConfig size:#{@size}, imei:#{@imei}, la:'#{@locale_lang}' cn:'#{@locale_contry}'"
end

#parseObject



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