• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2024 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
16package OHOS.testserver;
17import Types;
18
19sequenceable SessionToken..OHOS.testserver.SessionToken;
20sequenceable CommonEventData..OHOS.EventFwk.CommonEventData;
21interface OHOS.testserver.ITestServerInterface {
22    void CreateSession([in] SessionToken sessionToken);
23    void SetPasteData([in] String text);
24    void ChangeWindowMode([in] int windowId, [in] unsigned int mode);
25    void TerminateWindow([in] int windowId);
26    void MinimizeWindow([in] int windowId);
27    void PublishCommonEvent([in] CommonEventData event, [out] boolean re);
28    void FrequencyLock();
29    void SpDaemonProcess([in] int daemonCommand, [in] String extraInfo);
30    void CollectProcessMemory([in] int pid, [out] ProcessMemoryInfo processMemoryInfo);
31    void CollectProcessCpu([in] int pid, [in] boolean isNeedUpdate, [out] ProcessCpuInfo processCpuInfo);
32}
33