/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/ |
D | GuidedStepSupportFragmentTest.java | 27 import static org.mockito.Mockito.times; 86 verify(first, times(1)).onCreate(any(Bundle.class)); in nextAndBack() 87 verify(first, times(1)).onCreateGuidance(any(Bundle.class)); in nextAndBack() 88 verify(first, times(1)).onCreateActions(any(List.class), any(Bundle.class)); in nextAndBack() 89 verify(first, times(1)).onCreateButtonActions(any(List.class), any(Bundle.class)); in nextAndBack() 90 verify(first, times(1)).onCreateView(any(LayoutInflater.class), any(ViewGroup.class), in nextAndBack() 92 verify(first, times(1)).onViewStateRestored(any(Bundle.class)); in nextAndBack() 93 verify(first, times(1)).onStart(); in nextAndBack() 94 verify(first, times(1)).onResume(); in nextAndBack() 97 verify(first, times(1)).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack() [all …]
|
D | GuidedStepFragmentTest.java | 24 import static org.mockito.Mockito.times; 83 verify(first, times(1)).onCreate(any(Bundle.class)); in nextAndBack() 84 verify(first, times(1)).onCreateGuidance(any(Bundle.class)); in nextAndBack() 85 verify(first, times(1)).onCreateActions(any(List.class), any(Bundle.class)); in nextAndBack() 86 verify(first, times(1)).onCreateButtonActions(any(List.class), any(Bundle.class)); in nextAndBack() 87 verify(first, times(1)).onCreateView(any(LayoutInflater.class), any(ViewGroup.class), in nextAndBack() 89 verify(first, times(1)).onViewStateRestored(any(Bundle.class)); in nextAndBack() 90 verify(first, times(1)).onStart(); in nextAndBack() 91 verify(first, times(1)).onResume(); in nextAndBack() 94 verify(first, times(1)).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack() [all …]
|
D | ListRowDataAdapterTest.java | 20 import static org.mockito.Mockito.times; 75 verify(dataObserver, times(1)).onItemRangeChanged(0, 1); in itemRangeChangedTest() 97 verify(dataObserver, times(0)).onItemRangeInserted(anyInt(), anyInt()); in adapterSize_nonVisibleRowPresent() 121 verify(dataObserver, times(1)).onItemRangeInserted(2, 3); in adapterSize_visibleRowInserted() 145 verify(dataObserver, times(0)).onItemRangeInserted(anyInt(), anyInt()); in adapterSize_nonVisibleRowInserted() 149 verify(dataObserver, times(0)).onItemRangeInserted(anyInt(), anyInt()); in adapterSize_nonVisibleRowInserted() 153 verify(dataObserver, times(1)).onItemRangeInserted(5, 4); in adapterSize_nonVisibleRowInserted() 175 verify(dataObserver, times(1)).onItemRangeRemoved(2, 2); in adapterSize_visibleRowRemoved() 197 verify(dataObserver, times(1)).onItemRangeRemoved(4, 1); in adapterSize_nonVisibleRowRemoved() 201 verify(dataObserver, times(0)).onItemRangeInserted(anyInt(), anyInt()); in adapterSize_nonVisibleRowRemoved() [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 | 27 import static org.mockito.Mockito.times; 158 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimAbsent() 172 verify(mSubscriptionContent, times(0)).put(anyString(), any()); in testSimUnknown() 177 verify(mSubscriptionController, times(0)).notifySubscriptionInfoChanged(); in testSimUnknown() 190 verify(mSubscriptionContent, times(0)).put(anyString(), any()); in testSimError() 195 verify(mSubscriptionController, times(1)).notifySubscriptionInfoChanged(); in testSimError() 208 verify(mSubscriptionContent, times(0)).put(anyString(), any()); in testWrongSimState() 211 verify(mConfigManager, times(0)).updateConfigForPhoneId(eq(2), in testWrongSimState() 213 verify(mSubscriptionController, times(0)).notifySubscriptionInfoChanged(); in testWrongSimState() 253 verify(mSubscriptionManager, times(1)).addSubscriptionInfoRecord( in testSimLoaded() [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()
|
D | CarrierSignalAgentTest.java | 40 import static org.mockito.Mockito.times; 83 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 92 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 100 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 125 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers() 134 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers() 144 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers() 176 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotify() 184 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotify() 195 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotify() [all …]
|
/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/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; 79 verify(mMockNotificationManager, times(1)) in testShowInvalidChargerNotification_NotifyAsUser() 81 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testShowInvalidChargerNotification_NotifyAsUser() 89 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testDismissInvalidChargerNotification_CancelAsUser() 96 verify(mMockNotificationManager, times(1)) in testShowLowBatteryNotification_NotifyAsUser() 98 verify(mMockNotificationManager, times(1)).cancelAsUser(anyString(), in testShowLowBatteryNotification_NotifyAsUser() 106 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/tests/net/java/com/android/server/connectivity/ |
D | TetheringTest.java | 34 import static org.mockito.Mockito.times; 223 verify(mNMService, times(1)).getInterfaceConfig(mTestIfname); in verifyInterfaceServingModeStarted() 224 verify(mNMService, times(1)) in verifyInterfaceServingModeStarted() 226 verify(mNMService, times(1)).tetherInterface(mTestIfname); in verifyInterfaceServingModeStarted() 288 verify(mNMService, times(1)).setIpForwardingEnabled(true); in workingLocalOnlyHotspotEnrichedApBroadcast() 289 verify(mNMService, times(1)).startTethering(any(String[].class)); in workingLocalOnlyHotspotEnrichedApBroadcast() 297 verify(mConnectivityManager, times(1)).registerNetworkCallback( in workingLocalOnlyHotspotEnrichedApBroadcast() 299 verify(mConnectivityManager, times(1)).registerDefaultNetworkCallback( in workingLocalOnlyHotspotEnrichedApBroadcast() 311 verify(mNMService, times(1)).untetherInterface(mTestIfname); in workingLocalOnlyHotspotEnrichedApBroadcast() 316 verify(mNMService, times(1)).stopTethering(); in workingLocalOnlyHotspotEnrichedApBroadcast() [all …]
|
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/ |
D | InitCallbackTest.java | 21 import static org.mockito.Mockito.times; 51 verify(initCallback1, times(1)).onInitialized(); in testRegisterInitCallback_callsSuccessCallback() 52 verify(initCallback2, times(1)).onInitialized(); in testRegisterInitCallback_callsSuccessCallback() 71 verify(initCallback1, times(1)).onFailed(any(Throwable.class)); in testRegisterInitCallback_callsFailCallback() 72 verify(initCallback2, times(1)).onFailed(any(Throwable.class)); in testRegisterInitCallback_callsFailCallback() 91 verify(initCallback, times(1)).onFailed(any(Throwable.class)); in testRegisterInitCallback_callsFailCallback_whenOnFailCalledByLoader() 110 verify(initCallback, times(1)).onFailed(any(Throwable.class)); in testRegisterInitCallback_callsFailCallback_whenMetadataRepoIsNull() 146 verify(callbackUnregister, times(0)).onFailed(any(Throwable.class)); in testUnregisterInitCallback_doesNotInteractWithCallback() 147 verify(callbackConfigUnregister, times(0)).onFailed(any(Throwable.class)); in testUnregisterInitCallback_doesNotInteractWithCallback() 148 verify(callback, times(1)).onFailed(any(Throwable.class)); in testUnregisterInitCallback_doesNotInteractWithCallback() [all …]
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/media/ |
D | PlaybackGlueTest.java | 23 import static org.mockito.Mockito.times; 53 Mockito.verify(glue, times(1)).onAttachedToHost(host); in glueAndHostInteraction() 58 Mockito.verify(glue, times(1)).onHostStart(); in glueAndHostInteraction() 61 Mockito.verify(glue, times(1)).onHostResume(); in glueAndHostInteraction() 64 Mockito.verify(glue, times(1)).onHostPause(); in glueAndHostInteraction() 67 Mockito.verify(glue, times(1)).onHostStop(); in glueAndHostInteraction() 71 Mockito.verify(glue, times(1)).onDetachedFromHost(); in glueAndHostInteraction() 72 Mockito.verify(glue2, times(1)).onAttachedToHost(host); in glueAndHostInteraction() 80 Mockito.verify(glue2, times(1)).onDetachedFromHost(); in glueAndHostInteraction()
|
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 …]
|
D | PlaybackTransportControlGlueTest.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() 197 Mockito.verify(impl, times(1)).seekTo(123L); in playerAdapterTest() 247 Mockito.verify(hostCallback, times(1)).onBufferingStateChanged(true); in savePlayerAdapterEventBeforeAttachToHost() 248 Mockito.verify(hostCallback, times(1)).onVideoSizeChanged(200, 150); in savePlayerAdapterEventBeforeAttachToHost() 249 Mockito.verify(hostCallback, times(1)).onError(12, "abc"); in savePlayerAdapterEventBeforeAttachToHost() 264 Mockito.verify(hostCallback, times(1)).onBufferingStateChanged(false); in savePlayerAdapterEventBeforeAttachToHost() 265 Mockito.verify(hostCallback, times(0)).onVideoSizeChanged(anyInt(), anyInt()); in savePlayerAdapterEventBeforeAttachToHost() 266 Mockito.verify(hostCallback, times(0)).onError(anyInt(), anyString()); in savePlayerAdapterEventBeforeAttachToHost() [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/support/emoji/core/tests/java/android/support/text/emoji/widget/ |
D | EmojiTextWatcherTest.java | 25 import static org.mockito.Mockito.times; 62 verify(mEmojiCompat, times(1)).process(sameCharSequence(testString), eq(0), eq(1), in testOnTextChanged_callsProcess() 64 verify(mEmojiCompat, times(0)).registerInitCallback(any(EmojiCompat.InitCallback.class)); in testOnTextChanged_callsProcess() 74 verify(mEmojiCompat, times(0)).process(any(Spannable.class), anyInt(), anyInt(), anyInt()); in testOnTextChanged_whenEmojiCompatLoading() 75 verify(mEmojiCompat, times(1)).registerInitCallback(any(EmojiCompat.InitCallback.class)); in testOnTextChanged_whenEmojiCompatLoading() 85 verify(mEmojiCompat, times(0)).process(any(Spannable.class), anyInt(), anyInt(), anyInt()); in testOnTextChanged_whenEmojiCompatLoadFailed() 86 verify(mEmojiCompat, times(0)).registerInitCallback(any(EmojiCompat.InitCallback.class)); in testOnTextChanged_whenEmojiCompatLoadFailed()
|
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/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 …]
|
/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() 150 private String[] getUidTimesLines(int[] uids, long[][] times) { in getUidTimesLines() argument 156 for (int j = 0; j < times[i].length; ++j) { in getUidTimesLines() 157 sb.append(" " + times[i][j] / 10); in getUidTimesLines()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest8.java | 29 import static org.mockito.Mockito.times; 182 verify(mServiceContext, times(0)) in testRequestPinShortcut_notSupported() 184 verify(mServiceContext, times(0)) in testRequestPinShortcut_notSupported() 194 verify(mServiceContext, times(0)) in testRequestPinShortcut_notSupported() 196 verify(mServiceContext, times(0)) in testRequestPinShortcut_notSupported() 206 verify(mServiceContext, times(0)) in testRequestPinShortcut_notSupported() 208 verify(mServiceContext, times(0)) in testRequestPinShortcut_notSupported() 233 verify(mServiceContext, times(0)).sendIntentSender(any(IntentSender.class)); in testNotForeground() 234 verify(mServiceContext, times(0)).startActivityAsUser( in testNotForeground() 269 verify(mServiceContext, times(0)).sendIntentSender(any(IntentSender.class)); in checkRequestPinShortcut() [all …]
|