/packages/modules/Uwb/framework/java/android/uwb/ |
D | IUwbRangingCallbacks.aidl | 22 import android.uwb.SessionHandle; 35 void onRangingOpened(in SessionHandle sessionHandle); in onRangingOpened() 44 void onRangingOpenFailed(in SessionHandle sessionHandle, in onRangingOpenFailed() 59 void onRangingStarted(in SessionHandle sessionHandle, in onRangingStarted() 69 void onRangingStartFailed(in SessionHandle sessionHandle, in onRangingStartFailed() 79 void onRangingReconfigured(in SessionHandle sessionHandle, in onRangingReconfigured() 89 void onRangingReconfigureFailed(in SessionHandle sessionHandle, in onRangingReconfigureFailed() 101 void onRangingStopped(in SessionHandle sessionHandle, in onRangingStopped() 112 void onRangingStopFailed(in SessionHandle sessionHandle, in onRangingStopFailed() 123 void onRangingClosed(in SessionHandle sessionHandle, in onRangingClosed() [all …]
|
D | IUwbAdapter.aidl | 25 import android.uwb.SessionHandle; 122 in SessionHandle sessionHandle, in openRanging() 141 void startRanging(in SessionHandle sessionHandle, in startRanging() 158 void reconfigureRanging(in SessionHandle sessionHandle, in reconfigureRanging() 172 void stopRanging(in SessionHandle sessionHandle); in stopRanging() 185 void closeRanging(in SessionHandle sessionHandle); in closeRanging() 200 void addControlee(in SessionHandle sessionHandle, in PersistableBundle params); in addControlee() 215 void removeControlee(in SessionHandle sessionHandle, in PersistableBundle params); in removeControlee() 238 void pause(in SessionHandle sessionHandle, in PersistableBundle params); in pause() 256 void resume(in SessionHandle sessionHandle, in PersistableBundle params); in resume() [all …]
|
D | RangingManager.java | 39 private final Hashtable<SessionHandle, RangingSession> mRangingSessionTable = new Hashtable<>(); 79 SessionHandle sessionHandle = in openSession() 80 new SessionHandle(sNextSessionId++, attributionSource, Process.myPid()); in openSession() 101 private boolean hasSession(SessionHandle sessionHandle) { in hasSession() 106 public void onRangingOpened(SessionHandle sessionHandle) { in onRangingOpened() 120 public void onRangingOpenFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingOpenFailed() 137 public void onRangingReconfigured(SessionHandle sessionHandle, PersistableBundle parameters) { in onRangingReconfigured() 152 public void onRangingReconfigureFailed(SessionHandle sessionHandle, in onRangingReconfigureFailed() 168 public void onRangingStarted(SessionHandle sessionHandle, PersistableBundle parameters) { in onRangingStarted() 182 public void onRangingStartFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingStartFailed() [all …]
|
D | SessionHandle.java | 28 public final class SessionHandle implements Parcelable { class 34 public SessionHandle(int id, AttributionSource attributionSource, int pid) { in SessionHandle() method in SessionHandle 38 private SessionHandle(int id, String packageName, int uid, int pid) { in SessionHandle() method in SessionHandle 45 protected SessionHandle(Parcel in) { in SessionHandle() method in SessionHandle 52 public static final Creator<SessionHandle> CREATOR = new Creator<SessionHandle>() { 54 public SessionHandle createFromParcel(Parcel in) { 55 return new SessionHandle(in); 59 public SessionHandle[] newArray(int size) { 60 return new SessionHandle[size]; 99 if (obj instanceof SessionHandle) { in equals() [all …]
|
D | SessionHandle.aidl | 19 parcelable SessionHandle;
|
/packages/modules/Uwb/framework/tests/src/android/uwb/ |
D | RangingSessionTest.java | 78 SessionHandle handle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testOnRangingOpened_OnOpenSuccessCalled() 94 SessionHandle handle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testOnRangingOpened_OnServiceDiscoveredConnectedCalled() 117 SessionHandle handle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testOnRangingOpened_CannotOpenClosedSession() 141 SessionHandle handle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testOnRangingClosed_OnClosedCalledWhenSessionNotOpen() 157 SessionHandle handle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testOnRangingClosed_OnClosedCalled() 172 SessionHandle handle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testOnRangingResult_OnReportReceivedCalled() 188 SessionHandle handle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testStart_CannotStartIfAlreadyStarted() 205 SessionHandle handle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testStop_CannotStopIfAlreadyStopped() 224 SessionHandle handle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testStop_CannotStopIfOpenFailed() 244 SessionHandle handle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testCallbacks_OnlyWhenOpened() [all …]
|
D | SessionHandleTest.java | 46 SessionHandle handle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testBasic() 56 SessionHandle handle = new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID); in testParcel() 59 SessionHandle fromParcel = SessionHandle.CREATOR.createFromParcel(parcel); in testParcel()
|
D | RangingManagerTest.java | 128 rangingManager.onRangingOpened(new SessionHandle(HANDLE_ID, ATTRIBUTION_SOURCE, PID)); in testOnRangingOpened_InvalidSessionHandle() 137 ArgumentCaptor<SessionHandle> sessionHandleCaptor = in testOnRangingOpened_MultipleSessionsRegistered() 138 ArgumentCaptor.forClass(SessionHandle.class); in testOnRangingOpened_MultipleSessionsRegistered() 150 SessionHandle sessionHandle1 = sessionHandleCaptor.getValue(); in testOnRangingOpened_MultipleSessionsRegistered() 161 SessionHandle sessionHandle2 = sessionHandleCaptor.getValue(); in testOnRangingOpened_MultipleSessionsRegistered() 178 ArgumentCaptor<SessionHandle> sessionHandleCaptor = in testCorrectCallbackInvoked() 179 ArgumentCaptor.forClass(SessionHandle.class); in testCorrectCallbackInvoked() 190 SessionHandle handle = sessionHandleCaptor.getValue(); in testCorrectCallbackInvoked() 304 ArgumentCaptor<SessionHandle> sessionHandleCaptor = in testNoCallbackInvoked_sessionClosed() 305 ArgumentCaptor.forClass(SessionHandle.class); in testNoCallbackInvoked_sessionClosed() [all …]
|
/packages/modules/Uwb/service/java/com/android/server/uwb/ |
D | UwbSessionNotificationManager.java | 29 import android.uwb.SessionHandle; 72 SessionHandle sessionHandle = uwbSession.getSessionHandle(); in onRangingResult() 125 SessionHandle sessionHandle = uwbSession.getSessionHandle(); in onRangingOpened() 137 SessionHandle sessionHandle = uwbSession.getSessionHandle(); in onRangingOpenFailed() 153 SessionHandle sessionHandle = uwbSession.getSessionHandle(); in onRangingStarted() 166 SessionHandle sessionHandle = uwbSession.getSessionHandle(); in onRangingStartFailed() 181 SessionHandle sessionHandle = uwbSession.getSessionHandle(); in onRangingStartFailedWithUciReasonCode() 199 SessionHandle sessionHandle = uwbSession.getSessionHandle(); in onRangingStoppedInternal() 232 SessionHandle sessionHandle = uwbSession.getSessionHandle(); in onRangingStopFailed() 248 SessionHandle sessionHandle = uwbSession.getSessionHandle(); in onRangingReconfigured() [all …]
|
D | UwbServiceImpl.java | 45 import android.uwb.SessionHandle; 293 SessionHandle sessionHandle, in openRanging() 308 public void startRanging(SessionHandle sessionHandle, PersistableBundle parameters) in startRanging() 315 public void reconfigureRanging(SessionHandle sessionHandle, PersistableBundle parameters) in reconfigureRanging() 322 public void stopRanging(SessionHandle sessionHandle) throws RemoteException { in stopRanging() 328 public void closeRanging(SessionHandle sessionHandle) throws RemoteException { in closeRanging() 342 public void addControlee(SessionHandle sessionHandle, PersistableBundle params) { in addControlee() 348 public void removeControlee(SessionHandle sessionHandle, PersistableBundle params) { in removeControlee() 354 public void pause(SessionHandle sessionHandle, PersistableBundle params) { in pause() 360 public void resume(SessionHandle sessionHandle, PersistableBundle params) { in resume() [all …]
|
D | UwbShellCommand.java | 92 import android.uwb.SessionHandle; 292 public void onRangingOpened(SessionHandle sessionHandle) { in onRangingOpened() 297 public void onRangingOpenFailed(SessionHandle sessionHandle, int reason, in onRangingOpenFailed() 304 public void onRangingStarted(SessionHandle sessionHandle, PersistableBundle params) { in onRangingStarted() 309 public void onRangingStartFailed(SessionHandle sessionHandle, int reason, in onRangingStartFailed() 316 public void onRangingReconfigured(SessionHandle sessionHandle, PersistableBundle params) { in onRangingReconfigured() 321 public void onRangingReconfigureFailed(SessionHandle sessionHandle, int reason, in onRangingReconfigureFailed() 329 public void onRangingStopped(SessionHandle sessionHandle, int reason, in onRangingStopped() 336 public void onRangingStopFailed(SessionHandle sessionHandle, int reason, in onRangingStopFailed() 343 public void onRangingClosed(SessionHandle sessionHandle, int reason, in onRangingClosed() [all …]
|
D | UwbServiceCore.java | 47 import android.uwb.SessionHandle; 636 SessionHandle sessionHandle, in openRanging() 707 public void startRanging(SessionHandle sessionHandle, PersistableBundle params) in startRanging() 726 public void reconfigureRanging(SessionHandle sessionHandle, PersistableBundle params) { in reconfigureRanging() 742 public void stopRanging(SessionHandle sessionHandle) { in stopRanging() 753 public void closeRanging(SessionHandle sessionHandle) { in closeRanging() 764 public void addControlee(SessionHandle sessionHandle, PersistableBundle params) { in addControlee() 781 public void removeControlee(SessionHandle sessionHandle, PersistableBundle params) { in removeControlee() 813 public void pause(SessionHandle sessionHandle, PersistableBundle params) { in pause() 818 public void resume(SessionHandle sessionHandle, PersistableBundle params) { in resume() [all …]
|
D | UwbSessionManager.java | 58 import android.uwb.SessionHandle; 177 final ConcurrentHashMap<SessionHandle, UwbSession> mSessionTable = new ConcurrentHashMap(); 478 public void updatePose(SessionHandle sessionHandle, PersistableBundle params) { in updatePose() 622 SessionHandle sessionHandle, int sessionId, byte sessionType, String protocolName, in initSession() 730 UwbSession createUwbSession(AttributionSource attributionSource, SessionHandle sessionHandle, in createUwbSession() 737 public synchronized void deInitSession(SessionHandle sessionHandle) { in deInitSession() 754 private synchronized boolean deInitDueToLowPriority(SessionHandle sessionHandle) { in deInitDueToLowPriority() 769 public synchronized void startRanging(SessionHandle sessionHandle, @Nullable Params params) { in startRanging() 817 private synchronized void stopRangingInternal(SessionHandle sessionHandle, in stopRangingInternal() 844 public synchronized void stopRanging(SessionHandle sessionHandle) { in stopRanging() [all …]
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/ |
D | UwbServiceImplTest.java | 72 import android.uwb.SessionHandle; 265 final SessionHandle sessionHandle = mock(SessionHandle.class); in testOpenRanging_nullChipId() 282 final SessionHandle sessionHandle = mock(SessionHandle.class); in testStartRanging() 292 final SessionHandle sessionHandle = mock(SessionHandle.class); in testReconfigureRanging() 307 final SessionHandle sessionHandle = mock(SessionHandle.class); in testStopRanging() 316 final SessionHandle sessionHandle = mock(SessionHandle.class); in testCloseRanging() 352 final SessionHandle sessionHandle = mock(SessionHandle.class); in testThrowSecurityExceptionWhenOpenRangingCalledWithoutUwbRangingPermission() 683 final SessionHandle sessionHandle = mock(SessionHandle.class); in testAddControlee() 692 final SessionHandle sessionHandle = mock(SessionHandle.class); in testRemoveControlee() 805 final SessionHandle sessionHandle = mock(SessionHandle.class); in testResume() [all …]
|
D | UwbServiceCoreTest.java | 78 import android.uwb.SessionHandle; 566 SessionHandle sessionHandle = mock(SessionHandle.class); in testEnableWithCountryCode_statusRegulationUwbOff() 656 SessionHandle sessionHandle = mock(SessionHandle.class); in testEnableWithCountryCode_statusFailed() 1068 SessionHandle sessionHandle = mock(SessionHandle.class); in testOpenFiraRanging() 1096 SessionHandle sessionHandle = mock(SessionHandle.class); in testOpenAliroRanging() 1115 SessionHandle sessionHandle = mock(SessionHandle.class); in testOpenCccRanging() 1134 SessionHandle sessionHandle = mock(SessionHandle.class); in testOpenRadarSession() 1151 SessionHandle sessionHandle = mock(SessionHandle.class); in testOpenAliroRangingWhenUwbDisabled() 1173 SessionHandle sessionHandle = mock(SessionHandle.class); in testOpenCccRangingWhenUwbDisabled() 1197 SessionHandle sessionHandle = mock(SessionHandle.class); in testStartAliroRanging() [all …]
|
D | UwbShellCommandTest.java | 51 import android.uwb.SessionHandle; 209 private Pair<IUwbRangingCallbacks, SessionHandle> triggerAndVerifySessionStart( in triggerAndVerifySessionStart() 214 private Pair<IUwbRangingCallbacks, SessionHandle> triggerAndVerifySessionStart( in triggerAndVerifySessionStart() 232 ArgumentCaptor<SessionHandle> sessionHandleCaptor = in triggerAndVerifySessionStart() 233 ArgumentCaptor.forClass(SessionHandle.class); in triggerAndVerifySessionStart() 257 String[] sessionStopCmd, IUwbRangingCallbacks cb, SessionHandle sessionHandle) in triggerAndVerifySessionStop() 299 Pair<IUwbRangingCallbacks, SessionHandle> cbAndSessionHandle1 = in testStartFiraRangingUsesUniqueSessionHandle() 306 Pair<IUwbRangingCallbacks, SessionHandle> cbAndSessionHandle2 = in testStartFiraRangingUsesUniqueSessionHandle() 344 Pair<IUwbRangingCallbacks, SessionHandle> cbAndSessionHandle = in testRangingReportFiraRanging() 359 Pair<IUwbRangingCallbacks, SessionHandle> cbAndSessionHandle = in testRangingReportAllFiraRanging() [all …]
|
D | UwbSessionManagerTest.java | 106 import android.uwb.SessionHandle; 188 private static final SessionHandle SESSION_HANDLE = 189 new SessionHandle(TEST_SESSION_ID, ATTRIBUTION_SOURCE, 1); 190 private static final SessionHandle SESSION_HANDLE_2 = 191 new SessionHandle(TEST_SESSION_ID_2, ATTRIBUTION_SOURCE_2, 2); 936 mUwbSessionManager.mSessionTable.put(mock(SessionHandle.class), mockUwbSession); in onSessionStatusNotificationReceived_max_retry() 956 mUwbSessionManager.mSessionTable.put(mock(SessionHandle.class), mockUwbSession); in onSessionStatusNotificationReceived_session_mgmt_cmds() 976 mUwbSessionManager.initSession(ATTRIBUTION_SOURCE, mock(SessionHandle.class), in initSession_ExistedSession() 991 mUwbSessionManager.initSession(ATTRIBUTION_SOURCE, mock(SessionHandle.class), in initFiraSession_maxSessionsExceeded() 1007 mUwbSessionManager.initSession(ATTRIBUTION_SOURCE, mock(SessionHandle.class), in initAliroSession_maxSessionsExceeded() [all …]
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/data/ |
D | UwbConfigTest.java | 49 import android.uwb.SessionHandle; 228 SessionHandle sessionHandleControlee = mock(SessionHandle.class); in testGetOpenSessionParams() 249 SessionHandle sessionHandleController = mock(SessionHandle.class); in testGetOpenSessionParams() 275 SessionHandle sessionHandleControlee = mock(SessionHandle.class); in testGetOpenSessionParamsForDynamicStsIndKey() 305 SessionHandle sessionHandleControlee = mock(SessionHandle.class); in testPacsControllerProfileForProvSTSIndKey()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/pm/ |
D | ProfileManager.java | 31 import android.uwb.SessionHandle; 63 public final Map<SessionHandle, RangingSessionController> mRangingSessionTable = 113 public boolean hasSession(SessionHandle sessionHandle) { in hasSession() 345 public void activateProfile(AttributionSource attributionSource, SessionHandle sessionHandle, in activateProfile() 378 public void startRanging(SessionHandle sessionHandle) { in startRanging() 389 public void stopRanging(SessionHandle sessionHandle) { in stopRanging() 400 public void closeRanging(SessionHandle sessionHandle) { in closeRanging()
|
D | RangingSessionController.java | 25 import android.uwb.SessionHandle; 89 public RangingSessionController(SessionHandle sessionHandle, in RangingSessionController() 210 public final SessionHandle mSessionHandle; 225 public SessionInfo(AttributionSource attributionSource, SessionHandle sessionHandle, in SessionInfo()
|
D | PacsControllerSession.java | 28 import android.uwb.SessionHandle; 63 SessionHandle sessionHandle, in PacsControllerSession()
|
D | PacsControleeSession.java | 33 import android.uwb.SessionHandle; 67 SessionHandle sessionHandle, in PacsControleeSession()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/profile/ |
D | PacsControllerSessionTest.java | 45 import android.uwb.SessionHandle; 134 SessionHandle sessionHandle = mock(SessionHandle.class); in setUp()
|
D | PacsControleeSessionTest.java | 49 import android.uwb.SessionHandle; 132 SessionHandle sessionHandle = mock(SessionHandle.class); in setUp()
|
D | ProfileManagerTest.java | 30 import android.uwb.SessionHandle; 61 @Mock private SessionHandle mSessionHandle;
|