/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | RingerTest.java | 55 import static org.mockito.ArgumentMatchers.any; 130 }).when(spyVibrationEffectProxy).get(any(), any()); in setUp() 135 when(mockSystemSettingsUtil.isHapticPlaybackSupported(any(Context.class))).thenReturn(true); in setUp() 139 when(notificationManager.matchesCallFilter(any(Bundle.class))).thenReturn(true); in setUp() 140 when(mockRingtoneFactory.hasHapticChannels(any(Ringtone.class))).thenReturn(false); in setUp() 141 when(mockRingtonePlayer.play(any(RingtoneFactory.class), any(Call.class), in setUp() 163 when(mockSystemSettingsUtil.isTheaterModeOn(any(Context.class))).thenReturn(true); in testNoActionInTheaterMode() 166 verify(mockRingtonePlayer, never()).play(any(RingtoneFactory.class), any(Call.class), in testNoActionInTheaterMode() 169 .vibrate(any(VibrationEffect.class), any(AudioAttributes.class)); in testNoActionInTheaterMode() 184 verify(mockRingtonePlayer, never()).play(any(RingtoneFactory.class), any(Call.class), in testNoActionWithExternalRinger() [all …]
|
D | CallsManagerTest.java | 25 import static org.mockito.ArgumentMatchers.any; 209 when(mInCallWakeLockControllerFactory.create(any(), any())).thenReturn( in setUp() 211 when(mHeadsetMediaButtonFactory.create(any(), any(), any())).thenReturn( in setUp() 213 when(mProximitySensorManagerFactory.create(any(), any())).thenReturn( in setUp() 215 when(mInCallControllerFactory.create(any(), any(), any(), any(), any(), any(), in setUp() 216 any())).thenReturn(mInCallController); in setUp() 217 when(mCallAudioRouteStateMachineFactory.create(any(), any(), any(), any(), any(), any(), in setUp() 219 when(mCallAudioModeStateMachineFactory.create(any(), any())) in setUp() 221 when(mIncomingCallFilterFactory.create(any(), any(), any(), any(), any(), any())) in setUp() 225 when(mConnSvrFocusManagerFactory.create(any())).thenReturn(mConnectionSvrFocusMgr); in setUp() [all …]
|
D | CallRedirectionProcessorTest.java | 58 import static org.mockito.Matchers.any; 164 any(PhoneAccountHandle.class))).thenReturn(CARRIER_SERVICE_TEST_COMPONENT_NAME); in enableCarrierCallRedirectionService() 173 when(mCallRedirectionProcessorHelper.getCarrierCallRedirectionService(any())).thenReturn( in disableCarrierCallRedirectionService() 199 verify(mContext, times(0)).bindServiceAsUser(any(Intent.class), in testNoUserDefinedServiceNoCarrierSerivce() 200 any(ServiceConnection.class), anyInt(), any(UserHandle.class)); in testNoUserDefinedServiceNoCarrierSerivce() 214 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testCarrierServiceTimeoutNoUserDefinedService() 215 any(ServiceConnection.class), anyInt(), any(UserHandle.class)); in testCarrierServiceTimeoutNoUserDefinedService() 216 verify(mCallsManager, times(0)).onCallRedirectionComplete(eq(mCall), any(), in testCarrierServiceTimeoutNoUserDefinedService() 221 verify(mCallsManager, times(1)).onCallRedirectionComplete(eq(mCall), any(), in testCarrierServiceTimeoutNoUserDefinedService() 234 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutNoCarrierService() [all …]
|
D | IncomingCallNotifierTest.java | 38 import static org.mockito.Matchers.any; 99 eq(IncomingCallNotifier.NOTIFICATION_INCOMING_CALL), any()); in testSingleCall() 108 … when(mCallsManagerProxy.hasUnholdableCallsForOtherConnectionService(any())).thenReturn(false); in testIncomingDuringOngoingCall() 111 eq(IncomingCallNotifier.NOTIFICATION_INCOMING_CALL), any()); in testIncomingDuringOngoingCall() 120 … when(mCallsManagerProxy.hasUnholdableCallsForOtherConnectionService(any())).thenReturn(false); in testIncomingDuringOngoingCall2() 121 … when(mCallsManagerProxy.getNumUnholdableCallsForOtherConnectionService(any())).thenReturn(0); in testIncomingDuringOngoingCall2() 127 eq(IncomingCallNotifier.NOTIFICATION_INCOMING_CALL), any());; in testIncomingDuringOngoingCall2() 136 … when(mCallsManagerProxy.hasUnholdableCallsForOtherConnectionService(any())).thenReturn(true); in testCallRemoved() 137 … when(mCallsManagerProxy.getNumUnholdableCallsForOtherConnectionService(any())).thenReturn(1); in testCallRemoved() 143 eq(IncomingCallNotifier.NOTIFICATION_INCOMING_CALL), any()); in testCallRemoved() [all …]
|
D | SystemStateHelperTest.java | 25 import static org.mockito.Matchers.any; 134 verify(mContext).registerReceiver(any(BroadcastReceiver.class), intentFilter.capture()); in testReceiverAndIntentFilter() 150 verify(mContext).registerReceiver(receiver.capture(), any(IntentFilter.class)); in testOnEnterExitCarMode() 178 .registerListener(any(SensorEventListener.class), any(Sensor.class), anyInt()); in testDeviceOnEarCorrectlyDetected() 181 verify(mSensorManager).unregisterListener(any(SensorEventListener.class)); in testDeviceOnEarCorrectlyDetected() 198 .registerListener(any(SensorEventListener.class), any(Sensor.class), anyInt()); in testDeviceIsNotOnEarWithProxNotSensed() 201 verify(mSensorManager).unregisterListener(any(SensorEventListener.class)); in testDeviceIsNotOnEarWithProxNotSensed() 219 .registerListener(any(SensorEventListener.class), any(Sensor.class), anyInt()); in testDeviceIsNotOnEarWithWrongOrientation() 222 verify(mSensorManager).unregisterListener(any(SensorEventListener.class)); in testDeviceIsNotOnEarWithWrongOrientation() 241 .registerListener(any(SensorEventListener.class), any(Sensor.class), anyInt()); in testDeviceIsNotOnEarWithMissingSensor() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/survey/ |
D | SurveyMixinTest.java | 5 import static org.mockito.ArgumentMatchers.any; 55 when(mProvider.getSurveyId(any(), eq(FAKE_KEY))).thenReturn(FAKE_SURVEY_ID); in setUp() 61 when(mProvider.getSurveyExpirationDate(any(), any())).thenReturn(-1L); in onResume_triesRegisteringReceiverAndDownloadingWhenNoSurveyDetected() 70 verify(mProvider, times(1)).downloadSurvey(any(), any(), any()); in onResume_triesRegisteringReceiverAndDownloadingWhenNoSurveyDetected() 72 verify(mProvider, times(1)).createAndRegisterReceiver(any()); in onResume_triesRegisteringReceiverAndDownloadingWhenNoSurveyDetected() 74 verify(mProvider, never()).showSurveyIfAvailable(any(), any()); in onResume_triesRegisteringReceiverAndDownloadingWhenNoSurveyDetected() 80 when(mProvider.getSurveyExpirationDate(any(), any())).thenReturn(0L); in onResume_triesShowingSurveyWhenOneIsPresent() 89 verify(mProvider, never()).downloadSurvey(any(), any(), any()); in onResume_triesShowingSurveyWhenOneIsPresent() 91 verify(mProvider, never()).createAndRegisterReceiver(any()); in onResume_triesShowingSurveyWhenOneIsPresent() 93 verify(mProvider, times(1)).showSurveyIfAvailable(any(), any()); in onResume_triesShowingSurveyWhenOneIsPresent() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/com/android/server/ |
D | NetworkStackServiceTest.kt | 48 import org.mockito.ArgumentMatchers.any 80 doReturn(mockIpMemoryStoreService).`when`(this).makeIpMemoryStoreService(any()) in <lambda>() 81 doReturn(mockDhcpServer).`when`(this).makeDhcpServer(any(), any(), any(), any()) in <lambda>() 82 doReturn(mockNetworkMonitor).`when`(this).makeNetworkMonitor(any(), any(), any(), any(), in <lambda>() 83 any()) in <lambda>() 84 doReturn(mockIpClient).`when`(this).makeIpClient(any(), any(), any(), any(), any()) in <lambda>() 91 doReturn(netd).`when`(this).queryLocalInterface(any()) in <lambda>() 149 verify(mockIpMemoryStoreCb).onIpMemoryStoreFetched(any()) in prepareDumpVersionTest() 165 verify(deps).makeDhcpServer(any(), eq(TEST_IFACE), any(), any()) in prepareDumpVersionTest() 166 verify(mockDhcpCb).onDhcpServerCreated(eq(IDhcpServer.STATUS_SUCCESS), any()) in prepareDumpVersionTest() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/ |
D | BrowserPlayerWrapperTest.java | 74 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testWrap() 89 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testConnect_Successful() 103 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testConnect_Suspended() 120 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testConnect_Failed() 137 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testEmptyRoot() 152 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testDisconnect() 163 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testGetRootId() 175 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testPlayItem() 193 verify(mockController).registerCallback(mControllerCb.capture(), any()); in testPlayItem() 212 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testPlayItem_Timeout() [all …]
|
D | MediaPlayerWrapperTest.java | 200 verify(mUpdatedController).registerCallback(mControllerCbs.capture(), any()); in testControllerUpdate() 205 verify(mTestCbs, never()).mediaUpdatedCallback(any()); in testControllerUpdate() 225 verify(mMockController).registerCallback(mControllerCbs.capture(), any()); in testNoQueueMediaUpdates() 266 verify(mFailHandler, never()).onTerribleFailure(any(), any(), anyBoolean()); in testNoQueueMediaUpdates() 287 verify(mMockController).registerCallback(mControllerCbs.capture(), any()); in testDataOnUpdateNoQueue() 316 verify(mFailHandler, never()).onTerribleFailure(any(), any(), anyBoolean()); in testDataOnUpdateNoQueue() 331 verify(mMockController).registerCallback(mControllerCbs.capture(), any()); in testNullMetadata() 360 verify(mMockController).registerCallback(mControllerCbs.capture(), any()); in testNullQueue() 410 verify(mMockController).registerCallback(mControllerCbs.capture(), any()); in testPlaybackStateUpdateSpam() 449 verify(mFailHandler, never()).onTerribleFailure(any(), any(), anyBoolean()); in testPlaybackStateUpdateSpam() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarInputServiceTest.java | 21 import static org.mockito.ArgumentMatchers.any; 103 doReturn(true).when(mHandler).sendMessageAtTime(any(), anyLong()); in setUp() 117 verify(mDefaultMainListener, never()).onKeyEvent(any()); in ordinaryEvents_onInstrumentClusterDisplay_notRoutedToInputManager() 144 verify(mDefaultMainListener, never()).onKeyEvent(any()); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents() 148 verify(instrumentClusterListener, never()).onKeyEvent(any()); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents() 152 verify(mDefaultMainListener, never()).onKeyEvent(any()); in customEventHandler_capturesRegisteredEvents_ignoresUnregisteredEvents() 206 any(), in voiceKey_shortPress_withoutRegisteredEventHandler_triggersAssistUtils() 224 any(), in voiceKey_longPress_withoutRegisteredEventHandler_triggersAssistUtils() 264 verify(mHandler).sendMessageAtTime(any(), anyLong()); in voiceKey_repeatedEvents_ignored() 269 verify(mHandler, never()).sendMessageAtTime(any(), anyLong()); in voiceKey_repeatedEvents_ignored() [all …]
|
/packages/services/Telephony/tests/src/com/android/services/telephony/ |
D | ImsConferenceTest.java | 22 import static org.mockito.Mockito.any; 65 when(mMockTelecomAccountRegistry.getAddress(any(PhoneAccountHandle.class))) in setUp() 72 when(mMockTelecomAccountRegistry.isUsingSimCallManager(any(PhoneAccountHandle.class))) in testSinglePartyEmulation() 96 any(PhoneAccountHandle.class), any(Connection.class), in testSinglePartyEmulation() 112 any(PhoneAccountHandle.class), any(Connection.class), in testSinglePartyEmulation() 122 when(mMockTelecomAccountRegistry.isUsingSimCallManager(any(PhoneAccountHandle.class))) in testDisconnectParticipantViaDisconnectState() 154 any(PhoneAccountHandle.class), any(Connection.class), in testDisconnectParticipantViaDisconnectState() 176 any(PhoneAccountHandle.class), any(Connection.class), in testDisconnectParticipantViaDisconnectState() 177 any(Conference.class)); in testDisconnectParticipantViaDisconnectState() 186 when(mMockTelecomAccountRegistry.isUsingSimCallManager(any(PhoneAccountHandle.class))) in testDisconnectParticipantViaRemoval() [all …]
|
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/ |
D | CarHeadsUpNotificationManagerTest.java | 26 import static org.mockito.ArgumentMatchers.any; 119 when(mClickHandlerFactory.getClickHandler(any())).thenReturn(new View.OnClickListener() { in setupBaseActivityAndLayout() 205 when(mRankingMapMock.getRanking(any(), any())).thenReturn(true); in maybeShowHeadsUp_isNotImportant_returnsNull() 228 when(mRankingMapMock.getRanking(any(), any())).thenReturn(true); in maybeShowHeadsUp_isImportanceHigh_returnsNotNull() 241 when(mRankingMapMock.getRanking(any(), any())).thenReturn(true); in getActiveHeadsUpNotifications_shouldReturnOne() 252 when(mRankingMapMock.getRanking(any(), any())).thenReturn(true); in getActiveHeadsUpNotifications_diffNotifications_shouldReturnTwo() 265 when(mRankingMapMock.getRanking(any(), any())).thenReturn(true); in getActiveHeadsUpNotifications_sameNotifications_shouldReturnOne() 277 when(mRankingMapMock.getRanking(any(), any())).thenReturn(true); in maybeShowHeadsUp_categoryCarInformation_returnsNull() 293 when(mRankingMapMock.getRanking(any(), any())).thenReturn(true); in maybeShowHeadsUp_categoryMessage_returnsNotNull() 312 when(mRankingMapMock.getRanking(any(), any())).thenReturn(true); in maybeShowHeadsUp_categoryCall_returnsNotNull() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/about/res/raw/ |
D | third_party_licenses | 47 "Object" form shall mean any form resulting from mechanical 57 "Derivative Works" shall mean any work, whether in Source or Object 65 "Contribution" shall mean any work of authorship, including 66 the original version of the Work and any modifications or additions 71 means any form of electronic, verbal, or written communication sent 79 "Contributor" shall mean Licensor and any individual or Legal Entity 99 institute patent litigation against any entity (including a 102 or contributory patent infringement, then any patent licenses 107 Work or Derivative Works thereof in any medium, with or without 111 (a) You must give any other recipients of the Work or [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/ |
D | StorageSettingsManagerTest.java | 19 import static org.mockito.ArgumentMatchers.any; 88 when(storageVolumeProvider.getTotalBytes(any(), any())).thenReturn(10000L); in volumeSizeCallback_onLoadFinished_listenerOnSizeCalculatedCalled() 89 when(storageVolumeProvider.getFreeBytes(any(), any())).thenReturn(1000L); in volumeSizeCallback_onLoadFinished_listenerOnSizeCalculatedCalled() 113 when(storageVolumeProvider.getTotalBytes(any(), any())).thenReturn(10000L); in appsStorageResult_unregisterListener_onlyOneListenerOnDataLoadedCalled() 114 when(storageVolumeProvider.getFreeBytes(any(), any())).thenReturn(1000L); in appsStorageResult_unregisterListener_onlyOneListenerOnDataLoadedCalled() 133 when(storageVolumeProvider.getTotalBytes(any(), any())).thenReturn(10000L); in onReceivedSizes_storageResultNotLoaded_noListenersCalled() 134 when(storageVolumeProvider.getFreeBytes(any(), any())).thenReturn(1000L); in onReceivedSizes_storageResultNotLoaded_noListenersCalled() 154 when(storageVolumeProvider.getTotalBytes(any(), any())).thenReturn(10000L); in onReceivedSizes_volumeSizeNotLoaded_noListenersCalled() 155 when(storageVolumeProvider.getFreeBytes(any(), any())).thenReturn(1000L); in onReceivedSizes_volumeSizeNotLoaded_noListenersCalled()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceTest.java | 105 .getRemoteUuids(any(BluetoothDevice.class)); in setUp() 110 .getRemoteUuids(any(BluetoothDevice.class)); in setUp() 112 .getBondState(any(BluetoothDevice.class)); in setUp() 128 doReturn(true).when(mNativeInterface).connectHfp(any(BluetoothDevice.class)); in setUp() 129 doReturn(true).when(mNativeInterface).disconnectHfp(any(BluetoothDevice.class)); in setUp() 130 doReturn(true).when(mNativeInterface).connectAudio(any(BluetoothDevice.class)); in setUp() 131 doReturn(true).when(mNativeInterface).disconnectAudio(any(BluetoothDevice.class)); in setUp() 132 doReturn(true).when(mNativeInterface).setActiveDevice(any(BluetoothDevice.class)); in setUp() 133 doReturn(true).when(mNativeInterface).sendBsir(any(BluetoothDevice.class), anyBoolean()); in setUp() 142 }).when(mObjectsFactory).makeStateMachine(any(), any(), any(), any(), any(), any()); in setUp() [all …]
|
D | HeadsetPhoneStateTest.java | 18 import static org.mockito.ArgumentMatchers.any; 119 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_SERVICE_STATE)); in testListenForPhoneState_ServiceOnly() 133 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_SERVICE_STATE in testListenForPhoneState_ServiceAndSignalStrength() 146 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_SERVICE_STATE in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffSignalStrengh() 149 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_NONE)); in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffSignalStrengh() 150 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_SERVICE_STATE)); in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffSignalStrengh() 161 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_SERVICE_STATE in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffAll() 164 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_NONE)); in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffAll() 179 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_SERVICE_STATE in testListenForPhoneState_MultiDevice_AllUpAllDown() 188 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_NONE)); in testListenForPhoneState_MultiDevice_AllUpAllDown() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | NotificationMultiChannelAppRowTest.java | 19 import static org.mockito.ArgumentMatchers.any; 63 doReturn(3).when(mNotificationBackend).getChannelCount(any(String.class), in call_isMultiChannel_shouldLoadAppRow() 64 any(int.class)); in call_isMultiChannel_shouldLoadAppRow() 68 verify(mNotificationBackend).loadAppRow(any(Context.class), any(PackageManager.class), in call_isMultiChannel_shouldLoadAppRow() 69 any(RoleManager.class), any(PackageInfo.class)); in call_isMultiChannel_shouldLoadAppRow() 74 doReturn(1).when(mNotificationBackend).getChannelCount(any(String.class), in call_isNotMultiChannel_shouldNotLoadAppRow() 75 any(int.class)); in call_isNotMultiChannel_shouldNotLoadAppRow() 79 verify(mNotificationBackend, never()).loadAppRow(any(Context.class), in call_isNotMultiChannel_shouldNotLoadAppRow() 80 any(PackageManager.class), any(RoleManager.class), any(PackageInfo.class)); in call_isNotMultiChannel_shouldNotLoadAppRow()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamHandlerTest.java | 76 when(mMockAudioManager.requestAudioFocus(any())).thenReturn( in setUp() 78 when(mMockAudioManager.abandonAudioFocus(any())).thenReturn(AudioManager.AUDIOFOCUS_GAIN); in setUp() 82 when(mMockPackageManager.hasSystemFeature(any())).thenReturn(false); in setUp() 92 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcStart() 102 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcStop() 111 verify(mMockAudioManager, times(1)).requestAudioFocus(any()); in testSnkPlay() 120 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSnkPause() 131 verify(mMockAudioManager, times(0)).abandonAudioFocus(any()); in testDisconnect() 139 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcPlay() 147 when(mMockPackageManager.hasSystemFeature(any())).thenReturn(true); in testSrcPlayIot() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/ |
D | VmsClientManagerTest.java | 24 import static org.mockito.ArgumentMatchers.any; 276 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), any())).thenReturn(false); in testSystemUserUnlocked_BindFailed() 287 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), any())).thenThrow( in testSystemUserUnlocked_BindException() 344 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), any())) in testUserUnlocked_BindFailed() 356 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), eq(UserHandle.of(USER_ID)))) in testUserUnlocked_UserBindFailed() 368 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), any())) in testUserUnlocked_BindException() 380 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), eq(UserHandle.SYSTEM))) in testUserUnlocked_SystemRebind() 387 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), eq(UserHandle.SYSTEM))) in testUserUnlocked_SystemRebind() 396 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), eq(UserHandle.SYSTEM))) in testUserUnlocked_SystemRebind_BindFailed() 403 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), eq(UserHandle.SYSTEM))) in testUserUnlocked_SystemRebind_BindFailed() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionTestBase.java | 23 import static org.mockito.Matchers.any; 24 import static org.mockito.Mockito.any; 82 any(IkeAlarmReceiver.class), in setUp() 83 any(IntentFilter.class), in setUp() 84 any(), in setUp() 85 any(Handler.class)); in setUp() 86 doNothing().when(mSpyContext).unregisterReceiver(any(IkeAlarmReceiver.class)); in setUp() 113 any(Network.class), in setUp() 114 any(UdpEncapsulationSocket.class), in setUp() 115 any(Inet4Address.class), in setUp() [all …]
|
D | IkeSessionStateMachineTest.java | 65 import static org.mockito.Matchers.any; 487 .decode(anyInt(), any(), any(), eq(ikeSaRecord), eq(header), any(), any()); in makeDummyReceivedIkePacketWithDecodingError() 499 .decode(anyInt(), any(), any(), eq(ikeSaRecord), eq(header), any(), any()); in makeDummyReceivedIkePacketWithUnprotectedError() 586 any(), in setDecodeEncryptedPacketResult() 587 any(), in setDecodeEncryptedPacketResult() 590 any(), in setDecodeEncryptedPacketResult() 631 any(), in verifyDecodeEncryptedMessage() 632 any(), in verifyDecodeEncryptedMessage() 693 any(Looper.class), in setUp() 694 any(IEapCallback.class), in setUp() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | AccountPreferenceControllerTest.java | 21 import static org.mockito.ArgumentMatchers.any; 112 verify(mScreen, never()).addPreference(any(Preference.class)); in onResume_managedProfile_shouldNotAddAccountCategory() 124 verify(mScreen, times(1)).addPreference(any(PreferenceGroup.class)); in onResume_linkedUser_shouldAddOneAccountCategory() 137 verify(mScreen, times(1)).addPreference(any(PreferenceGroup.class)); in onResume_oneProfile_shouldAddOneAccountCategory() 151 verify(mScreen, times(2)).addPreference(any(PreferenceGroup.class)); in onResume_twoProfiles_shouldAddTwoAccountCategory() 167 verify(mScreen, never()).addPreference(any(PreferenceGroup.class)); in onResume_noProfileChange_shouldNotAddOrRemoveAccountCategory() 168 verify(mScreen, never()).removePreference(any(PreferenceGroup.class)); in onResume_noProfileChange_shouldNotAddOrRemoveAccountCategory() 185 verify(mScreen, times(1)).addPreference(any(PreferenceGroup.class)); in onResume_oneNewProfile_shouldAddOneAccountCategory() 202 verify(mScreen, times(1)).removePreference(any(PreferenceGroup.class)); in onResume_oneProfileRemoved_shouldRemoveOneAccountCategory() 213 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_oneProfile_shouldSetAccountTitleWithUserName() [all …]
|
/packages/apps/TV/res/raw/ |
D | third_party_licenses | 9 Permission is hereby granted, free of charge, to any person obtaining a copy 60 "Object" form shall mean any form resulting from mechanical 70 "Derivative Works" shall mean any work, whether in Source or Object 78 "Contribution" shall mean any work of authorship, including 79 the original version of the Work and any modifications or additions 84 means any form of electronic, verbal, or written communication sent 92 "Contributor" shall mean Licensor and any individual or Legal Entity 112 institute patent litigation against any entity (including a 115 or contributory patent infringement, then any patent licenses 120 Work or Derivative Works thereof in any medium, with or without [all …]
|
/packages/apps/CertInstaller/ |
D | NOTICE | 43 "Object" form shall mean any form resulting from mechanical 53 "Derivative Works" shall mean any work, whether in Source or Object 61 "Contribution" shall mean any work of authorship, including 62 the original version of the Work and any modifications or additions 67 means any form of electronic, verbal, or written communication sent 75 "Contributor" shall mean Licensor and any individual or Legal Entity 95 institute patent litigation against any entity (including a 98 or contributory patent infringement, then any patent licenses 103 Work or Derivative Works thereof in any medium, with or without 107 (a) You must give any other recipients of the Work or [all …]
|
/packages/apps/TimeZoneUpdater/ |
D | NOTICE | 43 "Object" form shall mean any form resulting from mechanical 53 "Derivative Works" shall mean any work, whether in Source or Object 61 "Contribution" shall mean any work of authorship, including 62 the original version of the Work and any modifications or additions 67 means any form of electronic, verbal, or written communication sent 75 "Contributor" shall mean Licensor and any individual or Legal Entity 95 institute patent litigation against any entity (including a 98 or contributory patent infringement, then any patent licenses 103 Work or Derivative Works thereof in any medium, with or without 107 (a) You must give any other recipients of the Work or [all …]
|