Home
last modified time | relevance | path

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

12

/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/
DDeleteNonRequiredAppsTaskTest.java54 import static org.mockito.Mockito.times;
118 verify(mCallback, times(1)).onSuccess(); in testOnlyAppsWithLauncherDeletedByDefault()
131 verify(mCallback, times(1)).onSuccess(); in testDeviceOwnerRequiredAppsNotDeleted()
144 verify(mCallback, times(1)).onSuccess(); in testProfileOwnerRequiredAppsNotDeleted()
157 verify(mCallback, times(1)).onSuccess(); in testManagedUserRequiredAppsNotDeleted()
168 verify(mCallback, times(1)).onSuccess(); in testMdmNotDeleted()
181 verify(mCallback, times(1)).onSuccess(); in testDisallowedAppsDeletedEvenIfNoLauncher()
193 verify(mCallback, times(1)).onSuccess(); in testDeviceOwnerImesNotDeleted()
205 verify(mCallback, times(1)).onSuccess(); in testProfileOwnerImesStillDeleted()
217 verify(mCallback, times(1)).onSuccess(); in testManagedUserImesNotDeleted()
[all …]
DSetDevicePolicyTaskTest.java20 import static org.mockito.Mockito.times;
76 verify(mCallback, times(1)).onSuccess(); in testEnableDevicePolicyApp()
84 verify(mCallback, times(1)).onError(); in testEnableDevicePolicyApp_PackageNotFound()
91 verify(mCallback, times(1)).onSuccess(); in testSetActiveAdmin()
98 verify(mCallback, times(1)).onSuccess(); in testSetDeviceOwner()
107 verify(mCallback, times(1)).onError(); in testSetDeviceOwner_PreconditionsNotMet()
116 verify(mCallback, times(1)).onError(); in testSetDeviceOwner_ReturnFalse()
DInstallPackageTaskTest.java26 import static org.mockito.Mockito.times;
100 verify(mCallback, times(1)).onSuccess(); in testInstall_NoPackages()
126 verify(mCallback, times(1)).onSuccess(); in testInstall_OnePackage()
149 verify(mCallback, times(1)).onSuccess(); in testInstall_InstallFailedVersionDowngrade()
162 verify(mCallback, times(1)).onError(InstallPackageTask.ERROR_PACKAGE_INVALID); in testPackageHasNoReceivers()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state_utils.cpp48 const int *const inputYCoordinates, const int *const times, const int *const pointerIds, in updateTouchPoints() argument
54 if (times) { in updateTouchPoints()
57 i, inputXCoordinates[i], inputYCoordinates[i], times[i]); in updateTouchPoints()
62 if (times) { in updateTouchPoints()
65 if (times[i] < times[i - 1]) { in updateTouchPoints()
66 AKLOGI("Invalid time sequence. %d, %d", times[i - 1], times[i]); in updateTouchPoints()
107 const int time = times ? times[i] : -1; in updateTouchPoints()
219 const int *const xCoordinates, const int *const yCoordinates, const int *const times, in refreshSpeedRates() argument
247 duration += times[j + 1] - times[j]; in refreshSpeedRates()
258 duration += times[j + 1] - times[j]; in refreshSpeedRates()
[all …]
Dproximity_info_state_utils.h41 const int *const times, const int *const pointerIds, const int inputSize,
52 const int *const yCoordinates, const int *const times, const int lastSavedInputSize,
61 const int *times, const int sampledInputSize,
100 const int *const xCoordinates, const int *const yCoordinates, const int *const times,
139 const int *const yCoordinates, const int *times, const int sampledInputSize,
Dproximity_info_state.cpp44 const int *const xCoordinates, const int *const yCoordinates, const int *const times, in initInputParams() argument
49 inputSize, xCoordinates, yCoordinates, times, mSampledInputSize, in initInputParams()
109 mMaxPointToKeyLength, mInputProximities, xCoordinates, yCoordinates, times, in initInputParams()
117 yCoordinates, times, lastSavedInputSize, mSampledInputSize, &mSampledInputXs, in initInputParams()
121 mAverageSpeed, inputSize, xCoordinates, yCoordinates, times, mSampledInputSize, in initInputParams()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/
Ddic_traverse_session.cpp44 const int *const inputYs, const int *const times, const int *const pointerIds, in setupForGetSuggestions() argument
48 initializeProximityInfoStates(inputCodePoints, inputXs, inputYs, times, pointerIds, inputSize, in setupForGetSuggestions()
64 const int *const inputXs, const int *const inputYs, const int *const times, in initializeProximityInfoStates() argument
71 inputCodePoints, inputSize, inputXs, inputYs, times, pointerIds, in initializeProximityInfoStates()
Ddic_traverse_session.h69 const int *const times, const int *const pointerIds, const float maxSpatialDistance,
166 const int *const inputYs, const int *const times, const int *const pointerIds,
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallerInfoLookupHelperTest.java48 import static org.mockito.Mockito.times;
145 verify(mFactory, times(1)).startQuery(anyInt(), eq(mContext), in testLookupWithTwoListeners()
151 verify(callListener, times(1)).onCallerInfoQueryComplete(URI1, mCallerInfo1); in testLookupWithTwoListeners()
152 verify(otherListener, times(1)).onCallerInfoQueryComplete(URI1, mCallerInfo1); in testLookupWithTwoListeners()
183 verify(mFactory, times(1)).startQuery(anyInt(), eq(mContext), in testListenerAddedAfterCallerInfoBeforePhoto()
189 verify(callListener, times(1)).onCallerInfoQueryComplete(URI1, mCallerInfo1); in testListenerAddedAfterCallerInfoBeforePhoto()
197 verify(otherListener, times(1)).onCallerInfoQueryComplete(URI1, mCallerInfo1); in testListenerAddedAfterCallerInfoBeforePhoto()
DInCallControllerTests.java68 import static org.mockito.Mockito.times;
213 verify(mMockPackageManager, times(3)).queryIntentServicesAsUser( in testBindToService_DefaultDialer_NoEmergency()
225 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_DefaultDialer_NoEmergency()
282 verify(mMockPackageManager, times(3)).queryIntentServicesAsUser( in testBindToService_SystemDialer_Emergency()
294 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_SystemDialer_Emergency()
351 verify(mMockPackageManager, times(3)).queryIntentServicesAsUser( in testBindToService_DefaultDialer_FallBackToSystem()
365 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_DefaultDialer_FallBackToSystem()
397 verify(mMockContext, times(2)).bindServiceAsUser( in testBindToService_DefaultDialer_FallBackToSystem()
DCallAudioManagerTest.java45 import static org.mockito.Mockito.times;
175 verify(mCallAudioModeStateMachine, times(2)).sendMessageWithArgs( in testSingleOutgoingCall()
178 verify(mCallAudioModeStateMachine, times(2)).sendMessageWithArgs( in testSingleOutgoingCall()
184 verify(mCallAudioModeStateMachine, times(3)).sendMessageWithArgs( in testSingleOutgoingCall()
187 verify(mCallAudioModeStateMachine, times(3)).sendMessageWithArgs( in testSingleOutgoingCall()
DBluetoothPhoneServiceTest.java62 import static org.mockito.Mockito.times;
299 verify(mMockBluetoothHeadset, times(2)).phoneStateChanged(any(int.class), in testConferenceInProgressCDMA()
403 verify(mMockBluetoothHeadset, times(2)).clccResponse(anyInt(), in testWaitingCallClccResponse()
418 verify(mMockBluetoothHeadset, times(1)).clccResponse(anyInt(), in testNewCallClccResponse()
438 verify(mMockBluetoothHeadset, times(2)).clccResponse(anyInt(), in testRingingCallClccResponse()
473 verify(mMockBluetoothHeadset, times(2)).clccResponse(0, 0, 0, 0, false, null, 0); in testCallClccCache()
492 verify(mMockBluetoothHeadset, times(2)).clccResponse(anyInt(), in testAlertingCallClccResponse()
521 verify(mMockBluetoothHeadset, times(3)).clccResponse(anyInt(), in testHoldingCallClccResponse()
DMissedCallNotifierImplTest.java58 import static org.mockito.Mockito.times;
144 verify(mNotificationManager, times(2)).notifyAsUser(isNull(String.class), in cancelNotificationTestInternal()
182 verify(mNotificationManager, times(2)).notifyAsUser(isNull(String.class), eq(1), in testNotifyMultipleMissedCalls()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversation/
DConversationActivityUiStateTest.java45 Mockito.verify(mockListener, Mockito.times(1)).onConversationContactPickerUiStateChanged( in testPickInitialContact()
69 Mockito.verify(mockListener, Mockito.times(1)).onConversationContactPickerUiStateChanged( in testHybridUiStateStartCompose()
89 Mockito.verify(mockListener, Mockito.times(1)).onConversationContactPickerUiStateChanged( in testHybridUiStateAddParticipant()
114 Mockito.verify(mockListener, Mockito.times(1)).onConversationContactPickerUiStateChanged( in testCommitAddParticipant()
/packages/apps/Dialer/tests/src/com/android/dialer/filterednumber/
DBlockedNumbersAutoMigratorTest.java22 import static org.mockito.Mockito.times;
135 verify(mockQueryHandler, times(1)) in testAutoMigrate_HasNumbers_MultipleCalls()
161 verify(mockQueryHandler, times(1)) in testAutoMigrate_NoNumbers_MultipleCalls()
181 verify(mockQueryHandler, times(2)) in testAutoMigrate_SimulateClearingAppData()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DMemoryCacheManagerTest.java40 Mockito.verify(mockMemoryCache, Mockito.times(2)).reclaim(); in testRegisterCachesGetReclaimed()
41 Mockito.verify(otherMockMemoryCache, Mockito.times(1)).reclaim(); in testRegisterCachesGetReclaimed()
/packages/apps/Settings/tests/unit/src/com/android/settings/
DChooseLockSettingsHelperTest.java22 import static org.mockito.Mockito.times;
63 verify(mockActivity, times(1)).startActivity(intentCaptor.capture()); in testlaunchConfirmationActivityWithExternalAndChallenge()
103 verify(mockActivity, times(1)).startActivityForResult(intentCaptor.capture(), in testlaunchConfirmationActivityWithExternalAndChallenge()
/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/
DProximitySensorTest.java21 import static org.mockito.Mockito.times;
63 verify(mAccelerometerListener, times(2)).enable(true); in testAccelerometerBehaviorOnDisplayChange()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropView.java259 private int bitCycleLeft(int x, int times, int d) { in bitCycleLeft() argument
262 times %= d; in bitCycleLeft()
263 int hi = mout >> (d - times); in bitCycleLeft()
264 int low = (mout << times) & mask; in bitCycleLeft()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageCrop.java201 private int bitCycleLeft(int x, int times, int d) { in bitCycleLeft() argument
204 times %= d; in bitCycleLeft()
205 int hi = mout >> (d - times); in bitCycleLeft()
206 int low = (mout << times) & mask; in bitCycleLeft()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DInputPointers.java99 public void append(final int pointerId, @Nonnull final ResizableIntArray times, in append() argument
108 mTimes.append(times, startPos, length); in append()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary.cpp48 int *xcoordinates, int *ycoordinates, int *times, int *pointerIds, int *inputCodePoints, in getSuggestions() argument
56 ycoordinates, times, pointerIds, inputCodePoints, inputSize, in getSuggestions()
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java24 import static org.mockito.Mockito.times;
178 verify(mMockContext.mBackupManager, times(2)).dataChanged(); in testChangesNotified()
399 verify(mMockContext.mTelephonyManager, times(2)) in testCarrierAppCanAccessApis()
424 verify(mMockContext.mTelecomManager, times(2)).getDefaultDialerPackage(); in testDefaultDialerCanAccessApis()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/
Dsuggest_interface.h30 int *inputYs, int *times, int *pointerIds, int *inputCodePoints, int inputSize,
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dpointer.md218times, it should be construct once, and then apply it to different DOMs or in different times. Thi…

12