WifiAwareStateManagerTest.java | 30 import static org.mockito.ArgumentMatchers.eq; 138 when(mMockContext.checkPermission(eq(android.Manifest.permission.ACCESS_FINE_LOCATION), 140 when(mMockContext.checkPermission(eq(Manifest.permission.ACCESS_COARSE_LOCATION), 142 when(mMockAppOpsManager.noteOp(eq(AppOpsManager.OP_FINE_LOCATION), anyInt(), 144 when(mMockAppOpsManager.noteOp(eq(AppOpsManager.OP_COARSE_LOCATION), anyInt(), 228 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 229 eq(false), eq(true), eq(true), eq(false)) method 321 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 322 eq(false), eq(true), eq(true), eq(false)); method 326 inOrderM.verify(mAwareMetricsMock).recordAttachSession(eq(uid), eq(false), method 365 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 366 eq(false), eq(true), eq(true), eq(false)); method 370 inOrderM.verify(mAwareMetricsMock).recordAttachSession(eq(uid), eq(false), method 393 anyBoolean(), eq(true), eq(false))).thenReturn(false); method 406 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 407 eq(false), eq(true), eq(true), eq(false)); method 451 eq(configRequest), eq(false), eq(true), eq(true), eq(false)); method 460 eq(configRequest), eq(true), eq(false), eq(true), eq(false)); method 537 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 538 eq(false), eq(true), eq(true), eq(false)); method 542 inOrderM.verify(mAwareMetricsMock).recordAttachSession(eq(uid), eq(false), any()); method 547 inOrder.verify(mMockNative).publish(anyShort(), eq((byte) 0), eq(publishConfig)); method 558 inOrder.verify(mMockNative).publish(transactionId.capture(), eq((byte) 0), method 559 eq(publishConfig)); method 563 inOrderM.verify(mAwareMetricsMock).recordDiscoverySession(eq(uid), eq(true), any()); method 602 eq(configRequest), eq(false), eq(true), eq(true), eq(false)); method 606 inOrderM.verify(mAwareMetricsMock).recordAttachSession(eq(uid), eq(false), any()); method 611 inOrder.verify(mMockNative).publish(transactionId.capture(), eq((byte) 0), method 612 eq(publishConfig)); method 626 inOrder.verify(mMockNative).publish(transactionId.capture(), eq((byte) 0), method 627 eq(publishConfig)); method 673 eq(configRequest), eq(false), eq(true), eq(true), eq(false)); method 677 inOrderM.verify(mAwareMetricsMock).recordAttachSession(eq(uid), eq(false), any()); method 682 inOrder.verify(mMockNative).publish(transactionId.capture(), eq((byte) 0), method 683 eq(publishConfig)); method 689 inOrderM.verify(mAwareMetricsMock).recordDiscoverySession(eq(uid), eq(true), any()); method 696 inOrderM.verify(mAwareMetricsMock).recordDiscoverySessionDuration(anyLong(), eq(true)); method 754 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 755 eq(false), eq(true), eq(true), eq(false)); method 759 inOrderM.verify(mAwareMetricsMock).recordAttachSession(eq(uid), eq(false), any()); method 764 inOrder.verify(mMockNative).publish(transactionId.capture(), eq((byte) 0), method 765 eq(publishConfig)); method 771 inOrderM.verify(mAwareMetricsMock).recordDiscoverySession(eq(uid), eq(true), any()); method 777 inOrder.verify(mMockNative).publish(transactionId.capture(), eq(publishId), method 778 eq(publishConfig)); method 789 inOrder.verify(mMockNative).publish(transactionId.capture(), eq(publishId), method 790 eq(publishConfig)); method 803 inOrder.verify(mMockNative).publish(transactionId.capture(), eq(publishId), method 804 eq(publishConfig)); method 813 inOrder.verify(mMockNative).publish(transactionId.capture(), eq(publishId), method 814 eq(publishConfig)); method 863 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 864 eq(false), eq(true), eq(true), eq(false)); method 868 inOrderM.verify(mAwareMetricsMock).recordAttachSession(eq(uid), eq(false), any()); method 873 inOrder.verify(mMockNative).publish(transactionId.capture(), eq((byte) 0), method 874 eq(publishConfig)); method 885 inOrder.verify(mMockNative).stopPublish(transactionId.capture(), eq(publishId)); method 887 inOrderM.verify(mAwareMetricsMock).recordDiscoverySession(eq(uid), eq(true), any()); method 890 inOrderM.verify(mAwareMetricsMock).recordDiscoverySessionDuration(anyLong(), eq(true)); method 927 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 928 eq(false), eq(true), eq(true), eq(false)); method 936 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), method 937 eq(subscribeConfig)); method 951 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), method 952 eq(subscribeConfig)); method 994 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 995 eq(false), eq(true), eq(true), eq(false)); method 1003 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), method 1004 eq(subscribeConfig)); method 1068 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 1069 eq(false), eq(true), eq(true), eq(false)); method 1077 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), method 1078 eq(subscribeConfig)); method 1088 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq(subscribeId), method 1089 eq(subscribeConfig)); method 1099 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq(subscribeId), method 1100 eq(subscribeConfig)); method 1113 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq(subscribeId), method 1114 eq(subscribeConfig)); method 1152 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 1153 eq(false), eq(true), eq(true), eq(false)); method 1161 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), method 1162 eq(subscribeConfig)); method 1227 eq(configRequest), eq(false), eq(true), eq(true), eq(false)); method 1235 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), method 1236 eq(subscribeConfig)); method 1258 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(subscribeId), method 1259 eq(requestorId), eq(peerMac), eq(ssi.getBytes()), eq(messageId)); method 1268 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(subscribeId), method 1269 eq(requestorId), eq(peerMac), eq(ssi.getBytes()), eq(messageId2)); method 1336 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 1337 eq(false), eq(true), eq(true), eq(false)); method 1345 inOrder.verify(mMockNative).publish(transactionId.capture(), eq((byte) 0), method 1346 eq(publishConfig)); method 1368 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(publishId), method 1369 eq(requestorId2), eq(peerMac2), eq(msgToPeer2.getBytes()), eq(msgToPeerId2)); method 1378 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(publishId), method 1379 eq(requestorId1), eq(peerMac1), eq(msgToPeer1.getBytes()), eq(msgToPeerId1)); method 1438 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 1439 eq(false), eq(true), eq(true), eq(false)); method 1447 inOrder.verify(mMockNative).publish(transactionId.capture(), eq((byte) 0), method 1448 eq(publishConfig)); method 1462 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(publishId), method 1463 eq(requestorId), eq(peerMacOrig), eq(msgToPeer1.getBytes()), method 1464 eq(msgToPeerId1)); method 1480 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(publishId), method 1481 eq(requestorId), eq(peerMacLater), eq(msgToPeer2.getBytes()), method 1482 eq(msgToPeerId2)); method 1530 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 1531 eq(false), eq(true), eq(true), eq(false)); method 1539 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), method 1540 eq(subscribeConfig)); method 1599 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 1600 eq(false), eq(true), eq(true), eq(false)); method 1608 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), method 1609 eq(subscribeConfig)); method 1622 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(subscribeId), method 1623 eq(requestorId), eq(peerMac), eq(ssi.getBytes()), eq(messageId)); method 1631 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(subscribeId), method 1632 eq(requestorId), eq(peerMac), eq(ssi.getBytes()), eq(messageId + 1)); method 1641 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(subscribeId), method 1642 eq(requestorId), eq(peerMac), eq(ssi.getBytes()), eq(messageId + 2)); method 1657 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(subscribeId), method 1658 eq(requestorId), eq(peerMac), eq(ssi.getBytes()), eq(messageId + 3)); method 1725 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 1726 eq(false), eq(true), eq(true), eq(false)); method 1734 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), method 1735 eq(subscribeConfig)); method 1748 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(subscribeId), method 1749 eq(requestorId), eq(peerMac), eq(ssi.getBytes()), eq(messageId)); method 1757 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(subscribeId), method 1758 eq(requestorId), eq(peerMac), eq(ssi.getBytes()), eq(messageId)); method 1812 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 1813 eq(false), eq(true), eq(true), eq(false)); method 1821 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), method 1822 eq(subscribeConfig)); method 1835 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(subscribeId), method 1836 eq(requestorId), eq(peerMac), eq(ssi.getBytes()), eq(messageId)); method 1846 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(subscribeId), method 1847 eq(requestorId), eq(peerMac), eq(ssi.getBytes()), eq(messageId)); method 1901 eq(configRequest), eq(false), eq(true), eq(true), eq(false)); method 1909 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), method 1910 eq(subscribeConfig)); method 1998 eq(configRequest), eq(false), eq(true), eq(true), eq(false)); method 2006 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), method 2007 eq(subscribeConfig)); method 2080 eq(NanStatusType.INTERNAL_FAILURE)); method 2082 eq(NanStatusType.NO_OTA_ACK)); method 2130 eq(configRequest), eq(false), eq(true), eq(true), eq(false)); method 2138 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), method 2139 eq(subscribeConfig)); method 2155 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(subscribeId), method 2156 eq(requestorId), eq(peerMac), isNull(byte[].class), eq(messageId)); method 2171 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(subscribeId), method 2172 eq(requestorId), eq(peerMac), eq(new byte[0]), eq(messageId)); method 2187 inOrder.verify(mMockNative).sendMessage(transactionId.capture(), eq(subscribeId), method 2188 eq(requestorId), eq(peerMac), byteArrayCaptor.capture(), eq(messageId)); method 2343 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 2344 eq(false), eq(true), eq(true), eq(false)); method 2352 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), method 2353 eq(subscribeConfig)); method 2441 crCapture.capture(), eq(false), eq(true), eq(true), eq(false)); method 2457 crCapture.capture(), eq(true), eq(false), eq(true), eq(false)); method 2478 crCapture.capture(), eq(false), eq(false), eq(true), eq(false)); method 2527 any(ConfigRequest.class), eq(false), eq(true), eq(true), eq(false)); method 2543 any(ConfigRequest.class), eq(true), eq(false), eq(true), eq(false)); method 2601 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 2602 eq(false), eq(true), eq(true), eq(false)); method 2610 inOrder.verify(mMockNative).publish(transactionId.capture(), eq((byte) 0), method 2611 eq(publishConfig)); method 2676 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 2677 eq(false), eq(true), eq(true), eq(false)); method 2685 inOrder.verify(mMockNative).publish(transactionId.capture(), eq((byte) 0), method 2686 eq(publishConfig)); method 2720 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 2721 eq(false), eq(true), eq(true), eq(false)); method 2754 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 2755 eq(false), eq(true), eq(true), eq(false)); method 2810 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), method 2811 eq(false), eq(true), eq(true), eq(false)); method 2819 inOrder.verify(mMockNative).publish(transactionId.capture(), eq((byte) 0), method 2820 eq(publishConfig)); method 2866 eq(configRequest), eq(false), eq(true), eq(true), eq(false)); method 2874 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), method 2875 eq(subscribeConfig)); method 2919 eq(configRequest), eq(false), eq(true), eq(true), eq(false)); method 2929 inOrder.verify(mMockNative).publish(transactionId.capture(), eq((byte) 0), method 2930 eq(publishConfig)); method 2973 eq(configRequest), eq(false), eq(true), eq(true), eq(false)); method 2982 eq(configRequest), eq(false), eq(false), eq(false), eq(false)); method 2990 eq(configRequest), eq(false), eq(false), eq(false), eq(true)); method 2998 eq(configRequest), eq(false), eq(false), eq(true), eq(true)); method 3035 eq(configRequest), eq(false), eq(true), eq(true), eq(false)); method 3127 inOrder.verify(mMockContext).sendBroadcastAsUser(intent.capture(), eq(UserHandle.ALL)); method [all...] |