/packages/modules/Uwb/service/java/com/android/server/uwb/ |
D | UwbSessionNotificationHelper.java | 21 import com.android.server.uwb.data.UwbUciConstants; 35 case UwbUciConstants.REASON_STATE_CHANGE_WITH_SESSION_MANAGEMENT_COMMANDS: in convertUciReasonCodeToApiReasonCode() 38 case UwbUciConstants.REASON_MAX_RANGING_ROUND_RETRY_COUNT_REACHED: in convertUciReasonCodeToApiReasonCode() 41 case UwbUciConstants.REASON_MAX_NUMBER_OF_MEASUREMENTS_REACHED: in convertUciReasonCodeToApiReasonCode() 44 case UwbUciConstants.REASON_ERROR_INSUFFICIENT_SLOTS_PER_RR: in convertUciReasonCodeToApiReasonCode() 45 case UwbUciConstants.REASON_ERROR_SLOT_LENGTH_NOT_SUPPORTED: in convertUciReasonCodeToApiReasonCode() 46 case UwbUciConstants.REASON_ERROR_INVALID_UL_TDOA_RANDOM_WINDOW: in convertUciReasonCodeToApiReasonCode() 47 case UwbUciConstants.REASON_ERROR_MAC_ADDRESS_MODE_NOT_SUPPORTED: in convertUciReasonCodeToApiReasonCode() 48 case UwbUciConstants.REASON_ERROR_INVALID_RANGING_INTERVAL: in convertUciReasonCodeToApiReasonCode() 49 case UwbUciConstants.REASON_ERROR_INVALID_STS_CONFIG: in convertUciReasonCodeToApiReasonCode() [all …]
|
D | UwbSessionManager.java | 20 import static com.android.server.uwb.data.UwbUciConstants.DEVICE_TYPE_CONTROLLER; 21 import static com.android.server.uwb.data.UwbUciConstants.MAC_ADDRESSING_MODE_EXTENDED; 22 import static com.android.server.uwb.data.UwbUciConstants.MAC_ADDRESSING_MODE_SHORT; 23 import static com.android.server.uwb.data.UwbUciConstants.RANGING_DEVICE_ROLE_OBSERVER; 24 import static com.android.server.uwb.data.UwbUciConstants.REASON_STATE_CHANGE_WITH_SESSION_MANAGEME… 25 import static com.android.server.uwb.data.UwbUciConstants.ROUND_USAGE_OWR_AOA_MEASUREMENT; 26 import static com.android.server.uwb.data.UwbUciConstants.STATUS_CODE_OK; 27 import static com.android.server.uwb.data.UwbUciConstants.UWB_DEVICE_EXT_MAC_ADDRESS_LEN; 28 import static com.android.server.uwb.data.UwbUciConstants.UWB_DEVICE_SHORT_MAC_ADDRESS_LEN; 29 import static com.android.server.uwb.data.UwbUciConstants.UWB_SESSION_STATE_ACTIVE; [all …]
|
D | UwbMetrics.java | 28 import com.android.server.uwb.data.UwbUciConstants; 60 .of((int) UwbUciConstants.RANGING_MEASUREMENT_TYPE_TWO_WAY, 61 (int) UwbUciConstants.RANGING_MEASUREMENT_TYPE_DL_TDOA, 62 (int) UwbUciConstants.RANGING_MEASUREMENT_TYPE_OWR_AOA); 193 case UwbUciConstants.STATUS_CODE_OK: in convertInitStatus() 196 case UwbUciConstants.STATUS_CODE_ERROR_MAX_SESSIONS_EXCEEDED: in convertInitStatus() 199 case UwbUciConstants.STATUS_CODE_ERROR_SESSION_DUPLICATE: in convertInitStatus() 202 case UwbUciConstants.STATUS_CODE_INVALID_PARAM: in convertInitStatus() 203 case UwbUciConstants.STATUS_CODE_INVALID_RANGE: in convertInitStatus() 204 case UwbUciConstants.STATUS_CODE_INVALID_MESSAGE_SIZE: in convertInitStatus() [all …]
|
D | UwbConfigurationManager.java | 23 import com.android.server.uwb.data.UwbUciConstants; 50 int status = UwbUciConstants.STATUS_CODE_FAILED; in setAppConfigurations() 79 status = UwbUciConstants.STATUS_CODE_FAILED; in setAppConfigurations() 83 status = UwbUciConstants.STATUS_CODE_OK; in setAppConfigurations() 126 return Pair.create(UwbUciConstants.STATUS_CODE_FAILED, null); in decodeTLV() 138 return Pair.create(UwbUciConstants.STATUS_CODE_FAILED, null); in decodeTLV() 148 return Pair.create(UwbUciConstants.STATUS_CODE_FAILED, null); in decodeTLV() 150 return Pair.create(UwbUciConstants.STATUS_CODE_OK, params); in decodeTLV()
|
D | UwbServiceCore.java | 21 import static com.android.server.uwb.data.UwbUciConstants.FIRA_VERSION_MAJOR_2; 22 import static com.android.server.uwb.data.UwbUciConstants.STATUS_CODE_OK; 57 import com.android.server.uwb.data.UwbUciConstants; 358 case UwbUciConstants.DEVICE_STATE_OFF: in getDeviceStateString() 361 case UwbUciConstants.DEVICE_STATE_READY: in getDeviceStateString() 364 case UwbUciConstants.DEVICE_STATE_ACTIVE: in getDeviceStateString() 367 case UwbUciConstants.DEVICE_STATE_ERROR: in getDeviceStateString() 400 if ((byte) deviceState == UwbUciConstants.DEVICE_STATE_ERROR) { in onDeviceStatusNotificationReceived() 468 if (deviceState == UwbUciConstants.DEVICE_STATE_OFF) { in getAdapterStateFromDeviceState() 470 } else if (deviceState == UwbUciConstants.DEVICE_STATE_READY) { in getAdapterStateFromDeviceState() [all …]
|
D | UwbTestUtils.java | 19 import static com.android.server.uwb.data.UwbUciConstants.MAC_ADDRESSING_MODE_SHORT; 20 import static com.android.server.uwb.data.UwbUciConstants.RANGING_MEASUREMENT_TYPE_DL_TDOA; 21 import static com.android.server.uwb.data.UwbUciConstants.RANGING_MEASUREMENT_TYPE_OWR_AOA; 22 import static com.android.server.uwb.data.UwbUciConstants.RANGING_MEASUREMENT_TYPE_TWO_WAY;
|
D | UwbSessionNotificationManager.java | 40 import com.android.server.uwb.data.UwbUciConstants; 668 if (rangingData.getRangingMeasuresType() != UwbUciConstants.RANGING_MEASUREMENT_TYPE_TWO_WAY in getRangingReport() 670 != UwbUciConstants.RANGING_MEASUREMENT_TYPE_OWR_AOA in getRangingReport() 672 != UwbUciConstants.RANGING_MEASUREMENT_TYPE_DL_TDOA) { in getRangingReport() 727 == UwbUciConstants.RANGING_MEASUREMENT_TYPE_TWO_WAY) { in getRangingReport() 788 == UwbUciConstants.RANGING_MEASUREMENT_TYPE_OWR_AOA) { in getRangingReport() 813 == UwbUciConstants.RANGING_MEASUREMENT_TYPE_DL_TDOA) { in getRangingReport()
|
D | UwbServiceImpl.java | 50 import com.android.server.uwb.data.UwbUciConstants; 518 return UwbUciConstants.STATUS_CODE_FAILED; in removeServiceProfile()
|
D | UwbCountryCode.java | 19 import static com.android.server.uwb.data.UwbUciConstants.STATUS_CODE_OK;
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/ |
D | UwbSessionManagerTest.java | 44 import static com.android.server.uwb.data.UwbUciConstants.MAC_ADDRESSING_MODE_EXTENDED; 45 import static com.android.server.uwb.data.UwbUciConstants.MAC_ADDRESSING_MODE_SHORT; 46 import static com.android.server.uwb.data.UwbUciConstants.RANGING_DEVICE_ROLE_ADVERTISER; 47 import static com.android.server.uwb.data.UwbUciConstants.RANGING_DEVICE_ROLE_OBSERVER; 48 import static com.android.server.uwb.data.UwbUciConstants.RANGING_MEASUREMENT_TYPE_OWR_AOA; 49 import static com.android.server.uwb.data.UwbUciConstants.RANGING_MEASUREMENT_TYPE_TWO_WAY; 50 import static com.android.server.uwb.data.UwbUciConstants.ROUND_USAGE_DS_TWR_DEFERRED_MODE; 51 import static com.android.server.uwb.data.UwbUciConstants.ROUND_USAGE_DS_TWR_NON_DEFERRED_MODE; 52 import static com.android.server.uwb.data.UwbUciConstants.ROUND_USAGE_OWR_AOA_MEASUREMENT; 53 import static com.android.server.uwb.data.UwbUciConstants.STATUS_CODE_DATA_TRANSFER_ERROR_DATA_TRAN… [all …]
|
D | UwbSessionNotificationManagerTest.java | 23 import static com.android.server.uwb.data.UwbUciConstants.MAC_ADDRESSING_MODE_SHORT; 24 import static com.android.server.uwb.data.UwbUciConstants.RANGING_MEASUREMENT_TYPE_DL_TDOA; 25 import static com.android.server.uwb.data.UwbUciConstants.RANGING_MEASUREMENT_TYPE_OWR_AOA; 26 import static com.android.server.uwb.data.UwbUciConstants.RANGING_MEASUREMENT_TYPE_TWO_WAY; 27 import static com.android.server.uwb.data.UwbUciConstants.STATUS_CODE_FAILED; 64 import com.android.server.uwb.data.UwbUciConstants; 413 int status = UwbUciConstants.STATUS_CODE_ERROR_MAX_SESSIONS_EXCEEDED; in testOnRangingOpenFailed() 431 int status = UwbUciConstants.STATUS_CODE_INVALID_PARAM; in testOnRangingStartFailed() 441 int reasonCode = UwbUciConstants.REASON_ERROR_SESSION_KEY_NOT_FOUND; in testOnRangingStartFailedWithUciReasonCode() 445 int expectedStatusCode = UwbUciConstants.STATUS_CODE_ERROR_SESSION_NOT_EXIST; in testOnRangingStartFailedWithUciReasonCode() [all …]
|
D | UwbMetricsTest.java | 43 import com.android.server.uwb.data.UwbUciConstants; 137 (int) UwbUciConstants.RANGING_MEASUREMENT_TYPE_TWO_WAY); in setUp() 235 mUwbMetrics.logRangingInitEvent(mUwbSession, UwbUciConstants.STATUS_CODE_OK); in testLogRangingSessionAllEvents() 246 UwbUciConstants.STATUS_CODE_RANGING_TX_FAILED); in testLogRangingSessionAllEvents() 248 mUwbMetrics.longRangingStartEvent(mUwbSession, UwbUciConstants.STATUS_CODE_OK); in testLogRangingSessionAllEvents() 261 mUwbMetrics.logDataRx(mUwbSession, UwbUciConstants.STATUS_CODE_OK); in testLogRangingSessionAllEvents() 263 mUwbMetrics.logDataRx(mUwbSession, UwbUciConstants.STATUS_CODE_FAILED); in testLogRangingSessionAllEvents() 266 mUwbMetrics.logDataTx(mUwbSession, UwbUciConstants.STATUS_CODE_OK); in testLogRangingSessionAllEvents() 268 mUwbMetrics.logDataTx(mUwbSession, UwbUciConstants.STATUS_CODE_FAILED); in testLogRangingSessionAllEvents() 272 mUwbMetrics.logRangingCloseEvent(mUwbSession, UwbUciConstants.STATUS_CODE_FAILED); in testLogRangingSessionAllEvents() [all …]
|
D | UwbConfigurationManagerTest.java | 58 import com.android.server.uwb.data.UwbUciConstants; 139 byte[] cfgStatus = {0x01, UwbUciConstants.STATUS_CODE_OK}; in testSetAppConfigurations() 140 UwbConfigStatusData appConfig = new UwbConfigStatusData(UwbUciConstants.STATUS_CODE_OK, in testSetAppConfigurations() 155 assertEquals(UwbUciConstants.STATUS_CODE_OK, status); in testSetAppConfigurations() 160 byte[] cfgStatus = {0x01, UwbUciConstants.STATUS_CODE_OK}; in testSetAppConfigurations_radarSession() 161 UwbConfigStatusData appConfig = new UwbConfigStatusData(UwbUciConstants.STATUS_CODE_OK, in testSetAppConfigurations_radarSession() 172 assertEquals(UwbUciConstants.STATUS_CODE_OK, status); in testSetAppConfigurations_radarSession() 178 UwbTlvData getAppConfig = new UwbTlvData(UwbUciConstants.STATUS_CODE_OK, 1, tlvs); in testGetAppConfigurations() 193 UwbTlvData getAppConfig = new UwbTlvData(UwbUciConstants.STATUS_CODE_OK, 1, tlvs); in testGetCapsInfo()
|
D | UwbServiceCoreTest.java | 21 import static com.android.server.uwb.data.UwbUciConstants.STATUS_CODE_ANDROID_REGULATION_UWB_OFF; 22 import static com.android.server.uwb.data.UwbUciConstants.STATUS_CODE_FAILED; 23 import static com.android.server.uwb.data.UwbUciConstants.STATUS_CODE_OK; 89 import com.android.server.uwb.data.UwbUciConstants; 232 UwbUciConstants.STATUS_CODE_OK, 341 UwbUciConstants.STATUS_CODE_OK, genericSpecificationParams)); in verifyGetSpecificationInfoSuccess() 363 UwbUciConstants.STATUS_CODE_OK, genericSpecificationParams)); in verifyGetCachedSpecificationInfoSuccess() 1075 UwbUciConstants.STATUS_CODE_OK, genericSpecificationParams)); in testOpenFiraRanging() 1511 mUwbServiceCore.onDeviceStatusNotificationReceived(UwbUciConstants.DEVICE_STATE_ACTIVE, in testGetAdapterState_multichip() 1522 mUwbServiceCore.onDeviceStatusNotificationReceived(UwbUciConstants.DEVICE_STATE_ACTIVE, in testGetAdapterState_multichip() [all …]
|
D | UwbServiceImplTest.java | 80 import com.android.server.uwb.data.UwbUciConstants; 792 .thenReturn(UwbUciConstants.STATUS_CODE_OK); in testRemoveServiceProfile() 800 assertEquals(status, UwbUciConstants.STATUS_CODE_OK); in testRemoveServiceProfile()
|
D | UwbCountryCodeTest.java | 20 import static com.android.server.uwb.data.UwbUciConstants.STATUS_CODE_FAILED; 21 import static com.android.server.uwb.data.UwbUciConstants.STATUS_CODE_OK;
|
/packages/modules/Uwb/service/java/com/android/server/uwb/data/ |
D | UwbTwoWayMeasurement.java | 47 this.mDistance = status == UwbUciConstants.STATUS_CODE_OK_NEGATIVE_DISTANCE_REPORT in UwbTwoWayMeasurement() 123 return mStatus == UwbUciConstants.STATUS_CODE_OK in isStatusCodeOk() 124 || mStatus == UwbUciConstants.STATUS_CODE_OK_NEGATIVE_DISTANCE_REPORT; in isStatusCodeOk() 132 case UwbUciConstants.STATUS_CODE_OK: in convertStatusCode() 133 case UwbUciConstants.STATUS_CODE_OK_NEGATIVE_DISTANCE_REPORT: in convertStatusCode() 135 case UwbUciConstants.STATUS_CODE_INVALID_RANGE: in convertStatusCode()
|
D | UwbRangingData.java | 123 if (mRangingMeasuresType == UwbUciConstants.RANGING_MEASUREMENT_TYPE_TWO_WAY) { in toString() 135 } else if (mRangingMeasuresType == UwbUciConstants.RANGING_MEASUREMENT_TYPE_OWR_AOA) { in toString() 147 } else if (mRangingMeasuresType == UwbUciConstants.RANGING_MEASUREMENT_TYPE_DL_TDOA) { in toString()
|
D | UwbUciConstants.java | 28 public class UwbUciConstants { class
|
/packages/modules/Uwb/service/java/com/android/server/uwb/params/ |
D | AliroEncoder.java | 27 import com.android.server.uwb.data.UwbUciConstants; 84 (byte) UwbUciConstants.DEVICE_TYPE_CONTROLLER) // DEVICE_TYPE in getTlvBufferFromAliroOpenRangingParams() 86 (byte) UwbUciConstants.STS_MODE_DYNAMIC) // STS_CONFIG in getTlvBufferFromAliroOpenRangingParams() 93 (byte) UwbUciConstants.RANGING_DEVICE_ROLE_INITIATOR) // DEVICE_ROLE in getTlvBufferFromAliroOpenRangingParams() 155 (byte) UwbUciConstants.RANGE_DATA_NTF_CONFIG_DISABLE); // RNG_DATA_NTF in getTlvBufferFromAliroOpenRangingParams()
|
D | CccEncoder.java | 27 import com.android.server.uwb.data.UwbUciConstants; 84 (byte) UwbUciConstants.DEVICE_TYPE_CONTROLLER) // DEVICE_TYPE in getTlvBufferFromCccOpenRangingParams() 86 (byte) UwbUciConstants.STS_MODE_DYNAMIC) // STS_CONFIG in getTlvBufferFromCccOpenRangingParams() 93 (byte) UwbUciConstants.RANGING_DEVICE_ROLE_INITIATOR) // DEVICE_ROLE in getTlvBufferFromCccOpenRangingParams() 154 (byte) UwbUciConstants.RANGE_DATA_NTF_CONFIG_DISABLE); // RNG_DATA_NTF in getTlvBufferFromCccOpenRangingParams()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/data/ |
D | UwbRangingDataTest.java | 19 import static com.android.server.uwb.data.UwbUciConstants.RANGING_MEASUREMENT_TYPE_DL_TDOA; 20 import static com.android.server.uwb.data.UwbUciConstants.RANGING_MEASUREMENT_TYPE_OWR_AOA; 21 import static com.android.server.uwb.data.UwbUciConstants.RANGING_MEASUREMENT_TYPE_TWO_WAY;
|
/packages/modules/Uwb/service/java/com/android/server/uwb/jni/ |
D | NativeUwbManager.java | 32 import com.android.server.uwb.data.UwbUciConstants; 146 || deviceInfoResponse.mStatusCode != UwbUciConstants.STATUS_CODE_OK) { in doInitialize() 387 if (status != UwbUciConstants.STATUS_CODE_OK) { in setCountryCode() 391 return UwbUciConstants.STATUS_CODE_OK; in setCountryCode()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/util/ |
D | DataTypeConversionUtil.java | 18 import static com.android.server.uwb.data.UwbUciConstants.UWB_DEVICE_EXT_MAC_ADDRESS_LEN; 19 import static com.android.server.uwb.data.UwbUciConstants.UWB_DEVICE_SHORT_MAC_ADDRESS_LEN;
|
/packages/modules/Uwb/service/java/com/android/server/uwb/pm/ |
D | ProfileManager.java | 39 import com.android.server.uwb.data.UwbUciConstants; 165 return UwbUciConstants.STATUS_CODE_FAILED; in removeServiceProfile() 168 return UwbUciConstants.STATUS_CODE_OK; in removeServiceProfile()
|