This mapping has 1 multi-map group: several pairings are equally correct there. The code view shows one arbitrary valid pairing, not the only one.

Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–60 unchanged (60 lines)
61 }
62
63 return unlockedVideoSize.rotate();
64 }
65
66 public static ScreenInfo computeScreenInfo(int rotation, Size deviceSize, Rect crop, int maxSize, int lockedVideoOrientation) {
67 if (lockedVideoOrientation == Device.LOCK_VIDEO_ORIENTATION_INITIAL || lockedVideoOrientation == Device.LOCK_VIDEO_ORIENTATION_INITIAL_AUTO) {
68 // The user requested to lock the video orientation to the current orientation
69 lockedVideoOrientation = rotation;
70 }
71
72 Rect contentRect = new Rect(0, 0, deviceSize.getWidth(), deviceSize.getHeight());
73 if (crop != null) {
…lines 74–150 unchanged (77 lines)

After

…lines 1–60 unchanged (60 lines)
61 }
62
63 return unlockedVideoSize.rotate();
64 }
65
66 public static ScreenInfo computeScreenInfo(int rotation, Size deviceSize, Rect crop, int maxSize, int lockedVideoOrientation) {
67 if (lockedVideoOrientation == Device.LOCK_VIDEO_ORIENTATION_INITIAL) {
68 // The user requested to lock the video orientation to the current orientation
69 lockedVideoOrientation = rotation;
70 }
71
72 Rect contentRect = new Rect(0, 0, deviceSize.getWidth(), deviceSize.getHeight());
73 if (crop != null) {
…lines 74–150 unchanged (77 lines)

Before

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "genymobile"
. "."
identifier "scrcpy"
. "."
identifier "video"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "genymobile"
. "."
identifier "scrcpy"
. "."
identifier "BuildConfig"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "genymobile"
. "."
identifier "scrcpy"
. "."
identifier "device"
. "."
identifier "Device"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "genymobile"
. "."
identifier "scrcpy"
. "."
identifier "device"
. "."
identifier "Size"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "genymobile"
. "."
identifier "scrcpy"
. "."
identifier "util"
. "."
identifier "Ln"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "Rect"
; ";"
class_declaration
modifiers
public "public"
final "final"
class "class"
identifier "ScreenInfo"
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)
} "}"

After

program
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "genymobile"
. "."
identifier "scrcpy"
. "."
identifier "video"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "genymobile"
. "."
identifier "scrcpy"
. "."
identifier "BuildConfig"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "genymobile"
. "."
identifier "scrcpy"
. "."
identifier "device"
. "."
identifier "Device"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "genymobile"
. "."
identifier "scrcpy"
. "."
identifier "device"
. "."
identifier "Size"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "com"
. "."
identifier "genymobile"
. "."
identifier "scrcpy"
. "."
identifier "util"
. "."
identifier "Ln"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "android"
. "."
identifier "graphics"
. "."
identifier "Rect"
; ";"
class_declaration
modifiers
public "public"
final "final"
class "class"
identifier "ScreenInfo"
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
identifier "lockedVideoOrientation"
== "=="
field_access
identifier "Device"
. "."
identifier "LOCK_VIDEO_ORIENTATION_INITIAL"
) ")"
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)
} "}"