Home
last modified time | relevance | path

Searched refs:proto (Results 1 – 25 of 34) sorted by relevance

12

/development/tools/winscope/src/flickerlib/windows/
DWindowState.ts22 WindowState.fromProto = function (proto: any, isActivityInTree: Boolean): WindowState {
23 if (proto == null) {
26 const windowParams = createWindowLayoutParams(proto.attributes);
27 const identifierName = getIdentifier(proto);
28 const windowType = getWindowType(proto, identifierName);
31 /* proto */ proto.windowContainer,
32 /* protoChildren */ proto.windowContainer.children.reverse(),
35 /* identifierOverride */ proto.identifier
40 proto.displayId,
41 proto.stackId,
[all …]
DWindowContainer.ts37 proto: any,
44 if (proto == null) {
52 const identifier = identifierOverride ?? proto.identifier; constant
56 const config = createConfigurationContainer(proto.configurationContainer);
60 proto.orientation,
61 proto.surfaceControl?.layerId ?? 0,
62 proto.visible,
67 addAttributes(entry, proto);
71 function addAttributes(entry: WindowContainer, proto: any) {
72 entry.proto = proto;
[all …]
DTask.ts21 Task.fromProto = function (proto: any, isActivityInTree: Boolean): Task {
22 if (proto == null) {
25 const windowContainerProto = proto.taskFragment?.windowContainer ?? proto.windowContainer; constant
33 proto.taskFragment?.activityType ?? proto.activityType,
34 proto.fillsParent,
35 toRect(proto.bounds),
36 proto.id,
37 proto.rootTaskId,
38 proto.taskFragment?.displayId,
39 toRect(proto.lastNonFullscreenBounds),
[all …]
DDisplayContent.ts21 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;
[all …]
DActivity.ts22 Activity.fromProto = function (proto: any): Activity {
23 if (proto == null) {
27 /* proto */ proto.windowToken.windowContainer,
28 /* protoChildren */ proto.windowToken.windowContainer.children.reverse(),
31 /* identifierOverride */ proto.identifier
35 proto.name,
36 proto.state,
37 proto.visible,
38 proto.frontOfTask,
39 proto.procId,
[all …]
DTaskFragment.ts21 TaskFragment.fromProto = function (proto: any, isActivityInTree: Boolean): TaskFragment {
22 if (proto == null) {
26 /* proto */ proto.windowContainer,
27 /* protoChildren */ proto.windowContainer.children.reverse(),
30 proto.activityType,
31 proto.displayId,
32 proto.minWidth,
33 proto.minHeight,
37 addAttributes(entry, proto);
43 function addAttributes(entry: TaskFragment, proto: any) {
[all …]
DDisplayArea.ts21 DisplayArea.fromProto = function (proto: any, isActivityInTree: Boolean): DisplayArea {
22 if (proto == null) {
26 /* proto */ proto.windowContainer,
27 /* protoChildren */ proto.windowContainer.children.reverse(),
29 /* nameOverride */ proto.name
32 const entry = new DisplayArea(proto.isTaskDisplayArea, windowContainer);
34 addAttributes(entry, proto);
40 function addAttributes(entry: DisplayArea, proto: any) {
41 entry.proto = proto;
DWindowToken.ts21 WindowToken.fromProto = function (proto: any, isActivityInTree: Boolean): WindowToken {
22 if (proto == null) {
27 /* proto */ proto.windowContainer,
28 /* protoChildren */ proto.windowContainer.children.reverse(),
32 /* tokenOverride */ proto.hashCode
36 entry.proto = proto;
/development/tools/winscope/src/flickerlib/
DWindowManagerState.ts26 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,
[all …]
Dmixin.ts38 if (obj.proto) delete obj.proto
40 obj.proto = Object.assign({}, entry.proto)
41 if (obj.proto.children) delete obj.proto.children
42 if (obj.proto.childWindows) delete obj.proto.childWindows
43 if (obj.proto.childrenWindows) delete obj.proto.childrenWindows
44 if (obj.proto.childContainers) delete obj.proto.childContainers
45 if (obj.proto.windowToken) delete obj.proto.windowToken
46 if (obj.proto.rootDisplayArea) delete obj.proto.rootDisplayArea
47 if (obj.proto.rootWindowContainer) delete obj.proto.rootWindowContainer
48 if (obj.proto.windowContainer?.children) delete obj.proto.windowContainer.children
Dcommon.js102 function toSize(proto) { argument
103 if (proto == null) {
106 const width = proto.width ?? proto.w ?? 0;
107 const height = proto.height ?? proto.h ?? 0;
114 function toBuffer(proto) { argument
115 const width = proto?.width ?? 0;
116 const height = proto?.height ?? 0;
117 const stride = proto?.stride ?? 0;
118 const format = proto?.format ?? 0;
126 function toColor(proto) { argument
[all …]
DWindowManagerTrace.ts20 WindowManagerTrace.fromProto = function (proto: any) {
22 for (const entryProto of proto.entry) {
34 WindowManagerTrace.fromDump = function(proto: any): WindowManagerTrace {
35 return WindowManagerState.fromProto(proto);
DErrorTrace.ts20 ErrorTrace.fromProto = function (proto: any) {
22 for (const stateProto of proto.states) {
DTagTrace.ts20 TagTrace.fromProto = function (proto: any): TagTrace {
22 for (const stateProto of proto.states) {
DLayersTrace.ts20 LayersTrace.fromProto = function (proto: any): LayersTrace {
22 for (const entryProto of proto.entry) {
/development/tools/winscope/src/flickerlib/layers/
DLayer.ts23 Layer.fromProto = function (proto: any): Layer {
24 const visibleRegion = toRegion(proto.visibleRegion)
25 const activeBuffer = toBuffer(proto.activeBuffer)
26 const bounds = toRectF(proto.bounds)
27 const color = toColor(proto.color)
28 const screenBounds = toRectF(proto.screenBounds)
29 const sourceBounds = toRectF(proto.sourceBounds)
30 const transform = Transform.fromProto(proto.transform, proto.position)
31 const bufferTransform = Transform.fromProto(proto.bufferTransform, /* position */ null)
32 const hwcCrop = toRectF(proto.hwcCrop)
[all …]
DLayerTraceEntry.ts48 entry.proto = entryIds;
68 function newDisplay(proto: any): Display {
70 proto.id,
71 proto.name,
72 proto.layerStack,
73 toSize(proto.size),
74 toRect(proto.layerStackSpaceRect),
75 toTransform(proto.transform)
/development/tools/winscope/src/flickerlib/errors/
DError.ts20 Error.fromProto = function (proto: any): Error {
22 proto.stacktrace,
23 proto.message,
24 proto.layerId,
25 proto.windowToken,
26 proto.taskId
/development/tools/winscope/src/flickerlib/tags/
DTag.ts35 Tag.fromProto = function (proto: any): Tag {
37 proto.id,
38 transitionTypeMap.get(proto.transition),
39 proto.isStartTag,
40 proto.layerId,
41 proto.windowToken,
42 proto.taskId
/development/host/windows/usb/api/
Dadb_api_private_defines.h38 AdbInstanceEnumEntry(const AdbInstanceEnumEntry& proto) { in AdbInstanceEnumEntry() argument
39 Set(proto.device_name().c_str(), proto.class_id(), proto.flags()); in AdbInstanceEnumEntry()
54 AdbInstanceEnumEntry& operator=(const AdbInstanceEnumEntry& proto) {
55 Set(proto.device_name().c_str(), proto.class_id(), proto.flags());
/development/tools/winscope/src/dumps/
DSurfaceFlinger.ts36 static fromProto(proto: any): LayersTrace {
39 /* protos */ proto.layers,
40 /* displays */ proto.displays,
DWindowManager.ts35 static fromProto(proto: any): WindowManagerTrace {
37 const state = WindowManagerTrace.fromDump(proto);
/development/vndk/tools/header-checker/src/repr/protobuf/proto/
DAndroid.bp22 name: "libheader-checker-proto",
27 "abi_dump.proto",
28 "abi_diff.proto",
31 proto: {
/development/tools/winscope/src/traces/
DTraceError.ts34 static fromProto(proto: any): ErrorTrace {
35 return ErrorTrace.fromProto(proto);
DTraceTag.ts34 static fromProto(proto: any): TagTrace {
35 return TagTrace.fromProto(proto);

12