/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | RefreshRateStatsTest.cpp | 87 std::unordered_map<std::string, int64_t> times = mRefreshRateStats.getTotalTimes(); in TEST_F() local 88 EXPECT_EQ(2, times.size()); in TEST_F() 89 EXPECT_NE(0u, times.count("ScreenOff")); in TEST_F() 90 EXPECT_EQ(1u, times.count("90fps")); in TEST_F() 91 EXPECT_EQ(0, times["90fps"]); in TEST_F() 95 int screenOff = times["ScreenOff"]; in TEST_F() 96 int ninety = times["90fps"]; in TEST_F() 100 times = mRefreshRateStats.getTotalTimes(); in TEST_F() 101 EXPECT_LT(screenOff, times["ScreenOff"]); in TEST_F() 102 EXPECT_EQ(0, times["90fps"]); in TEST_F() [all …]
|
/frameworks/ml/nn/tools/systrace_parser/parser/ |
D | aggregate.py | 50 times = {} 54 times[app_phase] = {} 57 times[app_phase][phase] = {} 60 times[phase] = {} 87 times[app_phase][phase][layer] = zero_to_nan_if_missing(t0, phase, layer) 89 times[phase][layer] = zero_to_nan_if_missing(t, phase, layer) 90 if not times[PHASE_OVERALL][layer]: 91 times[PHASE_OVERALL][layer] = sum(nan_to_zero(times[phase][layer]) for phase in phases) 94 times[phase][LAYER_TOTAL] = max_ignoring_nans(times[phase].values()) 97 times[app_phase][phase][LAYER_TOTAL] = max_ignoring_nans(times[app_phase][phase].values()) [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | AppStateTrackerTest.java | 35 import static org.mockito.Mockito.times; 742 verify(l, times(0)).updateAllJobs(); in assertNoCallbacks() 743 verify(l, times(0)).updateJobsForUid(anyInt(), anyBoolean()); in assertNoCallbacks() 744 verify(l, times(0)).updateJobsForUidPackage(anyInt(), anyString(), anyBoolean()); in assertNoCallbacks() 746 verify(l, times(0)).unblockAllUnrestrictedAlarms(); in assertNoCallbacks() 747 verify(l, times(0)).unblockAlarmsForUid(anyInt()); in assertNoCallbacks() 748 verify(l, times(0)).unblockAlarmsForUidPackage(anyInt(), anyString()); in assertNoCallbacks() 765 verify(l, times(1)).updateAllJobs(); in testPowerSaveListener() 766 verify(l, times(0)).updateJobsForUid(anyInt(), anyBoolean()); in testPowerSaveListener() 767 verify(l, times(0)).updateJobsForUidPackage(anyInt(), anyString(), anyBoolean()); in testPowerSaveListener() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationSwipeHelperTest.java | 26 import static org.mockito.Mockito.times; 104 verify(mSwipeHelper, times(1)).setExposedMenuView(null); in testClearExposedMenuView() 120 verify(mSwipeHelper, times(1)).setTranslatingParentView(null); in testClearTranslatingParentView() 139 verify(mSwipeHelper, times(1)).setCurrentMenuRow(null); in testClearCurrentMenuRow() 152 verify(mSwipeHelper, times(1)).clearCurrentMenuRow(); in testOnDownUpdate_ExpandableNotificationRow() 153 verify(mHandler, times(1)).removeCallbacks(mFalsingCheck); in testOnDownUpdate_ExpandableNotificationRow() 154 verify(mSwipeHelper, times(1)).resetExposedMenuView(true, false); in testOnDownUpdate_ExpandableNotificationRow() 155 verify(mSwipeHelper, times(1)).initializeRow(mNotificationRow); in testOnDownUpdate_ExpandableNotificationRow() 168 verify(mSwipeHelper, times(1)).clearCurrentMenuRow(); in testOnDownUpdate_notExpandableNotificationRow() 169 verify(mHandler, times(1)).removeCallbacks(mFalsingCheck); in testOnDownUpdate_notExpandableNotificationRow() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/ |
D | FileUpdaterTest.java | 26 import static org.mockito.Mockito.times; 136 private void veriryWtf(int times) { in veriryWtf() argument 137 verify(mInjector, times(times)).injectWtf(anyOrNullString(), anyOrNull(Throwable.class)); in veriryWtf() 152 verify(mInjector, times(0)).injectWriteToFile(anyOrNullString(), anyOrNullString()); in testNoWrites() 158 verify(mInjector, times(0)).injectWriteToFile(anyOrNullString(), anyOrNullString()); in testNoWrites() 177 verify(mInjector, times(1)).injectWriteToFile("file1", "11"); in testSimpleWrite() 183 verify(mInjector, times(1)).injectWriteToFile("file1", "111"); in testSimpleWrite() 204 verify(mInjector, times(1)).injectWriteToFile("file1", "11"); in testMultiWrites() 205 verify(mInjector, times(1)).injectWriteToFile("file2", "22"); in testMultiWrites() 206 verify(mInjector, times(1)).injectWriteToFile("file3", "33"); in testMultiWrites() [all …]
|
/frameworks/native/libs/cputimeinstate/ |
D | testtimeinstate.cpp | 15 vector<vector<uint64_t>> times; in TEST() local 16 ASSERT_TRUE(getUidCpuFreqTimes(0, ×)); in TEST() 17 EXPECT_FALSE(times.empty()); in TEST() 37 vector<vector<uint64_t>> times, times2; in TEST() local 38 ASSERT_TRUE(getUidCpuFreqTimes(0, ×)); in TEST() 39 ASSERT_FALSE(times.empty()); in TEST() 42 for (size_t i = 0; i < times.size(); ++i) { in TEST() 43 for (auto x : times[i]) sum += x; in TEST() 50 ASSERT_EQ(times2.size(), times.size()); in TEST() 51 for (size_t i = 0; i < times.size(); ++i) { in TEST() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SubscriptionInfoUpdaterTest.java | 31 import static org.mockito.Mockito.times; 192 verify(mSubscriptionController, times(1)).clearSubInfoRecord(eq(FAKE_SUB_ID_1)); in testSimAbsent() 198 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsent() 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() 221 verify(mContext, times(0)).sendBroadcast(any(), anyString()); in testSimAbsentAndInactive() 222 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsentAndInactive() 233 verify(mSubscriptionContent, times(0)).put(anyString(), any()); in testSimUnknown() 238 verify(mSubscriptionController, times(0)).clearSubInfo(); in testSimUnknown() 239 verify(mSubscriptionController, times(0)).notifySubscriptionInfoChanged(); in testSimUnknown() [all …]
|
D | CarrierSignalAgentTest.java | 29 import static org.mockito.Mockito.times; 105 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 114 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 122 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 147 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers() 156 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers() 166 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers() 195 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotify() 203 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotify() 214 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotify() [all …]
|
D | CarrierActionAgentTest.java | 21 import static org.mockito.Mockito.times; 110 verify(mDataActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 111 verify(mRadioActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 118 verify(mDataActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 121 verify(mRadioActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 134 verify(mDataActionHandler, times(2)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 138 verify(mRadioActionHandler, times(2)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 155 verify(mDataActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange() 156 verify(mRadioActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange() 164 verify(mDataActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange() [all …]
|
D | CallManagerTest.java | 31 import static org.mockito.Mockito.times; 148 verify(mPhone, times(1)).dial(mCaptorString.capture(), dialArgsCaptor.capture()); in testBasicDial() 158 verify(mPhone, times(1)).rejectCall(); in testBasicRejectCall() 164 verify(mPhone, times(0)).sendDtmf(eq('a')); in testSendDtmf() 170 verify(mPhone, times(1)).sendDtmf(eq('a')); in testSendDtmf() 177 verify(mPhone, times(0)).startDtmf(anyChar()); in testStartDtmf() 183 verify(mPhone, times(1)).startDtmf('a'); in testStartDtmf() 190 verify(mPhone, times(0)).stopDtmf(); in testStopDtmf() 196 verify(mPhone, times(1)).stopDtmf(); in testStopDtmf() 203 verify(mPhone, times(0)).sendBurstDtmf(anyString(), anyInt(), anyInt(), (Message) any()); in testSendBurstDtmf() [all …]
|
D | DeviceStateMonitorTest.java | 26 import static org.mockito.Mockito.times; 89 verify(mSimulatedCommandsVerifier, times(1)).setUnsolResponseFilter(eq(6), in testTethering() 98 verify(mSimulatedCommandsVerifier, times(1)).setUnsolResponseFilter(eq(0), in testTethering() 101 verify(mSimulatedCommandsVerifier, times(1)).sendDeviceState(eq(LOW_DATA_EXPECTED), in testTethering() 112 verify(mSimulatedCommandsVerifier, times(1)).sendDeviceState(eq(CHARGING_STATE), in testCharging() 120 verify(mSimulatedCommandsVerifier, times(1)).setUnsolResponseFilter(eq(0), in testCharging() 123 verify(mSimulatedCommandsVerifier, times(1)).sendDeviceState(eq(LOW_DATA_EXPECTED), in testCharging() 126 verify(mSimulatedCommandsVerifier, times(1)).sendDeviceState(eq(CHARGING_STATE), in testCharging() 134 verify(mSimulatedCommandsVerifier, times(1)).setUnsolResponseFilter(eq(-1), in testReset()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | ThermalManagerServiceTest.java | 168 .times(0)).notifyThrottling(any(Temperature.class)); in setUp() 170 .times(1)).onStatusChange(anyInt()); in setUp() 172 .times(0)).notifyThrottling(any(Temperature.class)); in setUp() 174 .times(1)).onStatusChange(anyInt()); in setUp() 179 .times(4)).notifyThrottling(captor.capture()); in setUp() 182 .times(1)).onStatusChange(Temperature.THROTTLING_NONE); in setUp() 185 .times(2)).notifyThrottling(captor.capture()); in setUp() 190 .times(1)).onStatusChange(Temperature.THROTTLING_NONE); in setUp() 212 .times(4)).notifyThrottling(captor.capture()); in testRegister() 215 .times(1)).onStatusChange(Temperature.THROTTLING_NONE); in testRegister() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/ |
D | OffloadControllerTest.java | 40 import static org.mockito.Mockito.times; 160 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testNoSettingsValueDefaultDisabledDoesNotStart() 180 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testNoSettingsValueDefaultEnabledDoesStart() 181 inOrder.verify(mHardware, times(1)).initOffloadConfig(); in testNoSettingsValueDefaultEnabledDoesStart() 182 inOrder.verify(mHardware, times(1)).initOffloadControl( in testNoSettingsValueDefaultEnabledDoesStart() 196 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testSettingsAllowsStart() 197 inOrder.verify(mHardware, times(1)).initOffloadConfig(); in testSettingsAllowsStart() 198 inOrder.verify(mHardware, times(1)).initOffloadControl( in testSettingsAllowsStart() 212 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testSettingsDisablesStart() 227 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testSetUpstreamLinkPropertiesWorking() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | TetheringTest.java | 55 import static org.mockito.Mockito.times; 416 verify(mNMService, times(1)).getInterfaceConfig(TEST_WLAN_IFNAME); in verifyInterfaceServingModeStarted() 417 verify(mNMService, times(1)) in verifyInterfaceServingModeStarted() 419 verify(mNMService, times(1)).tetherInterface(TEST_WLAN_IFNAME); in verifyInterfaceServingModeStarted() 461 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in prepareUsbTethering() 479 verify(mNMService, times(1)).listInterfaces(); in testUsbConfiguredBroadcastStartsTethering() 482 verify(mUpstreamNetworkMonitor, times(1)).selectPreferredUpstreamType(any()); in testUsbConfiguredBroadcastStartsTethering() 483 verify(mUpstreamNetworkMonitor, times(1)).setCurrentUpstream(upstreamState.network); in testUsbConfiguredBroadcastStartsTethering() 509 verify(mNMService, times(1)).setIpForwardingEnabled(true); in workingLocalOnlyHotspotEnrichedApBroadcast() 510 verify(mNMService, times(1)).startTethering(any(String[].class)); in workingLocalOnlyHotspotEnrichedApBroadcast() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | NavigationBarRotationContextTest.java | 22 import static org.mockito.Mockito.times; 75 verify(mRotationButtonController, times(1)).setRotateSuggestionButtonState( in testOnInvalidRotationProposal() 83 verify(mRotationButtonController, times(1)).setRotateSuggestionButtonState( in testOnSameRotationProposal() 91 verify(mRotationButtonController, times(0)).setRotateSuggestionButtonState( in testOnRotationProposalShowButtonShowNav() 93 verify(mRotationButtonController, times(0)).setRotateSuggestionButtonState( in testOnRotationProposalShowButtonShowNav() 99 verify(mRotationButtonController, times(0)).setRotateSuggestionButtonState( in testOnRotationProposalShowButtonShowNav() 101 verify(mRotationButtonController, times(0)).setRotateSuggestionButtonState( in testOnRotationProposalShowButtonShowNav() 106 verify(mRotationButtonController, times(1)).setRotateSuggestionButtonState( in testOnRotationProposalShowButtonShowNav() 114 verify(mRotationButtonController, times(0)).setRotateSuggestionButtonState( in testOnRotationProposalShowButton() 116 verify(mRotationButtonController, times(0)).setRotateSuggestionButtonState( in testOnRotationProposalShowButton() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | FingerprintGestureDispatcherTest.java | 23 import static org.mockito.Mockito.times; 92 verify(mNonGestureCapturingClient, times(0)) in testOneNonCapturingService_doesNotCrashOrConsumeGestures() 94 verify(mNonGestureCapturingClient, times(0)).onFingerprintGesture(anyInt()); in testOneNonCapturingService_doesNotCrashOrConsumeGestures() 103 verify(mGestureCapturingClient, times(1)).onFingerprintGestureDetectionActiveChanged(false); in testOneCapturingService_notifiesClientOfActivityChanges() 104 verify(mGestureCapturingClient, times(0)).onFingerprintGestureDetectionActiveChanged(true); in testOneCapturingService_notifiesClientOfActivityChanges() 106 verify(mGestureCapturingClient, times(1)).onFingerprintGestureDetectionActiveChanged(false); in testOneCapturingService_notifiesClientOfActivityChanges() 107 verify(mGestureCapturingClient, times(1)).onFingerprintGestureDetectionActiveChanged(true); in testOneCapturingService_notifiesClientOfActivityChanges() 116 verify(mGestureCapturingClient, times(1)).onFingerprintGesture( in testOneCapturingService_consumesGesturesAndPassesThemAlong() 120 verify(mGestureCapturingClient, times(1)).onFingerprintGesture( in testOneCapturingService_consumesGesturesAndPassesThemAlong() 124 verify(mGestureCapturingClient, times(1)).onFingerprintGesture( in testOneCapturingService_consumesGesturesAndPassesThemAlong() [all …]
|
D | FingerprintGestureControllerTest.java | 25 import static org.mockito.Mockito.times; 76 verify(mMockFingerprintGestureCallback, times(1)) in testDetectionActiveCallback_noHandler_shouldCallback() 79 verify(mMockFingerprintGestureCallback, times(1)) in testDetectionActiveCallback_noHandler_shouldCallback() 100 verify(mMockFingerprintGestureCallback, times(0)) in testDetectionActiveCallback_withHandler_shouldPostRunnableToHandler() 103 verify(mMockFingerprintGestureCallback, times(1)) in testDetectionActiveCallback_withHandler_shouldPostRunnableToHandler() 107 verify(mMockFingerprintGestureCallback, times(0)) in testDetectionActiveCallback_withHandler_shouldPostRunnableToHandler() 110 verify(mMockFingerprintGestureCallback, times(1)) in testDetectionActiveCallback_withHandler_shouldPostRunnableToHandler() 129 verify(mMockFingerprintGestureCallback, times(1)) in testGestureCallback_noHandler_shouldCallListener() 149 verify(mMockFingerprintGestureCallback, times(0)) in testGestureCallback_withHandler_shouldPostRunnableToHandler() 152 verify(mMockFingerprintGestureCallback, times(1)) in testGestureCallback_withHandler_shouldPostRunnableToHandler()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BinderDeathDispatcherTest.java | 22 import static org.mockito.Mockito.times; 230 verify(r1, times(1)).binderDied(); in testRegisterAndKill() 231 verify(r2, times(1)).binderDied(); in testRegisterAndKill() 232 verify(r3, times(1)).binderDied(); in testRegisterAndKill() 233 verify(r4, times(0)).binderDied(); in testRegisterAndKill() 234 verify(r5, times(0)).binderDied(); in testRegisterAndKill() 241 verify(r1, times(1)).binderDied(); in testRegisterAndKill() 242 verify(r2, times(0)).binderDied(); in testRegisterAndKill() 243 verify(r3, times(0)).binderDied(); in testRegisterAndKill() 244 verify(r4, times(0)).binderDied(); in testRegisterAndKill() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/textservices/ |
D | LazyIntToIntMapTest.java | 24 import static org.mockito.Mockito.times; 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() 77 verify(func1, times(1)).applyAsInt(eq(2)); in testDelete() 78 verify(func2, times(0)).applyAsInt(eq(2)); in testDelete() 86 verify(func1, times(1)).applyAsInt(eq(2)); in testDelete() 87 verify(func2, times(1)).applyAsInt(eq(2)); in testDelete()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerNotificationWarningsTest.java | 28 import static org.mockito.Mockito.times; 89 verify(mMockNotificationManager, times(1)) in testShowInvalidChargerNotification_NotifyAsUser() 91 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testShowInvalidChargerNotification_NotifyAsUser() 99 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissInvalidChargerNotification_CancelAsUser() 106 verify(mMockNotificationManager, times(1)) in testShowLowBatteryNotification_NotifyAsUser() 108 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testShowLowBatteryNotification_NotifyAsUser() 116 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissLowBatteryNotification_CancelAsUser() 133 verify(mMockNotificationManager, times(1)) in testShowHighTemperatureWarning_NotifyAsUser() 141 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissHighTemperatureWarning_CancelAsUser() 148 verify(mMockNotificationManager, times(1)) in testShowThermalShutdownWarning_NotifyAsUser() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/ |
D | BatterySaverUtilsTest.java | 25 import static org.mockito.Mockito.times; 73 verify(mMockContext, times(1)).sendBroadcast(any(Intent.class)); in testSetPowerSaveMode_enable_firstCall_needWarning() 74 verify(mMockPowerManager, times(0)).setPowerSaveModeEnabled(anyBoolean()); in testSetPowerSaveMode_enable_firstCall_needWarning() 90 verify(mMockContext, times(0)).sendBroadcast(any(Intent.class)); in testSetPowerSaveMode_enable_secondCall_needWarning() 91 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enable_secondCall_needWarning() 104 verify(mMockContext, times(0)).sendBroadcast(any(Intent.class)); in testSetPowerSaveMode_enable_thridCall_needWarning() 105 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enable_thridCall_needWarning() 118 verify(mMockContext, times(0)).sendBroadcast(any(Intent.class)); in testSetPowerSaveMode_enable_firstCall_noWarning() 119 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enable_firstCall_noWarning() 133 verify(mMockContext, times(0)).sendBroadcast(any(Intent.class)); in testSetPowerSaveMode_disable_firstCall_noWarning() [all …]
|
/frameworks/base/tests/net/java/android/net/nsd/ |
D | NsdManagerTest.java | 97 verify(listener, timeout(mTimeoutMs).times(1)).onResolveFailed(request, err); in testResolveService() 102 verify(listener, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testResolveService() 124 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testParallelResolveService() 125 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testParallelResolveService() 148 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceRegistered(request2); in testRegisterService() 152 verify(listener1, timeout(mTimeoutMs).times(1)).onRegistrationFailed(request1, err); in testRegisterService() 159 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceRegistered(request1); in testRegisterService() 167 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceUnregistered(request1); in testRegisterService() 175 verify(listener2, timeout(mTimeoutMs).times(1)).onUnregistrationFailed(request2, err); in testRegisterService() 203 verify(listener, timeout(mTimeoutMs).times(1)).onStartDiscoveryFailed("a_type", err); in testDiscoverService() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | TouchAnimatorTest.java | 216 private void verifyOnAnimationAtStart(int times) { in verifyOnAnimationAtStart() argument 217 Mockito.verify(mTouchListener, Mockito.times(times)).onAnimationAtStart(); in verifyOnAnimationAtStart() 220 private void verifyOnAnimationAtEnd(int times) { in verifyOnAnimationAtEnd() argument 221 Mockito.verify(mTouchListener, Mockito.times(times)).onAnimationAtEnd(); in verifyOnAnimationAtEnd() 224 private void verifyOnAnimationStarted(int times) { in verifyOnAnimationStarted() argument 225 Mockito.verify(mTouchListener, Mockito.times(times)).onAnimationStarted(); in verifyOnAnimationStarted()
|
/frameworks/base/tools/preload/ |
D | LoadedClass.java | 90 int[] times = new int[size]; in calculateMedian() local 92 times[i] = operations.get(i).exclusiveTimeMicros(); in calculateMedian() 95 Arrays.sort(times); in calculateMedian() 99 return times[middle]; in calculateMedian() 102 return (times[middle - 1] + times[middle]) / 2; in calculateMedian()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | ImsManagerTest.java | 26 import static org.mockito.Mockito.times; 143 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues() 149 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues() 156 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues() 162 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues() 168 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues() 174 verify(mSubscriptionController, times(1)).getSubscriptionProperty( in testGetDefaultValues() 185 verify(mSubscriptionController, times(1)).setSubscriptionProperty( in testSetValues() 191 verify(mSubscriptionController, times(1)).setSubscriptionProperty( in testSetValues() 197 verify(mSubscriptionController, times(1)).setSubscriptionProperty( in testSetValues() [all …]
|