Home
last modified time | relevance | path

Searched refs:EnergyStateStruct (Results 1 – 6 of 6) sorted by relevance

/developtools/smartperf_host/ide/test/trace/database/ui-worker/
DProcedureWorkerEnergyState.test.ts18 EnergyStateStruct,
93 expect(EnergyStateStruct.draw(ctx, data)).toBeUndefined();
97 expect(EnergyStateStruct.setDrawColor('BRIGHTNESS_NIT')).toBe('#92D6CC');
101 expect(EnergyStateStruct.setDrawColor('SIGNAL_LEVEL')).toBe('#61CFBE');
105 expect(EnergyStateStruct.setDrawColor('WIFI_EVENT_RECEIVED')).toBe('#46B1E3');
109 expect(EnergyStateStruct.setDrawColor('AUDIO_STREAM_CHANGE')).toBe('#ED6F21');
113 expect(EnergyStateStruct.setDrawColor('WIFI_STATE')).toBe('#61CFBE');
117 expect(EnergyStateStruct.setDrawColor('LOCATION_SWITCH_STATE')).toBe('#61CFBE');
121 expect(EnergyStateStruct.setDrawColor('SENSOR_STATE')).toBe('#61CFBE');
125 expect(EnergyStateStruct.setDrawColor('aaaa')).toBe('#61CFBE');
[all …]
/developtools/smartperf_host/ide/src/trace/database/ui-worker/
DProcedureWorkerEnergyState.ts28 row: TraceRow<EnergyStateStruct>
46 EnergyStateStruct.draw(req.context, re, req.maxState, req.maxStateName);
48 EnergyStateStruct.hoverEnergyStateStruct = re;
53 EnergyStateStruct.hoverEnergyStateStruct = undefined;
70 stateList: Array<EnergyStateStruct>,
71 res: Array<EnergyStateStruct>,
87 EnergyStateStruct.setStateFrame(res[i], 5, startNS, endNS, totalNS, frame);
96 stateList: Array<EnergyStateStruct>,
101 res: Array<EnergyStateStruct>
111 EnergyStateStruct.setStateFrame(stateList[index], 5, startNS, endNS, totalNS, frame);
[all …]
/developtools/smartperf_host/ide/src/trace/database/data-trafic/
DEnergySysEventSender.ts22 import { EnergyStateStruct } from '../ui-worker/ProcedureWorkerEnergyState';
116 row: TraceRow<EnergyStateStruct>
117 ): Promise<EnergyStateStruct[]> {
204 function stateArrayBufferHandler(buffers: unknown, len: number): EnergyStateStruct[] {
205 let outArr: EnergyStateStruct[] = [];
217 } as unknown as EnergyStateStruct);
/developtools/smartperf_host/ide/src/trace/component/chart/
DSpHiSysEnergyChart.ts23 import { EnergyStateStruct, EnergyStateRender } from '../../database/ui-worker/ProcedureWorkerEnerg…
282 stateTraceRow.supplierFrame = async (): Promise<EnergyStateStruct[]> => {
343 private initStatChartRow(index: number): TraceRow<EnergyStateStruct> {
344 let stateTraceRow = TraceRow.skeleton<EnergyStateStruct>();
357 if (EnergyStateStruct.hoverEnergyStateStruct?.type!.toLocaleLowerCase().includes('state')) {
359 EnergyStateStruct.hoverEnergyStateStruct?.value === 1 ? 'disable' : 'enable'
361 …if (EnergyStateStruct.hoverEnergyStateStruct?.type!.toLocaleLowerCase().endsWith('br_switch_state'…
362 …tip = `<span>${SpHiSysEnergyChart.getBlueToothState(EnergyStateStruct.hoverEnergyStateStruct?.valu…
365 … tip = `<span>value: ${EnergyStateStruct.hoverEnergyStateStruct?.value?.toFixed(2) || 0}</span>`;
367 this.trace?.displayTip(stateTraceRow, EnergyStateStruct.hoverEnergyStateStruct, tip);
/developtools/smartperf_host/ide/test/trace/database/data-trafic/
DEnergySysEventSender.test.ts27 import { EnergyStateStruct } from '../../../../src/trace/database/ui-worker/ProcedureWorkerEnergySt…
109 let stateTraceRow = TraceRow.skeleton<EnergyStateStruct>();
/developtools/smartperf_host/ide/src/trace/database/sql/
DSqlLite.sql.ts21 import { EnergyStateStruct } from '../ui-worker/ProcedureWorkerEnergyState';
836 export const queryStateData = (eventName: string): Promise<Array<EnergyStateStruct>> =>
916 …st queryStateInitValue = (eventName: string, keyName: string): Promise<Array<EnergyStateStruct>> =>