decord/source/modules/systrace/native/installSystrace.tsx

70 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 13324
// Function ID: 102248
2026-07-20 16:05:17 +00:00
// Name: resolveName
2026-07-23 10:11:24 +00:00
// Dependencies: [27, 477, 13325, 2]
2026-07-20 16:05:17 +00:00
// Exports: installSystrace
2026-07-23 10:11:24 +00:00
// Module 13324 (resolveName)
import { Systrace } from "get ActivityIndicator";
2026-07-20 16:05:17 +00:00
function resolveName(arg0) {
let tmp = arg0;
if ("string" !== typeof arg0) {
tmp = arg0();
}
return tmp;
}
2026-07-23 10:11:24 +00:00
const result = require("enforcing").fileFinishedImporting("modules/systrace/native/installSystrace.tsx");
2026-07-20 16:05:17 +00:00
export const installSystrace = function installSystrace() {
function getNativeModule(arg0) {
2026-07-23 10:11:24 +00:00
return getNativeModule(outer1_1[2]).default;
2026-07-20 16:05:17 +00:00
}
if (obj.isAndroid()) {
Systrace.isEnabled = () => {
let isEnabledResult;
const obj = getNativeModule();
if (null != obj) {
isEnabledResult = obj.isEnabled();
}
return null != isEnabledResult && isEnabledResult;
};
Systrace.beginEvent = (arg0) => {
const obj = getNativeModule();
if (null != obj) {
2026-07-23 10:11:24 +00:00
obj.beginEvent(outer1_3(arg0));
2026-07-20 16:05:17 +00:00
}
};
Systrace.endEvent = () => {
const obj = getNativeModule();
if (null != obj) {
obj.endEvent();
}
};
Systrace.beginAsyncEvent = (arg0) => {
const obj = getNativeModule();
let beginAsyncEventResult;
if (null != obj) {
2026-07-23 10:11:24 +00:00
beginAsyncEventResult = obj.beginAsyncEvent(outer1_3(arg0));
2026-07-20 16:05:17 +00:00
}
let num = 0;
if (null != beginAsyncEventResult) {
num = beginAsyncEventResult;
}
return num;
};
Systrace.endAsyncEvent = (arg0, arg1) => {
const obj = getNativeModule();
if (null != obj) {
2026-07-23 10:11:24 +00:00
obj.endAsyncEvent(outer1_3(arg0), arg1);
2026-07-20 16:05:17 +00:00
}
};
Systrace.counterEvent = (arg0, length) => {
const obj = getNativeModule();
if (null != obj) {
2026-07-23 10:11:24 +00:00
obj.counterEvent(outer1_3(arg0), length);
2026-07-20 16:05:17 +00:00
}
};
}
};