Home
last modified time | relevance | path

Searched refs:any (Results 1 – 25 of 790) sorted by relevance

12345678910>>...32

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanRequestProxyTest.java141 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testEnableScanning()
152 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testDisableScanning()
173 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testStartScanSuccess()
174 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanSuccess()
190 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testStartScanSuccessFromAppWithNetworkSettings()
191 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanSuccessFromAppWithNetworkSettings()
205 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testStartScanSuccessFromAppWithNetworkSetupWizard()
206 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanSuccessFromAppWithNetworkSetupWizard()
219 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testStartScanWithHiddenNetworkScanningDisabled()
225 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanWithHiddenNetworkScanningDisabled()
[all …]
DLinkProbeManagerTest.java22 import static org.mockito.Mockito.any;
116 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeTriggeredAndAcked()
117 verify(mWifiMetrics, never()).incrementLinkProbeExperimentProbeCount(any()); in testLinkProbeTriggeredAndAcked()
134 verify(mWifiNative).probeLink(eq(TEST_IFACE_NAME), any(), callbackCaptor.capture(), in testLinkProbeTriggeredAndAcked()
160 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeTriggeredAndFailed()
177 verify(mWifiNative).probeLink(eq(TEST_IFACE_NAME), any(), callbackCaptor.capture(), in testLinkProbeTriggeredAndFailed()
218 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeNotTriggeredWhenTxSucceeded()
226 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeNotTriggeredWhenTxSucceeded()
238 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeNotTriggeredWhenTxSucceeded()
251 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeNotTriggeredWhenScreenJustTurnedOn()
[all …]
DSupplicantStaNetworkHalTest.java25 import static org.mockito.Mockito.any;
155 verify(mISupplicantStaNetworkV12).setSaePassword(any(String.class)); in testSaePasswordNetworkWifiConfigurationSaveLoad()
157 .getSaePassword(any(android.hardware.wifi.supplicant.V1_2.ISupplicantStaNetwork in testSaePasswordNetworkWifiConfigurationSaveLoad()
160 .getPskPassphrase(any(ISupplicantStaNetwork.getPskPassphraseCallback.class)); in testSaePasswordNetworkWifiConfigurationSaveLoad()
161 verify(mISupplicantStaNetworkV12, never()).setPsk(any(byte[].class)); in testSaePasswordNetworkWifiConfigurationSaveLoad()
163 .getPsk(any(ISupplicantStaNetwork.getPskCallback.class)); in testSaePasswordNetworkWifiConfigurationSaveLoad()
176 .getPskPassphrase(any(ISupplicantStaNetwork.getPskPassphraseCallback.class)); in testPskPassphraseNetworkWifiConfigurationSaveLoad()
177 verify(mISupplicantStaNetworkMock, never()).setPsk(any(byte[].class)); in testPskPassphraseNetworkWifiConfigurationSaveLoad()
179 .getPsk(any(ISupplicantStaNetwork.getPskCallback.class)); in testPskPassphraseNetworkWifiConfigurationSaveLoad()
190 verify(mISupplicantStaNetworkMock).setPsk(any(byte[].class)); in testPskNetworkWifiConfigurationSaveLoad()
[all …]
DOpenNetworkNotifierTest.java28 import static org.mockito.ArgumentMatchers.any;
123 verify(mContext).registerReceiver(broadcastReceiverCaptor.capture(), any(), any(), any()); in setUp()
127 verify(mFrameworkFacade).registerContentObserver(eq(mContext), any(Uri.class), eq(true), in setUp()
131 when(mWifiConfigManager.addOrUpdateNetwork(any(), anyInt())) in setUp()
168 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_hasOpenNetworks_notificationDisplayed()
178 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_emptyList_notificationNotDisplayed()
191 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_featureDisabled_notificationNotDisplayed()
206 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_emptyList_notificationCleared()
225 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_noRecommendation_notificationCleared()
245 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_screenOff_emptyList_notificationCleared()
[all …]
DCarrierNetworkNotifierTest.java28 import static org.mockito.ArgumentMatchers.any;
124 verify(mContext).registerReceiver(broadcastReceiverCaptor.capture(), any(), any(), any()); in setUp()
128 verify(mFrameworkFacade).registerContentObserver(eq(mContext), any(Uri.class), eq(true), in setUp()
132 when(mWifiConfigManager.addOrUpdateNetwork(any(), anyInt())) in setUp()
169 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_hasCarrierNetworks_notificationDisplayed()
179 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_emptyList_notificationNotDisplayed()
192 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_featureDisabled_notificationNotDisplayed()
207 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_emptyList_notificationCleared()
226 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_noRecommendation_notificationCleared()
246 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_screenOff_emptyList_notificationCleared()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DTimeControllerTest.java28 import static org.mockito.ArgumentMatchers.any;
158 .set(anyInt(), anyLong(), anyLong(), anyLong(), anyString(), any(), any(), any()); in testMaybeStartTrackingJobLocked_AlreadySatisfied()
174 doReturn(true).when(mTimeController).wouldBeReadyWithConstraintLocked(any(), anyInt()); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_AllReady()
194 any(), any(), any()); in runTestMaybeStartTrackingJobLocked_DelayInOrder()
197 .set(anyInt(), anyLong(), anyLong(), anyLong(), anyString(), any(), any(), any()); in runTestMaybeStartTrackingJobLocked_DelayInOrder()
200 .set(anyInt(), anyLong(), anyLong(), anyLong(), anyString(), any(), any(), any()); in runTestMaybeStartTrackingJobLocked_DelayInOrder()
228 any(), any(), any()); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady()
231 .set(anyInt(), anyLong(), anyLong(), anyLong(), anyString(), any(), any(), any()); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady()
234 .set(anyInt(), anyLong(), anyLong(), anyLong(), anyString(), any(), any(), any()); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady()
250 doReturn(true).when(mTimeController).wouldBeReadyWithConstraintLocked(any(), anyInt()); in testMaybeStartTrackingJobLocked_DelayReverseOrder_WithSkipping_AllReady()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DAnyTest.cs44 var any = Any.Pack(message); in Pack()
45 Assert.AreEqual("type.googleapis.com/protobuf_unittest.TestAllTypes", any.TypeUrl); in Pack()
46 Assert.AreEqual(message.CalculateSize(), any.Value.Length); in Pack()
53 var any = Any.Pack(message, "foo.bar/baz"); in Pack_WithCustomPrefix()
54 Assert.AreEqual("foo.bar/baz/protobuf_unittest.TestAllTypes", any.TypeUrl); in Pack_WithCustomPrefix()
55 Assert.AreEqual(message.CalculateSize(), any.Value.Length); in Pack_WithCustomPrefix()
62 var any = Any.Pack(message, "foo.bar/baz/"); in Pack_WithCustomPrefixTrailingSlash()
63 Assert.AreEqual("foo.bar/baz/protobuf_unittest.TestAllTypes", any.TypeUrl); in Pack_WithCustomPrefixTrailingSlash()
64 Assert.AreEqual(message.CalculateSize(), any.Value.Length); in Pack_WithCustomPrefixTrailingSlash()
71 var any = Any.Pack(message); in Unpack_WrongType()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareNativeManagerTest.java21 import static org.mockito.ArgumentMatchers.any;
92 when(mWifiNanIfaceMock.registerEventCallback(any())).thenReturn(mStatusOk); in setUp()
93 when(mIWifiNanIface12Mock.registerEventCallback_1_2(any())).thenReturn(mStatusOk); in setUp()
105 mManagerStatusListenerCaptor.capture(), any()); in setUp()
124 when(mHalDeviceManager.createNanIface(any(), any())).thenReturn(mWifiNanIfaceMock); in testControlFlowWithoutInterface()
129 eq(IfaceType.NAN), mAvailListenerCaptor.capture(), any(Handler.class)); in testControlFlowWithoutInterface()
147 eq(IfaceType.NAN), mAvailListenerCaptor.capture(), any(Handler.class)); in testControlFlowWithoutInterface()
157 mInOrder.verify(mHalDeviceManager, never()).createNanIface(any(), any()); in testControlFlowWithoutInterface()
172 when(mHalDeviceManager.createNanIface(any(), any())).thenReturn(mWifiNanIfaceMock); in testReferenceCounting()
177 eq(IfaceType.NAN), mAvailListenerCaptor.capture(), any(Handler.class)); in testReferenceCounting()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java21 import static org.mockito.Mockito.any;
95 when(mResources.getColor(anyInt(), any())).thenReturn(0xFF607D8B); in setUp()
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()
135 verify(mNotificationManager, never()).notifyAsUser(any(), anyInt(), any(), any()); in testNoInternetNotificationsNotShownForCellular()
141 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); in testNoInternetNotificationsNotShownForCellular()
152 verify(mNotificationManager, never()).notifyAsUser(any(), anyInt(), any(), any()); in testNotificationsNotShownIfNoInternetCapability()
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()
[all …]
DMultipathPolicyTrackerTest.java33 import static org.mockito.ArgumentMatchers.any;
130 any(), argThat(f -> f.hasAction(ACTION_CONFIGURATION_CHANGED)), any(), any())) in setUp()
222 any(), in testGetMultipathPreference()
229 verify(mCM).registerNetworkCallback(any(), networkCallback.capture(), any()); in testGetMultipathPreference()
256 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(12)), any(), any()); in testGetMultipathPreference_SubscriptionQuota()
273 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(8)), any(), any()); in testGetMultipathPreference_UserWarningQuota()
290 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(8)), any(), any()); in testGetMultipathPreference_SnoozedWarningQuota()
307 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(5)), any(), any()); in testGetMultipathPreference_SnoozedBothQuota()
322 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(8)), any(), any()); in testGetMultipathPreference_SettingChanged()
330 verify(mStatsManager, times(1)).unregisterUsageCallback(any()); in testGetMultipathPreference_SettingChanged()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaInserterTest.java19 import static org.mockito.Matchers.any;
145 verify(mMockProvider, never()).bulkInsert(eq(mPackageName), any(), any()); in testInsertContentsLessThanBufferSize()
150 when(mMockProvider.bulkInsert(eq(mPackageName), any(), any())).thenReturn(1); in testInsertContentsEqualToBufferSize()
157 verify(mMockProvider, times(4)).bulkInsert(eq(mPackageName), any(), any()); in testInsertContentsEqualToBufferSize()
162 when(mMockProvider.bulkInsert(eq(mPackageName), any(), any())).thenReturn(1); in testInsertContentsMoreThanBufferSize()
169 verify(mMockProvider, times(4)).bulkInsert(eq(mPackageName), any(), any()); in testInsertContentsMoreThanBufferSize()
179 when(mMockProvider.bulkInsert(eq(mPackageName), any(), any())).thenReturn(1); in testFlushAllWithSomeContents()
187 verify(mMockProvider, times(4)).bulkInsert(eq(mPackageName), any(), any()); in testFlushAllWithSomeContents()
192 when(mMockProvider.bulkInsert(eq(mPackageName), any(), any())).thenReturn(1); in testInsertContentsAfterFlushAll()
205 verify(mMockProvider, times(8)).bulkInsert(eq(mPackageName), any(), any()); in testInsertContentsAfterFlushAll()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dany_test.cc56 google::protobuf::Any any; in TEST() local
57 any.PackFrom(submessage); in TEST()
59 message.mutable_any_value()->PackFrom(any); in TEST()
65 ASSERT_TRUE(message.any_value().UnpackTo(&any)); in TEST()
66 ASSERT_TRUE(any.UnpackTo(&submessage)); in TEST()
73 google::protobuf::Any any; in TEST() local
74 any.PackFrom(submessage); in TEST()
75 ASSERT_TRUE(any.ParseFromString(any.SerializeAsString())); in TEST()
76 EXPECT_TRUE(any.Is<protobuf_unittest::TestAny>()); in TEST()
77 EXPECT_FALSE(any.Is<google::protobuf::Any>()); in TEST()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLaunchParamsControllerTests.java25 import static com.android.dx.mockito.inline.extended.ExtendedMockito.any;
95 eq(source), eq(options), anyInt(), any(), any()); in testArgumentPropagation()
119 verify(positioner, times(1)).onCalculate(any(), any(), any(), any(), any(), anyInt(), in testStoredParamsRecovery()
120 eq(expected), any()); in testStoredParamsRecovery()
139 verify(ignoredPositioner, never()).onCalculate(any(), any(), any(), any(), any(), anyInt(), in testEarlyExit()
140 any(), any()); in testEarlyExit()
157 verify(firstPositioner, times(1)).onCalculate(any(), any(), any(), any(), any(), anyInt(), in testRegistration()
158 any(), any()); in testRegistration()
166 verify(firstPositioner, times(1)).onCalculate(any(), any(), any(), any(), any(), anyInt(), in testRegistration()
167 any(), any()); in testRegistration()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/method/
DEditorState.java19 import static org.mockito.Matchers.any;
164 when(mockReplacementSpan.getSize(any(), any(), any(), any(), any())) in setByString()
167 .draw(any(), any(), any(), any(), any(), any(), any(), any(), any()); in setByString()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsLayoutTest.java21 import static org.mockito.ArgumentMatchers.any;
178 doReturn(view1).when(mAdapter).getView(eq(0), any(), any()); in testOnUpdateList_oneSeparatedOneList()
181 doReturn(view2).when(mAdapter).getView(eq(1), any(), any()); in testOnUpdateList_oneSeparatedOneList()
200 doReturn(view1).when(mAdapter).getView(eq(0), any(), any()); in testOnUpdateList_twoSeparatedItems()
202 doReturn(view2).when(mAdapter).getView(eq(1), any(), any()); in testOnUpdateList_twoSeparatedItems()
225 doReturn(view1).when(mAdapter).getView(eq(0), any(), any()); in testOnUpdateList_twoSeparatedItems_reverse()
228 doReturn(view2).when(mAdapter).getView(eq(1), any(), any()); in testOnUpdateList_twoSeparatedItems_reverse()
250 doReturn(view1).when(mAdapter).getView(eq(0), any(), any()); in testOnUpdateList_fourInList()
253 doReturn(view2).when(mAdapter).getView(eq(1), any(), any()); in testOnUpdateList_fourInList()
256 doReturn(view3).when(mAdapter).getView(eq(2), any(), any()); in testOnUpdateList_fourInList()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManagerTest.java31 import static org.mockito.ArgumentMatchers.any;
135 when(guts.post(any())).thenAnswer(invocation -> { in testOpenAndCloseGuts()
146 any(Runnable.class)); in testOpenAndCloseGuts()
163 any(Runnable.class)); in testOpenAndCloseGuts()
169 verify(row, times(1)).setGutsView(any()); in testOpenAndCloseGuts()
175 when(guts.post(any())).thenAnswer(invocation -> { in testChangeDensityOrFontScale()
186 any(Runnable.class)); in testChangeDensityOrFontScale()
210 any(Runnable.class)); in testChangeDensityOrFontScale()
213 verify(row).setGutsView(any()); in testChangeDensityOrFontScale()
225 verify(row, times(2)).setGutsView(any()); in testChangeDensityOrFontScale()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerNotificationWarningsTest.java25 import static org.mockito.Mockito.any;
90 .notifyAsUser(anyString(), eq(SystemMessage.NOTE_BAD_CHARGER), any(), any()); in testShowInvalidChargerNotification_NotifyAsUser()
92 eq(SystemMessage.NOTE_POWER_LOW), any()); in testShowInvalidChargerNotification_NotifyAsUser()
100 eq(SystemMessage.NOTE_BAD_CHARGER), any()); in testDismissInvalidChargerNotification_CancelAsUser()
107 .notifyAsUser(anyString(), eq(SystemMessage.NOTE_POWER_LOW), any(), any()); in testShowLowBatteryNotification_NotifyAsUser()
109 eq(SystemMessage.NOTE_BAD_CHARGER), any()); in testShowLowBatteryNotification_NotifyAsUser()
117 eq(SystemMessage.NOTE_POWER_LOW), any()); in testDismissLowBatteryNotification_CancelAsUser()
126 captor.capture(), any()); in testShowLowBatteryNotification_BatteryChannel()
134 .notifyAsUser(anyString(), eq(SystemMessage.NOTE_HIGH_TEMP), any(), any()); in testShowHighTemperatureWarning_NotifyAsUser()
142 eq(SystemMessage.NOTE_HIGH_TEMP), any()); in testDismissHighTemperatureWarning_CancelAsUser()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DScreenDecorationsTest.java26 import static org.mockito.ArgumentMatchers.any;
107 when(mFragmentService.getFragmentHostManager(any())).thenReturn(mFragmentHostManager); in setup()
154 verify(mWindowManager, never()).addView(any(), any()); in testNoRounding_NoCutout()
156 verify(mFragmentHostManager, never()).addTagListener(any(), any()); in testNoRounding_NoCutout()
158 verify(mTunerService, never()).addTunable(any(), any()); in testNoRounding_NoCutout()
172 verify(mWindowManager, times(2)).addView(any(), any()); in testRounding()
175 verify(mFragmentHostManager, times(2)).addTagListener(any(), any()); in testRounding()
177 verify(mTunerService, times(1)).addTunable(any(), any()); in testRounding()
179 verify(mTunablePaddingService, times(1)).add(any(), anyString(), anyInt(), anyInt()); in testRounding()
193 verify(mWindowManager, times(2)).addView(any(), any()); in testCutout()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DPlatformKeyManagerTest.java23 import static org.mockito.ArgumentMatchers.any;
101 when(mContext.getSystemServiceName(any())).thenReturn("test"); in setUp()
118 any(), in init_createsEncryptKeyWithCorrectAlias()
119 any()); in init_createsEncryptKeyWithCorrectAlias()
160 any(), in init_createsDecryptKeyWithCorrectAlias()
161 any()); in init_createsDecryptKeyWithCorrectAlias()
223 any(), in init_doesNotCreateDecryptKeyIfNoSid()
224 any()); in init_doesNotCreateDecryptKeyIfNoSid()
235 any(), in init_doesNotCreateDecryptKeyOnGateKeeperException()
236 any()); in init_doesNotCreateDecryptKeyOnGateKeeperException()
[all …]
/frameworks/opt/net/ike/tests/iketests/src/java/com/android/ike/ikev2/
DIkeSessionStateMachineTest.java24 import static org.mockito.Matchers.any;
141 when(mMockIkeMessageHelper.encode(any())).thenReturn(new byte[0]); in IkeSessionStateMachineTest()
142 when(mMockIkeMessageHelper.encode(any(), any(), any())).thenReturn(new byte[0]); in IkeSessionStateMachineTest()
143 when(mMockChildSessionFactoryHelper.makeChildSessionStateMachine(any(), any(), any())) in IkeSessionStateMachineTest()
217 when(mMockSaRecordHelper.makeFirstIkeSaRecord(any(), any())) in testCreateIkeLocalIkeInit()
247 verify(mMockIkeMessageHelper).getMessageType(any()); in testCreateIkeLocalIkeInit()
259 when(mMockSaRecordHelper.makeFirstIkeSaRecord(any(), any())) in mockIkeSetup()
279 verify(mMockIkeMessageHelper).decode(any(), any(), any(), any()); in testCreateIkeLocalIkeAuth()
280 verify(mMockIkeMessageHelper, times(2)).getMessageType(any()); in testCreateIkeLocalIkeAuth()
281 verify(mMockChildSessionStateMachine).handleFirstChildExchange(any(), any(), any()); in testCreateIkeLocalIkeAuth()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DIntentForwarderActivityTest.java23 import static org.mockito.ArgumentMatchers.any;
133 any(Intent.class), nullable(String.class), anyInt(), anyInt())).thenReturn(true); in forwardToManagedProfile_canForward_sendIntent()
166 any(Intent.class), nullable(String.class), anyInt(), anyInt())).thenReturn(false); in forwardToManagedProfile_cannotForward_sendIntent()
188 any(Intent.class), anyString(), anyInt(), anyInt())).thenReturn(true); in forwardToManagedProfile_noManagedProfile_sendIntent()
209 any(Intent.class), nullable(String.class), anyInt(), anyInt())).thenReturn(true); in forwardToManagedProfile_canForward_chooserIntent()
251 any(Intent.class), nullable(String.class), anyInt(), anyInt())).thenReturn(true); in forwardToManagedProfile_canForward_selectorIntent()
293 verify(mIPm).canForwardTo(any(), any(), anyInt(), anyInt()); in shouldSkipDisclosure_notWhitelisted()
308 verify(mIPm).canForwardTo(any(), any(), anyInt(), anyInt()); in shouldSkipDisclosure_withResolverActivity()
320 verify(mIPm).canForwardTo(any(), any(), anyInt(), anyInt()); in shouldSkipDisclosure_callIntent_call()
332 verify(mIPm).canForwardTo(any(), any(), anyInt(), anyInt()); in shouldSkipDisclosure_callIntent_callPrivileged()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluatorTest.java25 import static org.mockito.Mockito.any;
174 when(mPasspointManager.matchProvider(any(ScanResult.class))).thenReturn(null); in evaluateScansWithNoMatch()
177 verify(mOnConnectableListener, never()).onConnectable(any(), any(), anyInt()); in evaluateScansWithNoMatch()
196 verify(mOnConnectableListener, never()).onConnectable(any(), any(), anyInt()); in evaulateScansWithNoInterworkingAP()
198 verify(mPasspointManager, never()).matchProvider(any(ScanResult.class)); in evaulateScansWithNoInterworkingAP()
219 when(mPasspointManager.matchProvider(any(ScanResult.class))).thenReturn(homeProvider) in evaluateScansWithNetworkMatchingHomeProvider()
221 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in evaluateScansWithNetworkMatchingHomeProvider()
226 verify(mOnConnectableListener).onConnectable(any(), any(), anyInt()); in evaluateScansWithNetworkMatchingHomeProvider()
239 eq(TEST_NETWORK_ID), any(ScanResult.class), anyInt()); in evaluateScansWithNetworkMatchingHomeProvider()
241 eq(TEST_NETWORK_ID), any(ScanDetail.class)); in evaluateScansWithNetworkMatchingHomeProvider()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalTest.java206 when(mServiceManagerMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
209 any(IServiceNotification.Stub.class))).thenReturn(true); in setUp()
210 when(mISupplicantMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
212 when(mISupplicantP2pIfaceMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp()
214 when(mISupplicantP2pIfaceMock.registerCallback(any(ISupplicantP2pIfaceCallback.class))) in setUp()
308 when(mISupplicantMockV1_1.removeInterface(any(ISupplicant.IfaceInfo.class))) in testTeardown_successV1_1()
311 verify(mISupplicantMockV1_1).removeInterface(any()); in testTeardown_successV1_1()
334 .when(mISupplicantP2pIfaceMock).getName(any(ISupplicantIface.getNameCallback.class)); in testGetName_success()
353 .when(mISupplicantP2pIfaceMock).getName(any(ISupplicantIface.getNameCallback.class)); in testGetName_failure()
370 .when(mISupplicantP2pIfaceMock).getName(any(ISupplicantIface.getNameCallback.class)); in testGetName_exception()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DA2dpProfileTest.java20 import static org.mockito.ArgumentMatchers.any;
76 when(mBluetoothA2dp.supportsOptionalCodecs(any())).thenReturn( in supportsHighQualityAudio()
80 when(mBluetoothA2dp.supportsOptionalCodecs(any())).thenReturn( in supportsHighQualityAudio()
84 when(mBluetoothA2dp.supportsOptionalCodecs(any())).thenReturn( in supportsHighQualityAudio()
91 when(mBluetoothA2dp.getOptionalCodecsEnabled(any())).thenReturn( in isHighQualityAudioEnabled()
95 when(mBluetoothA2dp.getOptionalCodecsEnabled(any())).thenReturn( in isHighQualityAudioEnabled()
103 when(mBluetoothA2dp.getOptionalCodecsEnabled(any())).thenReturn( in isHighQualityAudioEnabled()
105 when(mBluetoothA2dp.getConnectionState(any())).thenReturn( in isHighQualityAudioEnabled()
108 when(mBluetoothA2dp.supportsOptionalCodecs(any())).thenReturn( in isHighQualityAudioEnabled()
112 when(mBluetoothA2dp.supportsOptionalCodecs(any())).thenReturn( in isHighQualityAudioEnabled()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/
DPluginInstanceManagerTest.java21 import static org.mockito.Matchers.any;
95 when(mMockManager.getClassLoader(any())).thenReturn(getClass().getClassLoader()); in setup()
118 verify(sMockPlugin).onCreate(any(), any()); in testGetPlugin()
123 when(mMockPm.queryIntentServices(any(), anyInt())).thenReturn( in testNoPlugins()
130 verify(mMockListener, never()).onPluginConnected(any(), any()); in testNoPlugins()
140 verify(mMockListener).onPluginConnected(any(), any()); in testPluginCreate()
162 doThrow(new InvalidVersionException("", false)).when(mMockVersionInfo).checkVersion(any()); in testIncorrectVersion()
170 verify(mMockListener, never()).onPluginConnected(any(), any()); in testIncorrectVersion()
172 any(), eq(UserHandle.ALL)); in testIncorrectVersion()
191 verify(mMockListener, Mockito.times(2)).onPluginConnected(any(), any()); in testReloadOnChange()
[all …]

12345678910>>...32