Home
last modified time | relevance | path

Searched refs:slice (Results 1 – 25 of 86) sorted by relevance

1234

/development/tools/winscope/src/trace/
Dtrace_test.ts99 const slice = trace.sliceEntries(1, -1); constant
100 expect(await slice.findClosestEntry(time9)?.getValue()).toEqual('entry-1');
101 expect(await slice.findClosestEntry(time10)?.getValue()).toEqual('entry-1');
102 expect(await slice.findClosestEntry(time11)?.getValue()).toEqual('entry-1');
103 expect(await slice.findClosestEntry(time12)?.getValue()).toEqual('entry-3');
104 expect(await slice.findClosestEntry(time13)?.getValue()).toEqual('entry-3');
105 expect(await slice.findClosestEntry(time14)?.getValue()).toEqual('entry-3');
123 const slice = trace.sliceEntries(1, -1); constant
124 expect(await slice.findFirstGreaterOrEqualEntry(time9)?.getValue()).toEqual(
128 await slice.findFirstGreaterOrEqualEntry(time10)?.getValue(),
[all …]
Dtraces_test.ts201 const slice = traces.sliceTime(time3, time3); constant
202 expect(await TracesUtils.extractEntries(slice)).toEqual(
208 const slice = traces.sliceTime(); constant
209 expect(await TracesUtils.extractEntries(slice)).toEqual(
215 const slice = traces.sliceTime(time4, time8); constant
216 expect(await TracesUtils.extractEntries(slice)).toEqual(
225 const slice = traces.sliceTime(time8); constant
226 expect(await TracesUtils.extractEntries(slice)).toEqual(
235 const slice = traces.sliceTime(undefined, time8); constant
236 expect(await TracesUtils.extractEntries(slice)).toEqual(
[all …]
Dtraces.ts69 const slice = new Traces(); constant
71 slice.addTrace(trace.sliceTime(start, end));
73 return slice;
77 const slice = new Traces(); constant
79 slice.addTrace(trace.sliceFrames(start, end));
81 return slice;
/development/tools/winscope/src/trace_collection/wdp/
Dsync_stream.ts58 this.cmdOut.append(data.slice(0, offset));
59 data = data.slice(offset);
71 const startId = byteArrayToString(data.slice(0, 4));
72 const chunkLength = this.getChunkLength(data.slice(4, 8));
86 data = data.slice(8);
90 data.slice(data.length - 8, data.length - 4),
94 this.cmdOut.append(data.slice(0, chunkLength));
95 this.onData(data.slice(chunkLength));
102 data = data.slice(0, data.length - 8);
Dsync_stream_test.ts108 const fileData1 = testFileData.slice(0, 3);
109 const fileData2 = testFileData.slice(3);
122 const fileData1 = testFileData.slice(0, 3);
123 const fileData2 = testFileData.slice(3, 5);
124 const fileData3 = testFileData.slice(5);
138 const fileData1 = testFileData.slice(0, 3);
139 const fileData2 = testFileData.slice(3);
150 const fileData1 = testFileData.slice(0, 3);
151 const fileData2 = testFileData.slice(3);
164 const fileData1 = testFileData.slice(0, 3);
[all …]
/development/samples/InlineFillService/src/com/example/android/inlinefillservice/
DInlineRequestHelper.java20 import android.app.slice.Slice;
62 final Slice slice = createSlice("Tap to auth response", null, null, null, attribution); in maybeCreateInlineAuthenticationResponse() local
64 return new InlinePresentation(slice, spec, false); in maybeCreateInlineAuthenticationResponse()
71 final Slice slice = createSlice(value, null, null, null, attribution); in createInlineDataset() local
74 return new InlinePresentation(slice, spec, false); in createInlineDataset()
99 final Slice slice = createSlice(null, null, icon, null, attribution); in createInlineAction() local
103 return new InlinePresentation(slice, spec, true); in createInlineAction()
/development/tools/winscope/src/trace_collection/adb/
Dadb_device_connection.ts134 screenRecordVersion = helpText.slice(
159 const parts = display.split(' ').slice(1);
165 .slice(displayNameStartIndex)
167 .slice(12);
170 .concat(parts.slice(0, displayNameStartIndex))
/development/tools/winscope/src/common/
Dfile_utils.ts47 return filename.slice(lastDot + 1);
59 return name.slice(startIndex);
74 return name.slice(0, lastIndex);
193 const bufferStart = new Uint8Array((await file.arrayBuffer()).slice(0, 2));
Durl_utils.ts25 return fullUrl.slice(0, posLastSlash + 1);
Dstring_utils.ts60 for (const token of tokensCapitalized.slice(1)) {
106 return word[0].toUpperCase() + word.slice(1);
/development/tools/winscope/src/common/time/
Dtimestamp_utils.ts68 return timestampHuman.slice(0, 10);
75 return timestampHuman.slice(12);
78 return timestampHuman.slice(11);
/development/tools/winscope/src/trace_collection/controller/
Dperfetto_session_moderator.ts159 let concurrentSessions = queryRes.slice(startIndex);
161 concurrentSessions = concurrentSessions.slice(
169 concurrentSessions = concurrentSessions.slice(0, endIndex);
/development/tools/winscope/src/parsers/screen_recording/
Dparser_screen_recording_legacy_test.ts52 expect(timestamps.slice(0, 3)).toEqual(expected);
59 expect(timestamps.slice(timestamps.length - 3, timestamps.length)).toEqual(
Dparser_screen_recording_test.ts56 expect(timestamps.slice(0, 3)).toEqual(expected);
109 expect(timestamps.slice(0, 3)).toEqual(expected);
/development/tools/winscope/src/parsers/legacy/
Dparsing_utils.ts27 traceBuffer.slice(0, magicNumber.length),
/development/tools/winscope/src/viewers/viewer_view_capture/operations/
Dsimplify_names.ts26 node.setDisplayName(node.name.split('.').slice(-1)[0]);
/development/tools/winscope/src/parsers/events/
Dparser_eventlog.ts88 return splitLogs.slice(firstIndexOfEventLogTrace);
90 return splitLogs.slice(firstIndexOfEventLogTrace, lastIndexOfEventLogTrace);
/development/tools/winscope/src/viewers/common/operations/
Dsimplify_names.ts31 const className = classParts.slice(-1)[0]; // last element
/development/tools/winscope/src/parsers/transactions/legacy/
Dparser_transactions_test.ts58 expect(timestamps.slice(0, 3)).toEqual(expected);
146 expect(timestamps.slice(0, 3)).toEqual(expected);
/development/tools/winscope/src/parsers/window_manager/legacy/
Dparser_window_manager_test.ts60 expect(assertDefined(parser.getTimestamps()).slice(0, 3)).toEqual(
128 expect(parser.getTimestamps()?.slice(0, 3)).toEqual(expected);
/development/tools/winscope/src/viewers/viewer_surface_flinger/
Dpresenter.ts456 name: parts.slice(1).join(' '),
508 const displayId = rect.id.slice(10, rect.id.length);
534 if (id.startsWith('Display')) return id.split('-').slice(1).join('-').trim();
535 const idMinusStartLayerId = id.split(' ').slice(1).join(' ');
538 .slice(0, idSplittingEndLayerId.length - 1)
/development/tools/winscope/src/viewers/viewer_window_manager/
Dpresenter.ts208 const displayName = rect.label.slice(10, rect.label.length);
221 return parts.slice(2).join(' ');
/development/tools/winscope/src/viewers/viewer_search/
Dsearch_list_component.ts132 return time.toTimeString().slice(0, 5) + '\n' + time.toLocaleDateString();
/development/tools/winscope/src/parsers/input_method/perfetto/
Dparser_input_method_manager_service_test.ts56 expect(assertDefined(parser.getTimestamps()).slice(0, 3)).toEqual(expected);
Dparser_input_method_service_test.ts54 expect(assertDefined(parser.getTimestamps()).slice(0, 3)).toEqual(expected);

1234