/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/ |
D | GuidedStepSupportFragmentTest.java | 28 import static org.mockito.Mockito.times; 87 verify(first, times(1)).onCreate(nullable(Bundle.class)); in nextAndBack() 88 verify(first, times(1)).onCreateGuidance(nullable(Bundle.class)); in nextAndBack() 89 verify(first, times(1)).onCreateActions(any(List.class), nullable(Bundle.class)); in nextAndBack() 90 verify(first, times(1)).onCreateButtonActions(any(List.class), nullable(Bundle.class)); in nextAndBack() 91 verify(first, times(1)).onCreateView(any(LayoutInflater.class), any(ViewGroup.class), in nextAndBack() 93 verify(first, times(1)).onViewStateRestored(nullable(Bundle.class)); in nextAndBack() 94 verify(first, times(1)).onStart(); in nextAndBack() 95 verify(first, times(1)).onResume(); in nextAndBack() 98 verify(first, times(1)).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack() [all …]
|
D | GuidedStepFragmentTest.java | 25 import static org.mockito.Mockito.times; 84 verify(first, times(1)).onCreate(nullable(Bundle.class)); in nextAndBack() 85 verify(first, times(1)).onCreateGuidance(nullable(Bundle.class)); in nextAndBack() 86 verify(first, times(1)).onCreateActions(any(List.class), nullable(Bundle.class)); in nextAndBack() 87 verify(first, times(1)).onCreateButtonActions(any(List.class), nullable(Bundle.class)); in nextAndBack() 88 verify(first, times(1)).onCreateView(any(LayoutInflater.class), any(ViewGroup.class), in nextAndBack() 90 verify(first, times(1)).onViewStateRestored(nullable(Bundle.class)); in nextAndBack() 91 verify(first, times(1)).onStart(); in nextAndBack() 92 verify(first, times(1)).onResume(); in nextAndBack() 95 verify(first, times(1)).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CallManagerTest.java | 43 import static org.mockito.Mockito.times; 148 verify(mPhone, times(1)).dial(mCaptorString.capture(), mCaptorInt.capture()); in testBasicDial() 157 verify(mPhone, times(1)).acceptCall(anyInt()); in testBasicAcceptCall() 164 verify(mPhone, times(1)).rejectCall(); in testBasicRejectCall() 170 verify(mPhone, times(0)).sendDtmf(eq('a')); in testSendDtmf() 176 verify(mPhone, times(1)).sendDtmf(eq('a')); in testSendDtmf() 183 verify(mPhone, times(0)).startDtmf(anyChar()); in testStartDtmf() 189 verify(mPhone, times(1)).startDtmf('a'); in testStartDtmf() 196 verify(mPhone, times(0)).stopDtmf(); in testStopDtmf() 202 verify(mPhone, times(1)).stopDtmf(); in testStopDtmf() [all …]
|
D | SubscriptionInfoUpdaterTest.java | 32 import static org.mockito.Mockito.times; 189 verify(mSubscriptionController, times(1)).clearSubInfo(); in testSimAbsent() 190 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsent() 204 verify(mSubscriptionContent, times(0)).put(anyString(), any()); in testSimUnknown() 209 verify(mSubscriptionController, times(0)).clearSubInfo(); in testSimUnknown() 210 verify(mSubscriptionController, times(0)).notifySubscriptionInfoChanged(); in testSimUnknown() 223 verify(mSubscriptionContent, times(0)).put(anyString(), any()); in testSimError() 228 verify(mSubscriptionController, times(0)).clearSubInfo(); in testSimError() 229 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimError() 242 verify(mSubscriptionContent, times(0)).put(anyString(), any()); in testWrongSimState() [all …]
|
D | CarrierSignalAgentTest.java | 42 import static org.mockito.Mockito.times; 85 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 94 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 102 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 127 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers() 136 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers() 146 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers() 178 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotify() 186 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotify() 197 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotify() [all …]
|
D | DeviceStateMonitorTest.java | 25 import static org.mockito.Mockito.times; 87 verify(mSimulatedCommandsVerifier, times(1)).setUnsolResponseFilter(eq(6), in testTethering() 96 verify(mSimulatedCommandsVerifier, times(1)).setUnsolResponseFilter(eq(0), in testTethering() 99 verify(mSimulatedCommandsVerifier, times(1)).sendDeviceState(eq(LOW_DATA_EXPECTED), in testTethering() 110 verify(mSimulatedCommandsVerifier, times(1)).sendDeviceState(eq(CHARGING_STATE), in testCharging() 118 verify(mSimulatedCommandsVerifier, times(1)).setUnsolResponseFilter(eq(0), in testCharging() 121 verify(mSimulatedCommandsVerifier, times(1)).sendDeviceState(eq(LOW_DATA_EXPECTED), in testCharging() 124 verify(mSimulatedCommandsVerifier, times(1)).sendDeviceState(eq(CHARGING_STATE), in testCharging()
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ |
D | ParallaxFloatEffectTest.java | 24 import static org.mockito.Mockito.times; 80 verify(mTarget, times(1)).update(0f); in testOneVariable() 86 verify(mTarget, times(1)).update(0.25f); in testOneVariable() 92 verify(mTarget, times(1)).update(.5f); in testOneVariable() 98 verify(mTarget, times(1)).update(0.75f); in testOneVariable() 104 verify(mTarget, times(1)).update(1f); in testOneVariable() 110 verify(mTarget, times(1)).update(1f); in testOneVariable() 116 verify(mTarget, times(1)).update(0f); in testOneVariable() 122 verify(mTarget, times(1)).update(1f); in testOneVariable() 128 verify(mTarget, times(1)).update(0f); in testOneVariable() [all …]
|
D | ParallaxIntEffectTest.java | 21 import static org.mockito.Mockito.times; 77 verify(mTarget, times(1)).update(0f); in testOneVariable() 83 verify(mTarget, times(1)).update(0.25f); in testOneVariable() 89 verify(mTarget, times(1)).update(.5f); in testOneVariable() 95 verify(mTarget, times(1)).update(0.75f); in testOneVariable() 101 verify(mTarget, times(1)).update(1f); in testOneVariable() 107 verify(mTarget, times(1)).update(1f); in testOneVariable() 113 verify(mTarget, times(1)).update(0f); in testOneVariable() 119 verify(mTarget, times(1)).update(1f); in testOneVariable() 125 verify(mTarget, times(1)).update(0f); in testOneVariable() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/ |
D | OffloadControllerTest.java | 39 import static org.mockito.Mockito.times; 159 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testNoSettingsValueDefaultDisabledDoesNotStart() 179 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testNoSettingsValueDefaultEnabledDoesStart() 180 inOrder.verify(mHardware, times(1)).initOffloadConfig(); in testNoSettingsValueDefaultEnabledDoesStart() 181 inOrder.verify(mHardware, times(1)).initOffloadControl( in testNoSettingsValueDefaultEnabledDoesStart() 195 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testSettingsAllowsStart() 196 inOrder.verify(mHardware, times(1)).initOffloadConfig(); in testSettingsAllowsStart() 197 inOrder.verify(mHardware, times(1)).initOffloadControl( in testSettingsAllowsStart() 211 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testSettingsDisablesStart() 226 inOrder.verify(mHardware, times(1)).getDefaultTetherOffloadDisabled(); in testSetUpstreamLinkPropertiesWorking() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | FingerprintGestureDispatcherTest.java | 39 import static org.mockito.Mockito.times; 82 verify(mNonGestureCapturingClient, times(0)) in testOneNonCapturingService_doesNotCrashOrConsumeGestures() 84 verify(mNonGestureCapturingClient, times(0)).onFingerprintGesture(anyInt()); in testOneNonCapturingService_doesNotCrashOrConsumeGestures() 93 verify(mGestureCapturingClient, times(1)).onFingerprintGestureDetectionActiveChanged(false); in testOneCapturingService_notifiesClientOfActivityChanges() 94 verify(mGestureCapturingClient, times(0)).onFingerprintGestureDetectionActiveChanged(true); in testOneCapturingService_notifiesClientOfActivityChanges() 96 verify(mGestureCapturingClient, times(1)).onFingerprintGestureDetectionActiveChanged(false); in testOneCapturingService_notifiesClientOfActivityChanges() 97 verify(mGestureCapturingClient, times(1)).onFingerprintGestureDetectionActiveChanged(true); in testOneCapturingService_notifiesClientOfActivityChanges() 106 verify(mGestureCapturingClient, times(1)).onFingerprintGesture( in testOneCapturingService_consumesGesturesAndPassesThemAlong() 110 verify(mGestureCapturingClient, times(1)).onFingerprintGesture( in testOneCapturingService_consumesGesturesAndPassesThemAlong() 114 verify(mGestureCapturingClient, times(1)).onFingerprintGesture( in testOneCapturingService_consumesGesturesAndPassesThemAlong() [all …]
|
D | FingerprintGestureControllerTest.java | 34 import static org.mockito.Mockito.times; 83 verify(mMockFingerprintGestureCallback, times(1)) in testDetectionActiveCallback_noHandler_shouldCallback() 86 verify(mMockFingerprintGestureCallback, times(1)) in testDetectionActiveCallback_noHandler_shouldCallback() 107 verify(mMockFingerprintGestureCallback, times(0)) in testDetectionActiveCallback_withHandler_shouldPostRunnableToHandler() 110 verify(mMockFingerprintGestureCallback, times(1)) in testDetectionActiveCallback_withHandler_shouldPostRunnableToHandler() 114 verify(mMockFingerprintGestureCallback, times(0)) in testDetectionActiveCallback_withHandler_shouldPostRunnableToHandler() 117 verify(mMockFingerprintGestureCallback, times(1)) in testDetectionActiveCallback_withHandler_shouldPostRunnableToHandler() 134 verify(mMockFingerprintGestureCallback, times(1)) in testGestureCallback_noHandler_shouldCallListener() 154 verify(mMockFingerprintGestureCallback, times(0)) in testGestureCallback_withHandler_shouldPostRunnableToHandler() 157 verify(mMockFingerprintGestureCallback, times(1)) in testGestureCallback_withHandler_shouldPostRunnableToHandler()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerNotificationWarningsTest.java | 29 import static org.mockito.Mockito.times; 80 verify(mMockNotificationManager, times(1)) in testShowInvalidChargerNotification_NotifyAsUser() 82 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testShowInvalidChargerNotification_NotifyAsUser() 90 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissInvalidChargerNotification_CancelAsUser() 97 verify(mMockNotificationManager, times(1)) in testShowLowBatteryNotification_NotifyAsUser() 99 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testShowLowBatteryNotification_NotifyAsUser() 107 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissLowBatteryNotification_CancelAsUser() 124 verify(mMockNotificationManager, times(1)) in testShowHighTemperatureWarning_NotifyAsUser() 132 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissHighTemperatureWarning_CancelAsUser() 139 verify(mMockNotificationManager, times(1)) in testShowThermalShutdownWarning_NotifyAsUser() [all …]
|
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/ |
D | InitCallbackTest.java | 22 import static org.mockito.Mockito.times; 52 verify(initCallback1, times(1)).onInitialized(); in testRegisterInitCallback_callsSuccessCallback() 53 verify(initCallback2, times(1)).onInitialized(); in testRegisterInitCallback_callsSuccessCallback() 72 verify(initCallback1, times(1)).onFailed(nullable(Throwable.class)); in testRegisterInitCallback_callsFailCallback() 73 verify(initCallback2, times(1)).onFailed(nullable(Throwable.class)); in testRegisterInitCallback_callsFailCallback() 92 verify(initCallback, times(1)).onFailed(nullable(Throwable.class)); in testRegisterInitCallback_callsFailCallback_whenOnFailCalledByLoader() 111 verify(initCallback, times(1)).onFailed(nullable(Throwable.class)); in testRegisterInitCallback_callsFailCallback_whenMetadataRepoIsNull() 147 verify(callbackUnregister, times(0)).onFailed(any(Throwable.class)); in testUnregisterInitCallback_doesNotInteractWithCallback() 148 verify(callbackConfigUnregister, times(0)).onFailed(nullable(Throwable.class)); in testUnregisterInitCallback_doesNotInteractWithCallback() 149 verify(callback, times(1)).onFailed(nullable(Throwable.class)); in testUnregisterInitCallback_doesNotInteractWithCallback() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | TetheringTest.java | 39 import static org.mockito.Mockito.times; 264 verify(mNMService, times(1)).getInterfaceConfig(mTestIfname); in verifyInterfaceServingModeStarted() 265 verify(mNMService, times(1)) in verifyInterfaceServingModeStarted() 267 verify(mNMService, times(1)).tetherInterface(mTestIfname); in verifyInterfaceServingModeStarted() 311 verify(mUsbManager, times(1)).setCurrentFunction(UsbManager.USB_FUNCTION_RNDIS, false); in testUsbConfiguredBroadcastStartsTethering() 327 verify(mNMService, times(1)).listInterfaces(); in testUsbConfiguredBroadcastStartsTethering() 355 verify(mNMService, times(1)).setIpForwardingEnabled(true); in workingLocalOnlyHotspotEnrichedApBroadcast() 356 verify(mNMService, times(1)).startTethering(any(String[].class)); in workingLocalOnlyHotspotEnrichedApBroadcast() 364 verify(mConnectivityManager, times(1)).registerNetworkCallback( in workingLocalOnlyHotspotEnrichedApBroadcast() 366 verify(mConnectivityManager, times(1)).registerDefaultNetworkCallback( in workingLocalOnlyHotspotEnrichedApBroadcast() [all …]
|
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/widget/ |
D | EmojiTextWatcherTest.java | 26 import static org.mockito.Mockito.times; 63 verify(mEmojiCompat, times(1)).process(sameCharSequence(testString), eq(0), eq(1), in testOnTextChanged_callsProcess() 65 verify(mEmojiCompat, times(0)).registerInitCallback(any(EmojiCompat.InitCallback.class)); in testOnTextChanged_callsProcess() 75 verify(mEmojiCompat, times(0)).process(any(Spannable.class), anyInt(), anyInt(), anyInt(), in testOnTextChanged_whenEmojiCompatLoading() 77 verify(mEmojiCompat, times(1)).registerInitCallback(any(EmojiCompat.InitCallback.class)); in testOnTextChanged_whenEmojiCompatLoading() 87 verify(mEmojiCompat, times(0)).process(any(Spannable.class), anyInt(), anyInt(), anyInt(), in testOnTextChanged_whenEmojiCompatLoadFailed() 89 verify(mEmojiCompat, times(0)).registerInitCallback(any(EmojiCompat.InitCallback.class)); in testOnTextChanged_whenEmojiCompatLoadFailed() 101 verify(mEmojiCompat, times(1)).process(any(Spannable.class), anyInt(), anyInt(), anyInt(), in testSetEmojiReplaceStrategy() 108 verify(mEmojiCompat, times(1)).process(any(Spannable.class), anyInt(), anyInt(), anyInt(), in testSetEmojiReplaceStrategy()
|
D | SpannableBuilderTest.java | 32 import static org.mockito.Mockito.times; 149 verify(mWatcher, times(1)).beforeTextChanged(any(CharSequence.class), anyInt(), in testBlocksSpanCallbacks_forEmojiSpans() 151 verify(mWatcher, times(1)).onTextChanged(any(CharSequence.class), anyInt(), anyInt(), in testBlocksSpanCallbacks_forEmojiSpans() 153 verify(mWatcher, times(1)).afterTextChanged(any(Editable.class)); in testBlocksSpanCallbacks_forEmojiSpans() 173 verify((SpanWatcher) mWatcher, times(1)).onSpanRemoved(any(Spannable.class), in testDoesNotBlockSpanCallbacks_forNonEmojiSpans() 177 verify(mWatcher, times(1)).beforeTextChanged(any(CharSequence.class), anyInt(), anyInt(), in testDoesNotBlockSpanCallbacks_forNonEmojiSpans() 179 verify(mWatcher, times(1)).onTextChanged(any(CharSequence.class), anyInt(), anyInt(), in testDoesNotBlockSpanCallbacks_forNonEmojiSpans() 181 verify(mWatcher, times(1)).afterTextChanged(any(Editable.class)); in testDoesNotBlockSpanCallbacks_forNonEmojiSpans() 205 verify(spanWatcher, times(1)).onSpanRemoved(any(Spannable.class), same(span), in testDoesNotBlockSpanCallbacksForOtherWatchers() 209 verify(textWatcher, times(1)).beforeTextChanged(any(CharSequence.class), anyInt(), in testDoesNotBlockSpanCallbacksForOtherWatchers() [all …]
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/media/ |
D | PlaybackGlueTest.java | 25 import static org.mockito.Mockito.times; 56 Mockito.verify(glue, times(1)).onAttachedToHost(host); in glueAndHostInteraction() 61 Mockito.verify(glue, times(1)).onHostStart(); in glueAndHostInteraction() 64 Mockito.verify(glue, times(1)).onHostResume(); in glueAndHostInteraction() 67 Mockito.verify(glue, times(1)).onHostPause(); in glueAndHostInteraction() 70 Mockito.verify(glue, times(1)).onHostStop(); in glueAndHostInteraction() 74 Mockito.verify(glue, times(1)).onDetachedFromHost(); in glueAndHostInteraction() 75 Mockito.verify(glue2, times(1)).onAttachedToHost(host); in glueAndHostInteraction() 83 Mockito.verify(glue2, times(1)).onDetachedFromHost(); in glueAndHostInteraction() 138 Mockito.verify(glue, times(1)).play(); in playWhenPrepared()
|
D | PlaybackTransportControlGlueTest.java | 26 import static org.mockito.Mockito.times; 103 Mockito.verify(mAdapter, times(1)).play(); in playMockAdapter() 206 Mockito.verify(mAdapter, times(1)).play(); in playerAdapterTest() 208 Mockito.verify(mAdapter, times(1)).pause(); in playerAdapterTest() 210 Mockito.verify(mAdapter, times(1)).seekTo(123L); in playerAdapterTest() 260 Mockito.verify(hostCallback, times(1)).onBufferingStateChanged(true); in savePlayerAdapterEventBeforeAttachToHost() 261 Mockito.verify(hostCallback, times(1)).onVideoSizeChanged(200, 150); in savePlayerAdapterEventBeforeAttachToHost() 262 Mockito.verify(hostCallback, times(1)).onError(12, "abc"); in savePlayerAdapterEventBeforeAttachToHost() 277 Mockito.verify(hostCallback, times(1)).onBufferingStateChanged(false); in savePlayerAdapterEventBeforeAttachToHost() 278 Mockito.verify(hostCallback, times(0)).onVideoSizeChanged(anyInt(), anyInt()); in savePlayerAdapterEventBeforeAttachToHost() [all …]
|
D | PlaybackBannerControlGlueTest.java | 25 import static org.mockito.Mockito.times; 193 Mockito.verify(impl, times(1)).play(); in playerAdapterTest() 195 Mockito.verify(impl, times(1)).pause(); in playerAdapterTest() 198 Mockito.verify(impl, times(2)).seekTo(123L); in playerAdapterTest() 248 Mockito.verify(hostCallback, times(1)).onBufferingStateChanged(true); in savePlayerAdapterEventBeforeAttachToHost() 249 Mockito.verify(hostCallback, times(1)).onVideoSizeChanged(200, 150); in savePlayerAdapterEventBeforeAttachToHost() 250 Mockito.verify(hostCallback, times(1)).onError(12, "abc"); in savePlayerAdapterEventBeforeAttachToHost() 265 Mockito.verify(hostCallback, times(1)).onBufferingStateChanged(false); in savePlayerAdapterEventBeforeAttachToHost() 266 Mockito.verify(hostCallback, times(0)).onVideoSizeChanged(anyInt(), anyInt()); in savePlayerAdapterEventBeforeAttachToHost() 267 Mockito.verify(hostCallback, times(0)).onError(anyInt(), anyString()); in savePlayerAdapterEventBeforeAttachToHost() [all …]
|
/frameworks/base/tests/net/java/android/net/nsd/ |
D | NsdManagerTest.java | 28 import static org.mockito.Mockito.times; 81 verify(listener, timeout(mTimeoutMs).times(1)).onResolveFailed(request, err); in testResolveService() 86 verify(listener, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testResolveService() 108 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testParallelResolveService() 109 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceResolved(reply); in testParallelResolveService() 132 verify(listener2, timeout(mTimeoutMs).times(1)).onServiceRegistered(request2); in testRegisterService() 136 verify(listener1, timeout(mTimeoutMs).times(1)).onRegistrationFailed(request1, err); in testRegisterService() 143 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceRegistered(request1); in testRegisterService() 151 verify(listener1, timeout(mTimeoutMs).times(1)).onServiceUnregistered(request1); in testRegisterService() 159 verify(listener2, timeout(mTimeoutMs).times(1)).onUnregistrationFailed(request2, err); in testRegisterService() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | TouchAnimatorTest.java | 191 private void verifyOnAnimationAtStart(int times) { in verifyOnAnimationAtStart() argument 192 Mockito.verify(mTouchListener, Mockito.times(times)).onAnimationAtStart(); in verifyOnAnimationAtStart() 195 private void verifyOnAnimationAtEnd(int times) { in verifyOnAnimationAtEnd() argument 196 Mockito.verify(mTouchListener, Mockito.times(times)).onAnimationAtEnd(); in verifyOnAnimationAtEnd() 199 private void verifyOnAnimationStarted(int times) { in verifyOnAnimationStarted() argument 200 Mockito.verify(mTouchListener, Mockito.times(times)).onAnimationStarted(); in verifyOnAnimationStarted()
|
D | TileLayoutTest.java | 27 import static org.mockito.Mockito.times; 71 verify(tileRecord.tile, times(1)).setListening(mTileLayout, false); in testAddTile_CallsSetListeningOnTile() 79 verify(tileRecord.tile, times(1)).setListening(mTileLayout, true); in testSetListening_CallsSetListeningOnTile() 87 verify(tileRecord.tile, times(1)).setListening(any(), anyBoolean()); in testSetListening_SameValueIsNoOp() 95 verify(tileRecord.tile, times(1)).setListening(mTileLayout, true); in testSetListening_ChangesValueForAddingFutureTiles() 104 verify(tileRecord.tile, times(1)).setListening(mTileLayout, false); in testRemoveTile_CallsSetListeningFalseOnTile() 115 verify(tileRecord1.tile, times(1)).setListening(mTileLayout, false); in testRemoveAllViews_CallsSetListeningFalseOnAllTiles() 116 verify(tileRecord2.tile, times(1)).setListening(mTileLayout, false); in testRemoveAllViews_CallsSetListeningFalseOnAllTiles() 125 verify(tileRecord.tileView, times(1)).layout(anyInt(), anyInt(), anyInt(), anyInt()); in testMeasureLayout_CallsLayoutOnTile() 142 verify(tileRecord1.tileView, times(1)) in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds() [all …]
|
/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/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelUidCpuFreqTimeReaderTest.java | 69 final long[][] times = new long[uids.length][freqs.length]; in testReadDelta() local 72 times[i][j] = uids[i] * freqs[j] * 10; in testReadDelta() 76 .thenReturn(getFreqsLine(freqs), getUidTimesLines(uids, times)); in testReadDelta() 80 verify(mCallback).onUidCpuFreqTime(uids[i], times[i]); in testReadDelta() 89 newTimes1[i][j] = (times[i][j] + uids[i] + freqs[j]) * 10; in testReadDelta() 97 verify(mCallback).onUidCpuFreqTime(uids[i], subtract(newTimes1[i], times[i])); in testReadDelta() 145 final long[][] times = new long[uids.length][freqs.length]; in testReadDelta_malformedData() local 148 times[i][j] = uids[i] * freqs[j] * 10; in testReadDelta_malformedData() 152 .thenReturn(getFreqsLine(freqs), getUidTimesLines(uids, times)); in testReadDelta_malformedData() 156 verify(mCallback).onUidCpuFreqTime(uids[i], times[i]); in testReadDelta_malformedData() [all …]
|
/frameworks/base/media/java/android/media/ |
D | VolumeShaper.java | 389 final float times[] = new float[POINTS]; 393 times[i] = (float)i / (POINTS - 1); 394 final float sine = (float)Math.sin(times[i] * Math.PI / 2.); 400 .setCurve(times, sines) 405 .setCurve(times, scurve) 512 final float[] times = new float[length]; 515 times[i] = p.readFloat(); 525 times, 572 @NonNull float[] times, in Configuration() argument 580 mTimes = times; in Configuration() [all …]
|