Home
last modified time | relevance | path

Searched refs:Device (Results 1 – 25 of 206) sorted by relevance

123456789

/packages/modules/Bluetooth/system/gd/storage/
Ddevice_test.cc30 using bluetooth::storage::Device;
38 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
43Device device(&config, &memory_only_config, address, Device::ConfigKeyAddressType::LEGACY_KEY_ADDR… in TEST()
50Device device2(&config, &memory_only_config, address2, Device::ConfigKeyAddressType::LEGACY_KEY_AD… in TEST()
56Device device3(&config, &memory_only_config, address3, Device::ConfigKeyAddressType::LEGACY_KEY_AD… in TEST()
63 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
68Device device(&config, &memory_only_config, address, Device::ConfigKeyAddressType::CLASSIC_ADDRESS… in TEST()
75Device device2(&config, &memory_only_config, address2, Device::ConfigKeyAddressType::CLASSIC_ADDRE… in TEST()
81Device device3(&config, &memory_only_config, address3, Device::ConfigKeyAddressType::CLASSIC_ADDRE… in TEST()
88 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
[all …]
Ddevice.cc40 …ConfigCache* config, const hci::Address& key_address, Device::ConfigKeyAddressType key_address_typ… in GetConfigSection()
46 case Device::ConfigKeyAddressType::LEGACY_KEY_ADDRESS: in GetConfigSection()
47 case Device::ConfigKeyAddressType::CLASSIC_ADDRESS: in GetConfigSection()
49 case Device::ConfigKeyAddressType::LE_IDENTITY_ADDRESS: in GetConfigSection()
56 case Device::ConfigKeyAddressType::LE_LEGACY_PSEUDO_ADDRESS: in GetConfigSection()
72 const std::unordered_set<std::string_view> Device::kLinkKeyProperties = {
75 Device::Device( in Device() function in bluetooth::storage::Device
80 : Device(config, memory_only_config, GetConfigSection(config, key_address, key_address_type)) {} in Device()
82 Device::Device(ConfigCache* config, ConfigCache* memory_only_config, std::string section) in Device() function in bluetooth::storage::Device
85 bool Device::Exists() { in Exists()
[all …]
Ddevice.h110 class Device {
114 Device(
119 Device(ConfigCache* config, ConfigCache* memory_only_config, std::string section);
122 Device(Device&& other) noexcept = default;
123 Device& operator=(Device&& other) noexcept = default;
126 Device(const Device& other) noexcept = default;
127 Device& operator=(const Device& other) noexcept = default;
130 bool operator==(const Device& other) const {
133 bool operator!=(const Device& other) const {
136 bool operator<(const Device& other) const {
[all …]
Dconfig_cache_test.cc40 using bluetooth::storage::Device;
44 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
52 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
63 ConfigCache config(2, Device::kLinkKeyProperties); in TEST()
72 ConfigCache config_1(2, Device::kLinkKeyProperties); in TEST()
77 ConfigCache config_2(2, Device::kLinkKeyProperties); in TEST()
95 ConfigCache config_3(3, Device::kLinkKeyProperties); in TEST()
103 ConfigCache config_4(2, Device::kLinkKeyProperties); in TEST()
106 ConfigCache config_5(2, Device::kLinkKeyProperties); in TEST()
109 ConfigCache config_6(3, Device::kLinkKeyProperties); in TEST()
[all …]
Dconfig_cache_helper_test.cc31 using bluetooth::storage::Device;
34 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
46 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
64 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
83 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
102 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
123 ConfigCache config(100, Device::kLinkKeyProperties); in TEST()
Dstorage_module.cc163 config.emplace(temp_devices_capacity_, Device::kLinkKeyProperties); in Start()
208 Device StorageModule::GetDeviceByLegacyKey(hci::Address legacy_key_address) { in GetDeviceByLegacyKey()
210 return Device( in GetDeviceByLegacyKey()
214 Device::ConfigKeyAddressType::LEGACY_KEY_ADDRESS); in GetDeviceByLegacyKey()
217 Device StorageModule::GetDeviceByClassicMacAddress(hci::Address classic_address) { in GetDeviceByClassicMacAddress()
219 return Device( in GetDeviceByClassicMacAddress()
223 Device::ConfigKeyAddressType::CLASSIC_ADDRESS); in GetDeviceByClassicMacAddress()
226 Device StorageModule::GetDeviceByLeIdentityAddress(hci::Address le_identity_address) { in GetDeviceByLeIdentityAddress()
228 return Device( in GetDeviceByLeIdentityAddress()
232 Device::ConfigKeyAddressType::LE_IDENTITY_ADDRESS); in GetDeviceByLeIdentityAddress()
[all …]
Dclassic_device_test.cc31 using bluetooth::storage::Device;
37 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
45 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
57 ConfigCache config(10, Device::kLinkKeyProperties); in TEST()
69 ConfigCache config1(10, Device::kLinkKeyProperties); in TEST()
70 ConfigCache config2(10, Device::kLinkKeyProperties); in TEST()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothClass.java153 public static class Device { class in BluetoothClass
258 return (mClass & Device.Major.BITMASK); in getMajorDeviceClass()
270 return (mClass & Device.BITMASK); in getDeviceClass()
322 case Device.AUDIO_VIDEO_HIFI_AUDIO: in doesClassMatch()
323 case Device.AUDIO_VIDEO_HEADPHONES: in doesClassMatch()
324 case Device.AUDIO_VIDEO_LOUDSPEAKER: in doesClassMatch()
325 case Device.AUDIO_VIDEO_CAR_AUDIO: in doesClassMatch()
338 case Device.AUDIO_VIDEO_HIFI_AUDIO: in doesClassMatch()
339 case Device.AUDIO_VIDEO_SET_TOP_BOX: in doesClassMatch()
340 case Device.AUDIO_VIDEO_VCR: in doesClassMatch()
[all …]
/packages/modules/DeviceLock/DeviceLockController/proto/
Dcheckin_service.proto30 // This service is used by the Device Lock Android client to facilitate device
31 // provisioning of an eligible device into a Device Lock locking program.
53 // The device identifiers associated with the device provided by the Device
54 // Lock Android client. The Device Lock Android client would provide only one
55 // device identifier once the Device Lock Check-in service determines which
58 // The Mobile Network Code for the carrier, the Device Lock Android client
62 // device provided by the Device Lock Android client. The token is only used
80 // The different check-in status the Device Lock Android client can be in.
83 // The device is not ready for provision. The Device Lock Android client
86 // The device is ready for provision. The Device Lock Android client can use
[all …]
Ddevice_checkin_info.proto24 // The different states a device that did a check-in with the Device Lock
36 // The device is in a country where Device Lock is not approved.
38 // Device identifiers provided by the client that are not registered
39 // on the Device Lock portal. The client provides a list of device identifiers
40 // and if one of them is found that is registered on the Device Lock portal,
45 // The different provisioning methods the Device Lock Android client can
Dfinalize_service.proto24 // A service for finalizing Device Lock program enrollment. For example:
28 // Reports that a device completed a Device Lock program.
33 // Request to report that a device completed a Device Lock program.
35 // The device identifier that is registered with the Device Lock server
36 // obtained from the Device Lock Check-in service.
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DA2dpDeviceCriteria.java30 return majorDeviceClass == BluetoothClass.Device.Major.AUDIO_VIDEO; in isMatchingMajorDeviceClass()
36 return (majorMinorClass == BluetoothClass.Device.AUDIO_VIDEO_UNCATEGORIZED || in isMatchingDeviceClass()
37 majorMinorClass == BluetoothClass.Device.AUDIO_VIDEO_WEARABLE_HEADSET || in isMatchingDeviceClass()
38 majorMinorClass == BluetoothClass.Device.AUDIO_VIDEO_HEADPHONES || in isMatchingDeviceClass()
39 majorMinorClass == BluetoothClass.Device.AUDIO_VIDEO_LOUDSPEAKER || in isMatchingDeviceClass()
40 majorMinorClass == BluetoothClass.Device.AUDIO_VIDEO_PORTABLE_AUDIO || in isMatchingDeviceClass()
41 majorMinorClass == BluetoothClass.Device.AUDIO_VIDEO_HIFI_AUDIO || in isMatchingDeviceClass()
43 BluetoothClass.Device.AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER || in isMatchingDeviceClass()
44 majorMinorClass == BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE || in isMatchingDeviceClass()
45 majorMinorClass == BluetoothClass.Device.AUDIO_VIDEO_SET_TOP_BOX || in isMatchingDeviceClass()
/packages/modules/Bluetooth/system/profile/avrcp/
Ddevice.cc52 Device::Device(const RawAddress& bdaddr, bool avrcp13_compatibility, in Device() function in bluetooth::avrcp::Device
66 void Device::RegisterInterfaces( in RegisterInterfaces()
80 base::WeakPtr<Device> Device::Get() { return weak_ptr_factory_.GetWeakPtr(); } in Get()
82 void Device::SetBrowseMtu(uint16_t browse_mtu) { in SetBrowseMtu()
87 void Device::SetBipClientStatus(bool connected) { in SetBipClientStatus()
92 bool Device::HasBipClient() const { return has_bip_client_; } in HasBipClient()
103 bool Device::IsActive() const { in IsActive()
107 bool Device::IsInSilenceMode() const { in IsInSilenceMode()
111 void Device::VendorPacketHandler(uint8_t label, in VendorPacketHandler()
195 &Device::GetElementAttributesResponse, weak_ptr_factory_.GetWeakPtr(), in VendorPacketHandler()
[all …]
Ddevice.h59 class Device {
67 Device(const RawAddress& bdaddr, bool avrcp13_compatibility,
74 Device(const Device&) = delete;
75 Device& operator=(const Device&) = delete;
77 virtual ~Device() = default;
83 base::WeakPtr<Device> Get();
315 friend std::ostream& operator<<(std::ostream& out, const Device& c);
341 base::WeakPtrFactory<Device> weak_ptr_factory_;
/packages/modules/Bluetooth/tools/rootcanal/model/devices/
Ddevice.cc36 Device::Device() : id_(next_instance_id()) { in Device() function in rootcanal::Device
40 std::string Device::ToString() const { in ToString()
44 void Device::Close() { in Close()
50 void Device::SendLinkLayerPacket( in SendLinkLayerPacket()
56 void Device::SendLinkLayerPacket(std::vector<uint8_t> const& packet, in SendLinkLayerPacket()
63 void Device::RegisterCloseCallback(std::function<void()> close_callback) { in RegisterCloseCallback()
67 void Device::RegisterLinkLayerChannel( in RegisterLinkLayerChannel()
/packages/modules/NeuralNetworks/runtime/
DManager.h42 class Device; variable
75 virtual const Device* getDevice() const = 0;
126 class Device {
127 DISALLOW_COPY_AND_ASSIGN(Device);
130 Device() = default;
131 virtual ~Device() = default;
170 const std::vector<std::shared_ptr<Device>>& getDrivers() const { in getDrivers()
213 static std::shared_ptr<Device> getCpuDevice();
218 std::vector<std::shared_ptr<Device>> forTest_getDevices() const { return mDevices; } in forTest_getDevices()
221 void forTest_setDevices(std::vector<std::shared_ptr<Device>> devices) { in forTest_setDevices()
[all …]
DModelBuilder.h36 class Device; variable
74 const std::vector<std::shared_ptr<Device>>& devices,
132 int partitionTheWork(const std::vector<std::shared_ptr<Device>>& devices, uint32_t preference,
155 const std::vector<std::shared_ptr<Device>>& devices,
157 float getPerformance(uint32_t preference, const std::shared_ptr<Device> device) const;
158 float getPerformance(uint32_t preference, const std::shared_ptr<Device> device,
167 const std::vector<std::shared_ptr<Device>>& devices,
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalDevice.cpp97 Device::Device(std::string name, const IOperationResolver* operationResolver) in Device() function in android::nn::sample::Device
103 const std::string& Device::getName() const { in getName()
107 const std::string& Device::getVersionString() const { in getVersionString()
112 Version Device::getFeatureLevel() const { in getFeatureLevel()
116 DeviceType Device::getType() const { in getType()
120 const std::vector<Extension>& Device::getSupportedExtensions() const { in getSupportedExtensions()
125 const Capabilities& Device::getCapabilities() const { in getCapabilities()
130 std::pair<uint32_t, uint32_t> Device::getNumberOfCacheFilesNeeded() const { in getNumberOfCacheFilesNeeded()
134 GeneralResult<void> Device::wait() const { in wait()
138 GeneralResult<std::vector<bool>> Device::getSupportedOperations(const Model& model) const { in getSupportedOperations()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
DBluetoothScanner.java46 public static class Device { class in BluetoothScanner
98 public void onScanningStopped(ArrayList<Device> devices) { in onScanningStopped()
100 public void onDeviceAdded(Device device) { in onDeviceAdded()
102 public void onDeviceChanged(Device device) { in onDeviceChanged()
104 public void onDeviceRemoved(Device device) { in onDeviceRemoved()
153 public static void removeDevice(Device device) { in removeDevice()
165 public final ArrayList<Device> devices;
179 private final ArrayList<Device> mPresentDevices = new ArrayList<>();
232 Device target = mPresentDevices.get(i); in startListening()
319 Device d = mPresentDevices.get(i); in removeDevice()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DDevice.java37 public final class Device { class
75 public Device build() { in build()
76 return new Device(mManufacturer, mModel, mType); in build()
100 private Device(String manufacturer, String model, @DeviceType int type) { in Device() method in Device
101 validateIntDefValue(type, Device.VALID_TYPES, DeviceType.class.getSimpleName()); in Device()
140 if (object instanceof Device) { in equals()
141 Device other = (Device) object; in equals()
DMetadata.java70 private final Device mDevice;
103 Device device, in Metadata()
181 public Device getDevice() { in getDevice()
241 private Device mDevice = new Device.Builder().build();
255 public Builder setDevice(@NonNull Device device) { in setDevice()
/packages/modules/Bluetooth/tools/rootcanal/model/setup/
Ddevice_boutique.cc25 std::unordered_map<std::string, std::function<std::shared_ptr<Device>(
28 static std::unordered_map<std::string, std::function<std::shared_ptr<Device>( in GetMap()
37 const std::function<std::shared_ptr<Device>(const vector<std::string>&)> in Register()
44 std::shared_ptr<Device> DeviceBoutique::Create( in Create()
52 return std::shared_ptr<Device>(nullptr); in Create()
Dtest_model.h36 class Device; variable
52 std::function<std::shared_ptr<Device>(const std::string&, int, Phy::Type)>
71 std::string type, std::shared_ptr<Device> device);
75 PhyDevice::Identifier AddDevice(std::shared_ptr<Device> device);
87 void AddLinkLayerConnection(std::shared_ptr<Device> dev, Phy::Type phy_type);
140 std::function<std::shared_ptr<Device>(const std::string&, int, Phy::Type)>
Dphy_device.h28 class Device; variable
34 PhyDevice(std::string type, std::shared_ptr<Device> device);
47 std::shared_ptr<Device> GetDevice() const;
56 const std::shared_ptr<Device> device_;
/packages/services/Car/car_product/properties/
Dbluetooth.prop1 # The default Bluetooth Class of Device
5 # * Major Device Class
6 # * Minor Device Class
27 # Major Device Class:
29 # Minor Device Class:

123456789