Home
last modified time | relevance | path

Searched refs:times (Results 1 – 25 of 565) sorted by relevance

12345678910>>...23

/frameworks/native/services/surfaceflinger/tests/unittests/
DRefreshRateStatsTest.cpp67 auto times = mRefreshRateStats->getTotalTimes(); in TEST_F() local
68 ASSERT_TRUE(times.contains("ScreenOff")); in TEST_F()
69 EXPECT_EQ(1u, times.size()); in TEST_F()
72 std::chrono::milliseconds screenOff = times.get("ScreenOff")->get(); in TEST_F()
74 times = mRefreshRateStats->getTotalTimes(); in TEST_F()
76 EXPECT_LT(screenOff, times.get("ScreenOff")->get()); in TEST_F()
77 EXPECT_FALSE(times.contains("90.00 Hz")); in TEST_F()
83 times = mRefreshRateStats->getTotalTimes(); in TEST_F()
85 EXPECT_EQ(screenOff, times.get("ScreenOff")->get()); in TEST_F()
86 ASSERT_TRUE(times.contains("90.00 Hz")); in TEST_F()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java35 import static org.mockito.Mockito.times;
285 verify(mMockContext, times(2)).registerReceiver( in callStart()
1035 verify(l, times(0)).updateAllJobs(); in assertNoCallbacks()
1036 verify(l, times(0)).updateJobsForUid(anyInt(), anyBoolean()); in assertNoCallbacks()
1037 verify(l, times(0)).updateJobsForUidPackage(anyInt(), anyString(), anyBoolean()); in assertNoCallbacks()
1039 verify(l, times(0)).unblockAllUnrestrictedAlarms(); in assertNoCallbacks()
1040 verify(l, times(0)).unblockAlarmsForUid(anyInt()); in assertNoCallbacks()
1041 verify(l, times(0)).unblockAlarmsForUidPackage(anyInt(), anyString()); in assertNoCallbacks()
1058 verify(l, times(1)).updateAllJobs(); in testPowerSaveListener()
1059 verify(l, times(0)).updateJobsForUid(anyInt(), anyBoolean()); in testPowerSaveListener()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/
DMetadataAnimationHandlerTest.kt33 import org.mockito.Mockito.times
72 verify(exitAnimator, times(1)).start() in executeAnimationEnd_runsCallacks()
80 verify(exitAnimator, times(1)).start() in executeAnimationEnd_runsCallacks()
81 verify(enterAnimator, times(1)).start() in executeAnimationEnd_runsCallacks()
82 verify(postExitCB, times(1)).invoke() in executeAnimationEnd_runsCallacks()
88 verify(exitAnimator, times(1)).start() in executeAnimationEnd_runsCallacks()
89 verify(enterAnimator, times(1)).start() in executeAnimationEnd_runsCallacks()
90 verify(postExitCB, times(1)).invoke() in executeAnimationEnd_runsCallacks()
91 verify(postEnterCB, times(1)).invoke() in executeAnimationEnd_runsCallacks()
102 verify(postExitCB, times(1)).invoke() in rebindSameData_executesFirstCallback()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationSwipeHelperTest.java30 import static org.mockito.Mockito.times;
132 verify(mSwipeHelper, times(1)).setExposedMenuView(null); in testClearExposedMenuView()
148 verify(mSwipeHelper, times(1)).setTranslatingParentView(null); in testClearTranslatingParentView()
167 verify(mSwipeHelper, times(1)).setCurrentMenuRow(null); in testClearCurrentMenuRow()
180 verify(mSwipeHelper, times(1)).clearCurrentMenuRow(); in testOnDownUpdate_ExpandableNotificationRow()
181 verify(mHandler, times(1)).removeCallbacks(mFalsingCheck); in testOnDownUpdate_ExpandableNotificationRow()
182 verify(mSwipeHelper, times(1)).resetExposedMenuView(true, false); in testOnDownUpdate_ExpandableNotificationRow()
183 verify(mSwipeHelper, times(1)).initializeRow(mNotificationRow); in testOnDownUpdate_ExpandableNotificationRow()
196 verify(mSwipeHelper, times(1)).clearCurrentMenuRow(); in testOnDownUpdate_notExpandableNotificationRow()
197 verify(mHandler, times(1)).removeCallbacks(mFalsingCheck); in testOnDownUpdate_notExpandableNotificationRow()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/
DNavBarHelperTest.java33 import static org.mockito.Mockito.times;
145 verify(mNavigationModeController, times(1)).addListener(mNavBarHelper); in registerListenersInCtor()
146 verify(mOverviewProxyService, times(1)).addCallback(mNavBarHelper); in registerListenersInCtor()
147 verify(mCommandQueue, times(1)).addCallback(any()); in registerListenersInCtor()
153 verify(mAccessibilityButtonModeObserver, times(1)).addListener(mNavBarHelper); in testSetupBarsRegistersListeners()
154 verify(mAccessibilityButtonTargetObserver, times(1)).addListener(mNavBarHelper); in testSetupBarsRegistersListeners()
155 verify(mAccessibilityManager, times(1)).addAccessibilityServicesStateChangeListener( in testSetupBarsRegistersListeners()
157 verify(mAssistManager, times(1)).getAssistInfoForUser(anyInt()); in testSetupBarsRegistersListeners()
158 verify(mWm, times(1)).watchRotation(any(), anyInt()); in testSetupBarsRegistersListeners()
159 verify(mWm, times(1)).registerWallpaperVisibilityListener(any(), anyInt()); in testSetupBarsRegistersListeners()
[all …]
DNavigationBarRotationContextTest.java22 import static org.mockito.Mockito.times;
97 verify(mRotationButtonController, times(1)).setRotateSuggestionButtonState( in testOnInvalidRotationProposal()
105 verify(mRotationButtonController, times(1)).setRotateSuggestionButtonState( in testOnSameRotationProposal()
115 verify(mRotationButtonController, times(0)).setRotateSuggestionButtonState( in testOnRotationProposalShowButtonShowNav()
117 verify(mRotationButtonController, times(0)).setRotateSuggestionButtonState( in testOnRotationProposalShowButtonShowNav()
123 verify(mRotationButtonController, times(0)).setRotateSuggestionButtonState( in testOnRotationProposalShowButtonShowNav()
125 verify(mRotationButtonController, times(0)).setRotateSuggestionButtonState( in testOnRotationProposalShowButtonShowNav()
130 verify(mRotationButtonController, times(1)).setRotateSuggestionButtonState( in testOnRotationProposalShowButtonShowNav()
138 verify(mRotationButtonController, times(0)).setRotateSuggestionButtonState( in testOnRotationProposalShowButton()
140 verify(mRotationButtonController, times(0)).setRotateSuggestionButtonState( in testOnRotationProposalShowButton()
[all …]
/frameworks/base/core/tests/nfctests/src/android/nfc/
DNfcControllerAlwaysOnListenerTest.java25 import static org.mockito.Mockito.times;
62 verify(listener, times(1)).onControllerAlwaysOnChanged(anyBoolean());
76 verify(mNfcAdapter, times(0)).registerControllerAlwaysOnListener(any());
80 verify(mNfcAdapter, times(0)).registerControllerAlwaysOnListener(any());
84 verify(mNfcAdapter, times(0)).registerControllerAlwaysOnListener(any());
85 verify(mNfcAdapter, times(0)).unregisterControllerAlwaysOnListener(any());
89 verify(mNfcAdapter, times(0)).registerControllerAlwaysOnListener(any());
90 verify(mNfcAdapter, times(0)).unregisterControllerAlwaysOnListener(any());
103 verify(mNfcAdapter, times(1)).registerControllerAlwaysOnListener(any());
107 verify(mNfcAdapter, times(1)).registerControllerAlwaysOnListener(any());
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/render/
DRenderStageManagerTest.kt39 import org.mockito.Mockito.times
103 verify(spyViewRenderer, times(1)).onRenderList(any()) in testDoesNotQueryControllerIfNoListeners()
104 verify(spyViewRenderer, times(1)).getStackController() in testDoesNotQueryControllerIfNoListeners()
107 verify(spyViewRenderer, times(1)).onDispatchComplete() in testDoesNotQueryControllerIfNoListeners()
123 verify(spyViewRenderer, times(1)).onRenderList(any()) in testDoesQueryControllerIfListeners()
124 verify(spyViewRenderer, times(1)).getStackController() in testDoesQueryControllerIfListeners()
125 verify(spyViewRenderer, times(2)).getGroupController(any()) in testDoesQueryControllerIfListeners()
126 verify(spyViewRenderer, times(8)).getRowController(any()) in testDoesQueryControllerIfListeners()
127 verify(spyViewRenderer, times(1)).onDispatchComplete() in testDoesQueryControllerIfListeners()
146 verify(spyViewRenderer, times(1)).onRenderList(any()) in testDoesNotQueryControllerTwice()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/provider/
DVisualStabilityProviderTest.kt27 import org.mockito.Mockito.times
55 verify(listener, times(1)).onReorderingAllowed() in testPersistentListenerCalledTwice()
59 verify(listener, times(2)).onReorderingAllowed() in testPersistentListenerCalledTwice()
67 verify(listener, times(1)).onReorderingAllowed() in testTemporaryListenerCalledOnce()
71 verify(listener, times(1)).onReorderingAllowed() in testTemporaryListenerCalledOnce()
98 verify(listener, times(1)).onReorderingAllowed() in testPersistentListenerStaysPersistent()
102 verify(listener, times(2)).onReorderingAllowed() in testPersistentListenerStaysPersistent()
111 verify(listener, times(1)).onReorderingAllowed() in testTemporaryListenerBecomesPersistent()
115 verify(listener, times(2)).onReorderingAllowed() in testTemporaryListenerBecomesPersistent()
128 verify(selfRemovingListener, times(1)).onReorderingAllowed() in testPersistentListenerCanRemoveSelf()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/
DClipboardOverlayControllerTest.java32 import static org.mockito.Mockito.times;
153 verify(mClipboardOverlayView, times(1)).showDefaultTextPreview(); in test_setClipData_invalidImageData_legacy()
154 verify(mClipboardOverlayView, times(1)).showShareChip(); in test_setClipData_invalidImageData_legacy()
155 verify(mClipboardOverlayView, times(1)).getEnterAnimation(); in test_setClipData_invalidImageData_legacy()
166 verify(mClipboardOverlayView, times(1)).showDefaultTextPreview(); in test_setClipData_nonImageUri_legacy()
167 verify(mClipboardOverlayView, times(1)).showShareChip(); in test_setClipData_nonImageUri_legacy()
168 verify(mClipboardOverlayView, times(1)).getEnterAnimation(); in test_setClipData_nonImageUri_legacy()
177 verify(mClipboardOverlayView, times(1)).showTextPreview("Test Item", false); in test_setClipData_textData_legacy()
178 verify(mClipboardOverlayView, times(1)).showShareChip(); in test_setClipData_textData_legacy()
179 verify(mClipboardOverlayView, times(1)).getEnterAnimation(); in test_setClipData_textData_legacy()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/stylus/
DStylusManagerTest.kt40 import org.mockito.Mockito.times in <lambda>()
112 verify(inputManager, times(1)).registerInputDeviceListener(any(), any()) in <lambda>()
138 verify(stylusCallback, times(1)).onStylusAdded(STYLUS_DEVICE_ID) in <lambda>()
140 verify(otherStylusCallback, times(1)).onStylusAdded(STYLUS_DEVICE_ID) in <lambda>()
150 verify(inputManager, times(1)) in <lambda>()
168 verify(stylusCallback, times(1)).onStylusAdded(STYLUS_DEVICE_ID) in <lambda>()
177 verify(stylusCallback, times(1)).onStylusFirstUsed() in <lambda>()
185 verify(inputManager, times(1)).setStylusEverUsed(mContext, true) in <lambda>()
194 it.verify(stylusCallback, times(1)).onStylusAdded(BT_STYLUS_DEVICE_ID) in <lambda>()
195 it.verify(stylusCallback, times(1)) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/model/
DSysUiStateTest.java23 import static org.mockito.Mockito.times;
60 verify(mCallback, times(1)).onSystemUiStateChanged(FLAG_1); in addSingle_setFlag()
68 verify(mCallback, times(1)).onSystemUiStateChanged(FLAG_1); in addMultiple_setFlag()
69 verify(mCallback, times(1)) in addMultiple_setFlag()
80 verify(mCallback, times(1)).onSystemUiStateChanged(FLAG_1); in addMultipleRemoveOne_setFlag()
81 verify(mCallback, times(1)) in addMultipleRemoveOne_setFlag()
83 verify(mCallback, times(1)).onSystemUiStateChanged(FLAG_2); in addMultipleRemoveOne_setFlag()
91 verify(mCallback, times(1)).onSystemUiStateChanged(expected); in addMultiple_setFlags()
101 verify(mCallback, times(1)).onSystemUiStateChanged(expected1); in addMultipleRemoveOne_setFlags()
103 verify(mCallback, times(1)).onSystemUiStateChanged(expected2); in addMultipleRemoveOne_setFlags()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
DStationaryThrottlingLocationProviderTest.java26 import static org.mockito.Mockito.times;
98 verify(mListener, times(1)).onReportLocation(any(LocationResult.class)); in testThrottle_lowInterval()
102 verify(mListener, after(1500).times(2)).onReportLocation(any(LocationResult.class)); in testThrottle_lowInterval()
113 verify(mListener, times(1)).onReportLocation(any(LocationResult.class)); in testThrottle_stationaryExit()
120 verify(mListener, timeout(1100).times(2)).onReportLocation(any(LocationResult.class)); in testThrottle_stationaryExit()
123 verify(mDelegate, times(2)).onSetRequest(request); in testThrottle_stationaryExit()
124 verify(mListener, after(1000).times(2)).onReportLocation(any(LocationResult.class)); in testThrottle_stationaryExit()
135 verify(mListener, times(1)).onReportLocation(any(LocationResult.class)); in testThrottle_idleExit()
142 verify(mListener, timeout(1100).times(2)).onReportLocation(any(LocationResult.class)); in testThrottle_idleExit()
145 verify(mDelegate, times(2)).onSetRequest(request); in testThrottle_idleExit()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSyncEngineTests.java23 import static com.android.dx.mockito.inline.extended.ExtendedMockito.times;
79 verify(mWm.mWindowPlacerLocked, times(0)).requestTraversal(); in testTrivialSyncCallback()
82 verify(listener, times(0)).onTransactionReady(anyInt(), any()); in testTrivialSyncCallback()
88 verify(listener, times(1)).onTransactionReady(eq(id), notNull()); in testTrivialSyncCallback()
92 verify(listener, times(1)).onTransactionReady(anyInt(), any()); in testTrivialSyncCallback()
110 verify(listener, times(0)).onTransactionReady(anyInt(), any()); in testWaitingSyncCallback()
114 verify(listener, times(1)).onTransactionReady(eq(id), notNull()); in testWaitingSyncCallback()
132 verify(listener, times(0)).onTransactionReady(anyInt(), any()); in testInvisibleSyncCallback()
137 verify(listener, times(1)).onTransactionReady(eq(id), notNull()); in testInvisibleSyncCallback()
158 verify(listener, times(0)).onTransactionReady(anyInt(), any()); in testWaitForChildrenCallback()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionInfoUpdaterTest.java32 import static org.mockito.Mockito.times;
189 verify(mSubscriptionController, times(1)).clearSubInfoRecord(eq(FAKE_SUB_ID_1)); in testSimAbsent()
195 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsent()
209 verify(mSubscriptionController, times(1)).clearSubInfoRecord(eq(FAKE_SUB_ID_1)); in testSimAbsentAndInactive()
215 verify(mConfigManager, times(0)).updateConfigForPhoneId(eq(FAKE_SUB_ID_1), in testSimAbsentAndInactive()
217 verify(mContext, times(0)).sendBroadcast(any(), anyString()); in testSimAbsentAndInactive()
218 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsentAndInactive()
229 verify(mSubscriptionContent, times(0)).put(anyString(), any()); in testSimUnknown()
234 verify(mSubscriptionController, times(0)).clearSubInfo(); in testSimUnknown()
235 verify(mSubscriptionController, times(0)).notifySubscriptionInfoChanged(); in testSimUnknown()
[all …]
DCarrierActionAgentTest.java22 import static org.mockito.Mockito.times;
100 verify(mDataActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
101 verify(mRadioActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
107 verify(mDataActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
110 verify(mRadioActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
121 verify(mDataActionHandler, times(2)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
125 verify(mRadioActionHandler, times(2)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
142 verify(mDataActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange()
143 verify(mRadioActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange()
150 verify(mDataActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest11.java24 import static org.mockito.Mockito.times;
71 verify(callback, times(1)).onShortcutsAddedOrUpdated( in testShortcutChangeCallback_setDynamicShortcuts()
73 verify(callback, times(0)).onShortcutsRemoved(any(), any(), any()); in testShortcutChangeCallback_setDynamicShortcuts()
98 verify(callback, times(1)).onShortcutsAddedOrUpdated( in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId()
102 verify(callback, times(1)).onShortcutsRemoved( in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId()
140 verify(callback, times(1)).onShortcutsAddedOrUpdated( in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
142 verify(callback, times(0)).onShortcutsRemoved(any(), any(), any()); in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
164 verify(callback, times(1)).onShortcutsAddedOrUpdated( in testShortcutChangeCallback_pinShortcuts()
166 verify(callback, times(0)).onShortcutsRemoved(any(), any(), any()); in testShortcutChangeCallback_pinShortcuts()
196 verify(callback, times(1)).onShortcutsAddedOrUpdated( in testShortcutChangeCallback_pinShortcuts_unpinOthers()
[all …]
/frameworks/base/core/jni/
Dcom_android_internal_os_KernelCpuUidBpfMapReader.cpp73 for (auto &[uid, times] : *data) { in KernelCpuUidFreqTimeBpfMapReader_readBpfData()
75 for (const auto &subVec : times) s += subVec.size(); in KernelCpuUidFreqTimeBpfMapReader_readBpfData()
79 copy2DVecToArray(env, ar, times); in KernelCpuUidFreqTimeBpfMapReader_readBpfData()
98 for (auto &[uid, times] : *data) { in KernelCpuUidActiveTimeBpfMapReader_readBpfData()
100 for (auto &time : times.active) time /= NSEC_PER_MSEC; in KernelCpuUidActiveTimeBpfMapReader_readBpfData()
101 jlongArray ar = getUidArray(env, sparseAr, uid, times.active.size()); in KernelCpuUidActiveTimeBpfMapReader_readBpfData()
103 env->SetLongArrayRegion(ar, 0, times.active.size(), in KernelCpuUidActiveTimeBpfMapReader_readBpfData()
104 reinterpret_cast<const jlong *>(times.active.data())); in KernelCpuUidActiveTimeBpfMapReader_readBpfData()
132 for (auto &[uid, times] : *data) { in KernelCpuUidClusterTimeBpfMapReader_readBpfData()
134 for (const auto &subVec : times.policy) s += subVec.size(); in KernelCpuUidClusterTimeBpfMapReader_readBpfData()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBinderDeathDispatcherTest.java23 import static org.mockito.Mockito.times;
231 verify(r1, times(1)).binderDied(t1); in testRegisterAndKill()
232 verify(r2, times(1)).binderDied(t1); in testRegisterAndKill()
233 verify(r3, times(1)).binderDied(t1); in testRegisterAndKill()
234 verify(r4, times(0)).binderDied(any()); in testRegisterAndKill()
235 verify(r5, times(0)).binderDied(any()); in testRegisterAndKill()
242 verify(r1, times(1)).binderDied(t2); in testRegisterAndKill()
243 verify(r2, times(0)).binderDied(any()); in testRegisterAndKill()
244 verify(r3, times(0)).binderDied(any()); in testRegisterAndKill()
245 verify(r4, times(0)).binderDied(any()); in testRegisterAndKill()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DFingerprintGestureDispatcherTest.java23 import static org.mockito.Mockito.times;
93 verify(mNonGestureCapturingClient, times(0)) in testOneNonCapturingService_doesNotCrashOrConsumeGestures()
95 verify(mNonGestureCapturingClient, times(0)).onFingerprintGesture(anyInt()); in testOneNonCapturingService_doesNotCrashOrConsumeGestures()
104 verify(mGestureCapturingClient, times(1)).onFingerprintGestureDetectionActiveChanged(false); in testOneCapturingService_notifiesClientOfActivityChanges()
105 verify(mGestureCapturingClient, times(0)).onFingerprintGestureDetectionActiveChanged(true); in testOneCapturingService_notifiesClientOfActivityChanges()
107 verify(mGestureCapturingClient, times(1)).onFingerprintGestureDetectionActiveChanged(false); in testOneCapturingService_notifiesClientOfActivityChanges()
108 verify(mGestureCapturingClient, times(1)).onFingerprintGestureDetectionActiveChanged(true); in testOneCapturingService_notifiesClientOfActivityChanges()
117 verify(mGestureCapturingClient, times(1)).onFingerprintGesture( in testOneCapturingService_consumesGesturesAndPassesThemAlong()
121 verify(mGestureCapturingClient, times(1)).onFingerprintGesture( in testOneCapturingService_consumesGesturesAndPassesThemAlong()
125 verify(mGestureCapturingClient, times(1)).onFingerprintGesture( in testOneCapturingService_consumesGesturesAndPassesThemAlong()
[all …]
DFingerprintGestureControllerTest.java25 import static org.mockito.Mockito.times;
78 verify(mMockFingerprintGestureCallback, times(1)) in testDetectionActiveCallback_noHandler_shouldCallback()
81 verify(mMockFingerprintGestureCallback, times(1)) in testDetectionActiveCallback_noHandler_shouldCallback()
102 verify(mMockFingerprintGestureCallback, times(0)) in testDetectionActiveCallback_withHandler_shouldPostRunnableToHandler()
105 verify(mMockFingerprintGestureCallback, times(1)) in testDetectionActiveCallback_withHandler_shouldPostRunnableToHandler()
109 verify(mMockFingerprintGestureCallback, times(0)) in testDetectionActiveCallback_withHandler_shouldPostRunnableToHandler()
112 verify(mMockFingerprintGestureCallback, times(1)) in testDetectionActiveCallback_withHandler_shouldPostRunnableToHandler()
131 verify(mMockFingerprintGestureCallback, times(1)) in testGestureCallback_noHandler_shouldCallListener()
151 verify(mMockFingerprintGestureCallback, times(0)) in testGestureCallback_withHandler_shouldPostRunnableToHandler()
154 verify(mMockFingerprintGestureCallback, times(1)) in testGestureCallback_withHandler_shouldPostRunnableToHandler()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/telephony/
DTelephonyListenerManagerTest.java21 import static org.mockito.Mockito.times;
70 verify(mTelephonyManager, times(1)) in testAddListenerRegisters_ActiveDataSubscriptionIdListener()
82 verify(mTelephonyManager, times(1)) in testAddListenerRegisters_CallStateListener()
94 verify(mTelephonyManager, times(1)) in testAddListenerRegisters_ServiceStateListener()
108 verify(mTelephonyManager, times(1)) in testAddListenerRegisters_mixed()
119 verify(mTelephonyManager, times(1)) in testRemoveListenerUnregisters_ActiveDataSubscriptionIdListener()
128 verify(mTelephonyManager, times(1)) in testRemoveListenerUnregisters_ActiveDataSubscriptionIdListener()
139 verify(mTelephonyManager, times(1)) in testRemoveListenerUnregisters_CallStateListener()
148 verify(mTelephonyManager, times(1)) in testRemoveListenerUnregisters_CallStateListener()
159 verify(mTelephonyManager, times(1)) in testRemoveListenerUnregisters_ServiceStateListener()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DThermalManagerServiceTest.java218 .times(0)).notifyThrottling(any(Temperature.class)); in setUp()
220 .times(1)).onStatusChange(Temperature.THROTTLING_NONE); in setUp()
222 .times(0)).notifyThrottling(any(Temperature.class)); in setUp()
224 .times(1)).onStatusChange(Temperature.THROTTLING_NONE); in setUp()
229 .times(4)).notifyThrottling(captor.capture()); in setUp()
232 .times(0)).onStatusChange(Temperature.THROTTLING_NONE); in setUp()
235 .times(2)).notifyThrottling(captor.capture()); in setUp()
240 .times(0)).onStatusChange(Temperature.THROTTLING_NONE); in setUp()
262 .times(4)).notifyThrottling(captor.capture()); in testRegister()
265 .times(1)).onStatusChange(Temperature.THROTTLING_NONE); in testRegister()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
DBatterySaverUtilsTest.java25 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/native/libs/cputimeinstate/
Dtesttimeinstate.cpp58 auto times = getTotalCpuFreqTimes(); in TEST_F() local
59 ASSERT_TRUE(times.has_value()); in TEST_F()
60 EXPECT_FALSE(times->empty()); in TEST_F()
64 auto times = getUidCpuFreqTimes(0); in TEST_F() local
65 ASSERT_TRUE(times.has_value()); in TEST_F()
66 EXPECT_FALSE(times->empty()); in TEST_F()
130 auto times = getUidCpuFreqTimes(0); in TEST_F() local
131 ASSERT_TRUE(times.has_value()); in TEST_F()
136 ASSERT_NO_FATAL_FAILURE(TestUidTimesConsistent(*times, *concurrentTimes)); in TEST_F()
366 auto times = kv.second; in TEST_F() local
[all …]

12345678910>>...23