Home
last modified time | relevance | path

Searched refs:ad (Results 1 – 25 of 107) sorted by relevance

12345

/packages/modules/Bluetooth/system/stack/include/
Dadvertise_data_parser.h33 static bool MalformedPacketQuirk(const std::vector<uint8_t>& ad, in MalformedPacketQuirk() argument
35 auto data_start = ad.begin() + position; in MalformedPacketQuirk()
38 if ((ad.size() - position) >= 18 && in MalformedPacketQuirk()
49 static void RemoveTrailingZeros(std::vector<uint8_t>& ad) { in RemoveTrailingZeros() argument
52 size_t ad_len = ad.size(); in RemoveTrailingZeros()
54 uint8_t len = ad[position]; in RemoveTrailingZeros()
62 ad.erase(ad.begin() + position, ad.end()); in RemoveTrailingZeros()
77 static bool IsValid(const std::vector<uint8_t>& ad) { in IsValid() argument
80 size_t ad_len = ad.size(); in IsValid()
82 uint8_t len = ad[position]; in IsValid()
[all …]
/packages/modules/Uwb/generic_ranging/tests/multidevices/test_utils/
Duwb_test_utils.py30 ad: android_device.AndroidDevice,
51 handler = ad.uwb.registerUwbAdapterStateCallback(callback_key)
65 ad.uwb.unregisterUwbAdapterStateCallback(callback_key)
69 def get_uwb_state(ad: android_device.AndroidDevice) -> bool:
78 if ad.build_info["build_id"].startswith("S"):
79 uwb_state = bool(ad.uwb.getAdapterState())
81 uwb_state = ad.uwb.isUwbEnabled()
86 ad: android_device.AndroidDevice,
98 ad.uwb.setUwbEnabled(state)
100 asserts.assert_true(verify_uwb_state_callback(ad, event_str, handler),
[all …]
/packages/modules/Uwb/tests/cts/hostsidetests/multidevices/uwb/lib/
Duwb_ranging_decorator.py17 def __init__(self, ad: android_device.AndroidDevice):
31 self.ad = ad
34 self.log = self.ad.log
65 self.ad.log.debug("Received event - %s" % event_received)
67 self.ad.log.debug("Received the '%s' callback in %ss" %
87 handler = self.ad.uwb.openFiraRangingSession(callback_key, params.to_dict())
101 self.ad.uwb.startFiraRangingSession(self._callback_keys[session])
114 self.ad.uwb.reconfigureFiraRangingSession(self._callback_keys[session],
129 self.ad.uwb.addControleeFiraRangingSession(
145 self.ad.uwb.removeControleeFiraRangingSession(
[all …]
Duwb_base_test.py24 for ad in self.android_devices:
25 ad.load_snippet("uwb", "com.google.snippet.uwb")
27 for ad in self.android_devices:
28 uwb_test_utils.initialize_uwb_country_code_if_not_set(ad)
32 for ad in self.android_devices:
33 ad.uwb.logInfo("*** TEST START: " + self.current_test_info.name + " ***")
37 for ad in self.android_devices:
38 ad.uwb.logInfo("*** TEST END: " + self.current_test_info.name + " ***")
52 for count, ad in enumerate(self.android_devices):
55 ad.take_bug_report(
/packages/modules/Bluetooth/system/stack/avdt/
Davdt_ad.cc121 AvdtpTransportChannel* p_tbl = avdtp_cb.ad.tc_tbl; in avdt_ad_init()
122 avdtp_cb.ad.Reset(); in avdt_ad_init()
146 AvdtpTransportChannel* p_tbl = avdtp_cb.ad.tc_tbl; in avdt_ad_tc_tbl_by_st()
196 if (avdtp_cb.ad.lcid_tbl.count(lcid) != 0) { in avdt_ad_tc_tbl_by_lcid()
197 uint8_t idx = avdtp_cb.ad.lcid_tbl[lcid]; in avdt_ad_tc_tbl_by_lcid()
198 return &avdtp_cb.ad.tc_tbl[idx]; in avdt_ad_tc_tbl_by_lcid()
219 AvdtpTransportChannel* p_tbl = avdtp_cb.ad.tc_tbl; in avdt_ad_tc_tbl_by_type()
248 AvdtpTransportChannel* p_tbl = avdtp_cb.ad.tc_tbl; in avdt_ad_tc_tbl_alloc()
279 log::verbose("avdt_ad_tc_tbl_to_idx: {}", (long)(p_tbl - avdtp_cb.ad.tc_tbl)); in avdt_ad_tc_tbl_to_idx()
281 return (uint8_t)(p_tbl - avdtp_cb.ad.tc_tbl); in avdt_ad_tc_tbl_to_idx()
[all …]
/packages/modules/Virtualization/libs/bssl/tests/
Daead_test.rs40 let ad = &[]; in aes_256_gcm_encrypts_and_decrypts_successfully() localVariable
44 let plaintext = aead_ctx.open(&ciphertext, &AES_256_GCM_NONCE1, ad, &mut out)?; in aes_256_gcm_encrypts_and_decrypts_successfully()
55 let ad = &[]; in aes_256_gcm_fails_to_encrypt_with_invalid_nonce() localVariable
58 let err = aead_ctx.seal(MESSAGE, nonce, ad, &mut out).unwrap_err(); in aes_256_gcm_fails_to_encrypt_with_invalid_nonce()
73 let ad = &[]; in aes_256_gcm_fails_to_decrypt_with_wrong_key() localVariable
77 let err = aead_ctx2.open(&ciphertext, &AES_256_GCM_NONCE1, ad, &mut plaintext).unwrap_err(); in aes_256_gcm_fails_to_decrypt_with_wrong_key()
107 let ad = &[]; in aes_256_gcm_fails_to_decrypt_with_different_nonce() localVariable
111 let err = aead_ctx.open(&ciphertext, &AES_256_GCM_NONCE2, ad, &mut plaintext).unwrap_err(); in aes_256_gcm_fails_to_decrypt_with_different_nonce()
125 let ad = &[]; in aes_256_gcm_fails_to_decrypt_corrupted_ciphertext() localVariable
129 let err = aead_ctx.open(&ciphertext, &AES_256_GCM_NONCE1, ad, &mut plaintext).unwrap_err(); in aes_256_gcm_fails_to_decrypt_corrupted_ciphertext()
[all …]
/packages/modules/OnDevicePersonalization/samples/odpsamplenetwork/src/main/java/com/example/odpsamplenetwork/
DSampleHandler.java224 Ad ad = parseAd(key, remoteData.get(key)); in readAds() local
225 if (ad != null) { in readAds()
226 ads.add(ad); in readAds()
235 private boolean isMatch(Ad ad, String requestKeyword) { in isMatch() argument
236 if (ad.mTargetKeywords != null && !ad.mTargetKeywords.isEmpty()) { in isMatch()
237 if (!ad.mTargetKeywords.contains(requestKeyword)) { in isMatch()
241 if (ad.mTargetApps != null && !ad.mTargetApps.isEmpty()) { in isMatch()
242 if (!isInstalledAppFound(ad.mTargetApps)) { in isMatch()
246 if (ad.mExcludes != null && !ad.mExcludes.isEmpty()) { in isMatch()
247 if (ad.mExcludes.contains(requestKeyword)) { in isMatch()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DAppInstallAdFiltererImpl.java77 for (DBAdData ad : ca.getAds()) { in filterCustomAudiences()
78 if (doesAdPassAppInstallFilters(ad, ca.getBuyer())) { in filterCustomAudiences()
79 filteredAds.add(ad); in filterCustomAudiences()
114 for (AdWithBid ad : contextualAds.getAdsWithBid()) { in filterContextualAds()
115 DBAdData dbAdData = new DBAdData.Builder(ad.getAdData()).build(); in filterContextualAds()
117 adsList.add(ad); in filterContextualAds()
130 private boolean doesAdPassAppInstallFilters(DBAdData ad, AdTechIdentifier buyer) { in doesAdPassAppInstallFilters() argument
135 if (ad.getAdFilters() == null || ad.getAdFilters().getAppInstallFilters() == null) { in doesAdPassAppInstallFilters()
138 for (String packageName : ad.getAdFilters().getAppInstallFilters().getPackageNames()) { in doesAdPassAppInstallFilters()
DFrequencyCapAdFiltererImpl.java80 for (DBAdData ad : ca.getAds()) { in filterCustomAudiences()
82 ad, ca.getBuyer(), ca.getOwner(), ca.getName(), currentTime)) { in filterCustomAudiences()
83 filteredAds.add(ad); in filterCustomAudiences()
118 for (AdWithBid ad : contextualAds.getAdsWithBid()) { in filterContextualAds()
119 DBAdData dbAdData = new DBAdData.Builder(ad.getAdData()).build(); in filterContextualAds()
122 adsList.add(ad); in filterContextualAds()
138 DBAdData ad, in doesAdPassFrequencyCapFilters() argument
143 if (ad.getAdFilters() == null || ad.getAdFilters().getFrequencyCapFilters() == null) { in doesAdPassFrequencyCapFilters()
149 FrequencyCapFilters filters = ad.getAdFilters().getFrequencyCapFilters(); in doesAdPassFrequencyCapFilters()
DCompressedBuyerInputCreatorHelper.java100 .filter(ad -> !Strings.isNullOrEmpty(ad.getAdRenderId())) in getAdRenderIds()
101 .map(ad -> ad.getAdRenderId()) in getAdRenderIds()
/packages/modules/Wifi/tests/hostsidetests/multidevices/test/direct/
Dwifi_direct_test.py48 ad: android_device.AndroidDevice,
51 state_handler = ad.wifi.p2pInitialize()
70 def _setup_device(self, ad: android_device.AndroidDevice) -> None:
77 ad.adb.install(
80 ad.load_snippet('wifi', constants.WIFI_DIRECT_SNIPPET_PACKAGE_NAME)
87 param_list=[[ad] for ad in self.ads],
157 param_list=[[ad] for ad in self.ads],
/packages/modules/Uwb/generic_ranging/tests/multidevices/lib/
Dgeneric_ranging_decorator.py14 def __init__(self, ad: android_device.AndroidDevice):
20 self.ad = ad
23 self.log = self.ad.log
27 handler = self.ad.ranging.startUwbRanging(callback_key, params.to_dict())
31 handler = self.ad.ranging.stopUwbRanging(callback_key)
Dranging_base_test.py37 for ad in self.android_devices:
38 ad.load_snippet("ranging", "multidevices.snippet.ranging")
45 for ad in self.android_devices:
46 dev1 = ad.ranging
/packages/modules/Bluetooth/system/blueberry/decorators/
Dandroid_bluetooth_client_decorator.py16 def decorate(ad, decorator): argument
26 if not isinstance(ad, AndroidDevice):
33 ad = cls(ad)
35 return ad
/packages/modules/Virtualization/libs/bssl/src/
Daead.rs116 ad: &[u8], in seal()
131 ad.as_ptr(), in seal()
132 ad.len(), in seal()
149 ad: &[u8], in open()
165 ad.as_ptr(), in open()
166 ad.len(), in open()
/packages/modules/Bluetooth/system/blueberry/utils/
Dbt_test_utils.py250 def clear_bonded_devices(ad: AndroidDevice):
258 bonded_device_list = ad.sl4a.bluetoothGetBondedDevices()
261 if not ad.sl4a.bluetoothUnbond(device_address):
262 ad.log.error("Failed to unbond {} from {}".format(device_address, ad.serial))
264 ad.log.info("Successfully unbonded {} from {}".format(device_address, ad.serial))
273 bonded_device_list = ad.sl4a.bluetoothGetBondedDevices()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/customaudience/
DCustomAudienceUpdatableDataFixture.java286 for (DBAdData ad : ads) { in addToJsonObject()
292 adJson.put(RENDER_URI_KEY, ad.getRenderUri().toString()); in addToJsonObject()
294 adJson.put(METADATA_KEY, new JSONObject(ad.getMetadata())); in addToJsonObject()
300 adJson.put(METADATA_KEY, ad.getMetadata()); in addToJsonObject()
302 if (!ad.getAdCounterKeys().isEmpty()) { in addToJsonObject()
303 adJson.put(AD_COUNTERS_KEY, new JSONArray(ad.getAdCounterKeys())); in addToJsonObject()
305 if (ad.getAdFilters() != null) { in addToJsonObject()
306 adJson.put(AD_FILTERS_KEY, ad.getAdFilters().toJson()); in addToJsonObject()
308 if (ad.getAdRenderId() != null) { in addToJsonObject()
309 adJson.put(AD_RENDER_ID_KEY, ad.getAdRenderId()); in addToJsonObject()
DCustomAudienceBlobFixture.java294 for (DBAdData ad : ads) { in addAds()
300 adJson.put(RENDER_URI_KEY, ad.getRenderUri().toString()); in addAds()
302 adJson.put(METADATA_KEY, new JSONObject(ad.getMetadata())); in addAds()
308 adJson.put(METADATA_KEY, ad.getMetadata()); in addAds()
310 if (!ad.getAdCounterKeys().isEmpty()) { in addAds()
311 adJson.put(AD_COUNTERS_KEY, new JSONArray(ad.getAdCounterKeys())); in addAds()
313 if (ad.getAdFilters() != null) { in addAds()
314 adJson.put(AD_FILTERS_KEY, ad.getAdFilters().toJson()); in addAds()
316 if (ad.getAdRenderId() != null) { in addAds()
317 adJson.put(AD_RENDER_ID_KEY, ad.getAdRenderId()); in addAds()
/packages/modules/AdServices/adservices/service-core/proto/
Dbidding_auction_servers.proto59 // install ad for user.
76 // Required to trace back to origin of the winner ad
89 // winning ad render url returned back to the client will be validated with
100 // urls for component ads.The winning ad render url returned back to the
123 // Signals from device that can help generate a relevant app install ad for
137 // The ad that will be rendered on the end user's device.
140 // Render URLs for ads which are components of the main ad.
143 // Name of the Custom Audience, the remarketing ad belongs to.
146 // Owner of the Custom Audience, the remarketing ad belongs to.
150 // Domain of the Buyer who owns the winner ad.
[all …]
Dseller_frontend_service.proto24 // Selects a winning ad for the Publisher ad slot that would be
50 // AuctionConfig required by the seller for ad auction.
93 // Information about auction (ad format, size).
99 // Optional. Required by Android to identify an ad selection request.
110 // Includes configuration data required in Remarketing ad auction.
160 // The ad that will be rendered on the end user's device. This url is
163 // Note: This could be an int32 instead given an ad can be uniquely identified
164 // by the Buyer. In that case, the device would keep the mapping of the ad
168 // Score of the winning ad.
174 // Bid for the winning ad candidate, generated by a buyer participating in
/packages/modules/AdServices/adservices/tests/cts/assets/scenarios/data/
DBiddingLogicV2WithDataVersionHeader.js23 function generateBid(ad, auction_signals, per_buyer_signals, argument
29 return { 'status': 0, 'ad': ad, 'bid': ad.metadata.bid };
DScoringLogicWithRejectReason.js17 function scoreAd(ad, bid, auction_config, seller_signals, trusted_scoring_signals, argument
20 + "?ad_render_uri=" + ad.render_uri
24 + "?ad_render_uri=" +ad.render_uri
/packages/modules/Bluetooth/system/blueberry/utils/ui_pages/
Dui_core.py64 ad: android_device.AndroidDevice,
69 self.ad = ad
144 self.ad.adb.shell(f'am start -n {page_class.ACTIVITY}')
156 self.ad.adb.shell(f'input keyevent KEYCODE_{keycode}')
182 output = self.ad.adb.shell(
253 self.ad.adb.shell(
255 self.ad.adb.shell('uiautomator dump')
256 self.ad.adb.pull(shlex.split(f'{dump_xml_path} {xml_out_dir}'))
385 self.ad.log.warning(str(err))
453 output = self.ad.adb.shell(shlex.split('wm size')).decode()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DFledgeE2ETest.java2355 for (AdData ad : customAudience1.getAds()) { in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters()
2358 .setRenderUri(ad.getRenderUri()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters()
2359 .setMetadata(ad.getMetadata()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters()
2360 .setAdCounterKeys(ad.getAdCounterKeys()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters()
2361 .setAdFilters(ad.getAdFilters()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters()
2378 for (AdData ad : customAudience2.getAds()) { in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters()
2381 .setRenderUri(ad.getRenderUri()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters()
2382 .setMetadata(ad.getMetadata()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters()
2383 .setAdCounterKeys(ad.getAdCounterKeys()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters()
2384 .setAdFilters(ad.getAdFilters()) in testFledgeFlowSuccessWithMockServer_fetchAndJoinCustomAudienceFlow_noFilters()
[all …]
/packages/modules/Uwb/tests/cts/hostsidetests/multidevices/uwb/FiraRangingTests/
Dranging_test.py69 uwb_ranging_decorator.UwbRangingDecorator(ad)
70 for ad in self.android_devices
90 uwb_test_utils.set_airplane_mode(uwb_device.ad, False)
304 return device.ad.uwb.getSpecificationInfo()["fira"]["background_ranging_support"]
313 return device.ad.uwb.getSpecificationInfo()["fira"]["uci_version"]
340 handler = initiator.ad.uwb.registerUwbAdapterStateCallback(callback)
341 uwb_test_utils.set_airplane_mode(initiator.ad, True)
342 uwb_test_utils.verify_uwb_state_callback(initiator.ad, "Disabled", handler)
349 uwb_test_utils.set_airplane_mode(initiator.ad, False)
350 uwb_test_utils.verify_uwb_state_callback(initiator.ad, "Inactive", handler)
[all …]

12345