Class: Nl::Linux::Binder::AttributeSets::Report

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/binder.rb

Overview

Attributes included within a transaction failure report. The elements correspond directly with the specific transaction that failed, along with the error returned to the sender e.g. BR_DEAD_REPLY.

Defined Under Namespace

Classes: Attribute, Code, Context, DataSize, Error, Flags, FromPid, FromTid, IsReply, ToPid, ToTid

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



200
# File 'nl-linux/generated/nl/linux/binder.rb', line 200

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



206
# File 'nl-linux/generated/nl/linux/binder.rb', line 206

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#code ⇒ Integer

The application-defined code from the transaction.

Returns:

  • (Integer)

See Also:



188
# File 'nl-linux/generated/nl/linux/binder.rb', line 188

def code; self[:"code"]&.value; end

#context ⇒ String

The binder context where the transaction occurred.

Returns:

  • (String)

See Also:



151
# File 'nl-linux/generated/nl/linux/binder.rb', line 151

def context; self[:"context"]&.value; end

#data_size ⇒ Integer

The transaction payload size in bytes.

Returns:

  • (Integer)

See Also:



193
# File 'nl-linux/generated/nl/linux/binder.rb', line 193

def data_size; self[:"data_size"]&.value; end

#error ⇒ Integer

The enum binder_driver_return_protocol returned to the sender.

Returns:

  • (Integer)

See Also:



146
# File 'nl-linux/generated/nl/linux/binder.rb', line 146

def error; self[:"error"]&.value; end

#flags ⇒ Integer

The bitmask of enum transaction_flags from the transaction.

Returns:

  • (Integer)

See Also:



183
# File 'nl-linux/generated/nl/linux/binder.rb', line 183

def flags; self[:"flags"]&.value; end

#from_pid ⇒ Integer

The PID of the sender process.

Returns:

  • (Integer)

See Also:



156
# File 'nl-linux/generated/nl/linux/binder.rb', line 156

def from_pid; self[:"from_pid"]&.value; end

#from_tid ⇒ Integer

The TID of the sender thread.

Returns:

  • (Integer)

See Also:



161
# File 'nl-linux/generated/nl/linux/binder.rb', line 161

def from_tid; self[:"from_tid"]&.value; end

#is_reply ⇒ Integer

When present, indicates the failed transaction is a reply.

Returns:

  • (Integer)

See Also:



178
# File 'nl-linux/generated/nl/linux/binder.rb', line 178

def is_reply; self[:"is_reply"]&.value; end

#to_pid ⇒ Integer

The PID of the recipient process. This attribute may not be present if the target could not be determined.

Returns:

  • (Integer)

See Also:



167
# File 'nl-linux/generated/nl/linux/binder.rb', line 167

def to_pid; self[:"to_pid"]&.value; end

#to_tid ⇒ Integer

The TID of the recipient thread. This attribute may not be present if the target could not be determined.

Returns:

  • (Integer)

See Also:



173
# File 'nl-linux/generated/nl/linux/binder.rb', line 173

def to_tid; self[:"to_tid"]&.value; end