blob: 7475af412b5484831791a86f7da782fc12277296 [file] [log] [blame]
Girish1484e5d2023-11-20 06:00:44 +00001/*
2**
3** Copyright 2023, The Android Open Source Project
4**
5** Licensed under the Apache License, Version 2.0 (the "License");
6** you may not use this file except in compliance with the License.
7** You may obtain a copy of the License at
8**
9** http://www.apache.org/licenses/LICENSE-2.0
10**
11** Unless required by applicable law or agreed to in writing, software
12** distributed under the License is distributed on an "AS IS" BASIS,
13** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14** See the License for the specific language governing permissions and
15** limitations under the License.
16*/
17
18//#define LOG_NDEBUG 0
19#define LOG_TAG "ResourceManagerServiceNew"
20#include <utils/Log.h>
21
22#include "ResourceManagerServiceNew.h"
23
24namespace android {
25
26ResourceManagerServiceNew::ResourceManagerServiceNew(
27 const sp<ProcessInfoInterface>& processInfo,
28 const sp<SystemCallbackInterface>& systemResource) :
29 ResourceManagerService(processInfo, systemResource) {}
30
31ResourceManagerServiceNew::~ResourceManagerServiceNew() {}
32
33Status ResourceManagerServiceNew::config(const std::vector<MediaResourcePolicyParcel>& policies) {
34 return ResourceManagerService::config(policies);
35}
36
37Status ResourceManagerServiceNew::addResource(
38 const ClientInfoParcel& clientInfo,
39 const std::shared_ptr<IResourceManagerClient>& client,
40 const std::vector<MediaResourceParcel>& resources) {
41 return ResourceManagerService::addResource(clientInfo, client, resources);
42}
43
44Status ResourceManagerServiceNew::removeResource(
45 const ClientInfoParcel& clientInfo,
46 const std::vector<MediaResourceParcel>& resources) {
47 return ResourceManagerService::removeResource(clientInfo, resources);
48}
49
50Status ResourceManagerServiceNew::removeClient(const ClientInfoParcel& clientInfo) {
51 return ResourceManagerService::removeClient(clientInfo);
52}
53
54Status ResourceManagerServiceNew::removeResource(const ClientInfoParcel& clientInfo,
55 bool checkValid) {
56 return ResourceManagerService::removeResource(clientInfo, checkValid);
57}
58
59Status ResourceManagerServiceNew::reclaimResource(
60 const ClientInfoParcel& clientInfo,
61 const std::vector<MediaResourceParcel>& resources,
62 bool* _aidl_return) {
63 return ResourceManagerService::reclaimResource(clientInfo, resources, _aidl_return);
64}
65
66Status ResourceManagerServiceNew::overridePid(int originalPid, int newPid) {
67 return ResourceManagerService::overridePid(originalPid, newPid);
68}
69
70Status ResourceManagerServiceNew::overrideProcessInfo(
71 const std::shared_ptr<IResourceManagerClient>& client,
72 int pid,
73 int procState,
74 int oomScore) {
75 return ResourceManagerService::overrideProcessInfo(client, pid, procState, oomScore);
76}
77
78Status ResourceManagerServiceNew::markClientForPendingRemoval(const ClientInfoParcel& clientInfo) {
79 return ResourceManagerService::markClientForPendingRemoval(clientInfo);
80}
81
82Status ResourceManagerServiceNew::reclaimResourcesFromClientsPendingRemoval(int32_t pid) {
83 return ResourceManagerService::reclaimResourcesFromClientsPendingRemoval(pid);
84}
85
86Status ResourceManagerServiceNew::notifyClientCreated(const ClientInfoParcel& clientInfo) {
87 return ResourceManagerService::notifyClientCreated(clientInfo);
88}
89
90Status ResourceManagerServiceNew::notifyClientStarted(const ClientConfigParcel& clientConfig) {
91 return ResourceManagerService::notifyClientStarted(clientConfig);
92}
93
94Status ResourceManagerServiceNew::notifyClientStopped(const ClientConfigParcel& clientConfig) {
95 return ResourceManagerService::notifyClientStopped(clientConfig);
96}
97
98Status ResourceManagerServiceNew::notifyClientConfigChanged(
99 const ClientConfigParcel& clientConfig) {
100 return ResourceManagerService::notifyClientConfigChanged(clientConfig);
101}
102
103binder_status_t ResourceManagerServiceNew::dump(int fd, const char** args, uint32_t numArgs) {
104 return ResourceManagerService::dump(fd, args, numArgs);
105}
106
107} // namespace android