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
16 #include "test_tt_ability.h"
17
18 #include "iremote_object.h"
19 #include "system_ability_definition.h"
20
21 using namespace OHOS;
22
23 REGISTER_SYSTEM_ABILITY_BY_ID(TestTtAbility, DISTRIBUTED_SCHED_TEST_TT_ID, true);
24
TestTtAbility(int32_t saId,bool runOnCreate)25 TestTtAbility::TestTtAbility(int32_t saId, bool runOnCreate) : SystemAbility(saId, runOnCreate)
26 {
27 }
28
~TestTtAbility()29 TestTtAbility::~TestTtAbility()
30 {
31 }
32
AddVolume(int volume)33 int TestTtAbility::AddVolume(int volume)
34 {
35 return (volume + 1);
36 }
37
OnStart()38 void TestTtAbility::OnStart()
39 {
40 Publish(this);
41 }
42
OnStop()43 void TestTtAbility::OnStop()
44 {
45 }