Class: Nl::Linux::Binder::AttributeSets::Report
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Binder::AttributeSets::Report
- 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
Class Method Summary collapse
-
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
-
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
Instance Method Summary collapse
-
#code ⇒ Integer
The application-defined code from the transaction.
-
#context ⇒ String
The binder context where the transaction occurred.
-
#data_size ⇒ Integer
The transaction payload size in bytes.
-
#error ⇒ Integer
The enum binder_driver_return_protocol returned to the sender.
-
#flags ⇒ Integer
The bitmask of enum transaction_flags from the transaction.
-
#from_pid ⇒ Integer
The PID of the sender process.
-
#from_tid ⇒ Integer
The TID of the sender thread.
-
#is_reply ⇒ Integer
When present, indicates the failed transaction is a reply.
-
#to_pid ⇒ Integer
The PID of the recipient process.
-
#to_tid ⇒ Integer
The TID of the recipient thread.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
173 |
# File 'nl-linux/generated/nl/linux/binder.rb', line 173 def to_tid; self[:"to_tid"]&.value; end |