• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 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 "btaa/activity_attribution.h"
18 
19 // TODO: Implement for Linux.
20 namespace bluetooth {
21 namespace activity_attribution {
22 
__anon1e196ba80102() 23 const ModuleFactory ActivityAttribution::Factory = ModuleFactory([]() { return new ActivityAttribution(); });
24 
25 struct ActivityAttribution::impl {
implbluetooth::activity_attribution::ActivityAttribution::impl26   impl(ActivityAttribution* module) {}
27 
on_hci_packetbluetooth::activity_attribution::ActivityAttribution::impl28   void on_hci_packet(hal::HciPacket packet, hal::SnoopLogger::PacketType type, uint16_t length) {}
29 
register_callbackbluetooth::activity_attribution::ActivityAttribution::impl30   void register_callback(ActivityAttributionCallback* callback) {}
31 };
32 
Capture(const hal::HciPacket & packet,hal::SnoopLogger::PacketType type)33 void ActivityAttribution::Capture(const hal::HciPacket& packet, hal::SnoopLogger::PacketType type) {}
34 
RegisterActivityAttributionCallback(ActivityAttributionCallback * callback)35 void ActivityAttribution::RegisterActivityAttributionCallback(ActivityAttributionCallback* callback) {}
36 
NotifyActivityAttributionInfo(int uid,const std::string & package_name,const std::string & device_address)37 void ActivityAttribution::NotifyActivityAttributionInfo(
38     int uid, const std::string& package_name, const std::string& device_address) {}
39 
ToString() const40 std::string ActivityAttribution::ToString() const {
41   return "Btaa Module";
42 }
43 
ListDependencies(ModuleList * list) const44 void ActivityAttribution::ListDependencies(ModuleList* list) const {}
45 
Start()46 void ActivityAttribution::Start() {}
47 
Stop()48 void ActivityAttribution::Stop() {}
49 
__anon1e196ba80202(DumpsysDataBuilder* dumpsys_data_builder) 50 DumpsysDataFinisher EmptyDumpsysDataFinisher = [](DumpsysDataBuilder* dumpsys_data_builder) {};
GetDumpsysData(flatbuffers::FlatBufferBuilder * builder) const51 DumpsysDataFinisher ActivityAttribution::GetDumpsysData(flatbuffers::FlatBufferBuilder* builder) const {
52   return EmptyDumpsysDataFinisher;
53 }
54 
55 }  // namespace activity_attribution
56 }  // namespace bluetooth
57