Skip to content

Commit 9636fa2

Browse files
Treehugger RobotAndroid (Google) Code Review
authored andcommitted
Merge "Add a private API to set mocking hint manager for testing" into main
2 parents 124d75e + ae83ef2 commit 9636fa2

2 files changed

Lines changed: 32 additions & 2 deletions

File tree

include/android/system_health.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,6 @@ __INTRODUCED_IN(36);
417417
* @param outMinIntervalMillis Non-null output pointer to a int64_t, which
418418
* will be set to the minimum polling interval in milliseconds.
419419
* @return 0 on success.
420-
* EPIPE if failed to get the minimum polling interval.
421420
* ENOTSUP if API is unsupported.
422421
*/
423422
int ASystemHealth_getCpuHeadroomMinIntervalMillis(int64_t* _Nonnull outMinIntervalMillis)
@@ -434,7 +433,6 @@ __INTRODUCED_IN(36);
434433
* @param outMinIntervalMillis Non-null output pointer to a int64_t, which
435434
* will be set to the minimum polling interval in milliseconds.
436435
* @return 0 on success.
437-
* EPIPE if failed to get the minimum polling interval.
438436
* ENOTSUP if API is unsupported.
439437
*/
440438
int ASystemHealth_getGpuHeadroomMinIntervalMillis(int64_t* _Nonnull outMinIntervalMillis)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (C) 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+
#ifndef ANDROID_PRIVATE_NATIVE_SYSTEM_HEALTH_H
18+
#define ANDROID_PRIVATE_NATIVE_SYSTEM_HEALTH_H
19+
20+
#include <stdint.h>
21+
22+
__BEGIN_DECLS
23+
24+
/**
25+
* For testing only.
26+
*/
27+
void ASystemHealth_setIHintManagerForTesting(void* iManager);
28+
29+
__END_DECLS
30+
31+
#endif // ANDROID_PRIVATE_NATIVE_SYSTEM_HEALTH_H
32+

0 commit comments

Comments
 (0)