Home
last modified time | relevance | path

Searched refs:ResponderConfig (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/wifi/java/android/net/wifi/rtt/
DResponderConfig.java46 public final class ResponderConfig implements Parcelable { class
200 public ResponderConfig(@NonNull MacAddress macAddress, @ResponderType int responderType, in ResponderConfig() method in ResponderConfig
239 public ResponderConfig(@NonNull PeerHandle peerHandle, @ResponderType int responderType, in ResponderConfig() method in ResponderConfig
277 public ResponderConfig(@NonNull MacAddress macAddress, @NonNull PeerHandle peerHandle, in ResponderConfig() method in ResponderConfig
296 public static ResponderConfig fromScanResult(ScanResult scanResult) { in fromScanResult()
332 return new ResponderConfig(macAddress, responderType, supports80211mc, channelWidth, in fromScanResult()
340 public static ResponderConfig fromWifiAwarePeerMacAddressWithDefaults(MacAddress macAddress) { in fromWifiAwarePeerMacAddressWithDefaults()
346 return new ResponderConfig(macAddress, RESPONDER_AWARE, true, CHANNEL_WIDTH_20MHZ, in fromWifiAwarePeerMacAddressWithDefaults()
354 public static ResponderConfig fromWifiAwarePeerHandleWithDefaults(PeerHandle peerHandle) { in fromWifiAwarePeerHandleWithDefaults()
360 return new ResponderConfig(peerHandle, RESPONDER_AWARE, true, CHANNEL_WIDTH_20MHZ, in fromWifiAwarePeerHandleWithDefaults()
[all …]
DRangingRequest.java62 public final List<ResponderConfig> mRttPeers;
65 private RangingRequest(List<ResponderConfig> rttPeers) { in RangingRequest()
95 for (ResponderConfig rc : mRttPeers) { in toString()
108 for (ResponderConfig peer: mRttPeers) { in enforceValidity()
119 private List<ResponderConfig> mRttPeers = new ArrayList<>();
139 return addResponder(ResponderConfig.fromScanResult(apInfo)); in addAccessPoint()
190 ResponderConfig.fromWifiAwarePeerMacAddressWithDefaults(peerMacAddress)); in addWifiAwarePeer()
215 return addResponder(ResponderConfig.fromWifiAwarePeerHandleWithDefaults(peerHandle)); in addWifiAwarePeer()
229 public Builder addResponder(@NonNull ResponderConfig responder) { in addResponder()
DResponderConfig.aidl19 parcelable ResponderConfig;
/frameworks/base/wifi/tests/src/android/net/wifi/rtt/
DWifiRttManagerTest.java308 ResponderConfig config = new ResponderConfig(MacAddress.fromString("00:01:02:03:04:05"), in testResponderConfigParcel()
309 ResponderConfig.RESPONDER_AP, true, ResponderConfig.CHANNEL_WIDTH_80MHZ, 2134, 2345, in testResponderConfigParcel()
310 2555, ResponderConfig.PREAMBLE_LEGACY); in testResponderConfigParcel()
320 ResponderConfig rereadConfig = ResponderConfig.CREATOR.createFromParcel(parcelR); in testResponderConfigParcel()
325 config = new ResponderConfig(new PeerHandle(10), ResponderConfig.RESPONDER_AWARE, false, in testResponderConfigParcel()
326 ResponderConfig.CHANNEL_WIDTH_80MHZ_PLUS_MHZ, 5555, 6666, 7777, in testResponderConfigParcel()
327 ResponderConfig.PREAMBLE_VHT); in testResponderConfigParcel()
337 rereadConfig = ResponderConfig.CREATOR.createFromParcel(parcelR); in testResponderConfigParcel()
360 scan.channelWidth = ResponderConfig.CHANNEL_WIDTH_80MHZ; in testResponderPreambleSelection()
362 ResponderConfig config = ResponderConfig.fromScanResult(scan); in testResponderPreambleSelection()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttNative.java33 import android.net.wifi.rtt.ResponderConfig;
286 for (ResponderConfig responder: request.mRttPeers) { in convertRangingRequestToRttConfigs()
354 case ResponderConfig.RESPONDER_AP: in halRttPeerTypeFromResponderType()
356 case ResponderConfig.RESPONDER_STA: in halRttPeerTypeFromResponderType()
358 case ResponderConfig.RESPONDER_P2P_GO: in halRttPeerTypeFromResponderType()
360 case ResponderConfig.RESPONDER_P2P_CLIENT: in halRttPeerTypeFromResponderType()
362 case ResponderConfig.RESPONDER_AWARE: in halRttPeerTypeFromResponderType()
372 case ResponderConfig.CHANNEL_WIDTH_20MHZ: in halChannelWidthFromResponderChannelWidth()
374 case ResponderConfig.CHANNEL_WIDTH_40MHZ: in halChannelWidthFromResponderChannelWidth()
376 case ResponderConfig.CHANNEL_WIDTH_80MHZ: in halChannelWidthFromResponderChannelWidth()
[all …]
DRttMetrics.java28 import android.net.wifi.rtt.ResponderConfig;
134 for (ResponderConfig request : requests.mRttPeers) { in recordRequest()
138 if (request.responderType == ResponderConfig.RESPONDER_AWARE) { in recordRequest()
140 } else if (request.responderType == ResponderConfig.RESPONDER_AP) { in recordRequest()
155 Map<MacAddress, ResponderConfig> requestEntries = new HashMap<>(); in recordResult()
156 for (ResponderConfig responder : requests.mRttPeers) { in recordResult()
165 ResponderConfig responder = requestEntries.remove( in recordResult()
174 if (responder.responderType == ResponderConfig.RESPONDER_AP) { in recordResult()
176 } else if (responder.responderType == ResponderConfig.RESPONDER_AWARE) { in recordResult()
184 for (ResponderConfig responder : requestEntries.values()) { in recordResult()
[all …]
DRttServiceImpl.java39 import android.net.wifi.rtt.ResponderConfig;
428 for (ResponderConfig responder : request.mRttPeers) { in startRanging()
592 for (ResponderConfig peer : rri.request.mRttPeers) { in cancelRanging()
855 for (ResponderConfig responderConfig : nextRequest.request.mRttPeers) { in startRanging()
856 if (responderConfig.responderType == ResponderConfig.RESPONDER_AWARE) { in startRanging()
988 for (ResponderConfig rttPeer : request.request.mRttPeers) { in processAwarePeerHandles()
1051 for (ResponderConfig rttPeer : request.request.mRttPeers) { in processReceivedAwarePeerMacAddresses()
1059 newRequestBuilder.addResponder(new ResponderConfig( in processReceivedAwarePeerMacAddresses()
1141 for (ResponderConfig peer : request.mRttPeers) { in postProcessResults()
/frameworks/base/wifi/java/android/net/wifi/
DRttManager.java969 android.net.wifi.rtt.ResponderConfig.fromScanResult(reconstructed)); in startRanging()
1041 public abstract void onResponderEnabled(ResponderConfig config); in onResponderEnabled()
1095 public static class ResponderConfig implements Parcelable { class in RttManager
1161 … public static final @android.annotation.NonNull Parcelable.Creator<ResponderConfig> CREATOR =
1162 new Parcelable.Creator<ResponderConfig>() {
1164 public ResponderConfig createFromParcel(Parcel in) {
1165 ResponderConfig config = new ResponderConfig();
1176 public ResponderConfig[] newArray(int size) {
1177 return new ResponderConfig[size];
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttMetricsTest.java26 import android.net.wifi.rtt.ResponderConfig;
566 builder.addResponder(new ResponderConfig(MacAddress.fromBytes(dummyMacBase), in getDummyRangingRequest()
567 ResponderConfig.RESPONDER_AP, true, 0, 0, 0, 0, 0)); in getDummyRangingRequest()
571 builder.addResponder(new ResponderConfig(MacAddress.fromBytes(dummyMacBase), in getDummyRangingRequest()
572 ResponderConfig.RESPONDER_AWARE, true, 0, 0, 0, 0, 0)); in getDummyRangingRequest()
583 for (ResponderConfig peer : request.mRttPeers) { in getDummyRangingResults()
DRttTestUtils.java25 import android.net.wifi.rtt.ResponderConfig;
130 for (ResponderConfig peer: request.mRttPeers) { in getDummyRangingResults()
DRttServiceImplTest.java61 import android.net.wifi.rtt.ResponderConfig;
312 request.mRttPeers.add(ResponderConfig.fromWifiAwarePeerHandleWithDefaults(peerHandle1)); in testRangingFlowUsingAwarePeerHandles()
313 request.mRttPeers.add(ResponderConfig.fromWifiAwarePeerHandleWithDefaults(peerHandle2)); in testRangingFlowUsingAwarePeerHandles()
314 request.mRttPeers.add(ResponderConfig.fromWifiAwarePeerHandleWithDefaults(peerHandle3)); in testRangingFlowUsingAwarePeerHandles()
/frameworks/base/api/
Dsystem-current.txt4548 …d @Deprecated public abstract void onResponderEnabled(android.net.wifi.RttManager.ResponderConfig);
4551 @Deprecated public static class RttManager.ResponderConfig implements android.os.Parcelable {
4552 ctor @Deprecated public RttManager.ResponderConfig();
4555 …ic static final android.os.Parcelable.Creator<android.net.wifi.RttManager.ResponderConfig> CREATOR;
4982 …id.net.wifi.rtt.RangingRequest.Builder addResponder(@NonNull android.net.wifi.rtt.ResponderConfig);
4990 public final class ResponderConfig implements android.os.Parcelable {
4991 …ctor public ResponderConfig(@NonNull android.net.MacAddress, int, boolean, int, int, int, int, int…
4992 …ctor public ResponderConfig(@NonNull android.net.wifi.aware.PeerHandle, int, boolean, int, int, in…
4994 …method public static android.net.wifi.rtt.ResponderConfig fromScanResult(android.net.wifi.ScanResu…
4995 …method public static android.net.wifi.rtt.ResponderConfig fromWifiAwarePeerHandleWithDefaults(andr…
[all …]