1/* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"), 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * The class of an process running information. 18 * 19 * @since 8 20 * @syscap SystemCapability.Ability.AbilityRuntime.Mission 21 * @permission N/A 22 * @deprecated since 9 23 * @useinstead ProcessInformation 24 */ 25export interface ProcessRunningInfo { 26 /** 27 * @default process id 28 * @since 8 29 * @syscap SystemCapability.Ability.AbilityRuntime.Mission 30 * @deprecated since 9 31 * @useinstead ProcessInformation.pid 32 */ 33 pid: number; 34 35 /** 36 * @default user id 37 * @since 8 38 * @syscap SystemCapability.Ability.AbilityRuntime.Mission 39 * @deprecated since 9 40 * @useinstead ProcessInformation.uid 41 */ 42 uid: number; 43 44 /** 45 * @default the name of the process 46 * @since 8 47 * @syscap SystemCapability.Ability.AbilityRuntime.Mission 48 * @deprecated since 9 49 * @useinstead ProcessInformation.processName 50 */ 51 processName: string; 52 53 /** 54 * @default an array of the bundleNames running in the process 55 * @since 8 56 * @syscap SystemCapability.Ability.AbilityRuntime.Mission 57 * @deprecated since 9 58 * @useinstead ProcessInformation.bundleNames 59 */ 60 bundleNames: Array<string>; 61}