Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/native/services/surfaceflinger/tests/unittests/
DRefreshRateStatsTest.cpp80 std::unordered_map<std::string, int64_t> times = mRefreshRateStats->getTotalTimes(); in TEST_F() local
81 ASSERT_EQ(1, times.size()); in TEST_F()
82 EXPECT_NE(0u, times.count("ScreenOff")); in TEST_F()
86 int screenOff = times["ScreenOff"]; in TEST_F()
90 times = mRefreshRateStats->getTotalTimes(); in TEST_F()
91 EXPECT_LT(screenOff, times["ScreenOff"]); in TEST_F()
92 EXPECT_EQ(0u, times.count("90fps")); in TEST_F()
98 times = mRefreshRateStats->getTotalTimes(); in TEST_F()
99 EXPECT_EQ(screenOff, times["ScreenOff"]); in TEST_F()
100 ASSERT_EQ(1u, times.count("90fps")); in TEST_F()
[all …]
/frameworks/ml/nn/tools/systrace_parser/parser/
Daggregate.py50 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/
DAppStateTrackerTest.java35 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/
DNotificationSwipeHelperTest.java26 import static org.mockito.Mockito.times;
106 verify(mSwipeHelper, times(1)).setExposedMenuView(null); in testClearExposedMenuView()
122 verify(mSwipeHelper, times(1)).setTranslatingParentView(null); in testClearTranslatingParentView()
141 verify(mSwipeHelper, times(1)).setCurrentMenuRow(null); in testClearCurrentMenuRow()
154 verify(mSwipeHelper, times(1)).clearCurrentMenuRow(); in testOnDownUpdate_ExpandableNotificationRow()
155 verify(mHandler, times(1)).removeCallbacks(mFalsingCheck); in testOnDownUpdate_ExpandableNotificationRow()
156 verify(mSwipeHelper, times(1)).resetExposedMenuView(true, false); in testOnDownUpdate_ExpandableNotificationRow()
157 verify(mSwipeHelper, times(1)).initializeRow(mNotificationRow); in testOnDownUpdate_ExpandableNotificationRow()
170 verify(mSwipeHelper, times(1)).clearCurrentMenuRow(); in testOnDownUpdate_notExpandableNotificationRow()
171 verify(mHandler, times(1)).removeCallbacks(mFalsingCheck); in testOnDownUpdate_notExpandableNotificationRow()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DFileUpdaterTest.java26 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/base/services/tests/servicestests/src/com/android/server/power/
DThermalManagerServiceTest.java168 .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/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNavigationBarRotationContextTest.java22 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionInfoUpdaterTest.java31 import static org.mockito.Mockito.times;
186 verify(mSubscriptionController, times(1)).clearSubInfoRecord(eq(FAKE_SUB_ID_1)); in testSimAbsent()
192 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsent()
206 verify(mSubscriptionController, times(1)).clearSubInfoRecord(eq(FAKE_SUB_ID_1)); in testSimAbsentAndInactive()
212 verify(mConfigManager, times(0)).updateConfigForPhoneId(eq(FAKE_SUB_ID_1), in testSimAbsentAndInactive()
214 verify(mContext, times(0)).sendBroadcast(any(), anyString()); in testSimAbsentAndInactive()
215 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsentAndInactive()
226 verify(mSubscriptionContent, times(0)).put(anyString(), any()); in testSimUnknown()
231 verify(mSubscriptionController, times(0)).clearSubInfo(); in testSimUnknown()
232 verify(mSubscriptionController, times(0)).notifySubscriptionInfoChanged(); in testSimUnknown()
[all …]
DCarrierSignalAgentTest.java27 import static org.mockito.Mockito.times;
91 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers()
100 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers()
108 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers()
133 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers()
142 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers()
152 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers()
181 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotify()
189 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotify()
200 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotify()
[all …]
DCarrierActionAgentTest.java21 import static org.mockito.Mockito.times;
98 verify(mDataActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
99 verify(mRadioActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
105 verify(mDataActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
108 verify(mRadioActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
119 verify(mDataActionHandler, times(2)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
123 verify(mRadioActionHandler, times(2)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
140 verify(mDataActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange()
141 verify(mRadioActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange()
148 verify(mDataActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange()
[all …]
DCallManagerTest.java31 import static org.mockito.Mockito.times;
114 verify(mPhone, times(1)).dial(mCaptorString.capture(), dialArgsCaptor.capture()); in testBasicDial()
124 verify(mPhone, times(1)).rejectCall(); in testBasicRejectCall()
130 verify(mPhone, times(0)).sendDtmf(eq('a')); in testSendDtmf()
136 verify(mPhone, times(1)).sendDtmf(eq('a')); in testSendDtmf()
143 verify(mPhone, times(0)).startDtmf(anyChar()); in testStartDtmf()
149 verify(mPhone, times(1)).startDtmf('a'); in testStartDtmf()
156 verify(mPhone, times(0)).stopDtmf(); in testStopDtmf()
162 verify(mPhone, times(1)).stopDtmf(); in testStopDtmf()
169 verify(mPhone, times(0)).sendBurstDtmf(anyString(), anyInt(), anyInt(), (Message) any()); in testSendBurstDtmf()
[all …]
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java72 import static org.mockito.Mockito.times;
542 verify(mStatsManager, times(1)).registerNetworkStatsProvider(anyString(), any()); in setUp()
662 verify(mNetd, times(1)).interfaceSetCfg(any(InterfaceConfigurationParcel.class)); in verifyInterfaceServingModeStarted()
663 verify(mNetd, times(1)).tetherInterfaceAdd(ifname); in verifyInterfaceServingModeStarted()
664 verify(mNetd, times(1)).networkAddInterface(INetd.LOCAL_NET_ID, ifname); in verifyInterfaceServingModeStarted()
665 verify(mNetd, times(2)).networkAddRoute(eq(INetd.LOCAL_NET_ID), eq(ifname), in verifyInterfaceServingModeStarted()
694 verify(mNotificationUpdater, times(1)).onDownstreamChanged(DOWNSTREAM_NONE); in failingLocalOnlyHotspotLegacyApBroadcast()
707 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NCM); in prepareNcmTethering()
718 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in prepareUsbTethering()
736 verify(mNetd, times(1)).interfaceGetList(); in testUsbConfiguredBroadcastStartsTethering()
[all …]
DOffloadControllerTest.java50 import static org.mockito.Mockito.times;
191 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testNoSettingsValueDefaultDisabledDoesNotStart()
209 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testNoSettingsValueDefaultEnabledDoesStart()
210 inOrder.verify(mHardware, times(1)).initOffloadConfig(); in testNoSettingsValueDefaultEnabledDoesStart()
211 inOrder.verify(mHardware, times(1)).initOffloadControl( in testNoSettingsValueDefaultEnabledDoesStart()
225 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testSettingsAllowsStart()
226 inOrder.verify(mHardware, times(1)).initOffloadConfig(); in testSettingsAllowsStart()
227 inOrder.verify(mHardware, times(1)).initOffloadControl( in testSettingsAllowsStart()
241 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testSettingsDisablesStart()
256 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testSetUpstreamLinkPropertiesWorking()
[all …]
/frameworks/native/libs/cputimeinstate/
Dtesttimeinstate.cpp42 auto times = getUidCpuFreqTimes(0); in TEST() local
43 ASSERT_TRUE(times.has_value()); in TEST()
44 EXPECT_FALSE(times->empty()); in TEST()
108 auto times = getUidCpuFreqTimes(0); in TEST() local
109 ASSERT_TRUE(times.has_value()); in TEST()
114 ASSERT_NO_FATAL_FAILURE(TestUidTimesConsistent(*times, *concurrentTimes)); in TEST()
302 auto times = kv.second; in TEST() local
304 for (uint32_t policy = 0; policy < times.size(); ++policy) { in TEST()
305 for (uint32_t freqIdx = 0; freqIdx < times[policy].size(); ++freqIdx) { in TEST()
306 auto before = times[policy][freqIdx]; in TEST()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DFingerprintGestureDispatcherTest.java23 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 …]
DFingerprintGestureControllerTest.java25 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/services/tests/servicestests/src/com/android/server/compat/
DPlatformCompatTest.java26 import static org.mockito.internal.verification.VerificationModeFactory.times;
146 verify(mListener1, times(2)).onCompatChange(PACKAGE_NAME); in testListenerCalledOnSetOverrides()
169 verify(mListener1, times(1)).onCompatChange(PACKAGE_NAME); in testListenerCalledOnSetOverridesTwoListeners()
181 verify(mListener1, times(1)).onCompatChange(PACKAGE_NAME); in testListenerCalledOnSetOverridesTwoListeners()
182 verify(mListener2, times(1)).onCompatChange(PACKAGE_NAME); in testListenerCalledOnSetOverridesTwoListeners()
194 verify(mListener1, times(2)).onCompatChange(PACKAGE_NAME); in testListenerCalledOnSetOverridesForTest()
205 verify(mListener1, times(1)).onCompatChange(PACKAGE_NAME); in testListenerCalledOnSetOverridesTwoListenersForTest()
217 verify(mListener1, times(1)).onCompatChange(PACKAGE_NAME); in testListenerCalledOnSetOverridesTwoListenersForTest()
218 verify(mListener2, times(1)).onCompatChange(PACKAGE_NAME); in testListenerCalledOnSetOverridesTwoListenersForTest()
229 verify(mListener1, times(1)).onCompatChange(PACKAGE_NAME); in testListenerCalledOnClearOverrides()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBinderDeathDispatcherTest.java22 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 …]
DKernelCpuUidActiveTimeReaderTest.java98 final long[][] times = increaseTime(new long[mUids.length][mCpus]); in testReadDelta() local
99 setCpusAndData(times); in testReadDelta()
102 mCallback.verify(mUids[i], getActiveTime(times[i])); in testReadDelta()
108 final long[][] newTimes1 = increaseTime(times); in testReadDelta()
112 mCallback.verify(mUids[i], getActiveTime(newTimes1[i]) - getActiveTime(times[i])); in testReadDelta()
227 private void setCpusAndData(long[][] times) throws IOException { in setCpusAndData() argument
232 data.put(mUids[i], times[i]); in setCpusAndData()
236 writeToFile(mHeadline + uidLines(mUids, times)); in setCpusAndData()
249 private String uidLines(int[] uids, long[][] times) { in uidLines() argument
253 for (int j = 0; j < times[i].length; j++) { in uidLines()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/textservices/
DLazyIntToIntMapTest.java24 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/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()
114 for (auto &[uid, times] : *data) { in KernelCpuUidActiveTimeBpfMapReader_readBpfData()
116 for (auto &time : times.active) time /= NSEC_PER_MSEC; in KernelCpuUidActiveTimeBpfMapReader_readBpfData()
117 jlongArray ar = getUidArray(env, sparseAr, uid, times.active.size()); in KernelCpuUidActiveTimeBpfMapReader_readBpfData()
119 env->SetLongArrayRegion(ar, 0, times.active.size(), in KernelCpuUidActiveTimeBpfMapReader_readBpfData()
120 reinterpret_cast<const jlong *>(times.active.data())); in KernelCpuUidActiveTimeBpfMapReader_readBpfData()
148 for (auto &[uid, times] : *data) { in KernelCpuUidClusterTimeBpfMapReader_readBpfData()
150 for (const auto &subVec : times.policy) s += subVec.size(); in KernelCpuUidClusterTimeBpfMapReader_readBpfData()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerNotificationWarningsTest.java28 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/
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/base/tests/net/java/android/net/nsd/
DNsdManagerTest.java96 verify(listener, timeout(mTimeoutMs).times(1)).onResolveFailed(request, err); in testResolveService()
101 verify(listener, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testResolveService()
123 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testParallelResolveService()
124 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testParallelResolveService()
147 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceRegistered(request2); in testRegisterService()
151 verify(listener1, timeout(mTimeoutMs).times(1)).onRegistrationFailed(request1, err); in testRegisterService()
158 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceRegistered(request1); in testRegisterService()
166 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceUnregistered(request1); in testRegisterService()
174 verify(listener2, timeout(mTimeoutMs).times(1)).onUnregistrationFailed(request2, err); in testRegisterService()
202 verify(listener, timeout(mTimeoutMs).times(1)).onStartDiscoveryFailed("a_type", err); in testDiscoverService()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java27 import static org.mockito.Mockito.times;
116 verify(mNotificationManager, times(1)) in verifyTitleByNetwork()
120 verify(mResources, times(1)).getString(title, eq(any())); in verifyTitleByNetwork()
122 verify(mResources, times(1)).getString(title); in verifyTitleByNetwork()
124 verify(mResources, times(1)).getString(R.string.private_dns_broken_detailed); in verifyTitleByNetwork()
167 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); in testNotificationsShownAndCleared()
168 verify(mNotificationManager, times(1)).cancelAsUser(eq(tag), eq(eventId), any()); in testNotificationsShownAndCleared()
183 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); in testNoInternetNotificationsNotShownForCellular()
204 verify(mNotificationManager, times(1)) in testDuplicatedNotificationsNoInternetThenSignIn()
209 verify(mNotificationManager, times(1)) in testDuplicatedNotificationsNoInternetThenSignIn()
[all …]

12345678910>>...14