Lines Matching refs:state

64   state: {  property
81 collapsedStateStoreFor: (state) => (item) => {
87 return state.collapsedStateStore[stableIdCompatibilityFixup(item)];
89 files(state) {
90 return Object.values(state.traces).concat(Object.values(state.dumps));
92 sortedFiles(state, getters) {
95 timelineFiles(state, getters) {
96 return Object.values(state.traces)
97 .filter(file => !state.excludeFromTimeline.includes(file.type));
99 tagFiles(state, getters) {
100 return Object.values(state.traces)
103 errorFiles(state, getters) {
104 return Object.values(state.traces)
107 sortedTimelineFiles(state, getters) {
110 video(state) {
111 return state.traces[TRACE_TYPES.SCREEN_RECORDING];
113 tagGenerationWmTrace(state, getters) {
114 return state.traces[TRACE_TYPES.WINDOW_MANAGER].tagGenerationTrace;
116 tagGenerationSfTrace(state, getters) {
117 return state.traces[TRACE_TYPES.SURFACE_FLINGER].tagGenerationTrace;
121 setCurrentTimestamp(state, timestamp) { argument
122 state.currentTimestamp = timestamp;
124 setFileEntryIndex(state, { type, entryIndex }) { argument
125 if (state.traces[type]) {
126 state.traces[type].selectedIndex = entryIndex;
131 setFiles(state, files) { argument
172 state.traces = traces;
206 state.dumps = dumps;
208 if (!state.activeFile && Object.keys(traces).length > 0) {
209 state.activeFile = sortFiles(Object.values(traces))[0];
214 clearFiles(state) { argument
215 for (const traceType in state.traces) {
216 if (state.traces.hasOwnProperty(traceType)) {
217 Vue.delete(state.traces, traceType);
221 for (const dumpType in state.dumps) {
222 if (state.dumps.hasOwnProperty(dumpType)) {
223 Vue.delete(state.dumps, dumpType);
227 state.activeFile = null;
228 state.mergedTimeline = null;
230 setActiveFile(state, file) { argument
231 state.activeFile = file;
233 setMergedTimeline(state, timeline) { argument
234 state.mergedTimeline = timeline;
236 removeMergedTimeline(state, timeline) { argument
237 state.mergedTimeline = null;
239 setMergedTimelineIndex(state, newIndex) { argument
240 state.mergedTimeline.selectedIndex = newIndex;
242 setCollapsedState(state, { item, isCollapsed }) { argument
248 state.collapsedStateStore,
253 setFocusedFile(state, file) { argument
254 state.focusedFile = file;
256 setNavigationFilesFilter(state, filter) { argument
257 state.navigationFilesFilter = filter;
284 if (context.state.mergedTimeline) {
286 context.state.mergedTimeline.timeline,
305 .filter(context.state.navigationFilesFilter);
320 candidateCondition = () => candidateTimestamp < context.state.currentTimestamp;
323 candidateCondition = () => candidateTimestamp > context.state.currentTimestamp;
344 const timeDiff = Math.abs(candidateTimestamp - context.state.currentTimestamp);