Home
last modified time | relevance | path

Searched refs:eq (Results 1 – 25 of 413) sorted by relevance

12345678910>>...17

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/apdu/
DApduSenderTest.java25 import static org.mockito.ArgumentMatchers.eq;
132 verify(mMockCi).iccOpenLogicalChannel(eq(aid), anyInt(), any()); in testSendEmptyCommands()
133 verify(mMockCi).iccCloseLogicalChannel(eq(channel), any()); in testSendEmptyCommands()
151 verify(mMockCi).iccOpenLogicalChannel(eq(aid), anyInt(), any()); in testOpenChannelErrorStatus()
168 verify(mMockCi).iccTransmitApduLogicalChannel(eq(channel), eq(channel | 10), eq(1), eq(2), in testSend()
169 eq(3), eq(0), eq("a"), any()); in testSend()
191 verify(mMockCi).iccTransmitApduLogicalChannel(eq(channel), eq(channel | 10), eq(1), eq(2), in testSendMultiApdus()
192 eq(3), eq(0), eq("a"), any()); in testSendMultiApdus()
193 verify(mMockCi).iccTransmitApduLogicalChannel(eq(channel), eq(channel | 10), eq(1), eq(2), in testSendMultiApdus()
194 eq(3), eq(1), eq("ab"), any()); in testSendMultiApdus()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsServiceControllerTest.java25 import static org.mockito.Matchers.eq;
124 verify(mMockContext).bindService(intentCaptor.capture(), any(), eq(expectedFlags)); in testBindService()
162 verify(mMockServiceControllerBinder).createMmTelFeature(eq(1), any()); in testBindServiceAndConnected()
163 verify(mMockServiceControllerBinder).createRcsFeature(eq(1), any()); in testBindServiceAndConnected()
164 verify(mMockCallbacks).imsServiceFeatureCreated(eq(1), eq(1), in testBindServiceAndConnected()
165 eq(mTestImsServiceController)); in testBindServiceAndConnected()
166 verify(mMockCallbacks).imsServiceFeatureCreated(eq(1), eq(2), in testBindServiceAndConnected()
167 eq(mTestImsServiceController)); in testBindServiceAndConnected()
168 verify(mMockProxyCallbacks).imsFeatureCreated(eq(1), eq(1)); in testBindServiceAndConnected()
169 verify(mMockProxyCallbacks).imsFeatureCreated(eq(1), eq(2)); in testBindServiceAndConnected()
[all …]
DImsManagerTest.java21 import static org.mockito.ArgumentMatchers.eq;
145 eq(SubscriptionManager.WFC_IMS_ENABLED), in testGetDefaultValues()
151 eq(SubscriptionManager.WFC_IMS_ROAMING_ENABLED), in testGetDefaultValues()
158 eq(SubscriptionManager.ENHANCED_4G_MODE_ENABLED), in testGetDefaultValues()
164 eq(SubscriptionManager.WFC_IMS_MODE), in testGetDefaultValues()
170 eq(SubscriptionManager.WFC_IMS_ROAMING_MODE), in testGetDefaultValues()
176 eq(SubscriptionManager.VT_IMS_ENABLED), in testGetDefaultValues()
186 eq(mSubId[0]), in testSetValues()
187 eq(SubscriptionManager.WFC_IMS_MODE), in testSetValues()
188 eq("1")); in testSetValues()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DCommandQueueTest.java20 import static org.mockito.Matchers.eq;
51 verify(mCallbacks).disable(anyInt(), eq(0), eq(0), eq(false)); in setup()
65 verify(mCallbacks).setIcon(eq(slot), eq(icon)); in testIcon()
69 verify(mCallbacks).removeIcon(eq(slot)); in testIcon()
78 verify(mCallbacks).disable(eq(DEFAULT_DISPLAY), eq(state1), eq(state2), eq(true)); in testDisable()
87 verify(mCallbacks).disable(eq(SECONDARY_DISPLAY), eq(state1), eq(state2), eq(true)); in testDisableForSecondaryDisplay()
101 verify(mCallbacks).animateCollapsePanels(eq(0), eq(false)); in testCollapsePanels()
109 verify(mCallbacks).animateExpandSettingsPanel(eq(panel)); in testExpandSettings()
117 verify(mCallbacks).setSystemUiVisibility(eq(DEFAULT_DISPLAY), eq(1), eq(2), eq(3), eq(4), in testSetSystemUiVisibility()
118 eq(null), eq(r), eq(false)); in testSetSystemUiVisibility()
[all …]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/
DItemGroupTest.java20 import static org.mockito.Matchers.eq;
68 inOrder.verify(observer).onItemRangeInserted(eq(itemGroup), eq(0), eq(1)); in testGroup()
69 inOrder.verify(observer).onItemRangeInserted(eq(itemGroup), eq(1), eq(1)); in testGroup()
88 verify(observer).onItemRangeRemoved(eq(itemGroup), eq(1), eq(1)); in testRemoveChild()
100 verify(observer).onItemRangeRemoved(eq(itemGroup), eq(0), eq(2)); in testClear()
129 inOrder.verify(observer).onItemRangeInserted(eq(parentGroup), eq(0), eq(1)); in testNestedGroup()
130 inOrder.verify(observer).onItemRangeInserted(eq(parentGroup), eq(1), eq(2)); in testNestedGroup()
131 inOrder.verify(observer).onItemRangeInserted(eq(parentGroup), eq(3), eq(1)); in testNestedGroup()
150 inOrder.verify(observer).onItemRangeInserted(eq(parentGroup), eq(0), eq(1)); in testNestedGroupClearNotification()
151 inOrder.verify(observer).onItemRangeInserted(eq(parentGroup), eq(1), eq(2)); in testNestedGroupClearNotification()
[all …]
/frameworks/base/services/robotests/src/com/android/server/location/
DGnssGeofenceProviderTest.java5 import static org.mockito.ArgumentMatchers.eq;
55 verify(mMockNative).addGeofence(eq(GEOFENCE_ID), eq(LATITUDE), eq(LONGITUDE), in addGeofence_nativeAdded()
56 eq(RADIUS), eq(LAST_TRANSITION), eq(MONITOR_TRANSITIONS), in addGeofence_nativeAdded()
57 eq(NOTIFICATION_RESPONSIVENESS), in addGeofence_nativeAdded()
58 eq(UNKNOWN_TIMER)); in addGeofence_nativeAdded()
64 verify(mMockNative).pauseGeofence(eq(GEOFENCE_ID)); in pauseGeofence_nativePaused()
70 verify(mMockNative).removeGeofence(eq(GEOFENCE_ID)); in removeGeofence_nativeRemoved()
77 verify(mMockNative).resumeGeofence(eq(GEOFENCE_ID), eq(MONITOR_TRANSITIONS)); in resumeGeofence_nativeResumed()
84 verify(mMockNative, times(2)).addGeofence(eq(GEOFENCE_ID), eq(LATITUDE), eq(LONGITUDE), in addGeofence_restart_added()
85 eq(RADIUS), eq(LAST_TRANSITION), eq(MONITOR_TRANSITIONS), in addGeofence_restart_added()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/
DAppDataRollbackHelperTest.java23 import static org.mockito.ArgumentMatchers.eq;
59 doReturn(true).when(helper).isUserCredentialLocked(eq(10)); in testSnapshotAppData()
60 doReturn(true).when(helper).isUserCredentialLocked(eq(11)); in testSnapshotAppData()
72 eq("com.foo.bar"), eq(10), eq(5), eq(Installer.FLAG_STORAGE_DE)); in testSnapshotAppData()
74 eq("com.foo.bar"), eq(11), eq(5), eq(Installer.FLAG_STORAGE_DE)); in testSnapshotAppData()
78 doReturn(false).when(helper).isUserCredentialLocked(eq(10)); in testSnapshotAppData()
79 doReturn(true).when(helper).isUserCredentialLocked(eq(11)); in testSnapshotAppData()
92 eq("com.foo.bar"), eq(10), eq(7), in testSnapshotAppData()
93 eq(Installer.FLAG_STORAGE_CE | Installer.FLAG_STORAGE_DE)); in testSnapshotAppData()
95 eq("com.foo.bar"), eq(11), eq(7), eq(Installer.FLAG_STORAGE_DE)); in testSnapshotAppData()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/tuner/
DTunablePaddingTest.java18 import static org.mockito.ArgumentMatchers.eq;
70 verify(mView).setPadding(eq(DEFAULT), eq(0), eq(0), eq(0)); in testFlags()
76 verify(mView).setPadding(eq(0), eq(DEFAULT), eq(0), eq(0)); in testFlags()
82 verify(mView).setPadding(eq(0), eq(0), eq(DEFAULT), eq(0)); in testFlags()
88 verify(mView).setPadding(eq(0), eq(0), eq(0), eq(DEFAULT)); in testFlags()
99 verify(mView).setPadding(eq(DEFAULT), eq(0), eq(0), eq(0)); in testRtl()
105 verify(mView).setPadding(eq(0), eq(0), eq(DEFAULT), eq(0)); in testRtl()
119 verify(mView).setPadding(eq(output), eq(0), eq(0), eq(0)); in testTuning()
/frameworks/base/services/tests/servicestests/src/com/android/server/utils/
DPriorityDumpTest.java23 import static org.mockito.Matchers.eq;
65 verify(mDumper).dump(same(mFd), same(mPw), eq(null), /* asProto= */ eq(false)); in testNullArgs()
71 verify(mDumper).dump(same(mFd), same(mPw), eq(EMPTY_ARGS), /* asProto= */ eq(false)); in testNoArgs()
80 verify(mDumper).dump(same(mFd), same(mPw), eq(args), /* asProto= */ eq(false)); in testNonPriorityArgs()
89 verify(mDumper).dump(same(mFd), same(mPw), eq(EMPTY_ARGS), /* asProto= */ eq(false)); in testMissingPriority()
98 verify(mDumper).dump(same(mFd), same(mPw), eq(EMPTY_ARGS), /* asProto= */ eq(false)); in testInvalidPriorityNoExtraArgs()
107 verify(mDumper).dump(same(mFd), same(mPw), eq(new String[] { in testInvalidPriorityExtraArgs()
109 }), /* asProto= */ eq(false)); in testInvalidPriorityExtraArgs()
139 verify(mDumper).dumpCritical(same(mFd), same(mPw), eq(EMPTY_ARGS), in testCriticalNoExtraArgs()
140 /* asProto= */ eq(false)); in testCriticalNoExtraArgs()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java34 import static org.mockito.ArgumentMatchers.eq;
161 when(mMockContext.checkPermission(eq(android.Manifest.permission.ACCESS_FINE_LOCATION), in setUp()
163 when(mMockAppOpsManager.noteOp(eq(AppOpsManager.OP_FINE_LOCATION), anyInt(), in setUp()
272 eq(configRequest), eq(false), eq(true), eq(true), eq(false)); in testRequestMacAddresses()
284 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses()
285 eq(subscribeConfig)); in testRequestMacAddresses()
292 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses()
293 eq(subscribeConfig)); in testRequestMacAddresses()
306 isNull(), eq(distance)); in testRequestMacAddresses()
369 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest), in testAwareDataPathInterfaceUpDown()
[all …]
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DHeaderRecyclerViewTest.java19 import static org.mockito.Matchers.eq;
68 verify(mObserver).onItemRangeChanged(eq(12), eq(1), eq(null)); in testNotifyItemChangedNoHeader()
80 verify(mObserver).onItemRangeChanged(eq(13), eq(1), eq(null)); in testNotifyItemChangedWithHeader()
88 verify(mObserver).onItemRangeInserted(eq(12), eq(1)); in testNotifyItemInsertedNoHeader()
100 verify(mObserver).onItemRangeInserted(eq(13), eq(1)); in testNotifyItemInsertedWithHeader()
108 verify(mObserver).onItemRangeRemoved(eq(12), eq(1)); in testNotifyItemRemovedNoHeader()
120 verify(mObserver).onItemRangeRemoved(eq(13), eq(1)); in testNotifyItemRemovedWithHeader()
128 verify(mObserver).onItemRangeMoved(eq(12), eq(18), eq(1)); in testNotifyItemMovedNoHeader()
140 verify(mObserver).onItemRangeMoved(eq(13), eq(19), eq(1)); in testNotifyItemMovedWithHeader()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointEventHandlerTest.java22 import static org.mockito.Matchers.eq;
77 when(mWifiNative.requestAnqp(any(), eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) in requestR1AnqpElement()
82 when(mWifiNative.requestAnqp(any(), eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) in requestR1AnqpElement()
100 when(mWifiNative.requestAnqp(any(), eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) in requestR2AnqpElement()
105 when(mWifiNative.requestAnqp(any(), eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) in requestR2AnqpElement()
126 when(mWifiNative.requestAnqp(any(), eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) in requestMixAnqpElements()
131 when(mWifiNative.requestAnqp(any(), eq(BSSID_STR), eq(expAnqpIds), eq(expHs20Subtypes))) in requestMixAnqpElements()
142 when(mWifiNative.requestIcon(any(), eq(BSSID_STR), eq(ICON_FILENAME))).thenReturn(true); in requestIconFile()
146 when(mWifiNative.requestIcon(any(), eq(BSSID_STR), eq(ICON_FILENAME))).thenReturn(false); in requestIconFile()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pNativeTest.java26 import static org.mockito.ArgumentMatchers.eq;
149 verify(mSupplicantP2pIfaceHalMock).setWpsDeviceName(eq(TEST_DEVICE_NAME)); in testSetDeviceName()
159 verify(mSupplicantP2pIfaceHalMock).setWpsDeviceName(eq(TEST_DEVICE_NAME)); in testSetP2pDeviceName()
181 verify(mSupplicantP2pIfaceHalMock).startWpsPbc(eq(TEST_IFACE), eq(TEST_BSSID)); in testStartWpsPbc()
192 verify(mSupplicantP2pIfaceHalMock).startWpsPinKeypad(eq(TEST_IFACE), eq(TEST_PIN)); in testStartWpsPinKeypad()
203 verify(mSupplicantP2pIfaceHalMock).startWpsPinDisplay(eq(TEST_IFACE), eq(TEST_BSSID)); in testStartWpsPinDisplay()
213 verify(mSupplicantP2pIfaceHalMock).removeNetwork(eq(1)); in testP2pRemoveNetwork()
223 verify(mSupplicantP2pIfaceHalMock).setWpsDeviceType(eq(TEST_DEVICE_TYPE)); in testSetP2pDeviceType()
233 verify(mSupplicantP2pIfaceHalMock).setWpsConfigMethods(eq(TEST_WPS_CONFIG)); in testSetConfigMethods()
243 verify(mSupplicantP2pIfaceHalMock).setSsidPostfix(eq(TEST_SSID_POSTFIX)); in testSetP2pSsidPostfix()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DTimeControllerTest.java32 import static org.mockito.Mockito.eq;
193 .set(anyInt(), eq(now + 5 * MINUTE_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), in runTestMaybeStartTrackingJobLocked_DelayInOrder()
217 .wouldBeReadyWithConstraintLocked(eq(jobLatest), anyInt()); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady()
219 .wouldBeReadyWithConstraintLocked(eq(jobMiddle), anyInt()); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady()
221 .wouldBeReadyWithConstraintLocked(eq(jobEarliest), anyInt()); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady()
227 .set(anyInt(), eq(now + 5 * MINUTE_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady()
269 .set(anyInt(), eq(now + HOUR_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), any(), in runTestMaybeStartTrackingJobLocked_DelayReverseOrder()
273 .set(anyInt(), eq(now + 30 * MINUTE_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), in runTestMaybeStartTrackingJobLocked_DelayReverseOrder()
277 .set(anyInt(), eq(now + 5 * MINUTE_IN_MILLIS), anyLong(), anyLong(), eq(TAG_DELAY), in runTestMaybeStartTrackingJobLocked_DelayReverseOrder()
295 .wouldBeReadyWithConstraintLocked(eq(jobLatest), anyInt()); in testMaybeStartTrackingJobLocked_DelayReverseOrder_WithSkipping_SomeNotReady()
[all …]
/frameworks/base/tests/net/java/com/android/server/
DIpSecServiceParameterizedTest.java27 import static org.mockito.Matchers.eq;
174 when(mMockAppOps.noteOp(anyInt(), anyInt(), eq("blessedPackage"))) in setUp()
178 when(mMockAppOps.noteOp(anyInt(), anyInt(), eq("systemPackage"))) in setUp()
181 when(mMockAppOps.noteOp(anyInt(), anyInt(), eq("badPackage"))) in setUp()
189 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) in testIpSecServiceReserveSpi()
201 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) in testReleaseSecurityParameterIndex()
212 eq(mUid), in testReleaseSecurityParameterIndex()
215 eq(TEST_SPI), in testReleaseSecurityParameterIndex()
233 when(mMockNetd.ipSecAllocateSpi(anyInt(), anyString(), eq(mDestinationAddr), eq(TEST_SPI))) in testSecurityParameterIndexBinderDeath()
248 eq(mUid), in testSecurityParameterIndexBinderDeath()
[all …]
/frameworks/base/tests/net/java/android/net/
DIpMemoryStoreTest.java27 import static org.mockito.Mockito.eq;
120 verify(mMockService, times(1)).storeNetworkAttributes(eq(l2Key), in testNetworkAttributes()
132 verify(mMockService, times(1)).retrieveNetworkAttributes(eq(l2Key), any()); in testNetworkAttributes()
146 verify(mMockService, times(1)).storeBlob(eq(l2Key), eq(TEST_CLIENT_ID), eq(TEST_DATA_NAME), in testPrivateData()
147 eq(b), any()); in testPrivateData()
157 verify(mMockService, times(1)).retrieveBlob(eq(l2Key), eq(TEST_CLIENT_ID), in testPrivateData()
158 eq(TEST_OTHER_DATA_NAME), any()); in testPrivateData()
190 verify(mMockService, times(1)).isSameNetwork(eq(l2Key1), eq(l2Key2), any()); in testIsSameNetwork()
229 inOrder.verify(mMockService).storeNetworkAttributes(eq(l2Key), mNapCaptor.capture(), any()); in testEnqueuedIpMsRequests()
230 inOrder.verify(mMockService).retrieveNetworkAttributes(eq(l2Key), any()); in testEnqueuedIpMsRequests()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java31 import static org.mockito.ArgumentMatchers.eq;
192 doNothing().when(mFrameworkFacade).registerContentObserver(eq(mockContext), any(), in setUp()
195 eq(mockContext), in setUp()
196 eq(Settings.Global.WIFI_RTT_BACKGROUND_EXEC_GAP_MS), in setUp()
208 when(mockPermissionUtil.checkCallersLocationPermission(eq(mPackageName), in setUp()
274 verify(mockNative).rangeRequest(mIntCaptor.capture(), eq(requests[i]), eq(true)); in testRangingFlow()
292 verify(mockMetrics).recordRequest(eq(mDefaultWs), eq(requests[i])); in testRangingFlow()
293 verify(mockMetrics).recordResult(eq(requests[i]), eq(results.get(i).first)); in testRangingFlow()
331 verify(mockNative).rangeRequest(mIntCaptor.capture(), mRequestCaptor.capture(), eq(true)); in testRangingFlowUsingAwarePeerHandles()
362 verify(mockMetrics).recordRequest(eq(mDefaultWs), eq(request)); in testRangingFlowUsingAwarePeerHandles()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNat464XlatTest.java22 import static org.mockito.Mockito.eq;
99 when(mNms.getInterfaceConfig(eq(STACKED_IFACE))).thenReturn(mConfig);
189 verify(mNms).registerObserver(eq(nat));
190 verify(mNetd).clatdStart(eq(BASE_IFACE), eq(NAT64_PREFIX));
196 verify(mNms).getInterfaceConfig(eq(STACKED_IFACE));
197 verify(mConnectivity).handleUpdateLinkProperties(eq(mNai), c.capture());
205 verify(mNetd).clatdStop(eq(BASE_IFACE));
206 verify(mConnectivity, times(2)).handleUpdateLinkProperties(eq(mNai), c.capture());
207 verify(mNms).unregisterObserver(eq(nat));
210 verify(mDnsResolver).stopPrefix64Discovery(eq(NETID));
[all …]
DNetworkNotificationManagerTest.java23 import static org.mockito.Mockito.eq;
125 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); in testNotificationsShownAndCleared()
126 verify(mNotificationManager, times(1)).cancelAsUser(eq(tag), eq(eventId), any()); in testNotificationsShownAndCleared()
141 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); in testNoInternetNotificationsNotShownForCellular()
163 .notifyAsUser(eq(tag), eq(NO_INTERNET.eventId), any(), any()); in testDuplicatedNotificationsNoInternetThenSignIn()
168 .cancelAsUser(eq(tag), eq(NO_INTERNET.eventId), any()); in testDuplicatedNotificationsNoInternetThenSignIn()
170 .notifyAsUser(eq(tag), eq(SIGN_IN.eventId), any(), any()); in testDuplicatedNotificationsNoInternetThenSignIn()
174 verify(mNotificationManager, times(1)).cancelAsUser(eq(tag), eq(SIGN_IN.eventId), any()); in testDuplicatedNotificationsNoInternetThenSignIn()
185 .notifyAsUser(eq(tag), eq(SIGN_IN.eventId), any(), any()); in testDuplicatedNotificationsSignInThenNoInternet()
195 verify(mNotificationManager, times(1)).cancelAsUser(eq(tag), eq(SIGN_IN.eventId), any()); in testDuplicatedNotificationsSignInThenNoInternet()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionInfoUpdaterTest.java29 import static org.mockito.Mockito.eq;
184 .getSubInfoUsingSlotIndexPrivileged(eq(FAKE_SUB_ID_1)); in testSimAbsent()
192 verify(mSubscriptionController, times(1)).clearSubInfoRecord(eq(FAKE_SUB_ID_1)); in testSimAbsent()
196 verify(mConfigManager).updateConfigForPhoneId(eq(FAKE_SUB_ID_1), in testSimAbsent()
197 eq(IccCardConstants.INTENT_VALUE_ICC_ABSENT)); in testSimAbsent()
205 .getSubInfoUsingSlotIndexPrivileged(eq(FAKE_SUB_ID_1)); in testSimAbsentAndInactive()
213 verify(mSubscriptionController, times(1)).clearSubInfoRecord(eq(FAKE_SUB_ID_1)); in testSimAbsentAndInactive()
219 verify(mConfigManager, times(0)).updateConfigForPhoneId(eq(FAKE_SUB_ID_1), in testSimAbsentAndInactive()
220 eq(IccCardConstants.INTENT_VALUE_ICC_ABSENT)); in testSimAbsentAndInactive()
236 verify(mConfigManager).updateConfigForPhoneId(eq(FAKE_SUB_ID_1), in testSimUnknown()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/textservices/
DLazyIntToIntMapTest.java21 import static org.mockito.ArgumentMatchers.eq;
43 when(func.applyAsInt(eq(1))).thenReturn(11); in testLaziness()
44 when(func.applyAsInt(eq(2))).thenReturn(22); in testLaziness()
51 verify(func, times(0)).applyAsInt(eq(1)); in testLaziness()
52 verify(func, times(1)).applyAsInt(eq(2)); in testLaziness()
56 verify(func, times(0)).applyAsInt(eq(1)); in testLaziness()
57 verify(func, times(1)).applyAsInt(eq(2)); in testLaziness()
63 when(func1.applyAsInt(eq(1))).thenReturn(11); in testDelete()
64 when(func1.applyAsInt(eq(2))).thenReturn(22); in testDelete()
67 when(func2.applyAsInt(eq(1))).thenReturn(111); in testDelete()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DApnContextTest.java23 import static org.mockito.Matchers.eq;
122 verify(mDcTracker, times(1)).enableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestNormal()
123 eq(DcTracker.REQUEST_TYPE_NORMAL), eq(null)); in testNetworkRequestNormal()
132 verify(mDcTracker, times(2)).enableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestNormal()
133 eq(DcTracker.REQUEST_TYPE_NORMAL), eq(null)); in testNetworkRequestNormal()
136 verify(mDcTracker, never()).disableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestNormal()
137 eq(DcTracker.RELEASE_TYPE_NORMAL)); in testNetworkRequestNormal()
140 verify(mDcTracker, times(1)).disableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestNormal()
141 eq(DcTracker.RELEASE_TYPE_NORMAL)); in testNetworkRequestNormal()
149 verify(mDcTracker, times(1)).enableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestDetach()
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DItemTest.java24 import static org.mockito.Matchers.eq;
109 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); in testProperties()
112 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); in testProperties()
115 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); in testProperties()
119 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); in testProperties()
124 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); in testProperties()
170 verify(mObserver).onItemRangeRemoved(eq(item), eq(0), eq(1)); in testVisible()
173 verify(mObserver).onItemRangeInserted(eq(item), eq(0), eq(1)); in testVisible()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSelfRecoveryTest.java50 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), anyInt()); in testValidTriggerReasonsSendMessageToWifiController()
56 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), anyInt()); in testValidTriggerReasonsSendMessageToWifiController()
79 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_DISABLE_WIFI)); in testStaIfaceDownDisablesWifi()
94 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), in testTimeWindowLimiting_typicalUse()
99 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), in testTimeWindowLimiting_typicalUse()
105 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), in testTimeWindowLimiting_typicalUse()
112 verify(mWifiController, never()).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), in testTimeWindowLimiting_typicalUse()
114 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_DISABLE_WIFI)); in testTimeWindowLimiting_typicalUse()
118 verify(mWifiController, never()).sendMessage(eq(WifiController.CMD_RECOVERY_RESTART_WIFI), in testTimeWindowLimiting_typicalUse()
120 verify(mWifiController).sendMessage(eq(WifiController.CMD_RECOVERY_DISABLE_WIFI)); in testTimeWindowLimiting_typicalUse()
[all …]
/frameworks/base/tests/net/java/android/app/usage/
DNetworkStatsManagerTest.java28 import static org.mockito.ArgumentMatchers.eq;
110 eq(uid1), eq(android.net.NetworkStats.SET_ALL), in testQueryDetails()
111 eq(android.net.NetworkStats.TAG_NONE), in testQueryDetails()
112 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime))) in testQueryDetails()
121 eq(uid2), eq(android.net.NetworkStats.SET_ALL), in testQueryDetails()
122 eq(android.net.NetworkStats.TAG_NONE), in testQueryDetails()
123 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime))) in testQueryDetails()
190 eq(uid1), eq(android.net.NetworkStats.SET_ALL), in testQueryDetails_NoSubscriberId()
191 eq(android.net.NetworkStats.TAG_NONE), in testQueryDetails_NoSubscriberId()
192 eq(NetworkStatsHistory.FIELD_ALL), eq(startTime), eq(endTime)); in testQueryDetails_NoSubscriberId()
[all …]

12345678910>>...17