Home
last modified time | relevance | path

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

12345678910>>...33

/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;
287 verify(mMockContext, times(2)).registerReceiver( in callStart()
1038 verify(l, times(0)).updateAllJobs(); in assertNoCallbacks()
1039 verify(l, times(0)).updateJobsForUid(anyInt(), anyBoolean()); in assertNoCallbacks()
1040 verify(l, times(0)).updateJobsForUidPackage(anyInt(), anyString(), anyBoolean()); in assertNoCallbacks()
1042 verify(l, times(0)).unblockAllUnrestrictedAlarms(); in assertNoCallbacks()
1043 verify(l, times(0)).unblockAlarmsForUid(anyInt()); in assertNoCallbacks()
1044 verify(l, times(0)).unblockAlarmsForUidPackage(anyInt(), anyString()); in assertNoCallbacks()
1061 verify(l, times(1)).updateAllJobs(); in testPowerSaveListener()
1062 verify(l, times(0)).updateJobsForUid(anyInt(), anyBoolean()); in testPowerSaveListener()
[all …]
/frameworks/base/core/tests/packagemonitortests/src/com/android/internal/content/
DPackageMonitorTest.java26 import static org.mockito.Mockito.times;
114 verify(mMockContext, times(1)).registerReceiverAsUser(any(), eq(UserHandle.ALL), any(), in testPackageMonitorRegisterWithSupportPackageRestartQuery()
127 verify(spyPackageMonitor, times(1)).onBeginPackageChanges(); in testPackageMonitorDoHandlePackageEventUidRemoved()
128 verify(spyPackageMonitor, times(1)).onUidRemoved(eq(FAKE_PACKAGE_UID)); in testPackageMonitorDoHandlePackageEventUidRemoved()
129 verify(spyPackageMonitor, times(1)).onFinishPackageChanges(); in testPackageMonitorDoHandlePackageEventUidRemoved()
142 verify(spyPackageMonitor, times(1)).onBeginPackageChanges(); in testPackageMonitorDoHandlePackageEventPackageSuspended()
143 verify(spyPackageMonitor, times(1)).onPackagesSuspended(eq(packageList)); in testPackageMonitorDoHandlePackageEventPackageSuspended()
144 verify(spyPackageMonitor, times(1)).onSomePackagesChanged(); in testPackageMonitorDoHandlePackageEventPackageSuspended()
145 verify(spyPackageMonitor, times(1)).onFinishPackageChanges(); in testPackageMonitorDoHandlePackageEventPackageSuspended()
158 verify(spyPackageMonitor, times(1)).onBeginPackageChanges(); in testPackageMonitorDoHandlePackageEventPackageUnSuspended()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/tv/
DTvPipMenuControllerTest.java31 import static org.mockito.Mockito.times;
112 verify(mMockDelegate, times(2)).onInMoveModeChanged(); in testSwitch_FromMoveMode_ToAllActionsMode()
133 verify(mMockDelegate, times(2)).onInMoveModeChanged(); in testCloseMenu_MoveMode()
149 verify(mMockDelegate, times(2)).onInMoveModeChanged(); in testCloseMenu_MoveModeFollowedByMoveMode()
156 verify(mMockDelegate, times(2)).onInMoveModeChanged(); in testCloseMenu_MoveModeFollowedByAllActionsMode()
167 verify(mMockDelegate, times(2)).onInMoveModeChanged(); in testCloseMenu_AllActionsModeFollowedByMoveMode()
194 verify(mMockDelegate, times(2)).onInMoveModeChanged(); in testExitMenuMode_MoveMode()
213 verify(mMockDelegate, times(2)).onInMoveModeChanged(); in testExitMenuMode_AllActionsModeFollowedByMoveMode()
236 verify(mMockDelegate, times(2)).onInMoveModeChanged(); in testExitMenuMode_MoveModeFollowedByAllActionsMode()
251 verify(mMockDelegate, times(2)).onInMoveModeChanged(); in testExitMenuMode_MoveModeFollowedByMoveMode()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/animation/
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.java31 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;
157 verify(mNavigationModeController, times(1)).addListener(mNavBarHelper); in registerListenersInCtor()
158 verify(mOverviewProxyService, times(1)).addCallback(mNavBarHelper); in registerListenersInCtor()
159 verify(mCommandQueue, times(1)).addCallback(any()); in registerListenersInCtor()
165 verify(mAccessibilityButtonModeObserver, times(1)).addListener(mNavBarHelper); in testSetupBarsRegistersListeners()
166 verify(mAccessibilityButtonTargetObserver, times(1)).addListener(mNavBarHelper); in testSetupBarsRegistersListeners()
167 verify(mAccessibilityManager, times(1)).addAccessibilityServicesStateChangeListener( in testSetupBarsRegistersListeners()
169 verify(mAssistManager, times(1)).getAssistInfoForUser(anyInt()); in testSetupBarsRegistersListeners()
170 verify(mWm, times(1)).watchRotation(any(), anyInt()); in testSetupBarsRegistersListeners()
171 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/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/
DClipboardOverlayControllerTest.java35 import static org.mockito.Mockito.times;
175 verify(mClipboardOverlayView, times(1)).showDefaultTextPreview(); in test_setClipData_invalidImageData_legacy()
176 verify(mClipboardOverlayView, times(1)).showShareChip(); in test_setClipData_invalidImageData_legacy()
177 verify(mClipboardOverlayView, times(1)).getEnterAnimation(); in test_setClipData_invalidImageData_legacy()
190 verify(mClipboardOverlayView, times(1)).showDefaultTextPreview(); in test_setClipData_nonImageUri_legacy()
191 verify(mClipboardOverlayView, times(1)).showShareChip(); in test_setClipData_nonImageUri_legacy()
192 verify(mClipboardOverlayView, times(1)).getEnterAnimation(); in test_setClipData_nonImageUri_legacy()
202 verify(mClipboardOverlayView, times(1)).showTextPreview("Test Item", false); in test_setClipData_textData_legacy()
203 verify(mUiEventLogger, times(1)).log(CLIPBOARD_OVERLAY_SHOWN_EXPANDED, 0, "abc"); in test_setClipData_textData_legacy()
204 verify(mClipboardOverlayView, times(1)).showShareChip(); in test_setClipData_textData_legacy()
[all …]
/frameworks/base/nfc/tests/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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/
DDesktopModeLoggerTransitionObserverTest.kt70 import org.mockito.kotlin.times
142 verify(desktopModeEventLogger, times(1)) in transitOpen_logTaskAddedAndEnterReasonAppFreeformIntent()
144 verify(desktopModeEventLogger, times(1)).logTaskAdded(eq(sessionId), any()) in transitOpen_logTaskAddedAndEnterReasonAppFreeformIntent()
161 verify(desktopModeEventLogger, times(1)) in transitEndDragToDesktop_logTaskAddedAndEnterReasonAppHandleDrag()
163 verify(desktopModeEventLogger, times(1)).logTaskAdded(eq(sessionId), any()) in transitEndDragToDesktop_logTaskAddedAndEnterReasonAppHandleDrag()
179 verify(desktopModeEventLogger, times(1)) in transitEnterDesktopByButtonTap_logTaskAddedAndEnterReasonButtonTap()
181 verify(desktopModeEventLogger, times(1)).logTaskAdded(eq(sessionId), any()) in transitEnterDesktopByButtonTap_logTaskAddedAndEnterReasonButtonTap()
197 verify(desktopModeEventLogger, times(1)) in transitEnterDesktopFromAppFromOverview_logTaskAddedAndEnterReasonAppFromOverview()
199 verify(desktopModeEventLogger, times(1)).logTaskAdded(eq(sessionId), any()) in transitEnterDesktopFromAppFromOverview_logTaskAddedAndEnterReasonAppFromOverview()
215 verify(desktopModeEventLogger, times(1)) in transitEnterDesktopFromKeyboardShortcut_logTaskAddedAndEnterReasonKeyboardShortcut()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
DStationaryThrottlingLocationProviderTest.java26 import static org.mockito.Mockito.times;
99 verify(mListener, times(1)).onReportLocation(any(LocationResult.class)); in testThrottle_lowInterval()
103 verify(mListener, after(1500).times(2)).onReportLocation(any(LocationResult.class)); in testThrottle_lowInterval()
114 verify(mListener, times(1)).onReportLocation(any(LocationResult.class)); in testThrottle_stationaryExit()
121 verify(mListener, timeout(1100).times(2)).onReportLocation(any(LocationResult.class)); in testThrottle_stationaryExit()
124 verify(mDelegate, times(2)).onSetRequest(request); in testThrottle_stationaryExit()
125 verify(mListener, after(1000).times(2)).onReportLocation(any(LocationResult.class)); in testThrottle_stationaryExit()
136 verify(mListener, times(1)).onReportLocation(any(LocationResult.class)); in testThrottle_idleExit()
143 verify(mListener, timeout(1100).times(2)).onReportLocation(any(LocationResult.class)); in testThrottle_idleExit()
146 verify(mDelegate, times(2)).onSetRequest(request); in testThrottle_idleExit()
[all …]
/frameworks/base/core/tests/mockingcoretests/src/android/os/
DBundleRecyclingTest.java29 import static org.mockito.Mockito.times;
64 verify(mParcelSpy, times(1)).recycle(); in bundleClear_whenUnparcelledWithoutLazy_recyclesParcelOnce()
69 verify(mParcelSpy, times(1)).recycle(); in bundleClear_whenUnparcelledWithoutLazy_recyclesParcelOnce()
77 verify(mParcelSpy, times(0)).recycle(); in bundleClear_whenParcelled_recyclesParcel()
80 verify(mParcelSpy, times(1)).recycle(); in bundleClear_whenParcelled_recyclesParcel()
85 verify(mParcelSpy, times(1)).recycle(); in bundleClear_whenParcelled_recyclesParcel()
94 verify(mParcelSpy, times(0)).recycle(); in bundleClear_whenUnparcelledWithLazy_recyclesParcel()
97 verify(mParcelSpy, times(1)).recycle(); in bundleClear_whenUnparcelledWithLazy_recyclesParcel()
102 verify(mParcelSpy, times(1)).recycle(); in bundleClear_whenUnparcelledWithLazy_recyclesParcel()
148 verify(mParcelSpy, times(1)).recycle(); in bundleGet_whenUnparcelledWithLazyValueUnwrapped_recyclesParcel()
[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/core/tests/coretests/src/android/util/
DNtpTrustedTimeTest.java27 import static org.mockito.Mockito.times;
219 inOrder.verify(ntpTrustedTime, times(1)).getDefaultNetwork(); in testForceRefreshDefaultNetwork_noConnectivity()
220 inOrder.verify(ntpTrustedTime, times(1)).isNetworkConnected(network); in testForceRefreshDefaultNetwork_noConnectivity()
235 inOrder.verify(ntpTrustedTime, times(1)).getDefaultNetwork(); in testForceRefreshDefaultNetwork_noActiveNetwork()
253 inOrder.verify(ntpTrustedTime, times(1)).getDefaultNetwork(); in testForceRefreshDefaultNetwork_nullConfig()
254 inOrder.verify(ntpTrustedTime, times(1)).isNetworkConnected(network); in testForceRefreshDefaultNetwork_nullConfig()
255 inOrder.verify(ntpTrustedTime, times(1)).getNtpConfigInternal(); in testForceRefreshDefaultNetwork_nullConfig()
272 inOrder.verify(ntpTrustedTime, times(1)).isNetworkConnected(network); in testForceRefresh_nullConfig()
273 inOrder.verify(ntpTrustedTime, times(1)).getNtpConfigInternal(); in testForceRefresh_nullConfig()
289 inOrder.verify(ntpTrustedTime, times(1)).isNetworkConnected(network); in testForceRefresh_noConnectivity()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/stylus/
DStylusManagerTest.kt29 import com.android.dx.mockito.inline.extended.ExtendedMockito.times in <lambda>()
150 verify(inputManager, times(1)).registerInputDeviceListener(any(), any()) in <lambda>()
170 verify(bluetoothAdapter, times(1)) in <lambda>()
205 verify(stylusCallback, times(1)).onStylusAdded(STYLUS_DEVICE_ID) in <lambda>()
207 verify(otherStylusCallback, times(1)).onStylusAdded(STYLUS_DEVICE_ID) in <lambda>()
217 verify(inputManager, times(1)) in <lambda>()
235 verify(stylusCallback, times(1)).onStylusAdded(STYLUS_DEVICE_ID) in <lambda>()
243 verify(stylusCallback, times(1)).onStylusFirstUsed() in <lambda>()
249 verify({ InputSettings.setStylusEverUsed(mContext, true) }, times(1)) in <lambda>()
257 it.verify(stylusCallback, times(1)).onStylusAdded(BT_STYLUS_DEVICE_ID) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/model/
DSysUiStateTest.java23 import static org.mockito.Mockito.times;
63 verify(mCallback, times(1)).onSystemUiStateChanged(FLAG_1); in addSingle_setFlag()
71 verify(mCallback, times(1)).onSystemUiStateChanged(FLAG_1); in addMultiple_setFlag()
72 verify(mCallback, times(1)) in addMultiple_setFlag()
83 verify(mCallback, times(1)).onSystemUiStateChanged(FLAG_1); in addMultipleRemoveOne_setFlag()
84 verify(mCallback, times(1)) in addMultipleRemoveOne_setFlag()
86 verify(mCallback, times(1)).onSystemUiStateChanged(FLAG_2); in addMultipleRemoveOne_setFlag()
94 verify(mCallback, times(1)).onSystemUiStateChanged(expected); in addMultiple_setFlags()
104 verify(mCallback, times(1)).onSystemUiStateChanged(expected1); in addMultipleRemoveOne_setFlags()
106 verify(mCallback, times(1)).onSystemUiStateChanged(expected2); in addMultipleRemoveOne_setFlags()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCellBroadcastConfigTrackerTest.java32 import static org.mockito.Mockito.times;
113 verify(mSpyCi, times(1)).setGsmBroadcastConfig(gsmCaptor.capture(), msgCaptor.capture()); in testSetCellBroadcastIdRangesSuccess()
124 verify(mSpyCi, times(1)).setGsmBroadcastActivation(eq(true), msgCaptor.capture()); in testSetCellBroadcastIdRangesSuccess()
152 verify(mSpyCi, times(1)).setGsmBroadcastConfig(any(), any()); in testSetCellBroadcastIdRangesSuccess()
153 verify(mSpyCi, times(1)).setCdmaBroadcastConfig(cdmaCaptor.capture(), msgCaptor.capture()); in testSetCellBroadcastIdRangesSuccess()
164 verify(mSpyCi, times(1)).setGsmBroadcastActivation(anyBoolean(), any()); in testSetCellBroadcastIdRangesSuccess()
165 verify(mSpyCi, times(1)).setCdmaBroadcastActivation(eq(true), msgCaptor.capture()); in testSetCellBroadcastIdRangesSuccess()
180 verify(mSpyCi, times(1)).setCdmaBroadcastConfig(any(), any()); in testSetCellBroadcastIdRangesSuccess()
181 verify(mSpyCi, times(1)).setCdmaBroadcastActivation(anyBoolean(), any()); in testSetCellBroadcastIdRangesSuccess()
182 verify(mSpyCi, times(1)).setGsmBroadcastConfig(any(), any()); in testSetCellBroadcastIdRangesSuccess()
[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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/security/
DCellularIdentifierDisclosureNotifierTest.java30 import static org.mockito.Mockito.times;
128 mInOrder.verify(mSafetySource, times(1)) in testAddDisclosureCountIncrements()
130 mInOrder.verify(mSafetySource, times(1)) in testAddDisclosureCountIncrements()
132 mInOrder.verify(mSafetySource, times(1)) in testAddDisclosureCountIncrements()
145 mInOrder.verify(mSafetySource, times(1)) in testSingleDisclosureStartAndEndTimesAreEqual()
164 verify(mSafetySource, times(1)) in testMultipleDisclosuresTimeWindows()
177 mInOrder.verify(mSafetySource, times(1)) in testAddDisclosureThenWindowClose()
179 mInOrder.verify(mSafetySource, times(1)) in testAddDisclosureThenWindowClose()
189 mInOrder.verify(mSafetySource, times(1)) in testAddDisclosureThenWindowClose()
202 mInOrder.verify(mSafetySource, times(1)) in testDisableClosesWindow()
[all …]
/frameworks/proto_logging/stats/express/catalog/
Dvirtual_devices.cfg4 description: "Number of times Virtual Devices are created."
12 description: "Number of times a VirtualDevice adds sensors."
20 description: "Number of times a VirtualDevice adds audio capabilities."
28 description: "Number of times a VirtualDevice adds DPAD input support."
36 description: "Number of times a VirtualDevice adds keyboard input support."
44 description: "Number of times a VirtualDevice adds mouse input support."
52 description: "Number of times a VirtualDevice adds touchscreen input support."
60 description: "Number of times a VirtualDevice adds navigation touchpad input support."
68 description: "Number of times a VirtualDevice adds stylus input support."
76 description: "Number of times a VirtualDevice adds a virtual camera."
[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/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 …]
/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 …]

12345678910>>...33