Lines Matching refs:proto
21 DisplayContent.fromProto = function (proto: any, isActivityInTree: Boolean): DisplayContent {
22 if (proto == null) {
26 /* proto */ proto.rootDisplayArea.windowContainer,
27 /* protoChildren */ proto.rootDisplayArea.windowContainer.children.reverse(),
29 /* nameOverride */ proto.displayInfo?.name ?? null
31 const displayRectWidth = proto.displayInfo?.logicalWidth ?? 0;
32 const displayRectHeight = proto.displayInfo?.logicalHeight ?? 0;
33 const appRectWidth = proto.displayInfo?.appWidth ?? 0;
34 const appRectHeight = proto.displayInfo?.appHeight ?? 0;
35 const defaultBounds = proto.pinnedStackController?.defaultBounds ?? null;
36 const movementBounds = proto.pinnedStackController?.movementBounds ?? null;
39 proto.id,
40 proto.focusedRootTaskId,
41 proto.resumedActivity?.title ?? "",
42 proto.singleTaskInstance,
47 proto.dpi,
48 proto.displayInfo?.flags ?? 0,
49 toRect(proto.displayFrames?.stableBounds),
50 proto.surfaceSize,
51 proto.focusedApp,
52 proto.appTransition?.lastUsedAppTransition ?? "",
53 proto.appTransition?.appTransitionState ?? "",
54 proto.displayRotation?.rotation ?? 0,
55 proto.displayRotation?.lastOrientation ?? 0,
59 addAttributes(entry, proto);
65 function addAttributes(entry: DisplayContent, proto: any) {
66 entry.proto = proto;