Home
last modified time | relevance | path

Searched refs:address (Results 1 – 25 of 117) sorted by relevance

12345

/hardware/interfaces/audio/core/all-versions/default/
DConversions.cpp30 std::string deviceAddressToHal(const DeviceAddress& address) { in deviceAddressToHal() argument
34 uint32_t halDevice = static_cast<uint32_t>(address.device); in deviceAddressToHal()
38 address.address.mac[0], address.address.mac[1], address.address.mac[2], in deviceAddressToHal()
39 address.address.mac[3], address.address.mac[4], address.address.mac[5]); in deviceAddressToHal()
41 snprintf(halAddress, sizeof(halAddress), "%d.%d.%d.%d", address.address.ipv4[0], in deviceAddressToHal()
42 address.address.ipv4[1], address.address.ipv4[2], address.address.ipv4[3]); in deviceAddressToHal()
45 snprintf(halAddress, sizeof(halAddress), "card=%d;device=%d", address.address.alsa.card, in deviceAddressToHal()
46 address.address.alsa.device); in deviceAddressToHal()
48 snprintf(halAddress, sizeof(halAddress), "%s", address.busAddress.c_str()); in deviceAddressToHal()
51 snprintf(halAddress, sizeof(halAddress), "%s", address.rSubmixAddress.c_str()); in deviceAddressToHal()
[all …]
DStream.cpp240 Return<Result> Stream::setDevice(const DeviceAddress& address) { in setDevice() argument
241 return setParam(AudioParameter::keyRouting, address); in setDevice()
253 Return<Result> Stream::setConnectedState(const DeviceAddress& address, bool connected) { in setConnectedState() argument
256 address); in setConnectedState()
276 DeviceAddress address; in setDevices() local
278 address = devices[0]; in setDevices()
280 address.device = AudioDevice::NONE; in setDevices()
282 return setParam(AudioParameter::keyRouting, address); in setDevices()
DParametersUtil.cpp152 Result ParametersUtil::setParam(const char* name, const DeviceAddress& address) { in setParam() argument
153 AudioParameter params(String8(deviceAddressToHal(address).c_str())); in setParam()
154 params.addInt(String8(name), int(address.device)); in setParam()
/hardware/libhardware/modules/audio_remote_submix/tests/
Dremote_submix_tests.cpp70 const char* address, bool mono, uint32_t sampleRate, audio_stream_in_t** streamIn);
72 const char* address, bool mono, uint32_t sampleRate, audio_stream_out_t** streamOut);
107 const char* address, bool mono, uint32_t sampleRate, audio_stream_in_t** streamIn) { in OpenInputStream() argument
114 streamIn, AUDIO_INPUT_FLAG_NONE, address, AUDIO_SOURCE_DEFAULT); in OpenInputStream()
120 const char* address, bool mono, uint32_t sampleRate, audio_stream_out_t** streamOut) { in OpenOutputStream() argument
127 &configOut, streamOut, address); in OpenOutputStream()
193 const char* address = "1"; in TEST_F() local
195 OpenOutputStream(address, true /*mono*/, 48000, &streamOut); in TEST_F()
214 const char* address = "1"; in TEST_F() local
216 OpenOutputStream(address, true /*mono*/, 48000, &streamOut); in TEST_F()
[all …]
/hardware/interfaces/audio/core/all-versions/vts/functional/2.0/
DAudioPrimaryHidlHalTest.cpp33 : testGetDevice(stream.get(), address.device))
35 static void testSetDevice(IStream* stream, const DeviceAddress& address) { in testSetDevice() argument
36 DeviceAddress otherAddress = address; in testSetDevice()
37 otherAddress.device = (address.device & AudioDevice::BIT_IN) == 0 ? AudioDevice::OUT_SPEAKER in testSetDevice()
41 ASSERT_OK(stream->setDevice(address)); // Go back to the original value in testSetDevice()
46 : testSetDevice(stream.get(), address))
49 DeviceAddress address = {}; in testConnectedState() local
52 address.device = device; in testConnectedState()
54 ASSERT_OK(stream->setConnectedState(address, true)); in testConnectedState()
55 ASSERT_OK(stream->setConnectedState(address, false)); in testConnectedState()
/hardware/interfaces/bluetooth/1.0/default/
Dbluetooth_address.cc55 char address[kStringLength + 1] = {0}; in get_local_address() local
56 int bytes_read = read(addr_fd, address, kStringLength); in get_local_address()
64 address[kStringLength] = '\0'; in get_local_address()
68 if ((string_to_bytes(address, local_addr)) && in get_local_address()
70 ALOGD("%s: Got Factory BDA %s", __func__, address); in get_local_address()
73 ALOGE("%s: Got Invalid BDA '%s' from %s", __func__, address, property); in get_local_address()
/hardware/interfaces/wifi/1.4/default/
Dwifi_iface_util.cpp104 std::array<uint8_t, 6> address = {}; in createRandomMacAddress() local
110 for (size_t i = 0; i < address.size(); i++) { in createRandomMacAddress()
111 address[i] = dist(engine); in createRandomMacAddress()
114 address[0] |= kMacAddressLocallyAssignedMask; in createRandomMacAddress()
115 address[0] &= ~kMacAddressMulticastMask; in createRandomMacAddress()
116 return address; in createRandomMacAddress()
/hardware/interfaces/bluetooth/1.0/default/test/
Dbluetooth_address_test.cc215 uint8_t address[BluetoothAddress::kBytes]; in TEST_F() local
220 EXPECT_TRUE(BluetoothAddress::get_local_address(address)); in TEST_F()
221 EXPECT_TRUE(memcmp(address, kTestAddr1_bytes, BluetoothAddress::kBytes) == 0); in TEST_F()
227 EXPECT_TRUE(BluetoothAddress::get_local_address(address)); in TEST_F()
228 EXPECT_TRUE(memcmp(address, kZeros_bytes, BluetoothAddress::kBytes) != 0); in TEST_F()
233 BluetoothAddress::bytes_to_string(address, address_str); in TEST_F()
239 EXPECT_TRUE(BluetoothAddress::get_local_address(address)); in TEST_F()
240 EXPECT_TRUE(memcmp(address, kTestAddr1_bytes, BluetoothAddress::kBytes) == 0); in TEST_F()
243 memcpy(address, kTestAddrBad1_bytes, BluetoothAddress::kBytes); in TEST_F()
247 EXPECT_TRUE(BluetoothAddress::get_local_address(address)); in TEST_F()
[all …]
/hardware/interfaces/wifi/1.4/
DIWifiApIface.hal31 * Changes the MAC address of the interface to the given MAC address.
33 * @param mac MAC address to change to.
43 * Gets the factory MAC address of the interface.
50 * @return mac factory MAC address of the interface
/hardware/interfaces/wifi/supplicant/1.0/
DISupplicantP2pIfaceCallback.hal89 * @param srcAddress MAC address of the device found. This must either
90 * be the P2P device address or the P2P interface address.
91 * @param p2pDeviceAddress P2P device address.
113 * @param p2pDeviceAddress P2P device address.
125 * @param srcAddress MAC address of the device that initiated the GO
179 * @param srcAddress MAC address of the device that sent the invitation.
200 * @param p2pDeviceAddress P2P device address.
213 * @param srcAddress MAC address of the device that sent the service discovery.
224 * @param srcAddress MAC address of the device that was authorized.
225 * @param p2pDeviceAddress P2P device address.
[all …]
DISupplicantP2pIface.hal88 * Gets the MAC address of the device.
95 * @return deviceAddress MAC address of the device.
189 * @param peerAddress MAC address of the device to connect to.
238 * parameters for this command are the P2P device address of the peer and the
241 * @param peerAddress MAC address of the device to send discovery.
287 * address). This is a mechanism to reject a pending group owner negotiation
291 * @param peerAddress MAC address of the device to reject.
306 * the group owner device address for Invitation Request should it not be
310 * @param goDeviceAddress MAC address of the group owner device.
311 * @param peerAddress MAC address of the device to invite.
[all …]
DISupplicantStaIface.hal146 * Initiate TDLS discover with the provided peer MAC address.
148 * @param macAddress MAC address of the peer.
159 * Initiate TDLS setup with the provided peer MAC address.
161 * @param macAddress MAC address of the peer.
172 * Initiate TDLS teardown with the provided peer MAC address.
174 * @param macAddress MAC address of the peer.
190 * @param macAddress MAC address of the access point.
209 * @param macAddress MAC address of the access point.
221 * Send driver command to get MAC address of the device.
228 * @return macAddr MAC address of the device.
/hardware/interfaces/audio/core/all-versions/vts/functional/4.0/
DAudioPrimaryHidlHalTest.cpp124 DeviceAddress address = {}; in TEST_P() local
125 address.device = deviceType; in TEST_P()
126 auto ret = getDevice()->setConnectedState(address, state); in TEST_P()
159 : testGetDevices(stream.get(), address.device))
161 static void testSetDevices(IStream* stream, const DeviceAddress& address) { in testSetDevices() argument
162 DeviceAddress otherAddress = address; in testSetDevices()
163 otherAddress.device = (address.device & AudioDevice::BIT_IN) == 0 ? AudioDevice::OUT_SPEAKER in testSetDevices()
168 stream->setDevices({address})); // Go back to the original value in testSetDevices()
173 : testSetDevices(stream.get(), address))
/hardware/interfaces/tv/cec/1.0/
DIHdmiCec.hal26 * Passes the logical address that must be used in this system.
29 * addressed the given logical address can be filtered in. This method must
33 * @param addr Logical address that must be used in this system. It must be
36 * FAILURE_INVALID_ARGS if the given logical address is invalid,
54 * Gets the CEC physical address.
56 * The physical address depends on the topology of the network formed by
59 * the updated address when hot plug event takes place.
63 * address.
64 * @return addr Physical address of this device.
Dtypes.hal47 UNREGISTERED = 15, // as Initiator address
48 BROADCAST = 15, // as Destination address
202 /** logical address of sender */
205 /** logical address of receiver */
/hardware/libhardware/modules/audio_remote_submix/
Daudio_hw.cpp147 char address[AUDIO_DEVICE_MAX_ADDRESS_LEN]; member
364 const char *address, in audio_config_compare() argument
370 ALOGD("submix_audio_device_create_pipe_l(addr=%s, idx=%d)", address, route_idx); in audio_config_compare()
398 strncpy(rsxadev->routes[route_idx].address, address, AUDIO_DEVICE_MAX_ADDRESS_LEN); in audio_config_compare()
399 ALOGD(" now using address %s for route %d", rsxadev->routes[route_idx].address, route_idx); in audio_config_compare()
467 rsxadev->routes[route_idx].address); in audio_config_compare()
474 memset(rsxadev->routes[route_idx].address, 0, AUDIO_DEVICE_MAX_ADDRESS_LEN); in audio_config_compare()
581 const char* address, /*in*/ in audio_config_compare() argument
588 if (strcmp(rsxadev->routes[i].address, "") == 0) { in audio_config_compare()
591 if (strncmp(rsxadev->routes[i].address, address, AUDIO_DEVICE_MAX_ADDRESS_LEN) == 0) { in audio_config_compare()
[all …]
/hardware/interfaces/tv/input/1.0/default/
DTvInput.cpp164 const char* address = event->device_info.audio_address; in notify() local
165 if (address != nullptr) { in notify()
166 size_t size = strlen(address); in notify()
168 LOG(ERROR) << "Audio address is too long. Address:" << address << ""; in notify()
/hardware/interfaces/wifi/1.2/
DIWifiStaIface.hal57 * Changes the MAC address of the Sta Interface to the given
58 * MAC address.
60 * @param mac MAC address to change into.
/hardware/interfaces/tv/cec/2.0/
DIHdmiCec.hal28 * HAL must use it to allocate logical address as specified in CEC section
30 * logical address can be filtered in.
47 * hence to tell HAL to release all logical address associated to them,
98 * logical address. Messages used to send out these information are
105 * implementation shall include allocating logical address too.
116 * @param logicalAddress logical address of CEC device.
117 * @param physicalAddress physical address of CEC device.
120 * FAILURE_INVALID_ARGS if logical or physical address is invalid.
Dtypes.hal37 * CEC logical address as specified in CEC Table 11-9 of the CEC spec 2.0b.
55 UNREGISTERED = 15, // as Initiator address
56 BROADCAST = 15, // as Destination address
161 /** logical address of sender */
164 /** logical address of receiver */
311 /** CEC physical address of device */
339 /** logical address of device */
489 * When set to false, all the CEC commands are discarded. if logical address
501 * and physical address. It shall response POLLING_MESSAGE, GIVE_FEATURES,
/hardware/interfaces/audio/common/all-versions/default/
DHidlUtils.cpp185 memcpy(config->ext.device.address.data(), halConfig.ext.device.address, in audioPortConfigFromHal()
223 memcpy(halConfig->ext.device.address, config.ext.device.address.data(), in audioPortConfigToHal()
293 memcpy(port->ext.device.address.data(), halPort.ext.device.address, in audioPortFromHal()
343 memcpy(halPort->ext.device.address, port.ext.device.address.data(), in audioPortToHal()
/hardware/interfaces/audio/core/all-versions/vts/functional/6.0/
DAudioPrimaryHidlHalTest.cpp93 DeviceAddress address{.device = AudioDevice::OUT_DEFAULT}; in TEST_P() local
102 return getDevice()->openOutputStream(handle, address, config, flags, initMetadata, in TEST_P()
118 DeviceAddress address{.device = AudioDevice::IN_DEFAULT}; in TEST_P() local
127 return getDevice()->openInputStream(handle, address, config, flags, initMetadata, in TEST_P()
/hardware/interfaces/wifi/1.4/default/tests/
Dmock_interface_tool.h35 const std::array<uint8_t, ETH_ALEN>& address));
/hardware/interfaces/wifi/1.3/
DIWifiStaIface.hal47 * Gets the factory MAC address of the Sta Interface
53 * @return mac Factory MAC address of the Sta Interface
/hardware/interfaces/audio/core/all-versions/default/include/core/default/
DConversions.h35 std::string deviceAddressToHal(const DeviceAddress& address);

12345