Home
last modified time | relevance | path

Searched refs:RangingChangeReason (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbSessionNotificationHelper.java19 import android.uwb.RangingChangeReason;
33 int rangingChangeReason = RangingChangeReason.UNKNOWN; in convertUciReasonCodeToApiReasonCode()
36 rangingChangeReason = RangingChangeReason.LOCAL_API; in convertUciReasonCodeToApiReasonCode()
39 rangingChangeReason = RangingChangeReason.MAX_RR_RETRY_REACHED; in convertUciReasonCodeToApiReasonCode()
42 rangingChangeReason = RangingChangeReason.REMOTE_REQUEST; in convertUciReasonCodeToApiReasonCode()
55 rangingChangeReason = RangingChangeReason.BAD_PARAMETERS; in convertUciReasonCodeToApiReasonCode()
59 rangingChangeReason = RangingChangeReason.PROTOCOL_SPECIFIC; in convertUciReasonCodeToApiReasonCode()
62 rangingChangeReason = RangingChangeReason.SYSTEM_REGULATION; in convertUciReasonCodeToApiReasonCode()
65 rangingChangeReason = RangingChangeReason.SESSION_RESUMED; in convertUciReasonCodeToApiReasonCode()
68 rangingChangeReason = RangingChangeReason.SESSION_SUSPENDED; in convertUciReasonCodeToApiReasonCode()
[all …]
DUwbSessionNotificationManager.java26 import android.uwb.RangingChangeReason;
219 UwbSession uwbSession, @RangingChangeReason int reasonCode, PersistableBundle params) { in onRangingStoppedWithApiReasonCode()
418 UwbSession uwbSession, @RangingChangeReason int reasonCode) { in onRangingClosedWithApiReasonCode()
DUwbSessionManager.java57 import android.uwb.RangingChangeReason;
645 RangingChangeReason.SYSTEM_POLICY, new PersistableBundle()); in initSession()
655 rangingCallbacks.onRangingOpenFailed(sessionHandle, RangingChangeReason.BAD_PARAMETERS, in initSession()
685 RangingChangeReason.MAX_SESSIONS_REACHED, in initSession()
698 rangingCallbacks.onRangingOpenFailed(sessionHandle, RangingChangeReason.UNKNOWN, in initSession()
1005 RangingChangeReason.SYSTEM_POLICY); in handleOnDeInit()
2157 ? RangingChangeReason.SYSTEM_POLICY in handleStopRangingParams()
2158 : RangingChangeReason.LOCAL_API; in handleStopRangingParams()
DUwbServiceCore.java46 import android.uwb.RangingChangeReason;
702 RangingChangeReason.BAD_PARAMETERS, new PersistableBundle()); in openRanging()
/packages/modules/Uwb/framework/java/android/uwb/
DIUwbRangingCallbacks.aidl20 import android.uwb.RangingChangeReason;
45 RangingChangeReason reason, in onRangingOpenFailed()
70 RangingChangeReason reason, in onRangingStartFailed()
90 RangingChangeReason reason, in onRangingReconfigureFailed()
102 RangingChangeReason reason, in onRangingStopped()
113 RangingChangeReason reason, in onRangingStopFailed()
124 RangingChangeReason reason, in onRangingClosed()
155 RangingChangeReason reason, in PersistableBundle parameters); in onControleeAddFailed()
173 RangingChangeReason reason, in PersistableBundle parameters); in onControleeRemoveFailed()
191 RangingChangeReason reason, in PersistableBundle parameters); in onRangingPauseFailed()
[all …]
DRangingManager.java120 public void onRangingOpenFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingOpenFailed()
153 @RangingChangeReason int reason, PersistableBundle params) { in onRangingReconfigureFailed()
182 public void onRangingStartFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingStartFailed()
197 public void onRangingStopped(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingStopped()
212 public void onRangingStopFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingStopFailed()
227 public void onRangingClosed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingClosed()
271 public void onControleeAddFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onControleeAddFailed()
301 @RangingChangeReason int reason, PersistableBundle parameters) { in onControleeRemoveFailed()
329 public void onRangingPauseFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingPauseFailed()
358 public void onRangingResumeFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingResumeFailed()
[all …]
DRangingChangeReason.aidl24 enum RangingChangeReason { enum
DRangingSession.java488 @RangingChangeReason int reason, @NonNull PersistableBundle parameters) { in onHybridSessionControllerConfigurationFailed()
507 @RangingChangeReason int reason, @NonNull PersistableBundle parameters) {} in onHybridSessionControleeConfigurationFailed()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbSessionNotificationManagerTest.java54 import android.uwb.RangingChangeReason;
447 eq(RangingChangeReason.PROTOCOL_SPECIFIC), in testOnRangingStartFailedWithUciReasonCode()
457 eq(mSessionHandle), eq(RangingChangeReason.LOCAL_API), in testOnRangingStoppedWithUciReasonCode_reasonLocalApi()
466 eq(mSessionHandle), eq(RangingChangeReason.MAX_RR_RETRY_REACHED), in testOnRangingStoppedWithUciReasonCode_reasonMaxRRRetryReached()
476 eq(mSessionHandle), eq(RangingChangeReason.REMOTE_REQUEST), in testOnRangingStoppedWithUciReasonCode_reasonRemoteRequest()
499 eq(mSessionHandle), eq(RangingChangeReason.BAD_PARAMETERS), in testOnRangingStoppedWithUciReasonCode_reasonBadParameters()
510 eq(mSessionHandle), eq(RangingChangeReason.SYSTEM_REGULATION), in testOnRangingStoppedWithUciReasonCode_reasonSystemRegulation()
517 mUwbSession, RangingChangeReason.SYSTEM_POLICY, new PersistableBundle()); in testOnRangingStoppedWithApiReasonCode()
520 eq(mSessionHandle), eq(RangingChangeReason.SYSTEM_POLICY), in testOnRangingStoppedWithApiReasonCode()
538 RangingChangeReason.INBAND_SESSION_STOP, new PersistableBundle()); in testRangingStoppedDuetoInbandSignal()
[all …]
DUwbSessionManagerTest.java105 import android.uwb.RangingChangeReason;
981 any(), eq(RangingChangeReason.BAD_PARAMETERS), any()); in initSession_ExistedSession()
997 eq(RangingChangeReason.MAX_SESSIONS_REACHED), any()); in initFiraSession_maxSessionsExceeded()
1013 eq(RangingChangeReason.MAX_SESSIONS_REACHED), any()); in initAliroSession_maxSessionsExceeded()
1029 eq(RangingChangeReason.MAX_SESSIONS_REACHED), any()); in initCccSession_maxSessionsExceeded()
2289 eq(uwbSession), eq(RangingChangeReason.SYSTEM_POLICY), any()); in testOpenRangingWithNonSystemAppInFgInChain_MoveToBgAndStayThere()
3184 eq(RangingChangeReason.SYSTEM_POLICY), any()); in execStartRanging_twoWay_onRangeDataNotificationContinuousErrors()
3227 eq(RangingChangeReason.SYSTEM_POLICY), any()); in execStartRanging_owrAoa_onRangeDataNotificationContinuousErrors()
3992 eq(RangingChangeReason.LOCAL_API), any()); in execStopRanging_success()
4039 eq(RangingChangeReason.SYSTEM_POLICY), any()); in testFiraSessionStoppedDuetoInbandSignal()
[all …]
/packages/modules/Uwb/framework/tests/src/android/uwb/
DRangingManagerTest.java57 private static final @RangingChangeReason int REASON = RangingChangeReason.UNKNOWN;
504 runReason(RangingChangeReason.LOCAL_API, RangingSession.Callback.REASON_LOCAL_REQUEST); in testReasons()
507 RangingChangeReason.MAX_SESSIONS_REACHED, in testReasons()
511 RangingChangeReason.PROTOCOL_SPECIFIC, in testReasons()
515 RangingChangeReason.REMOTE_REQUEST, RangingSession.Callback.REASON_REMOTE_REQUEST); in testReasons()
517 runReason(RangingChangeReason.SYSTEM_POLICY, RangingSession.Callback.REASON_SYSTEM_POLICY); in testReasons()
520 RangingChangeReason.SYSTEM_REGULATION, in testReasons()
524 RangingChangeReason.BAD_PARAMETERS, RangingSession.Callback.REASON_BAD_PARAMETERS); in testReasons()
526 runReason(RangingChangeReason.UNKNOWN, RangingSession.Callback.REASON_UNKNOWN); in testReasons()
530 @RangingChangeReason int reasonIn, @RangingSession.Callback.Reason int reasonOut) in runReason()