/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareRttStateManager.java | 87 private WifiAwareClientState getAndRemovePendingOperationClient(int rangingId) { in getAndRemovePendingOperationClient() argument 88 WifiAwareClientState client = mPendingOperations.get(rangingId); in getAndRemovePendingOperationClient() 89 mPendingOperations.delete(rangingId); in getAndRemovePendingOperationClient() 96 public void startRanging(int rangingId, WifiAwareClientState client, in startRanging() argument 99 Log.v(TAG, "startRanging: rangingId=" + rangingId + ", parms=" in startRanging() 105 client.onRangingFailure(rangingId, RttManager.REASON_NOT_AVAILABLE, in startRanging() 110 mPendingOperations.put(rangingId, client); in startRanging() 112 mAsyncChannel.sendMessage(RttManager.CMD_OP_START_RANGING, 0, rangingId, pparams); in startRanging() 154 int rangingId = msg.arg2; in handleMessage() local 158 Log.v(TAG, "CMD_OP_SUCCEEDED: rangingId=" + rangingId + ", results=" in handleMessage() [all …]
|
D | WifiAwareClientState.java | 263 public void onRangingSuccess(int rangingId, RttManager.ParcelableRttResults results) { in onRangingSuccess() argument 265 Log.v(TAG, "onRangingSuccess: rangingId=" + rangingId + ", results=" + results); in onRangingSuccess() 268 mCallback.onRangingSuccess(rangingId, results); in onRangingSuccess() 277 public void onRangingFailure(int rangingId, int reason, String description) { in onRangingFailure() argument 279 Log.v(TAG, "onRangingSuccess: rangingId=" + rangingId + ", reason=" + reason in onRangingFailure() 283 mCallback.onRangingFailure(rangingId, reason, description); in onRangingFailure() 292 public void onRangingAborted(int rangingId) { in onRangingAborted() argument 293 if (VDBG) Log.v(TAG, "onRangingSuccess: rangingId=" + rangingId); in onRangingAborted() 295 mCallback.onRangingAborted(rangingId); in onRangingAborted()
|
D | WifiAwareServiceImpl.java | 365 int rangingId; in startRanging() local 367 rangingId = mNextRangingId++; in startRanging() 369 mStateManager.startRanging(clientId, sessionId, params.mParams, rangingId); in startRanging() 370 return rangingId; in startRanging()
|
D | WifiAwareStateManager.java | 379 int rangingId) { in startRanging() argument 385 msg.getData().putInt(MESSAGE_BUNDLE_KEY_RANGING_ID, rangingId); in startRanging() 1333 int rangingId = data.getInt(MESSAGE_BUNDLE_KEY_RANGING_ID); in processCommand() local 1335 startRangingLocal(clientId, sessionId, params, rangingId); in processCommand() 2036 int rangingId) { in startRangingLocal() argument 2039 + ", parms=" + Arrays.toString(params) + ", rangingId=" + rangingId); in startRangingLocal() 2052 client.onRangingFailure(rangingId, RttManager.REASON_INVALID_REQUEST, in startRangingLocal() 2072 mRtt.startRanging(rangingId, client, params); in startRangingLocal()
|
/frameworks/base/wifi/java/android/net/wifi/aware/ |
D | IWifiAwareEventCallback.aidl | 33 void onRangingSuccess(int rangingId, in RttManager.ParcelableRttResults results); in onRangingSuccess() argument 34 void onRangingFailure(int rangingId, int reason, in String description); in onRangingFailure() argument 35 void onRangingAborted(int rangingId); in onRangingAborted() argument
|
D | WifiAwareManager.java | 509 RttManager.RttListener getAndRemoveRangingListener(int rangingId) { in getAndRemoveRangingListener() argument 517 RttManager.RttListener listener = mgr.mRangingListeners.get(rangingId); in getAndRemoveRangingListener() 518 mgr.mRangingListeners.delete(rangingId); in getAndRemoveRangingListener() 631 public void onRangingSuccess(int rangingId, RttManager.ParcelableRttResults results) { in onRangingSuccess() argument 633 Log.v(TAG, "onRangingSuccess: rangingId=" + rangingId + ", results=" + results); in onRangingSuccess() 637 msg.arg1 = rangingId; in onRangingSuccess() 643 public void onRangingFailure(int rangingId, int reason, String description) { in onRangingFailure() argument 645 Log.v(TAG, "onRangingSuccess: rangingId=" + rangingId + ", reason=" + reason in onRangingFailure() 650 msg.arg1 = rangingId; in onRangingFailure() 658 public void onRangingAborted(int rangingId) { in onRangingAborted() argument [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareRttStateManagerTest.java | 89 final int rangingId = 1234; in testStartRanging() local 107 mDut.startRanging(rangingId, mockClient, params); in testStartRanging() 113 collector.checkThat("rangingId", msg.arg2, equalTo(rangingId)); in testStartRanging() 120 successMessage.arg2 = rangingId; in testStartRanging() 124 inOrder.verify(mockClient).onRangingSuccess(eq(rangingId), rttResultsCaptor.capture()); in testStartRanging() 135 failMessage.arg2 = rangingId; in testStartRanging()
|
D | WifiAwareServiceImplTest.java | 518 int rangingId = mDut.startRanging(clientId, sessionId, params); in testStartRanging() local 521 paramsCaptor.capture(), eq(rangingId)); in testStartRanging() 539 int rangingId = mDut.startRanging(clientId, sessionId, params); in testRangingIdIncrementing() local 541 assertTrue("Client ID incrementing", rangingId > prevRangingId); in testRangingIdIncrementing() 543 prevRangingId = rangingId; in testRangingIdIncrementing() 560 int rangingId = mDut.startRanging(clientId, sessionId, params); in testStartRangingZeroArgs() local
|
D | WifiAwareStateManagerTest.java | 2121 final int rangingId = 18423; in testStartRanging() local 2173 mDut.startRanging(clientId, sessionId.getValue(), params, rangingId); in testStartRanging() 2175 inOrder.verify(mMockAwareRttStateManager).startRanging(eq(rangingId), in testStartRanging()
|
/frameworks/base/wifi/tests/src/android/net/wifi/aware/ |
D | WifiAwareManagerTest.java | 859 final int rangingId = 3482; in testRangingCallbacks() local 868 when(mockAwareService.startRanging(anyInt(), anyInt(), any())).thenReturn(rangingId); in testRangingCallbacks() 913 clientProxyCallback.getValue().onRangingSuccess(rangingId, in testRangingCallbacks() 921 clientProxyCallback.getValue().onRangingAborted(rangingId); in testRangingCallbacks()
|