class_body
{ "{"
block_comment "/**\n * Device (physical) size, possibly cropped\n */"
field_declaration
modifiers
private "private"
final "final"
type_identifier "Rect"
variable_declarator
identifier "contentRect"
; ";"
line_comment "// device size, possibly cropped"
block_comment "/**\n * Video size, possibly smaller than the device size"...
field_declaration
modifiers
private "private"
final "final"
type_identifier "Size"
variable_declarator
identifier "unlockedVideoSize"
; ";"
block_comment "/**\n * Device rotation, related to the natural device or"...
field_declaration
modifiers
private "private"
final "final"
integral_type
int "int"
variable_declarator
identifier "deviceRotation"
; ";"
block_comment "/**\n * The locked video orientation (-1: disabled, 0: no"...
field_declaration
modifiers
private "private"
final "final"
integral_type
int "int"
variable_declarator
identifier "lockedVideoOrientation"
; ";"
constructor_declaration (+63 nodes collapsed)
method_declaration
modifiers
public "public"
type_identifier "Rect"
identifier "getContentRect"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "contentRect"
; ";"
} "}"
block_comment "/**\n * Return the video size as if locked video orientat"...
method_declaration
modifiers
public "public"
type_identifier "Size"
identifier "getUnlockedVideoSize"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "unlockedVideoSize"
; ";"
} "}"
block_comment "/**\n * Return the actual video size if locked video orie"...
method_declaration (+44 nodes collapsed)
method_declaration
modifiers
public "public"
static "static"
type_identifier "ScreenInfo"
identifier "computeScreenInfo"
formal_parameters (+25 nodes collapsed)
block
{ "{"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression any 2:1
binary_expression any 2:1
identifier "lockedVideoOrientation"
== "=="
field_access
identifier "Device"
. "."
identifier "LOCK_VIDEO_ORIENTATION_INITIAL"
|| "||"
binary_expression
identifier "lockedVideoOrientation"
== "=="
field_access
identifier "Device"
. "."
identifier "LOCK_VIDEO_ORIENTATION_INITIAL_AUTO"
) ")"
block
{ "{"
line_comment "// The user requested to lock the video orientation to the c"...
expression_statement
assignment_expression
identifier "lockedVideoOrientation"
= "="
identifier "rotation"
; ";"
} "}"
local_variable_declaration (+31 nodes collapsed)
if_statement (+118 nodes collapsed)
local_variable_declaration (+28 nodes collapsed)
return_statement
return "return"
object_creation_expression
new "new"
type_identifier "ScreenInfo"
argument_list
( "("
identifier "contentRect"
, ","
identifier "videoSize"
, ","
identifier "rotation"
, ","
identifier "lockedVideoOrientation"
) ")"
; ";"
} "}"
method_declaration (+64 nodes collapsed)
method_declaration (+214 nodes collapsed)
method_declaration (+43 nodes collapsed)
block_comment "/**\n * Return the rotation to apply to the device rotati"...
method_declaration (+47 nodes collapsed)
block_comment "/**\n * Return the rotation to apply to the requested loc"...
method_declaration (+47 nodes collapsed)
} "}"