Bug fixes for 233012255 and 232995024

Refactor bluetooth_adapter setname and getname to remove logic errors, array overruns, and leaking memory.
Refactor bluetooth discovery callbacks to prevent getting updates before we have cached the device found.
Refactor the dart code interfaces to more closely align between the dll and the dart UI, and move from using the device name (which can be easily duplicated) as the primary key to using endpoint_id as the primary key for all calls into the dll.

PiperOrigin-RevId: 451248048
This commit is contained in:
jfcarroll
2022-05-26 14:46:08 -07:00
committed by Copybara-Service
parent 8867721271
commit 8765e5bc83
12 changed files with 140 additions and 95 deletions
@@ -29,7 +29,7 @@ namespace api {
class InputFile : public InputStream {
public:
~InputFile() override = default;
virtual std::string GetFilePath() const = 0;
virtual std::string_view GetFilePath() const = 0;
virtual std::int64_t GetTotalSize() const = 0;
};