Home
last modified time | relevance | path

Searched refs:advertiser (Results 1 – 25 of 29) sorted by relevance

12

/packages/modules/Bluetooth/tools/rootcanal/model/controller/
Dle_advertiser.cc306 ExtendedAdvertiser& advertiser = extended_advertisers_[advertising_handle]; in LeSetAdvertisingSetRandomAddress() local
312 if (advertiser.advertising_enable) { in LeSetAdvertisingSetRandomAddress()
317 advertiser.random_address = random_address; in LeSetAdvertisingSetRandomAddress()
360 ExtendedAdvertiser advertiser(advertising_handle); in LeSetExtendedAdvertisingParameters() local
373 advertiser = extended_advertisers_[advertising_handle]; in LeSetExtendedAdvertisingParameters()
379 if (advertiser.advertising_enable) { in LeSetExtendedAdvertisingParameters()
416 if (!can_have_advertising_data && !advertiser.advertising_data.empty()) { in LeSetExtendedAdvertisingParameters()
426 if (!scannable_advertising && !advertiser.scan_response_data.empty()) { in LeSetExtendedAdvertisingParameters()
438 (advertiser.advertising_data.size() > max_legacy_advertising_pdu_size || in LeSetExtendedAdvertisingParameters()
439 advertiser.scan_response_data.size() > in LeSetExtendedAdvertisingParameters()
[all …]
Dlink_layer_controller.cc108 for (auto const& [_, advertiser] : extended_advertisers_) { in FilterAcceptListBusy()
109 if (advertiser.IsEnabled() && in FilterAcceptListBusy()
110 advertiser.advertising_filter_policy != in FilterAcceptListBusy()
190 for (auto const& [_, advertiser] : extended_advertisers_) { in ResolvingListBusy()
191 if (advertiser.IsEnabled()) { in ResolvingListBusy()
4438 ExtendedAdvertiser& advertiser, in ProcessIncomingExtendedConnectRequest() argument
4440 if (!advertiser.IsEnabled()) { in ProcessIncomingExtendedConnectRequest()
4443 if (!advertiser.IsConnectable()) { in ProcessIncomingExtendedConnectRequest()
4447 advertiser.advertising_handle); in ProcessIncomingExtendedConnectRequest()
4461 if (advertiser.GetAdvertisingAddress() != advertising_address) { in ProcessIncomingExtendedConnectRequest()
[all …]
Dlink_layer_controller.h707 ExtendedAdvertiser const& advertiser, AddressWithType scanning_address,
714 ExtendedAdvertiser& advertiser,
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsAdvertiser.java151 @NonNull MdnsInterfaceAdvertiser advertiser, int serviceId) {
160 final String interfaceName = advertiser.getSocketInterfaceName();
167 byte[] rawOffloadPacket = advertiser.getRawOffloadPayload(serviceId);
187 public void onServiceConflict(@NonNull MdnsInterfaceAdvertiser advertiser, int serviceId,
326 MdnsInterfaceAdvertiser advertiser = mAllAdvertisers.remove(socket); in destroyAdvertiser() local
327 if (advertiser != null) { in destroyAdvertiser()
328 advertiser.destroyNow(); in destroyAdvertiser()
329 if (DBG) { mSharedLog.i("MdnsInterfaceAdvertiser is destroyed: " + advertiser); } in destroyAdvertiser()
514 final MdnsInterfaceAdvertiser advertiser = mAdvertisers.valueAt(i); in removeService() local
515 advertiser.removeService(id); in removeService()
[all …]
DMdnsInterfaceAdvertiser.java88 void onServiceProbingSucceeded(@NonNull MdnsInterfaceAdvertiser advertiser, int serviceId); in onServiceProbingSucceeded() argument
101 @NonNull MdnsInterfaceAdvertiser advertiser, int serviceId, int conflictType); in onServiceConflict()
/packages/modules/Bluetooth/system/gd/rust/topshim/facade/src/
Dgatt_service.rs173 let advertiser = &mut self.gatt.lock().unwrap().advertiser; in register_advertiser() localVariable
174 advertiser.register_advertiser(); in register_advertiser()
181 let advertiser = &mut self.gatt.lock().unwrap().advertiser; in unregister_advertiser() localVariable
182 advertiser.unregister(0); in unregister_advertiser()
189 let advertiser = &mut self.gatt.lock().unwrap().advertiser; in get_own_address() localVariable
190 advertiser.get_own_address(0); in get_own_address()
197 let advertiser = &mut self.gatt.lock().unwrap().advertiser; in set_parameters() localVariable
198 advertiser.set_parameters(0, self.create_advertise_parameters()); in set_parameters()
205 let advertiser = &mut self.gatt.lock().unwrap().advertiser; in set_data() localVariable
206 advertiser.set_data(0, true, vec![0]); in set_data()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsAdvertiserTest.kt230 val advertiser = in testAddService_OneNetwork() constant
232 postSync { advertiser.addOrUpdateService(SERVICE_ID_1, SERVICE_1, in testAddService_OneNetwork()
268 val metrics = postReturn { advertiser.getAdvertiserMetrics(SERVICE_ID_1) } in testAddService_OneNetwork()
294 val advertiser = in testAddService_AllNetworksWithSubType() constant
296 postSync { advertiser.addOrUpdateService(SERVICE_ID_1, ALL_NETWORKS_SERVICE_SUBTYPE, in testAddService_AllNetworksWithSubType()
353 val metrics = postReturn { advertiser.getAdvertiserMetrics(SERVICE_ID_1) } in testAddService_AllNetworksWithSubType()
360 postSync { advertiser.removeService(SERVICE_ID_1) } in testAddService_AllNetworksWithSubType()
375 val advertiser = in testAddService_OffloadPriority() constant
378 advertiser.addOrUpdateService(SERVICE_ID_1, SERVICE_1, DEFAULT_ADVERTISING_OPTION, in testAddService_OffloadPriority()
380 advertiser.addOrUpdateService(SERVICE_ID_2, in testAddService_OffloadPriority()
[all …]
DMdnsInterfaceAdvertiserTest.kt116 private val advertiser by lazy { in <lambda>() constant
155 advertiser.start() in setUp()
176 verify(cb).onServiceProbingSucceeded(advertiser, TEST_SERVICE_ID_1) in testAddRemoveService()
181 advertiser.removeService(TEST_SERVICE_ID_1) in testAddRemoveService()
214 advertiser.removeService(TEST_SERVICE_ID_1) in testAddRemoveServiceWithCustomHost_restartProbingForProbingServices()
241 advertiser.removeService(TEST_SERVICE_ID_1) in testAddRemoveServiceWithCustomHost_restartAnnouncingForProbedServices()
286 advertiser.removeService(TEST_SERVICE_ID_1) in testDoubleRemove()
293 advertiser.removeService(TEST_SERVICE_ID_1) in testDoubleRemove()
474 verify(cb).onServiceConflict(advertiser, TEST_SERVICE_ID_1, CONFLICT_SERVICE) in testConflict()
482 advertiser.maybeRestartProbingForConflict(TEST_SERVICE_ID_1) in testRestartProbingForConflict()
[all …]
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/
DLeLegacyAdvertisingTest.java56 final BluetoothLeAdvertiser advertiser = in setAdvertisingDataOver31Bytes() local
93 advertiser.startAdvertisingSet(params, advertiseData, null, null, null, callback); in setAdvertisingDataOver31Bytes()
101 advertiser.stopAdvertisingSet(callback); in setAdvertisingDataOver31Bytes()
108 final BluetoothLeAdvertiser advertiser = in setScanResponseDataOver31Bytes() local
145 advertiser.startAdvertisingSet(params, advertiseData, null, null, null, callback); in setScanResponseDataOver31Bytes()
153 advertiser.stopAdvertisingSet(callback); in setScanResponseDataOver31Bytes()
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/ble/
DBleDiscoveryAdvertiseProvider.java89 BluetoothLeAdvertiser advertiser = getBleAdvertiser(); in start() local
90 if (advertiser == null) { in start()
96 advertiser.startAdvertisingSet( in start()
117 BluetoothLeAdvertiser advertiser = getBleAdvertiser(); in stop() local
118 if (advertiser == null) { in stop()
123 advertiser.stopAdvertisingSet(mAdvertisingSetCallback); in stop()
/packages/modules/Bluetooth/system/rust/src/gatt/
Darbiter.rs83 fn on_le_connect(tcb_idx: u8, advertiser: u8) { in on_le_connect()
85 let advertiser = AdvertiserId(advertiser); in on_le_connect() localVariable
86 let is_isolated = with_arbiter(|arbiter| arbiter.is_advertiser_isolated(advertiser)); in on_le_connect()
89 if let Err(err) = modules.gatt_module.on_le_connect(tcb_idx, Some(advertiser)) { in on_le_connect()
/packages/modules/Bluetooth/system/rust/src/gatt/server/
Disolation_manager.rs74 pub fn on_le_connect(&mut self, tcb_idx: TransportIndex, advertiser: Option<AdvertiserId>) { in on_le_connect()
78 let Some(advertiser) = advertiser else { in on_le_connect()
82 let Some(server_id) = self.advertiser_to_server.get(&advertiser).copied() else { in on_le_connect()
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbluetooth_adv.rs741 self.gatt.lock().unwrap().advertiser.enable( in enter_suspend()
760 self.gatt.lock().unwrap().advertiser.unregister(id); in exit_suspend()
765 self.gatt.lock().unwrap().advertiser.enable( in exit_suspend()
884 self.gatt.lock().unwrap().advertiser.unregister(s.adv_id()); in unregister_callback()
943 self.gatt.lock().unwrap().advertiser.start_advertising_set( in start_advertising_set()
974 self.gatt.lock().unwrap().advertiser.unregister(s.adv_id()); in stop_advertising_set()
987 self.gatt.lock().unwrap().advertiser.get_own_address(s.adv_id()); in get_own_address()
1006 self.gatt.lock().unwrap().advertiser.enable( in enable_advertising_set()
1028 self.gatt.lock().unwrap().advertiser.set_data(s.adv_id(), false, bytes); in set_advertising_data()
1045 self.gatt.lock().unwrap().advertiser.set_data(s.adv_id(), false, data); in set_raw_adv_data()
[all …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_gatt.cc82 .advertiser = nullptr // filled in btif_gatt_get_interface
99 btgattInterface.advertiser = bluetooth::shim::get_ble_advertiser_instance(); in btif_gatt_get_interface()
Dbtif_dm.cc3236 auto advertiser = bluetooth::shim::get_ble_advertiser_instance(); in stop_oob_advertiser() local
3237 advertiser->Unregister(oob_advertiser_id_.value()); in stop_oob_advertiser()
3300 auto advertiser = bluetooth::shim::get_ble_advertiser_instance(); in start_advertising_callback() local
3301 advertiser->GetOwnAddress( in start_advertising_callback()
3307 auto advertiser = bluetooth::shim::get_ble_advertiser_instance(); in timeout_cb() local
3308 advertiser->Unregister(id); in timeout_cb()
3331 auto advertiser = bluetooth::shim::get_ble_advertiser_instance(); in id_status_callback() local
3348 advertiser->StartAdvertising( in id_status_callback()
3358 auto advertiser = bluetooth::shim::get_ble_advertiser_instance(); in start_oob_advertiser() local
3359 advertiser->RegisterAdvertiser( in start_oob_advertiser()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DAdvertiserSetValidator.java72 for (AdTechIdentifier advertiser : advertisers) { in addValidation()
73 String advertiserString = advertiser.toString(); in addValidation()
DAppInstallAdvertisersSetter.java245 for (AdTechIdentifier advertiser : advertisers) { in doSetAppInstallAdvertisers()
249 .setBuyer(advertiser) in doSetAppInstallAdvertisers()
/packages/modules/Bluetooth/android/ChannelSoundingTestApp/app/src/main/java/com/android/bluetooth/channelsoundingtestapp/
DReflectorViewModel.java72 BluetoothLeAdvertiser advertiser = mBluetoothAdapter.getBluetoothLeAdvertiser(); in startConnectableAdvertising() local
128 advertiser.startAdvertisingSet(parameters, response, null, null, null, 0, 0, callback); in startConnectableAdvertising()
/packages/modules/Bluetooth/system/stack/arbiter/
Dacl_arbiter.cc36 ::rust::Fn<void(uint8_t tcb_idx, uint8_t advertiser)> on_le_connect;
130 ::rust::Fn<void(uint8_t tcb_idx, uint8_t advertiser)> on_le_connect, in StoreCallbacksFromRust()
Dacl_arbiter.h59 ::rust::Fn<void(uint8_t tcb_idx, uint8_t advertiser)> on_le_connect,
/packages/services/Car/tests/carservice_unit_test/src/android/car/builtin/bluetooth/le/
DAdvertisingSetCallbackHelperTest.java203 BluetoothLeAdvertiser advertiser = Objects.requireNonNull( in integrationTest_onAdvertisingSetStarted_onOwnAddressRead() local
245 advertiser.startAdvertisingSet(advertisingSetParameters, /* advertiseData */ null, in integrationTest_onAdvertisingSetStarted_onOwnAddressRead()
/packages/modules/Bluetooth/system/include/hardware/
Dbt_gatt.h68 BleAdvertiserInterface* advertiser; member
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_gatt.cpp1282 sGattIf->advertiser->RegisterCallbacks( in initializeNative()
2302 sGattIf->advertiser->StartAdvertisingSet( in startAdvertisingSetNative()
2315 sGattIf->advertiser->Unregister(advertiser_id); in stopAdvertisingSetNative()
2333 sGattIf->advertiser->GetOwnAddress( in getOwnAddressNative()
2360 sGattIf->advertiser->Enable(advertiser_id, enable, in enableAdvertisingSetNative()
2370 sGattIf->advertiser->SetData( in setAdvertisingDataNative()
2379 sGattIf->advertiser->SetData( in setScanResponseDataNative()
2401 sGattIf->advertiser->SetParameters( in setAdvertisingParametersNative()
2413 sGattIf->advertiser->SetPeriodicAdvertisingParameters( in setPeriodicAdvertisingParametersNative()
2424 sGattIf->advertiser->SetPeriodicAdvertisingData( in setPeriodicAdvertisingDataNative()
[all …]
/packages/modules/Bluetooth/system/gd/rust/topshim/gatt/
Dgatt_ble_advertiser_shim.cc202 …make_unique<BleAdvertiserIntf>(reinterpret_cast<const btgatt_interface_t*>(gatt_intf)->advertiser); in GetBleAdvertiserIntf()
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/
Dgatt.rs1635 _raw: unsafe { (*raw_gatt).advertiser as *const BleAdvertiserInterface }, in new()
1726 pub advertiser: BleAdvertiser, field
1770 advertiser: BleAdvertiser::new(r as *const btgatt_interface_t, gatt_advertiser_intf), in new()
1909 mutcxxcall!(self.advertiser, RegisterCallbacks); in initialize()

12