Home
last modified time | relevance | path

Searched refs:matchFilter (Results 1 – 18 of 18) sorted by relevance

/packages/modules/Wifi/tests/hostsidetests/multidevices/com.google.snippet.wifi/aware/
DWifiAwareSnippet.java133 List<byte[]> matchFilter = new ArrayList<>(); in subscribe() local
134 matchFilter.add(MATCH_FILTER_BYTES); in subscribe()
139 .setMatchFilter(matchFilter) in subscribe()
200 if (callbackData.matchFilter.size() != 1 in subscribe()
201 || !Arrays.equals(MATCH_FILTER_BYTES, callbackData.matchFilter.get(0))) { in subscribe()
203 sb.append("size=").append(callbackData.matchFilter.size()); in subscribe()
204 for (byte[] mf : callbackData.matchFilter) { in subscribe()
247 List<byte[]> matchFilter = new ArrayList<>(); in publish() local
248 matchFilter.add(MATCH_FILTER_BYTES); in publish()
253 .setMatchFilter(matchFilter) in publish()
DCallbackUtils.java208 public List<byte[]> matchFilter; field in CallbackUtils.DiscoveryCb.CallbackData
350 PeerHandle peerHandle, byte[] serviceSpecificInfo, List<byte[]> matchFilter) { in onServiceDiscovered() argument
354 callbackData.matchFilter = matchFilter; in onServiceDiscovered()
363 callbackData.matchFilter = info.getMatchFilters(); in onServiceDiscovered()
375 List<byte[]> matchFilter, in onServiceDiscoveredWithinRange() argument
381 callbackData.matchFilter = matchFilter; in onServiceDiscoveredWithinRange()
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DPublishConfig.java107 public PublishConfig(byte[] serviceName, byte[] serviceSpecificInfo, byte[] matchFilter, in PublishConfig() argument
114 mMatchFilter = matchFilter; in PublishConfig()
179 byte[] matchFilter = in.createByteArray();
192 return new PublishConfig(serviceName, ssi, matchFilter, publishType, ttlSec,
430 public Builder setMatchFilter(@Nullable List<byte[]> matchFilter) { in setMatchFilter() argument
432 matchFilter).getArray(); in setMatchFilter()
DSubscribeConfig.java112 public SubscribeConfig(byte[] serviceName, byte[] serviceSpecificInfo, byte[] matchFilter, in SubscribeConfig() argument
119 mMatchFilter = matchFilter; in SubscribeConfig()
190 byte[] matchFilter = in.createByteArray();
204 return new SubscribeConfig(serviceName, ssi, matchFilter, subscribeType, ttlSec,
454 public Builder setMatchFilter(@Nullable List<byte[]> matchFilter) { in setMatchFilter() argument
456 matchFilter).getArray(); in setMatchFilter()
DIWifiAwareDiscoverySessionCallback.aidl37 void onMatch(int peerId, in byte[] serviceSpecificInfo, in byte[] matchFilter, in onMatch() argument
40 void onMatchWithDistance(int peerId, in byte[] serviceSpecificInfo, in byte[] matchFilter, in onMatchWithDistance() argument
DServiceDiscoveryInfo.java43 @NonNull List<byte[]> matchFilter, @Nullable byte[] scid, String pairingAlias, in ServiceDiscoveryInfo() argument
46 mMatchFilters = matchFilter; in ServiceDiscoveryInfo()
DDiscoverySessionCallback.java172 byte[] serviceSpecificInfo, List<byte[]> matchFilter) { in onServiceDiscovered() argument
222 byte[] serviceSpecificInfo, List<byte[]> matchFilter, int distanceMm) { in onServiceDiscoveredWithinRange() argument
DWifiAwareManager.java1060 public void onMatch(int peerId, byte[] serviceSpecificInfo, byte[] matchFilter, in onMatch() argument
1066 List<byte[]> matchFilterList = getMatchFilterList(matchFilter); in onMatch()
1076 private List<byte[]> getMatchFilterList(byte[] matchFilter) { in getMatchFilterList() argument
1079 matchFilterList = new TlvBufferUtils.TlvIterable(0, 1, matchFilter).toList(); in getMatchFilterList()
1083 + new String(HexEncoding.encode(matchFilter)) in getMatchFilterList()
1090 public void onMatchWithDistance(int peerId, byte[] serviceSpecificInfo, byte[] matchFilter, in onMatchWithDistance() argument
1097 List<byte[]> matchFilterList = getMatchFilterList(matchFilter); in onMatchWithDistance()
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DWifiNanIfaceCallbackHidlImpl.java337 convertArrayListToNativeByteArray(event.matchFilter)) + ", mf.size()=" + ( in eventMatch()
338 event.matchFilter == null ? 0 : event.matchFilter.size()) in eventMatch()
344 convertArrayListToNativeByteArray(event.matchFilter), in eventMatch()
360 convertArrayListToNativeByteArray(event.matchFilter)) + ", mf.size()=" + ( in eventMatch_1_6()
361 event.matchFilter == null ? 0 : event.matchFilter.size()) in eventMatch_1_6()
368 convertArrayListToNativeByteArray(event.matchFilter), in eventMatch_1_6()
DWifiNanIfaceCallbackAidlImpl.java403 + ", matchFilter=" + Arrays.toString(event.matchFilter) in eventMatch()
404 + ", mf.size()=" + (event.matchFilter == null ? 0 : event.matchFilter.length) in eventMatch()
410 event.addr, event.serviceSpecificInfo, event.matchFilter, in eventMatch()
DWifiNanIface.java738 byte[] serviceSpecificInfo, byte[] matchFilter, int rangingIndicationType, in eventMatch() argument
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DOperationManager.cpp36 bool OperationSignature::matchFilter(const OperationFilter& filter) { in matchFilter() function in android::nn::fuzzing_test::OperationSignature
72 if (!mFilteredSignatures.back().matchFilter(filter)) mFilteredSignatures.pop_back(); in applyFilter()
DOperationManager.h93 bool matchFilter(const OperationFilter& filter);
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java342 final byte[] matchFilter = { 1, 12, 2, 31, 32 }; in testPublishFlow()
381 sessionProxyCallback.getValue().onMatch(peerHandle.peerId, string1.getBytes(), matchFilter, in testPublishFlow()
396 List<byte[]> parsedMatchFilter = new TlvBufferUtils.TlvIterable(0, 1, matchFilter).toList(); in testPublishFlow()
501 final byte[] matchFilter = { 1, 12, 3, 31, 32 }; // bad data! in testSubscribeFlow()
539 sessionProxyCallback.getValue().onMatch(peerHandle.peerId, string1.getBytes(), matchFilter, in testSubscribeFlow()
542 matchFilter, distanceMm, 0, new byte[0], null, null); in testSubscribeFlow()
831 final byte[] matchFilter = { 1, 16, 1, 22 }; in testSubscribeConfigBuilder()
840 new TlvBufferUtils.TlvIterable(0, 1, matchFilter).toList()) in testSubscribeConfigBuilder()
851 collector.checkThat("mMatchFilter", matchFilter, equalTo(subscribeConfig.mMatchFilter)); in testSubscribeConfigBuilder()
867 final byte[] matchFilter = { 1, 16, 1, 22 }; in testSubscribeConfigParcel()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDiscoverySessionState.java589 byte[] matchFilter, int rangingIndication, int rangeMm, int peerCipherSuite, in onMatch() argument
596 mCallback.onMatch(peerId, serviceSpecificInfo, matchFilter, peerCipherSuite, scid, in onMatch()
599 mCallback.onMatchWithDistance(peerId, serviceSpecificInfo, matchFilter, rangeMm, in onMatch()
DWifiAwareNativeCallback.java338 byte[] serviceSpecificInfo, byte[] matchFilter, int rangingIndicationType, in eventMatch() argument
343 addr, serviceSpecificInfo, matchFilter, rangingIndicationType, in eventMatch()
DWifiAwareStateManager.java1885 byte[] serviceSpecificInfo, byte[] matchFilter, int rangingIndication, int rangeMm, in onMatchNotification() argument
1894 msg.getData().putByteArray(MESSAGE_BUNDLE_KEY_FILTER_DATA, matchFilter); in onMatchNotification()
2331 byte[] matchFilter = msg.getData().getByteArray(MESSAGE_BUNDLE_KEY_FILTER_DATA); in processNotification()
2342 matchFilter, rangingIndication, rangeMm, cipherSuite, scid, nonce, tag, in processNotification()
4775 byte[] serviceSpecificInfo, byte[] matchFilter, int rangingIndication, int rangeMm, in onMatchLocal() argument
4782 + ", matchFilter=" + Arrays.toString(matchFilter) in onMatchLocal()
4798 matchFilter, rangingIndication, rangeMm, cipherSuite, scid, pairingAlias, in onMatchLocal()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareServiceImplTest.java979 private void doBadPublishConfiguration(String serviceName, byte[] ssi, byte[] matchFilter) in doBadPublishConfiguration() argument
984 PublishConfig publishConfig = new PublishConfig(serviceName.getBytes(), ssi, matchFilter, in doBadPublishConfiguration()
996 private void doBadSubscribeConfiguration(String serviceName, byte[] ssi, byte[] matchFilter) in doBadSubscribeConfiguration() argument
1002 matchFilter, SubscribeConfig.SUBSCRIBE_TYPE_PASSIVE, 0, true, false, 0, false, 0, in doBadSubscribeConfiguration()