/packages/modules/Uwb/framework/java/android/uwb/ |
D | RangingManager.java | 79 SessionHandle sessionHandle = in openSession() local 82 new RangingSession(executor, callbacks, mAdapter, sessionHandle, chipId); in openSession() 83 Log.v(mTag, "openSession - sessionHandle: " + sessionHandle); in openSession() 84 mRangingSessionTable.put(sessionHandle, session); in openSession() 87 sessionHandle, in openSession() 101 private boolean hasSession(SessionHandle sessionHandle) { in hasSession() argument 102 return mRangingSessionTable.containsKey(sessionHandle); in hasSession() 106 public void onRangingOpened(SessionHandle sessionHandle) { in onRangingOpened() argument 108 if (!hasSession(sessionHandle)) { in onRangingOpened() 110 "onRangingOpened - received unexpected SessionHandle: " + sessionHandle); in onRangingOpened() [all …]
|
D | IUwbRangingCallbacks.aidl | 35 void onRangingOpened(in SessionHandle sessionHandle); in onRangingOpened() argument 44 void onRangingOpenFailed(in SessionHandle sessionHandle, in onRangingOpenFailed() argument 59 void onRangingStarted(in SessionHandle sessionHandle, in onRangingStarted() argument 69 void onRangingStartFailed(in SessionHandle sessionHandle, in onRangingStartFailed() argument 79 void onRangingReconfigured(in SessionHandle sessionHandle, in onRangingReconfigured() argument 89 void onRangingReconfigureFailed(in SessionHandle sessionHandle, in onRangingReconfigureFailed() argument 101 void onRangingStopped(in SessionHandle sessionHandle, in onRangingStopped() argument 112 void onRangingStopFailed(in SessionHandle sessionHandle, in onRangingStopFailed() argument 123 void onRangingClosed(in SessionHandle sessionHandle, in onRangingClosed() argument 137 void onRangingResult(in SessionHandle sessionHandle, in RangingReport result); in onRangingResult() argument [all …]
|
D | IUwbAdapter.aidl | 122 in SessionHandle sessionHandle, in openRanging() argument 141 void startRanging(in SessionHandle sessionHandle, in startRanging() argument 158 void reconfigureRanging(in SessionHandle sessionHandle, in reconfigureRanging() argument 172 void stopRanging(in SessionHandle sessionHandle); in stopRanging() argument 185 void closeRanging(in SessionHandle sessionHandle); in closeRanging() argument 200 void addControlee(in SessionHandle sessionHandle, in PersistableBundle params); in addControlee() argument 215 void removeControlee(in SessionHandle sessionHandle, in PersistableBundle params); in removeControlee() argument 238 void pause(in SessionHandle sessionHandle, in PersistableBundle params); in pause() argument 256 void resume(in SessionHandle sessionHandle, in PersistableBundle params); in resume() argument 276 void sendData(in SessionHandle sessionHandle, in UwbAddress remoteDeviceAddress, in sendData() argument [all …]
|
D | RangingSession.java | 514 SessionHandle sessionHandle) { in RangingSession() argument 515 this(executor, callback, adapter, sessionHandle, /* chipId= */ null); in RangingSession() 522 SessionHandle sessionHandle, String chipId) { in RangingSession() argument 527 mSessionHandle = sessionHandle; in RangingSession()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/ |
D | UwbSessionNotificationManager.java | 72 SessionHandle sessionHandle = uwbSession.getSessionHandle(); in onRangingResult() local 79 + sessionHandle); in onRangingResult() 116 uwbRangingCallbacks.onRangingResult(sessionHandle, rangingReport); in onRangingResult() 125 SessionHandle sessionHandle = uwbSession.getSessionHandle(); in onRangingOpened() local 128 uwbRangingCallbacks.onRangingOpened(sessionHandle); in onRangingOpened() 137 SessionHandle sessionHandle = uwbSession.getSessionHandle(); in onRangingOpenFailed() local 141 uwbRangingCallbacks.onRangingOpenFailed(sessionHandle, in onRangingOpenFailed() 153 SessionHandle sessionHandle = uwbSession.getSessionHandle(); in onRangingStarted() local 156 uwbRangingCallbacks.onRangingStarted(sessionHandle, rangingStartedParams.toBundle()); in onRangingStarted() 166 SessionHandle sessionHandle = uwbSession.getSessionHandle(); in onRangingStartFailed() local [all …]
|
D | UwbServiceImpl.java | 293 SessionHandle sessionHandle, in openRanging() argument 301 sessionHandle, in openRanging() 308 public void startRanging(SessionHandle sessionHandle, PersistableBundle parameters) in startRanging() argument 311 mUwbServiceCore.startRanging(sessionHandle, parameters); in startRanging() 315 public void reconfigureRanging(SessionHandle sessionHandle, PersistableBundle parameters) in reconfigureRanging() argument 318 mUwbServiceCore.reconfigureRanging(sessionHandle, parameters); in reconfigureRanging() 322 public void stopRanging(SessionHandle sessionHandle) throws RemoteException { in stopRanging() argument 324 mUwbServiceCore.stopRanging(sessionHandle); in stopRanging() 328 public void closeRanging(SessionHandle sessionHandle) throws RemoteException { in closeRanging() argument 330 mUwbServiceCore.closeRanging(sessionHandle); in closeRanging() [all …]
|
D | UwbSessionManager.java | 478 public void updatePose(SessionHandle sessionHandle, PersistableBundle params) { in updatePose() argument 479 int sessionId = getSessionId(sessionHandle); in updatePose() 622 SessionHandle sessionHandle, int sessionId, byte sessionType, String protocolName, in initSession() argument 625 Log.i(TAG, "initSession() - sessionId: " + sessionId + ", sessionHandle: " + sessionHandle in initSession() 627 UwbSession uwbSession = createUwbSession(attributionSource, sessionHandle, sessionId, in initSession() 644 rangingCallbacks.onRangingOpenFailed(sessionHandle, in initSession() 652 if (isExistedSession(sessionHandle) || isExistedSession(sessionId)) { in initSession() 653 Log.i(TAG, "Duplicated session. SessionHandle: " + sessionHandle + ", SessionId: " in initSession() 655 rangingCallbacks.onRangingOpenFailed(sessionHandle, RangingChangeReason.BAD_PARAMETERS, in initSession() 684 rangingCallbacks.onRangingOpenFailed(sessionHandle, in initSession() [all …]
|
D | UwbServiceCore.java | 636 SessionHandle sessionHandle, in openRanging() argument 650 sessionHandle, in openRanging() 672 mSessionManager.initSession(attributionSource, sessionHandle, sessionId, in openRanging() 679 mSessionManager.initSession(attributionSource, sessionHandle, sessionId, in openRanging() 687 mSessionManager.initSession(attributionSource, sessionHandle, sessionId, in openRanging() 695 mSessionManager.initSession(attributionSource, sessionHandle, sessionId, in openRanging() 701 rangingCallbacks.onRangingOpenFailed(sessionHandle, in openRanging() 707 public void startRanging(SessionHandle sessionHandle, PersistableBundle params) in startRanging() argument 719 if (mUwbInjector.getProfileManager().hasSession(sessionHandle)) { in startRanging() 720 mUwbInjector.getProfileManager().startRanging(sessionHandle); in startRanging() [all …]
|
D | UwbShellCommand.java | 292 public void onRangingOpened(SessionHandle sessionHandle) { in onRangingOpened() argument 297 public void onRangingOpenFailed(SessionHandle sessionHandle, int reason, in onRangingOpenFailed() argument 304 public void onRangingStarted(SessionHandle sessionHandle, PersistableBundle params) { in onRangingStarted() argument 309 public void onRangingStartFailed(SessionHandle sessionHandle, int reason, in onRangingStartFailed() argument 316 public void onRangingReconfigured(SessionHandle sessionHandle, PersistableBundle params) { in onRangingReconfigured() argument 321 public void onRangingReconfigureFailed(SessionHandle sessionHandle, int reason, in onRangingReconfigureFailed() argument 329 public void onRangingStopped(SessionHandle sessionHandle, int reason, in onRangingStopped() argument 336 public void onRangingStopFailed(SessionHandle sessionHandle, int reason, in onRangingStopFailed() argument 343 public void onRangingClosed(SessionHandle sessionHandle, int reason, in onRangingClosed() argument 351 public void onRangingResult(SessionHandle sessionHandle, RangingReport rangingReport) { in onRangingResult() argument [all …]
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/ |
D | UwbServiceImplTest.java | 265 final SessionHandle sessionHandle = mock(SessionHandle.class); in testOpenRanging_nullChipId() local 272 ATTRIBUTION_SOURCE, sessionHandle, cb, parameters, /* chipId= */ null); in testOpenRanging_nullChipId() 275 eq(ATTRIBUTION_SOURCE), eq(sessionHandle), mRangingCbCaptor.capture(), in testOpenRanging_nullChipId() 282 final SessionHandle sessionHandle = mock(SessionHandle.class); in testStartRanging() local 285 mUwbServiceImpl.startRanging(sessionHandle, parameters); in testStartRanging() 287 verify(mUwbServiceCore).startRanging(sessionHandle, parameters); in testStartRanging() 292 final SessionHandle sessionHandle = mock(SessionHandle.class); in testReconfigureRanging() local 300 mUwbServiceImpl.reconfigureRanging(sessionHandle, parameters.toBundle()); in testReconfigureRanging() 301 verify(mUwbServiceCore).reconfigureRanging(eq(sessionHandle), in testReconfigureRanging() 307 final SessionHandle sessionHandle = mock(SessionHandle.class); in testStopRanging() local [all …]
|
D | UwbServiceCoreTest.java | 566 SessionHandle sessionHandle = mock(SessionHandle.class); in testEnableWithCountryCode_statusRegulationUwbOff() local 571 TEST_ATTRIBUTION_SOURCE, sessionHandle, rangingCallbacks, in testEnableWithCountryCode_statusRegulationUwbOff() 579 mUwbServiceCore.startRanging(sessionHandle, new PersistableBundle()); in testEnableWithCountryCode_statusRegulationUwbOff() 656 SessionHandle sessionHandle = mock(SessionHandle.class); in testEnableWithCountryCode_statusFailed() local 661 TEST_ATTRIBUTION_SOURCE, sessionHandle, rangingCallbacks, in testEnableWithCountryCode_statusFailed() 669 mUwbServiceCore.startRanging(sessionHandle, new PersistableBundle()); in testEnableWithCountryCode_statusFailed() 1068 SessionHandle sessionHandle = mock(SessionHandle.class); in testOpenFiraRanging() local 1081 attributionSource, sessionHandle, cb, params.toBundle(), TEST_DEFAULT_CHIP_ID); in testOpenFiraRanging() 1085 eq(sessionHandle), eq(params.getSessionId()), eq((byte) params.getSessionType()), in testOpenFiraRanging() 1096 SessionHandle sessionHandle = mock(SessionHandle.class); in testOpenAliroRanging() local [all …]
|
D | UwbShellCommandTest.java | 257 String[] sessionStopCmd, IUwbRangingCallbacks cb, SessionHandle sessionHandle) in triggerAndVerifySessionStop() argument 260 cb.onRangingStopped(sessionHandle, REASON_LOCAL_REQUEST, new PersistableBundle()); in triggerAndVerifySessionStop() 265 sessionHandle, REASON_LOCAL_REQUEST, in triggerAndVerifySessionStop() 274 verify(mUwbService).stopRanging(sessionHandle); in triggerAndVerifySessionStop() 275 verify(mUwbService).closeRanging(sessionHandle); in triggerAndVerifySessionStop()
|
D | UwbSessionManagerTest.java | 3639 SessionHandle sessionHandle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in sendData_invalidUwbSessionHandle() local 3643 sessionHandle, PEER_EXTENDED_UWB_ADDRESS, PERSISTABLE_BUNDLE, DATA_PAYLOAD); in sendData_invalidUwbSessionHandle()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/pm/ |
D | ProfileManager.java | 113 public boolean hasSession(SessionHandle sessionHandle) { in hasSession() argument 114 return mRangingSessionTable.containsKey(sessionHandle); in hasSession() 345 public void activateProfile(AttributionSource attributionSource, SessionHandle sessionHandle, in activateProfile() argument 358 sessionHandle, attributionSource, mContext, mUwbInjector, profileInfo, in activateProfile() 360 mRangingSessionTable.put(sessionHandle, rangingSessionController); in activateProfile() 369 rangingCallbacks.onRangingOpened(sessionHandle); in activateProfile() 378 public void startRanging(SessionHandle sessionHandle) { in startRanging() argument 379 if (mRangingSessionTable.containsKey(sessionHandle)) { in startRanging() 381 sessionHandle); in startRanging() 389 public void stopRanging(SessionHandle sessionHandle) { in stopRanging() argument [all …]
|
D | RangingSessionController.java | 89 public RangingSessionController(SessionHandle sessionHandle, in RangingSessionController() argument 99 mSessionInfo = new SessionInfo(attributionSource, sessionHandle, in RangingSessionController() 225 public SessionInfo(AttributionSource attributionSource, SessionHandle sessionHandle, in SessionInfo() argument 231 mSessionHandle = sessionHandle; in SessionInfo()
|
D | PacsControllerSession.java | 63 SessionHandle sessionHandle, in PacsControllerSession() argument 72 sessionHandle, in PacsControllerSession()
|
D | PacsControleeSession.java | 67 SessionHandle sessionHandle, in PacsControleeSession() argument 76 sessionHandle, in PacsControleeSession()
|
/packages/modules/Uwb/framework/tests/src/android/uwb/ |
D | RangingSessionTest.java | 583 SessionHandle sessionHandle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testSetHybridSessionControllerConfiguration_NotOpenSession_ThrowsException() local 587 sessionHandle); in testSetHybridSessionControllerConfiguration_NotOpenSession_ThrowsException() 601 SessionHandle sessionHandle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testSetHybridSessionControllerConfiguration_OpenSession_Success() local 605 sessionHandle); in testSetHybridSessionControllerConfiguration_OpenSession_Success() 613 verify(adapter).setHybridSessionControllerConfiguration(sessionHandle, PARAMS); in testSetHybridSessionControllerConfiguration_OpenSession_Success() 629 SessionHandle sessionHandle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testOnHybridSessionControllerConfigured_WhenSessionOpened_CallbackMethodCalled() local 633 sessionHandle); in testOnHybridSessionControllerConfigured_WhenSessionOpened_CallbackMethodCalled() 650 SessionHandle sessionHandle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testOnHybridSessionControllerConfigurationFailed_WhenSessionOpenedCallbackCalled() local 654 sessionHandle); in testOnHybridSessionControllerConfigurationFailed_WhenSessionOpenedCallbackCalled() 670 SessionHandle sessionHandle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testSetHybridSessionControleeConfiguration_WhenSessionNotOpen_ThrowsException() local [all …]
|
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/fira/ |
D | FiraHybridSessionControleeConfig.java | 162 public FiraHybridSessionPhaseList(int sessionHandle, byte phaseParticipation) { in FiraHybridSessionPhaseList() argument 163 mSessionHandle = sessionHandle; in FiraHybridSessionPhaseList()
|
D | FiraHybridSessionControllerConfig.java | 218 public FiraHybridSessionPhaseList(int sessionHandle, in FiraHybridSessionPhaseList() argument 223 mSessionHandle = sessionHandle; in FiraHybridSessionPhaseList()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/profile/ |
D | PacsControllerSessionTest.java | 134 SessionHandle sessionHandle = mock(SessionHandle.class); in setUp() local 136 mRangingSessionController = new PacsControllerSession(sessionHandle, in setUp()
|
D | PacsControleeSessionTest.java | 132 SessionHandle sessionHandle = mock(SessionHandle.class); in setUp() local 134 mRangingSessionController = new PacsControleeSession(sessionHandle, in setUp()
|