Lines Matching refs:proto

26 WindowManagerState.fromProto = function (proto: any, timestamp: number = 0, where: string = ""): Wi…
28 if (proto.inputMethodWindow != null) {
29 proto.inputMethodWindow.hashCode.toString(16)
32 const rootWindowContainer = createRootWindowContainer(proto.rootWindowContainer);
34 proto.rootWindowContainer.keyguardController);
35 const policy = createWindowManagerPolicy(proto.policy);
40 proto.focusedApp,
41 proto.focusedDisplayId,
42 proto.focusedWindow?.title ?? "",
44 proto.rootWindowContainer.isHomeRecentsComponent,
45 proto.displayFrozen,
46 proto.rootWindowContainer.pendingActivities.map(it => it.title),
52 addAttributes(entry, proto);
57 function addAttributes(entry: WindowManagerState, proto: any) {
65 entry.proto = proto;
71 function createWindowManagerPolicy(proto: any): WindowManagerPolicy {
73 proto.focusedAppToken ?? "",
74 proto.forceStatusBar,
75 proto.forceStatusBarFromKeyguard,
76 proto.keyguardDrawComplete,
77 proto.keyguardOccluded,
78 proto.keyguardOccludedChanged,
79 proto.keyguardOccludedPending,
80 proto.lastSystemUiFlags,
81 proto.orientation,
82 proto.rotation,
83 proto.rotationMode,
84 proto.screenOnFully,
85 proto.windowManagerDrawComplete
89 function createRootWindowContainer(proto: any): RootWindowContainer {
91 /* proto */ proto.windowContainer,
92 /* childrenProto */ proto.windowContainer.children.reverse()
96 throw new Error(`Window container should not be null.\n${JSON.stringify(proto)}`);
102 function createKeyguardControllerState(proto: any): KeyguardControllerState {
105 if (proto) {
106 proto.keyguardOccludedStates.forEach(it =>
111 proto?.isAodShowing ?? false,
112 proto?.isKeyguardShowing ?? false,