Home
last modified time | relevance | path

Searched refs:LowEnergyScanner (Results 1 – 5 of 5) sorted by relevance

/system/bt/service/
Dlow_energy_scanner.cc69 LowEnergyScanner::LowEnergyScanner(Adapter& adapter, const Uuid& uuid, in LowEnergyScanner() function in bluetooth::LowEnergyScanner
77 LowEnergyScanner::~LowEnergyScanner() { in ~LowEnergyScanner()
91 void LowEnergyScanner::SetDelegate(Delegate* delegate) { in SetDelegate()
96 bool LowEnergyScanner::StartScan(const ScanSettings& settings, in StartScan()
118 bool LowEnergyScanner::StopScan() { in StopScan()
135 const Uuid& LowEnergyScanner::GetAppIdentifier() const { in GetAppIdentifier()
139 int LowEnergyScanner::GetInstanceId() const { return scanner_id_; } in GetInstanceId()
141 void LowEnergyScanner::ScanResultCallback( in ScanResultCallback()
211 std::unique_ptr<LowEnergyScanner> scanner; in RegisterScannerCallback()
214 scanner.reset(new LowEnergyScanner(adapter_, uuid, scanner_id)); in RegisterScannerCallback()
Dlow_energy_scanner.h43 class LowEnergyScanner : private hal::BluetoothGattInterface::ScannerObserver,
55 virtual void OnScanResult(LowEnergyScanner* client,
64 ~LowEnergyScanner() override;
96 LowEnergyScanner(Adapter& adapter, const Uuid& uuid, int scanner_id);
123 DISALLOW_COPY_AND_ASSIGN(LowEnergyScanner);
144 friend class LowEnergyScanner;
/system/bt/service/ipc/binder/
Dbluetooth_le_scanner_binder_server.cc105 bluetooth::LowEnergyScanner* scanner, const bluetooth::ScanResult& result) { in OnScanResult()
126 std::shared_ptr<bluetooth::LowEnergyScanner>
128 return std::static_pointer_cast<bluetooth::LowEnergyScanner>( in GetLEScanner()
136 bluetooth::LowEnergyScanner* le_scanner = in OnRegisterInstanceImpl()
137 static_cast<bluetooth::LowEnergyScanner*>(instance); in OnRegisterInstanceImpl()
Dbluetooth_le_scanner_binder_server.h47 public bluetooth::LowEnergyScanner::Delegate {
64 void OnScanResult(bluetooth::LowEnergyScanner* scanner,
74 std::shared_ptr<bluetooth::LowEnergyScanner> GetLEScanner(int scanner_id);
/system/bt/service/test/
Dlow_energy_scanner_unittest.cc86 class TestDelegate : public LowEnergyScanner::Delegate {
95 void OnScanResult(LowEnergyScanner* scanner, in OnScanResult()
147 auto callback = [&](std::unique_ptr<LowEnergyScanner> scanner) { in SetUp()
160 const std::function<void(std::unique_ptr<LowEnergyScanner> scanner)> in RegisterTestScanner()
169 callback(std::unique_ptr<LowEnergyScanner>( in RegisterTestScanner()
170 static_cast<LowEnergyScanner*>(in_scanner.release()))); in RegisterTestScanner()
185 std::unique_ptr<LowEnergyScanner> le_scanner_;
203 std::unique_ptr<LowEnergyScanner> scanner; in TEST_F()
210 scanner = std::unique_ptr<LowEnergyScanner>( in TEST_F()
211 static_cast<LowEnergyScanner*>(in_scanner.release())); in TEST_F()