diff --git a/api/@ohos.process.d.ts b/api/@ohos.process.d.ts index b3305c41fe84ba32b6ba5d4ffb05eec4d4df3ac1..bff59be60eeaaaa17d6d367ce1d884cca23b7114 100644 --- a/api/@ohos.process.d.ts +++ b/api/@ohos.process.d.ts @@ -153,90 +153,6 @@ declare namespace process { */ readonly getPpid: number; - /** - * Returns the tid of the current thread. - * @since 7 - * @sysCap SystemCapability.CCRuntime - * @return return the tid of the current thread. - */ - function getTid(): number; - - /** - * Returns a boolean whether the process is isolated. - * @since 7 - * @sysCap SystemCapability.CCRuntime - * @return return boolean whether the process is isolated. - */ - function isIsolatedProcess(): boolean; - - /** - * Returns a boolean whether the specified uid belongs to a particular application. - * @since 7 - * @sysCap SystemCapability.CCRuntime - * @param v An id. - * @return return a boolean whether the specified uid belongs to a particular application. - */ - function isAppUid(v: number): boolean; - - /** - * Returns a boolean whether the process is running in a 64-bit environment. - * @since 7 - * @sysCap SystemCapability.CCRuntime - * @return return a boolean whether the process is running in a 64-bit environment. - */ - function is64Bit(): boolean; - - /** - * Returns the uid based on the specified user name. - * @since 7 - * @sysCap SystemCapability.CCRuntime - * @param v Process name. - * @return return the uid based on the specified user name. - */ - function getUidForName(v: string): number; - - /** - * Returns the thread priority based on the specified tid. - * @since 7 - * @sysCap SystemCapability.CCRuntime - * @param v The tid of the process. - * @return Return the thread priority based on the specified tid. - */ - function getThreadPriority(v: number): number; - - /** - * Returns the elapsed real time (in milliseconds) taken from the start of the system to the start of the process. - * @since 7 - * @sysCap SystemCapability.CCRuntime - * @return Return the start of the system to the start of the process. - */ - function getStartRealtime(): number; - - /** - * Returns cpu cores available for the current process on a multi-core device. - * @since 7 - * @sysCap SystemCapability.CCRuntime - * @return Return cpu cores available for the current process on a multi-core device. - */ - function getAvailableCores​(): number[]; - - /** - * Returns the cpu time (in milliseconds) from the time when the process starts to the current time. - * @since 7 - * @sysCap SystemCapability.CCRuntime - * @return Return the cpu time (in milliseconds) from the time when the process starts to the current time. - */ - function getPastCpuTime(): number; - - /** - * Returns the system configuration at runtime. - * @since 7 - * @sysCap SystemCapability.CCRuntime - * @param name Parameters defined by the system configuration. - * @return Return the system configuration at runtime. - */ - function getSystemConfig(name: number): number; - type EventListener = (evt: Object) => void; /** * Return a child process object and spawns a new ChildProcess to run the command diff --git a/api/@ohos.util.d.ts b/api/@ohos.util.d.ts index 04ea18e76bbb86ba1e394bed6fa030d895c9e818..9841a835ce7312e8322fad272473b0aeffcedff3 100644 --- a/api/@ohos.util.d.ts +++ b/api/@ohos.util.d.ts @@ -108,10 +108,6 @@ declare namespace util { options?: { fatal?: boolean; ignoreBOM?: boolean }, ); - constructor( - encoding?: string, - options?: { fatal?: boolean; ignoreBOM?: boolean }, - ); /** * Returns the result of running encoding's decoder. * @since 7