Home
last modified time | relevance | path

Searched refs:valueNs (Results 1 – 9 of 9) sorted by relevance

/development/tools/winscope/src/common/
Dutc_offset.ts20 private valueNs: bigint | undefined; property in UTCOffset
23 return this.valueNs;
27 if (this.valueNs === undefined) {
30 const valueHours = Number(this.valueNs / BigInt(TIME_UNIT_TO_NANO.m)) / 60;
35 return `UTC${this.valueNs < 0 ? '-' : '+'}${timeDiff}`;
38 initialize(valueNs: bigint) {
39 if (valueNs > BigInt(14 * TIME_UNIT_TO_NANO.h)) {
43 if (valueNs < BigInt(-12 * TIME_UNIT_TO_NANO.h)) {
47 this.valueNs = valueNs;
51 this.valueNs = undefined;
Dtimestamp_converter.ts68 makeTimestampFromRealNs(valueNs: bigint): Timestamp;
69 makeTimestampFromMonotonicNs(valueNs: bigint): Timestamp;
70 makeTimestampFromBootTimeNs(valueNs: bigint): Timestamp;
77 makeTimestampFromNs(valueNs: bigint): Timestamp;
82 makeTimestampFromBootTimeNs(valueNs: bigint): Timestamp;
83 makeTimestampFromRealNs(valueNs: bigint): Timestamp;
140 makeTimestampFromMonotonicNs(valueNs: bigint): Timestamp {
142 return this.makeRealTimestamp(valueNs + this.realToMonotonicTimeOffsetNs);
144 return this.makeElapsedTimestamp(valueNs);
147 makeTimestampFromBootTimeNs(valueNs: bigint): Timestamp {
[all …]
Dtime.ts42 constructor(valueNs: bigint, formatter: TimestampFormatter) {
43 this.utcValueNs = valueNs;
/development/tools/winscope/src/test/unit/
Dtimestamp_converter_utils.ts53 makeRealTimestamp(valueNs: bigint): Timestamp {
54 return this.TIMESTAMP_CONVERTER.makeTimestampFromRealNs(valueNs);
57 makeRealTimestampWithUTCOffset(valueNs: bigint): Timestamp {
59 valueNs,
63 makeElapsedTimestamp(valueNs: bigint): Timestamp {
65 valueNs,
/development/tools/winscope/src/parsers/operations/
Dtransform_to_timestamp_test.ts69 function makeRealTimestampStrategy(valueNs: bigint) {
70 return TimestampConverterUtils.makeRealTimestamp(valueNs);
73 function makeElapsedTimestampStrategy(valueNs: bigint) {
74 return TimestampConverterUtils.makeElapsedTimestamp(valueNs);
Dtransform_to_timestamp.ts22 export type MakeTimestampStrategyType = (valueNs: bigint) => Timestamp;
/development/tools/winscope/src/parsers/protolog/
Dparser_protolog_utils.ts43 const strategy: MakeTimestampStrategyType = (valueNs: bigint) => {
45 return timestampConverter.makeTimestampFromMonotonicNs(valueNs);
47 return timestampConverter.makeTimestampFromBootTimeNs(valueNs);
/development/tools/winscope/src/app/components/timeline/mini-timeline/
Dtransformer.ts53 const valueNs = constant
56 return this.timestampConverter.makeTimestampFromNs(valueNs);
/development/tools/winscope/src/parsers/transitions/
Dparser_transitions_utils.ts224 return (valueNs: bigint) => {
225 return timestampConverter.makeTimestampFromBootTimeNs(valueNs);