1 /*
2 * Copyright 2024 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #include "TestHelper.h"
18
19 namespace aidl::google::hardware::power::impl::pixel {
20
makeMockConfig()21 ::android::perfmgr::AdpfConfig makeMockConfig() {
22 return ::android::perfmgr::AdpfConfig("REFRESH_60FPS", /* Name */
23 true, /* PID_On */
24 2.0, /* PID_Po */
25 1.0, /* PID_Pu */
26 0.0, /* PID_I */
27 200, /* PID_I_Init */
28 512, /* PID_I_High */
29 -30, /* PID_I_Low */
30 500.0, /* PID_Do */
31 0.0, /* PID_Du */
32 true, /* UclampMin_On */
33 162, /* UclampMin_Init */
34 480, /* UclampMin_High */
35 2, /* UclampMin_Low */
36 1, /* SamplingWindow_P */
37 0, /* SamplingWindow_I */
38 1, /* SamplingWindow_D */
39 166666660, /* ReportingRateLimitNs */
40 1.0, /* TargetTimeFactor */
41 15.0, /* StaleTimeFactor */
42 true, /* GpuBoost */
43 25000, /* GpuCapacityBoostMax */
44 0, /* GpuCapacityLoadUpHeadroom */
45 true, /* HeuristicBoost_On */
46 8, /* HBoostOnMissedCycles */
47 4.0, /* HBoostOffMaxAvgRatio */
48 5, /* HBoostOffMissedCycles */
49 0.5, /* HBoostPidPuFactor */
50 722, /* HBoostUclampMin */
51 1.2, /* JankCheckTimeFactor */
52 25, /* LowFrameRateThreshold */
53 300, /* MaxRecordsNum */
54 480, /* UclampMin_LoadUp */
55 480, /* UclampMin_LoadReset */
56 500, /* UclampMax_EfficientBase */
57 200); /* UclampMax_EfficientOffset */
58 }
59 } // namespace aidl::google::hardware::power::impl::pixel
60