decord/source/modules/device/DeviceState.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

37 lines
1.3 KiB
TypeScript

// Module ID: 7749
// Function ID: 7750
// Name: DeviceState
// Dependencies: [7750, 2, 7751]
// Exports: logDeviceState
// Module 7749 (DeviceState)
import set from "set" /* 2 */;
import _getDeviceState from "_getDeviceState" /* 7750 */;
import ThermalState from "ThermalState" /* 7751 */;
const result = set.fileFinishedImporting("modules/device/DeviceState.tsx");
export const DeviceState = ThermalState.DeviceState;
export const ThermalState = ThermalState.ThermalState;
export const getDeviceState = _getDeviceState.getDeviceState;
export const logDeviceState = function logDeviceState(thermalState) {
if (null !== thermalState) {
const logger2 = _getDeviceState.logger;
logger2.info("Device State Information:");
const logger3 = _getDeviceState.logger;
const _HermesInternal = HermesInternal;
logger3.info("- Thermal State: " + thermalState.thermalState);
const logger4 = _getDeviceState.logger;
const _HermesInternal2 = HermesInternal;
logger4.info("- Battery Level: " + 100 * thermalState.batteryLevel + "%");
const logger5 = _getDeviceState.logger;
let str6 = "Disabled";
if (thermalState.isLowPowerMode) {
str6 = "Enabled";
}
logger5.info(`- Low Power Mode: ${str6}`);
} else {
const logger = _getDeviceState.logger;
logger.info("Device state not available");
}
};