Home
last modified time | relevance | path

Searched refs:ConfigSelectionException (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Uwb/ranging/service/tests/unittests/src/com/android/ranging/tests/cs/
DCsConfigSelectorTest.java40 import com.android.server.ranging.RangingEngine.ConfigSelectionException;
87 public void constructor_withCapableConfig() throws ConfigSelectionException { in constructor_withCapableConfig()
91 @Test(expected = ConfigSelectionException.class)
93 throws ConfigSelectionException { in constructorFails_whenIncapableOfConfiguredSecurityLevel()
99 @Test(expected = ConfigSelectionException.class)
101 throws ConfigSelectionException { in constructorFails_whenIncapableOfConfiguredRangingInterval()
109 public void addPeerCapabilities_addsPeerToConfigure() throws ConfigSelectionException { in addPeerCapabilities_addsPeerToConfigure()
119 @Test(expected = ConfigSelectionException.class)
120 public void addPeerCapabilities_failsWhenCsCapabilitiesNull() throws ConfigSelectionException { in addPeerCapabilities_failsWhenCsCapabilitiesNull()
129 public void selectConfigs_selectsCompatibleConfig() throws ConfigSelectionException { in selectConfigs_selectsCompatibleConfig()
[all …]
/packages/modules/Uwb/ranging/service/java/com/android/server/ranging/uwb/
DUwbConfigSelector.java54 import com.android.server.ranging.RangingEngine.ConfigSelectionException;
139 ) throws ConfigSelectionException { in UwbConfigSelector()
141 throw new ConfigSelectionException("Local device is incapable of provided UWB config", in UwbConfigSelector()
166 ) throws ConfigSelectionException { in addPeerCapabilities()
169 throw new ConfigSelectionException("Peer " + peer + " does not support UWB", in addPeerCapabilities()
173 throw new ConfigSelectionException("Peer does not support initiator role", in addPeerCapabilities()
199 > selectConfigs() throws ConfigSelectionException { in selectConfigs()
213 SelectedUwbConfig() throws ConfigSelectionException { in SelectedUwbConfig()
268 private @UwbRangingParams.ConfigId int selectConfigId() throws ConfigSelectionException { in selectConfigId()
281 throw new ConfigSelectionException("Failed to find agreeable config id", in selectConfigId()
[all …]
/packages/modules/Uwb/ranging/service/java/com/android/server/ranging/
DRangingEngine.java73 public static class ConfigSelectionException extends Exception { class in RangingEngine
76 public ConfigSelectionException(String message, @InternalReason int reason) { in ConfigSelectionException() method in RangingEngine.ConfigSelectionException
88 @NonNull CapabilityResponseMessage response) throws ConfigSelectionException; in addPeerCapabilities()
95 > selectConfigs() throws ConfigSelectionException; in selectConfigs()
122 ) throws ConfigSelectionException { in RangingEngine()
140 throw new ConfigSelectionException( in RangingEngine()
152 ) throws ConfigSelectionException { in addPeerCapabilities()
169 public SelectedConfig selectConfigs() throws ConfigSelectionException { in selectConfigs()
226 } catch (ConfigSelectionException ignored) { in createConfigSelectorIfEnabledAndSupported()
233 ) throws ConfigSelectionException { in createConfigSelector()
[all …]
/packages/modules/Uwb/ranging/service/java/com/android/server/ranging/blerssi/
DBleRssiConfigSelector.java36 import com.android.server.ranging.RangingEngine.ConfigSelectionException;
67 ) throws ConfigSelectionException { in BleRssiConfigSelector()
69 throw new ConfigSelectionException( in BleRssiConfigSelector()
81 ) throws ConfigSelectionException { in addPeerCapabilities()
84 throw new ConfigSelectionException("Peer " + peer + " does not support BLE RSSI", in addPeerCapabilities()
100 > selectConfigs() throws ConfigSelectionException { in selectConfigs()
108 SelectedBleRssiConfig() throws ConfigSelectionException { in SelectedBleRssiConfig()
134 throws ConfigSelectionException { in selectRangingUpdateRate()
138 .orElseThrow(() -> new ConfigSelectionException( in selectRangingUpdateRate()
/packages/modules/Uwb/ranging/service/java/com/android/server/ranging/cs/
DCsConfigSelector.java37 import com.android.server.ranging.RangingEngine.ConfigSelectionException;
79 ) throws ConfigSelectionException { in CsConfigSelector()
81 throw new ConfigSelectionException( in CsConfigSelector()
94 ) throws ConfigSelectionException { in addPeerCapabilities()
97 throw new ConfigSelectionException("Peer " + peer + " does not support CS", in addPeerCapabilities()
113 > selectConfigs() throws ConfigSelectionException { in selectConfigs()
122 SelectedCsConfig() throws ConfigSelectionException { in SelectedCsConfig()
155 throws ConfigSelectionException { in selectRangingUpdateRate()
159 .orElseThrow(() -> new ConfigSelectionException( in selectRangingUpdateRate()
/packages/modules/Uwb/ranging/service/java/com/android/server/ranging/rtt/
DRttConfigSelector.java38 import com.android.server.ranging.RangingEngine.ConfigSelectionException;
87 ) throws ConfigSelectionException { in RttConfigSelector()
89 throw new ConfigSelectionException( in RttConfigSelector()
107 ) throws ConfigSelectionException { in addPeerCapabilities()
110 throw new ConfigSelectionException( in addPeerCapabilities()
123 > selectConfigs() throws ConfigSelectionException { in selectConfigs()
132 SelectedRttConfig() throws RangingEngine.ConfigSelectionException { in SelectedRttConfig()
135 .orElseThrow(() -> new RangingEngine.ConfigSelectionException( in SelectedRttConfig()
/packages/modules/Uwb/ranging/service/tests/unittests/src/com/android/ranging/tests/uwb/
DUwbConfigSelectorTest.java61 import com.android.server.ranging.RangingEngine.ConfigSelectionException;
128 private UwbConfigSelector createConfigSelector() throws ConfigSelectionException { in createConfigSelector()
173 @Test(expected = ConfigSelectionException.class)
175 throws ConfigSelectionException { in newUwbConfigSelector_failsWhenSecurityLevelIncompatible()
185 @Test(expected = ConfigSelectionException.class)
187 throws ConfigSelectionException { in addPeerCapabilities_failsWhenPeerIncapableOfInitiatorRole()
201 throws ConfigSelectionException { in shouldUseProvisionedSts_whenSecurityLevelSecure()
232 public void shouldUseVeryFastConfigId_whenSupported() throws ConfigSelectionException { in shouldUseVeryFastConfigId_whenSupported()
264 public void shouldConfigureOneSession_whenOnePeerAdded() throws ConfigSelectionException { in shouldConfigureOneSession_whenOnePeerAdded()
290 throws ConfigSelectionException { in shouldConfigureMultipleSessions_whenMultiplePeersAdded()
[all …]
/packages/modules/Uwb/ranging/service/java/com/android/server/ranging/session/
DOobInitiatorRangingSession.java95 } catch (RangingEngine.ConfigSelectionException e) { in start()
115 case RangingEngine.ConfigSelectionException e -> in start()
206 throws RangingEngine.ConfigSelectionException { in sendSetConfigMessages()
220 new RangingEngine.ConfigSelectionException( in sendSetConfigMessages()
241 ) throws RangingEngine.ConfigSelectionException {