Home
last modified time | relevance | path

Searched refs:getDeviceRole (Results 1 – 17 of 17) sorted by relevance

/packages/modules/Uwb/service/java/com/android/server/uwb/params/
DFiraEncoder.java78 int deviceRole = params.getDeviceRole(); in getTlvBufferFromFiraOpenSessionParams()
97 .putByte(ConfigParam.DEVICE_ROLE, (byte) params.getDeviceRole()) in getTlvBufferFromFiraOpenSessionParams()
128 if (params.getDeviceRole() != FiraParams.RANGING_DEVICE_UT_TAG) { in getTlvBufferFromFiraOpenSessionParams()
233 if (params.getDeviceRole() == FiraParams.RANGING_DEVICE_UT_TAG) { in getTlvBufferFromFiraOpenSessionParams()
243 if (params.getDeviceRole() == FiraParams.RANGING_DEVICE_ROLE_ADVERTISER || in getTlvBufferFromFiraOpenSessionParams()
244 params.getDeviceRole() == FiraParams.RANGING_DEVICE_ROLE_OBSERVER) { in getTlvBufferFromFiraOpenSessionParams()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/data/
DUwbConfigTest.java245 assertEquals(controleeParams.getDeviceRole(), RANGING_DEVICE_ROLE_RESPONDER); in testGetOpenSessionParams()
268 assertEquals(controllerParams.getDeviceRole(), RANGING_DEVICE_ROLE_RESPONDER); in testGetOpenSessionParams()
294 assertEquals(controleeParams.getDeviceRole(), RANGING_DEVICE_ROLE_RESPONDER); in testGetOpenSessionParamsForDynamicStsIndKey()
328 assertEquals(controleeParams.getDeviceRole(), RANGING_DEVICE_ROLE_RESPONDER); in testPacsControllerProfileForProvSTSIndKey()
/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/
DThreadNetworkControllerTest.java452 assertThat(getDeviceRole(mController)).isEqualTo(DEVICE_ROLE_STOPPED);
470 assertThat(getDeviceRole(mController)).isEqualTo(DEVICE_ROLE_STOPPED);
488 assertThat(getDeviceRole(mController)).isEqualTo(DEVICE_ROLE_STOPPED);
759 assertThat(getDeviceRole(mController)).isEqualTo(DEVICE_ROLE_STOPPED);
781 assertThat(getDeviceRole(mController)).isEqualTo(DEVICE_ROLE_STOPPED);
925 return ThreadNetworkController.isAttached(getDeviceRole(controller));
928 private static int getDeviceRole(ThreadNetworkController controller) throws Exception {
/packages/modules/Connectivity/remoteauth/service/java/com/android/server/remoteauth/ranging/
DSessionParameters.java80 public int getDeviceRole() { in getDeviceRole() method in SessionParameters
DUwbRangingSession.java75 if (sessionParameters.getDeviceRole() == DEVICE_ROLE_INITIATOR) { in UwbRangingSession()
/packages/modules/Uwb/service/support_lib/test/
DOemExtensionTests.java170 assertEquals(params.getDeviceRole(), RANGING_DEVICE_ROLE_INITIATOR); in testSessionConfigParams()
DFiraTests.java227 assertEquals(params.getDeviceRole(), deviceRole); in testOpenSessionParams()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DThreadNetworkControllerWrapper.java104 public final int getDeviceRole() in getDeviceRole() method in ThreadNetworkControllerWrapper
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbMetricsTest.java172 when(mFiraParams.getDeviceRole()).thenReturn(FiraParams.RANGING_DEVICE_ROLE_INITIATOR); in setUp()
308 when(mFiraParams.getDeviceRole()).thenReturn(FiraParams.RANGING_DEVICE_ROLE_RESPONDER); in testLogRangingSessionInitFiraInvalidParams()
/packages/modules/Uwb/androidx_backend/tests/src/androidx/core/uwb/backend/impl/internal/
DConfigurationManagerTest.java100 assertEquals(params.getDeviceRole(), RANGING_DEVICE_ROLE_INITIATOR); in testCreateOpenSessionParams()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/
DThreadIntegrationTest.java164 assertThat(mController.getDeviceRole()).isEqualTo(DEVICE_ROLE_STOPPED); in otDaemonFactoryReset_deviceRoleIsStopped()
/packages/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/internal/
DRangingDevice.java495 if (openSessionParams.getDeviceRole() == RANGING_DEVICE_DT_TAG) {
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbMetrics.java176 mIsInitiator = params.getDeviceRole() == FiraParams.RANGING_DEVICE_ROLE_INITIATOR; in parseFiraParams()
DUwbSessionManager.java2544 if (firaParams.getDeviceRole() != RANGING_DEVICE_ROLE_OBSERVER) { in isValidUwbSessionForOwrAoaRanging()
2546 + firaParams.getDeviceRole()); in isValidUwbSessionForOwrAoaRanging()
3143 int deviceRole = firaOpenSessionParams.getDeviceRole(); in updateFiraParamsForSessionTimeBase()
DUwbShellCommand.java916 && ((FiraOpenSessionParams) openRangingSessionParams).getDeviceRole() in startRangingSession()
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/fira/
DFiraOpenSessionParams.java467 public int getDeviceRole() { in getDeviceRole() method in FiraOpenSessionParams
/packages/modules/Uwb/tests/cts/tests/src/android/uwb/cts/
DUwbManagerTest.java1049 if (firaOpenSessionParams.getDeviceRole() == RANGING_DEVICE_DT_TAG) { in verifyFiraRangingSession()