Home
last modified time | relevance | path

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

12345678910>>...60

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/logging/
DHealthConnectServiceLoggerTest.java44 import static org.mockito.Mockito.eq;
93 eq(HEALTH_CONNECT_API_CALLED), in testLogs_notHoldsDataManagementPermission()
94 eq(HEALTH_CONNECT_API_CALLED__API_METHOD__API_METHOD_UNKNOWN), in testLogs_notHoldsDataManagementPermission()
95 eq(HEALTH_CONNECT_API_CALLED__API_STATUS__STATUS_UNKNOWN), in testLogs_notHoldsDataManagementPermission()
96 eq(0), in testLogs_notHoldsDataManagementPermission()
98 eq(0), in testLogs_notHoldsDataManagementPermission()
99 eq(RateLimitingRanges.NOT_USED), in testLogs_notHoldsDataManagementPermission()
100 eq(CALLER_FOREGROUND_STATE_UNSPECIFIED)), in testLogs_notHoldsDataManagementPermission()
116 eq(HEALTH_CONNECT_API_CALLED), in testRateLimiter_foreground15MinRead()
117 eq(HEALTH_CONNECT_API_CALLED__API_METHOD__API_METHOD_UNKNOWN), in testRateLimiter_foreground15MinRead()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/enrollment/
DEnrollmentDaoTest.java35 import static org.mockito.ArgumentMatchers.eq;
326 eq(mLogger), in testDelete()
327 eq(EnrollmentStatus.TransactionType.WRITE_TRANSACTION_TYPE.getValue()), in testDelete()
328 eq(true), in testDelete()
329 eq(1)); in testDelete()
337 eq(mLogger), in testDelete()
338 eq(EnrollmentStatus.TransactionType.WRITE_TRANSACTION_TYPE.getValue()), in testDelete()
339 eq(true), in testDelete()
340 eq(1)); in testDelete()
358 eq(mLogger), in testDeleteAll()
[all …]
/packages/providers/MediaProvider/pdf/tests/src/android/graphics/pdf/logging/
DPdfEventLoggerTest.java46 import static org.mockito.ArgumentMatchers.eq;
83 ExtendedMockito.verify(() -> PdfStatsLog.write(eq(PDF_LOAD_REPORTED), eq(PROCESS_UID), in logPdfLoadReportedEvent_pdfLoadedSuccessfully()
84 eq(LOAD_DURATION_MILLIS), eq(PDF_SIZE_IN_KB), in logPdfLoadReportedEvent_pdfLoadedSuccessfully()
85 eq(PDF_LOAD_REPORTED__LOAD_RESULT__RESULT_LOADED), in logPdfLoadReportedEvent_pdfLoadedSuccessfully()
86 eq(PDF_LOAD_REPORTED__TYPE__UNKNOWN_TYPE), eq(NUM_PAGES), eq(DOC_ID)), times(1)); in logPdfLoadReportedEvent_pdfLoadedSuccessfully()
95 ExtendedMockito.verify(() -> PdfStatsLog.write(eq(PDF_LOAD_REPORTED), eq(PROCESS_UID), in logPdfLoadReportedEvent_pdfLoadFailed()
96 eq(LOAD_DURATION_MILLIS), eq(PDF_SIZE_IN_KB), in logPdfLoadReportedEvent_pdfLoadFailed()
97 eq(PDF_LOAD_REPORTED__LOAD_RESULT__RESULT_ERROR), in logPdfLoadReportedEvent_pdfLoadFailed()
98 eq(PDF_LOAD_REPORTED__TYPE__UNKNOWN_TYPE), eq(NUM_PAGES), eq(DOC_ID)), times(1)); in logPdfLoadReportedEvent_pdfLoadFailed()
107 ExtendedMockito.verify(() -> PdfStatsLog.write(eq(PDF_LOAD_REPORTED), eq(PROCESS_UID), in logPdfLoadReportedEvent_pdfLoadedWithWrongPassword()
[all …]
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DCardEmulationManagerTest.java25 import static org.mockito.ArgumentMatchers.eq;
154 when(mContext.getSystemService(eq(UserManager.class))).thenReturn(mUserManager); in setUp()
174 verify(mWalletRoleObserver).getDefaultWalletRoleHolder(eq(USER_ID)); in assertConstructorMethodCalls()
175 verify(mPreferredServices).onWalletRoleHolderChanged(eq(WALLET_HOLDER_PACKAGE_NAME), in assertConstructorMethodCalls()
176 eq(USER_ID)); in assertConstructorMethodCalls()
177 verify(mRegisteredAidCache).onWalletRoleHolderChanged(eq(WALLET_HOLDER_PACKAGE_NAME), in assertConstructorMethodCalls()
178 eq(USER_ID)); in assertConstructorMethodCalls()
199 verify(mPowerManager).userActivity(anyLong(), eq(PowerManager.USER_ACTIVITY_EVENT_TOUCH), in testOnHostCardEmulationActivated_technologyApdu()
200 eq(PowerManager.USER_ACTIVITY_FLAG_INDIRECT)); in testOnHostCardEmulationActivated_technologyApdu()
213 verify(mPowerManager).userActivity(anyLong(), eq(PowerManager.USER_ACTIVITY_EVENT_TOUCH), in testOnHostCardEmulationActivated_technologyNfcf()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stats/
DStatsdAdServicesLoggerTest.java94 import static org.mockito.ArgumentMatchers.eq;
211 eq(TOPICS_REPORTED_COMPAT_ATOM_ID), in testLogGetTopicsReportedStats_tPlus()
212 eq(FILTERED_BLOCKED_TOPIC_COUNT), in testLogGetTopicsReportedStats_tPlus()
213 eq(DUPLICATE_TOPIC_COUNT), in testLogGetTopicsReportedStats_tPlus()
214 eq(TOPIC_IDS_COUNT), in testLogGetTopicsReportedStats_tPlus()
274 eq(TOPICS_REPORTED_COMPAT_ATOM_ID), in testLogGetTopicsReportedStats_sMinus()
275 eq(FILTERED_BLOCKED_TOPIC_COUNT), in testLogGetTopicsReportedStats_sMinus()
276 eq(DUPLICATE_TOPIC_COUNT), in testLogGetTopicsReportedStats_sMinus()
277 eq(TOPIC_IDS_COUNT), in testLogGetTopicsReportedStats_sMinus()
331 eq(EPOCH_COMPUTATION_CLASSIFIER_COMPAT_ATOM_ID), in testLogEpochComputationClassifierStats_tPlus()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallRedirectionProcessorTest.java61 import static org.mockito.ArgumentMatchers.eq;
140 anyInt(), eq(UserHandle.CURRENT))).thenReturn(true); in setUp()
200 any(ServiceConnection.class), anyInt(), eq(UserHandle.CURRENT)); in testNoUserDefinedServiceNoCarrierSerivce()
201 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), eq(mHandle), in testNoUserDefinedServiceNoCarrierSerivce()
202 eq(mPhoneAccountHandle), eq(null), eq(SPEAKER_PHONE_ON), eq(VIDEO_STATE), in testNoUserDefinedServiceNoCarrierSerivce()
203 eq(false), eq(CallRedirectionProcessor.UI_TYPE_NO_ACTION)); in testNoUserDefinedServiceNoCarrierSerivce()
215 any(ServiceConnection.class), anyInt(), eq(UserHandle.CURRENT)); in testCarrierServiceTimeoutNoUserDefinedService()
216 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testCarrierServiceTimeoutNoUserDefinedService()
217 eq(mPhoneAccountHandle), eq(null), eq(SPEAKER_PHONE_ON), eq(VIDEO_STATE), in testCarrierServiceTimeoutNoUserDefinedService()
218 eq(false), eq(CallRedirectionProcessor.UI_TYPE_NO_ACTION)); in testCarrierServiceTimeoutNoUserDefinedService()
[all …]
/packages/modules/Uwb/framework/tests/src/android/uwb/
DRangingManagerTest.java22 import static org.mockito.ArgumentMatchers.eq;
76 .openRanging(eq(ATTRIBUTION_SOURCE), any(), any(), any(), eq(/* chipId= */ null)); in testOpenSession_OpenRangingInvoked()
87 .openRanging(eq(ATTRIBUTION_SOURCE), any(), any(), any(), eq(VALID_CHIP_ID)); in testOpenSession_validChipId_OpenRangingInvoked()
95 .openRanging(eq(ATTRIBUTION_SOURCE), any(), any(), any(), eq(VALID_CHIP_ID)); in testOpenSession_validChipId_RuntimeException()
119 .openRanging(eq(ATTRIBUTION_SOURCE), any(), any(), any(), eq(invalidChipId)); in testOpenSession_invalidChipId_IllegalArgumentException()
145 eq(ATTRIBUTION_SOURCE), in testOnRangingOpened_MultipleSessionsRegistered()
149 eq(/* chipId= */ null)); in testOnRangingOpened_MultipleSessionsRegistered()
156 eq(ATTRIBUTION_SOURCE), in testOnRangingOpened_MultipleSessionsRegistered()
160 eq(/* chipId= */ null)); in testOnRangingOpened_MultipleSessionsRegistered()
185 eq(ATTRIBUTION_SOURCE), in testCorrectCallbackInvoked()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java44 import static org.mockito.ArgumentMatchers.eq;
239 when(mMockContext.checkPermission(eq(android.Manifest.permission.ACCESS_FINE_LOCATION), in setUp()
241 when(mMockAppOpsManager.noteOp(eq(AppOpsManager.OP_FINE_LOCATION), anyInt(), in setUp()
257 any(), any(), eq(HalDeviceManager.HDM_CREATE_IFACE_NAN), any(), anyBoolean())) in setUp()
301 eq(D2D_ALLOWED_WHEN_INFRA_STA_DISABLED), in setUp()
313 verify(mStatsManager).setPullAtomCallback(eq(WIFI_AWARE_CAPABILITIES), isNull(), any(), in setUp()
422 eq(configRequest), eq(false), eq(true), eq(true), eq(false), eq(false), eq(false), in testRequestMacAddresses()
441 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses()
442 eq(subscribeConfig), isNull()); in testRequestMacAddresses()
449 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/tbs/
DTbsGattTest.java170 .sendResponse(eq(device), eq(1), eq(BluetoothGatt.GATT_SUCCESS), eq(0), any()); in configureNotifications()
296 eq(device), eq(characteristic), eq(false), any()); in verifySetValue()
299 .notifyCharacteristicChanged(eq(device), eq(characteristic), eq(false)); in verifySetValue()
305 eq(device), eq(characteristic), anyBoolean(), any()); in verifySetValue()
308 .notifyCharacteristicChanged(eq(device), eq(characteristic), anyBoolean()); in verifySetValue()
586 .notifyCharacteristicChanged(eq(mFirstDevice), eq(characteristic), eq(false)); in testSetCallControlPointResult()
711 eq(mFirstDevice), in testHandleControlPointRequest()
712 eq(1), in testHandleControlPointRequest()
713 eq(BluetoothGatt.GATT_SUCCESS), in testHandleControlPointRequest()
714 eq(0), in testHandleControlPointRequest()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaIfaceHalTest.java25 import static org.mockito.ArgumentMatchers.eq;
229 verify(mStaIfaceHalAidlMock).setupIface(eq(IFACE_NAME)); in testSetupIface()
240 verify(mStaIfaceHalAidlMock).teardownIface(eq(IFACE_NAME)); in testTeardownIface()
252 verify(mStaIfaceHalAidlMock).registerDeathHandler(eq(mSupplicantHalDeathHandler)); in testRegisterDeathHandler()
320 verify(mStaIfaceHalAidlMock).connectToNetwork(eq(IFACE_NAME), eq(testConfig)); in testConnectToNetwork()
333 verify(mStaIfaceHalAidlMock).roamToNetwork(eq(IFACE_NAME), eq(testConfig)); in testRoamToNetwork()
344 verify(mStaIfaceHalAidlMock).removeNetworkCachedData(eq(NETWORK_ID)); in testRemoveNetworkCachedData()
358 eq(NETWORK_ID), eq(testAddress)); in testRemoveNetworkCachedDataIfNeeded()
369 verify(mStaIfaceHalAidlMock).removeAllNetworks(eq(IFACE_NAME)); in testRemoveAllNetworks()
380 verify(mStaIfaceHalAidlMock).disableCurrentNetwork(eq(IFACE_NAME)); in testDisableCurrentNetwork()
[all …]
DRssiMonitorTest.java20 import static org.mockito.Mockito.eq;
102 verify(mWifiNative).startRssiMonitoring(eq(TEST_INTERFACE_NAME), eq(Byte.MAX_VALUE), in setUp()
103 eq((byte) TEST_APP_RSSI_THRESHOLDS[0]), mRssiEventHandlerCaptor.capture()); in setUp()
113 verify(mWifiNative, times(2)).startRssiMonitoring(eq(TEST_INTERFACE_NAME), in verifyShortIntervalAndMonitorStatus()
114 eq(Byte.MAX_VALUE), eq((byte) TEST_APP_RSSI_THRESHOLDS[0]), in verifyShortIntervalAndMonitorStatus()
120 verify(mWifiNative).startRssiMonitoring(eq(TEST_INTERFACE_NAME), eq(Byte.MAX_VALUE), in verifyLongIntervalAndMonitorStatus()
121 eq((byte) TEST_CLIENT_RSSI_THRESHOLD), mRssiEventHandlerCaptor.capture()); in verifyLongIntervalAndMonitorStatus()
211 verify(mWifiNative).startRssiMonitoring(eq(TEST_INTERFACE_NAME), in testOnAppRssiThresholdBreached()
212 eq((byte) TEST_APP_RSSI_THRESHOLDS[0]), eq(Byte.MIN_VALUE), in testOnAppRssiThresholdBreached()
219 verify(mWifiNative, times(2)).startRssiMonitoring(eq(TEST_INTERFACE_NAME), in testOnAppRssiThresholdBreached()
[all …]
DDppManagerTest.java65 import static org.mockito.Mockito.eq;
213 eq(EasyConnectStatusCallback.EASY_CONNECT_EVENT_FAILURE_INVALID_NETWORK), eq(null), in testStartDppAsConfiguratorInitiatorWithBadNetworkId()
214 eq(null), eq(new int[0])); in testStartDppAsConfiguratorInitiatorWithBadNetworkId()
218 verify(mDppMetrics).updateDppFailure(eq(EasyConnectStatusCallback in testStartDppAsConfiguratorInitiatorWithBadNetworkId()
243 verify(mDppCallback).onFailure(eq(EASY_CONNECT_EVENT_FAILURE_INVALID_NETWORK), eq(null), in testStartDppAsConfiguratorInitiatorWithoutConfigurableProfile()
244 eq(null), eq(new int[0])); in testStartDppAsConfiguratorInitiatorWithoutConfigurableProfile()
267 eq(EasyConnectStatusCallback.EASY_CONNECT_EVENT_FAILURE_INVALID_URI), eq(null), in testStartDppAsConfiguratorInitiatorFailAddPeer()
268 eq(null), eq(new int[0])); in testStartDppAsConfiguratorInitiatorFailAddPeer()
272 verify(mDppMetrics).updateDppFailure(eq(EasyConnectStatusCallback in testStartDppAsConfiguratorInitiatorFailAddPeer()
288 eq(EasyConnectStatusCallback.EASY_CONNECT_EVENT_FAILURE_INVALID_URI), eq(null), in testStartDppAsEnrolleeInitiatorFailAddPeer()
[all …]
DDeviceConfigFacadeTest.java248 when(DeviceConfig.getBoolean(anyString(), eq("abnormal_connection_bugreport_enabled"), in testFieldUpdates()
250 when(DeviceConfig.getInt(anyString(), eq("abnormal_connection_duration_ms"), in testFieldUpdates()
252 when(DeviceConfig.getInt(anyString(), eq("data_stall_duration_ms"), in testFieldUpdates()
254 when(DeviceConfig.getInt(anyString(), eq("data_stall_tx_tput_thr_kbps"), in testFieldUpdates()
256 when(DeviceConfig.getInt(anyString(), eq("data_stall_rx_tput_thr_kbps"), in testFieldUpdates()
258 when(DeviceConfig.getInt(anyString(), eq("data_stall_tx_per_thr"), in testFieldUpdates()
260 when(DeviceConfig.getInt(anyString(), eq("data_stall_cca_level_thr"), in testFieldUpdates()
262 when(DeviceConfig.getInt(anyString(), eq("tput_sufficient_low_thr_kbps"), in testFieldUpdates()
264 when(DeviceConfig.getInt(anyString(), eq("tput_sufficient_high_thr_kbps"), in testFieldUpdates()
266 when(DeviceConfig.getInt(anyString(), eq("rx_tput_sufficient_low_thr_kbps"), in testFieldUpdates()
[all …]
/packages/services/Telephony/tests/src/com/android/phone/
DImsProvisioningControllerTest.java42 import static org.mockito.ArgumentMatchers.eq;
232 when(mPhone.getSystemServiceName(eq(CarrierConfigManager.class))) in setUp()
234 when(mPhone.getSystemService(eq(Context.CARRIER_CONFIG_SERVICE))) in setUp()
240 when(mCarrierConfigManager.getConfigForSubId(eq(mSubId0))) in setUp()
242 when(mCarrierConfigManager.getConfigForSubId(eq(mSubId1))) in setUp()
245 when(mPhone.getSystemServiceName(eq(SubscriptionManager.class))) in setUp()
247 when(mPhone.getSystemService(eq(Context.TELEPHONY_SUBSCRIPTION_SERVICE))) in setUp()
251 when(mPhone.getSystemServiceName(eq(TelephonyRegistryManager.class))) in setUp()
253 when(mPhone.getSystemService(eq(Context.TELEPHONY_REGISTRY_SERVICE))) in setUp()
368 .getProvisioningStatus(eq(mSubId0), eq(FEATURE_MMTEL), anyInt(), anyInt()); in connectionReady_MmTelFeatureListener()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DScheduleCustomAudienceUpdateImplTest.java30 import static org.mockito.ArgumentMatchers.eq;
105 when(mConsentManagerMock.isFledgeConsentRevokedForAppAfterSettingFledgeUse(eq(PACKAGE))) in setup()
113 eq(UPDATE_URI), in setup()
114 eq(PACKAGE), in setup()
115 eq(false), in setup()
116 eq(false), in setup()
117 eq(true), in setup()
118 eq(mCallingAppUid), in setup()
119 eq(API_NAME), in setup()
120 eq(FLEDGE_API_SCHEDULE_CUSTOM_AUDIENCE_UPDATE), in setup()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java179 verify(mAvrcpControllerService).removeStateMachine(eq(sm)); in destroyStateMachine()
214 .sendBroadcast(mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), any(Bundle.class)); in setUpConnectedState()
390 .sendBroadcast(mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), any(Bundle.class)); in testDisconnectInternal()
404 verify(mAvrcpControllerService).removeStateMachine(eq(mAvrcpStateMachine)); in testDisconnectInternal()
420 .sendBroadcast(mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), any(Bundle.class)); in testControlOnly()
434 verify(mAvrcpControllerService).removeStateMachine(eq(mAvrcpStateMachine)); in testControlOnly()
450 .sendBroadcast(mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), any(Bundle.class)); in testBrowsingOnly()
464 verify(mAvrcpControllerService).removeStateMachine(eq(mAvrcpStateMachine)); in testBrowsingOnly()
518 eq(mTestAddress), in testPlay()
519 eq(AvrcpControllerService.PASS_THRU_CMD_ID_PLAY), in testPlay()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiStringResourceWrapperTest.java28 import static org.mockito.Mockito.eq;
106 lenient().when(SubscriptionManager.getResourcesForSubId(any(), eq(SUB_ID))) in setUp()
109 when(mResources.getIdentifier(eq(RES_NAME_1), eq("string"), any())).thenReturn(RES_ID_1); in setUp()
110 when(mResources.getString(eq(RES_ID_1), any())).thenReturn(RES_STRING_VAL_1); in setUp()
111 when(mResources.getIdentifier(eq(RES_NAME_1 + CARRIER_ID_RESOURCE_NAME_SUFFIX), in setUp()
112 eq("array"), any())).thenReturn(RES_ID_NOT_FOUND); in setUp()
114 when(mResources.getIdentifier(eq(RES_NAME_DISABLE_THRESHOLD), eq("integer"), any())) in setUp()
116 when(mResources.getInteger(eq(RES_ID_DISABLE_THRESHOLD))) in setUp()
119 eq(RES_NAME_DISABLE_THRESHOLD + CARRIER_ID_RESOURCE_NAME_SUFFIX), in setUp()
120 eq("array"), any())).thenReturn(RES_ID_NOT_FOUND); in setUp()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/crypto/
DTlsSessionHandshakeTest.java27 import static org.mockito.ArgumentMatchers.eq;
71 verify(mMockSslEngine).wrap(eq(EMPTY_APPLICATION_BUFFER), eq(PACKET_BUFFER_POSITION_LIMIT)); in testStartHandshake()
76 when(mMockSslEngine.wrap(eq(EMPTY_APPLICATION_BUFFER), eq(EMPTY_PACKET_BUFFER))) in testStartHandshake_fail()
83 verify(mMockSslEngine).wrap(eq(EMPTY_APPLICATION_BUFFER), eq(EMPTY_PACKET_BUFFER)); in testStartHandshake_fail()
89 eq(PACKET_BUFFER_POSITION_RESET), in testprocessHandshakeData_success()
90 eq(APPLICATION_BUFFER_AVP_POSITION_RESET))) in testprocessHandshakeData_success()
104 eq(PACKET_BUFFER_POSITION_LIMIT), in testprocessHandshakeData_success()
105 eq(APPLICATION_BUFFER_AVP_POSITION_RESET)); in testprocessHandshakeData_success()
107 .wrap(eq(APPLICATION_BUFFER_AVP_POSITION_RESET), eq(PACKET_BUFFER_POSITION_LIMIT)); in testprocessHandshakeData_success()
113 eq(PACKET_BUFFER_POSITION_RESET), in testprocessHandshakeData_wrapFailure()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/
DProtectedSignalsServiceImplTest.java35 import static org.mockito.ArgumentMatchers.eq;
157 eq(URI), in setup()
158 eq(PACKAGE), in setup()
159 eq(false), in setup()
160 eq(true), in setup()
161 eq(false), in setup()
162 eq(UID), in setup()
163 eq(API_NAME), in setup()
164 eq(PROTECTED_SIGNAL_API_UPDATE_SIGNALS), in setup()
165 eq(mDevContext))) in setup()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalTest.java26 import static org.mockito.ArgumentMatchers.eq;
199 verify(mP2pIfaceHalAidlMock).setupIface(eq(IFACE_NAME)); in testSetupIface()
210 verify(mP2pIfaceHalAidlMock).teardownIface(eq(IFACE_NAME)); in testTeardownIface()
244 verify(mP2pIfaceHalAidlMock).find(eq(timeout)); in testFind()
258 verify(mP2pIfaceHalAidlMock).find(eq(scanType), eq(freq), eq(timeout)); in testFindWithType()
302 verify(mP2pIfaceHalAidlMock).setPowerSave(eq(IFACE_NAME), eq(ENABLE)); in testSetPowerSave()
314 verify(mP2pIfaceHalAidlMock).setGroupIdle(eq(IFACE_NAME), eq(timeout)); in testSetGroupIdle()
325 verify(mP2pIfaceHalAidlMock).setSsidPostfix(eq(PARAMS)); in testSetSsidPostfix()
337 verify(mP2pIfaceHalAidlMock).connect(eq(config), eq(ENABLE)); in testConnect()
360 verify(mP2pIfaceHalAidlMock).provisionDiscovery(eq(config)); in testProvisionDiscovery()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DFledgeAuthorizationFilterTest.java33 import static com.android.dx.mockito.inline.extended.ExtendedMockito.eq;
155 eq(API_NAME_LOGGING_ID), in testAssertCallingPackageName_isNotCallingPackageName_throwSecurityException()
156 eq(PACKAGE_NAME), in testAssertCallingPackageName_isNotCallingPackageName_throwSecurityException()
157 eq(STATUS_UNAUTHORIZED), in testAssertCallingPackageName_isNotCallingPackageName_throwSecurityException()
179 eq(API_NAME_LOGGING_ID), in testAssertCallingPackageName_packageNotExist_throwSecurityException()
180 eq(PACKAGE_NAME), in testAssertCallingPackageName_packageNotExist_throwSecurityException()
181 eq(STATUS_UNAUTHORIZED), in testAssertCallingPackageName_packageNotExist_throwSecurityException()
193 eq(CustomAudienceFixture.VALID_OWNER), eq(PackageManager.GET_PERMISSIONS)); in testAssertAppHasCaPermission_appHasPermission()
218 eq(CustomAudienceFixture.VALID_OWNER), eq(PackageManager.GET_PERMISSIONS)); in testAssertAppHasPasPermission_appHasPermission()
242 eq(CustomAudienceFixture.VALID_OWNER), eq(PackageManager.GET_PERMISSIONS)); in testAssertAppHasAnyPermission_appHasAllPermissions()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mcp/
DMediaControlGattServiceTest.java121 doReturn(true).when(mMockGattServer).isDeviceConnected(eq(mCurrentDevice)); in prepareConnectedDevice()
142 verify(mMockMcsCallbacks).onServiceInstanceUnregistered(eq(ServiceStatus.OK)); in testInit()
575 verify(mMockMcsCallbacks).onSetObjectIdRequest(eq(id), eq(value)); in verifyWriteObjIdsValid()
579 eq(mCurrentDevice), in verifyWriteObjIdsValid()
580 eq(1), in verifyWriteObjIdsValid()
581 eq(BluetoothGatt.GATT_SUCCESS), in verifyWriteObjIdsValid()
582 eq(0), in verifyWriteObjIdsValid()
583 eq(mMcpService.objId2ByteArray(value))); in verifyWriteObjIdsValid()
607 verify(mMockMcsCallbacks).onTrackPositionSetRequest(eq(track_position * 10L)); in testWriteCallbacksValid()
611 eq(mCurrentDevice), in testWriteCallbacksValid()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DUpdateAdCounterHistogramWorkerTest.java33 import static org.mockito.ArgumentMatchers.eq;
129 eq(AD_SELECTION_ID), in testWorkerUpdatesHistogramAndNotifiesSuccess()
130 eq(TEST_PACKAGE_NAME), in testWorkerUpdatesHistogramAndNotifiesSuccess()
131 eq(FrequencyCapFilters.AD_EVENT_TYPE_CLICK), in testWorkerUpdatesHistogramAndNotifiesSuccess()
132 eq(CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI)); in testWorkerUpdatesHistogramAndNotifiesSuccess()
136 eq(LOGGING_API_NAME), eq(TEST_PACKAGE_NAME), eq(STATUS_SUCCESS), anyInt()); in testWorkerUpdatesHistogramAndNotifiesSuccess()
167 eq(LOGGING_API_NAME), in testWorkerValidatesInvalidAdEventTypeAndNotifiesFailure()
168 eq(TEST_PACKAGE_NAME), in testWorkerValidatesInvalidAdEventTypeAndNotifiesFailure()
169 eq(STATUS_INVALID_ARGUMENT), in testWorkerValidatesInvalidAdEventTypeAndNotifiesFailure()
199 eq(LOGGING_API_NAME), in testWorkerFeatureFlagDisabledStopsAndNotifiesFailure()
[all …]
DAdBidGeneratorImplTest.java59 import static org.mockito.ArgumentMatchers.eq;
445 eq(BUYER_DECISION_LOGIC_JS), in testRunAdBiddingPerCASuccess_preV3BiddingLogic()
446 eq(ADS), in testRunAdBiddingPerCASuccess_preV3BiddingLogic()
447 eq(EMPTY_AD_SELECTION_SIGNALS), in testRunAdBiddingPerCASuccess_preV3BiddingLogic()
448 eq(EMPTY_BUYER_SIGNALS), in testRunAdBiddingPerCASuccess_preV3BiddingLogic()
450 eq(EMPTY_CONTEXTUAL_SIGNALS), in testRunAdBiddingPerCASuccess_preV3BiddingLogic()
451 eq(mCustomAudienceSignals), in testRunAdBiddingPerCASuccess_preV3BiddingLogic()
500 eq(BUYER_DECISION_LOGIC_JS), in testRunAdBiddingPerCASuccess_preV3BiddingLogic()
501 eq(ADS), in testRunAdBiddingPerCASuccess_preV3BiddingLogic()
502 eq(EMPTY_AD_SELECTION_SIGNALS), in testRunAdBiddingPerCASuccess_preV3BiddingLogic()
[all …]
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbSessionNotificationManagerTest.java34 import static org.mockito.ArgumentMatchers.eq;
158 when(mUwbInjector.checkUwbRangingPermissionForStartDataDelivery(eq(ATTRIBUTION_SOURCE), in testOnRangingResultWithoutUwbRangingPermission()
179 verify(mUwbMetrics).logRangingResult(anyInt(), eq(testRangingDataAndRangingReport.first), in testOnRangingResult_forTwoWay_WithAoa()
180 eq(testRangingDataAndRangingReport.second.getMeasurements().get(0))); in testOnRangingResult_forTwoWay_WithAoa()
196 verify(mUwbMetrics).logRangingResult(anyInt(), eq(testRangingDataAndRangingReport.first), in testOnRangingResult_forTwoWay_WithNoAoa()
197 eq(testRangingDataAndRangingReport.second.getMeasurements().get(0))); in testOnRangingResult_forTwoWay_WithNoAoa()
213 verify(mUwbMetrics).logRangingResult(anyInt(), eq(testRangingDataAndRangingReport.first), in testOnRangingResult_forTwoWay_WithNoAoaElevation()
214 eq(testRangingDataAndRangingReport.second.getMeasurements().get(0))); in testOnRangingResult_forTwoWay_WithNoAoaElevation()
230 verify(mUwbMetrics).logRangingResult(anyInt(), eq(testRangingDataAndRangingReport.first), in testOnRangingResult_forTwoWay_WithNoAoaAzimuth()
231 eq(testRangingDataAndRangingReport.second.getMeasurements().get(0))); in testOnRangingResult_forTwoWay_WithNoAoaAzimuth()
[all …]

12345678910>>...60