Home
last modified time | relevance | path

Searched refs:answer (Results 1 – 25 of 33) sorted by relevance

12

/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DDevicePolicyManagerWrapper.java43 DevicePolicyManager getWrapper(Context context, DevicePolicyManager dpm, Answer<?> answer) { in getWrapper() argument
64 doAnswer(answer).when(spy).isAdminActive(any()); in getWrapper()
65 doAnswer(answer).when(spy).isDeviceOwnerApp(any()); in getWrapper()
66 doAnswer(answer).when(spy).isManagedProfile(any()); in getWrapper()
67 doAnswer(answer).when(spy).isProfileOwnerApp(any()); in getWrapper()
68 doAnswer(answer).when(spy).isAffiliatedUser(); in getWrapper()
71 doAnswer(answer).when(spy).setTime(any(), anyLong()); in getWrapper()
72 doAnswer(answer).when(spy).setTimeZone(any(), any()); in getWrapper()
73 doAnswer(answer).when(spy).setGlobalSetting(any(), any(), any()); in getWrapper()
76 doAnswer(answer).when(spy).setUserControlDisabledPackages(any(), any()); in getWrapper()
[all …]
DWifiManagerWrapper.java42 WifiManager getWrapper(Context context, WifiManager manager, Answer<?> answer) { in getWrapper() argument
62 doAnswer(answer).when(spy).addNetwork(any()); in getWrapper()
63 doAnswer(answer).when(spy).enableNetwork(anyInt(), anyBoolean()); in getWrapper()
64 doAnswer(answer).when(spy).removeNetwork(anyInt()); in getWrapper()
65 doAnswer(answer).when(spy).getConfiguredNetworks(); in getWrapper()
66 doAnswer(answer).when(spy).updateNetwork(any()); in getWrapper()
67 doAnswer(answer).when(spy).saveConfiguration(); in getWrapper()
68 doAnswer(answer).when(spy).isWifiEnabled(); in getWrapper()
69 doAnswer(answer).when(spy).setWifiEnabled(anyBoolean()); in getWrapper()
72 doAnswer(answer).when(spy).getCallerConfiguredNetworks(); in getWrapper()
DHardwarePropertiesManagerWrapper.java42 Answer<?> answer) { in getWrapper() argument
62 doAnswer(answer).when(spy).getCpuUsages(); in getWrapper()
63 doAnswer(answer).when(spy).getDeviceTemperatures(anyInt(), anyInt()); in getWrapper()
64 doAnswer(answer).when(spy).getFanSpeeds(); in getWrapper()
DGenericManagerWrapper.java38 GenericManager getWrapper(Context context, GenericManager manager, Answer<?> answer) { in getWrapper() argument
55 when(mock.getSecureIntSettings(any())).thenAnswer(answer); in getWrapper()
DUserManagerWrapper.java40 UserManager getWrapper(Context context, UserManager manager, Answer<?> answer) { in getWrapper() argument
60 doAnswer(answer).when(spy).getApplicationRestrictions(any()); in getWrapper()
DTestAppSystemServiceFactory.java280 Answer<?> answer = (inv) -> { in getSystemService() local
368 T spy = wrapper.getWrapper(context, manager, answer); in getSystemService()
428 abstract T getWrapper(Context context, T manager, Answer<?> answer); in getWrapper() argument
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DTarget.java285 Floaty answer = new Floaty(a.mNumberOfBits, values); in sqrt() local
287 answer.ExpandRangeByUlpFactor(); in sqrt()
288 return answer; in sqrt()
518 double answer; in smallestNormal() local
520 answer = Float16Utils.MIN_NORMAL; in smallestNormal()
522 answer = Float.MIN_NORMAL; in smallestNormal()
524 answer = Double.MIN_NORMAL; in smallestNormal()
527 answer = -answer; in smallestNormal()
529 return answer; in smallestNormal()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DFileParser.java179 int answer = 0; in getIntLittleEndian() local
182 answer = (answer << 8) | (byteArray[i] & 0xff); in getIntLittleEndian()
184 return answer; in getIntLittleEndian()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DReadElf.java438 int answer = 0; in readX() local
441 answer = (answer << 8) | (mBuffer[i] & 0xff); in readX()
446 answer = (answer << 8) | (mBuffer[i] & 0xff); in readX()
450 return answer; in readX()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java916 public Void answer(InvocationOnMock invocation) throws Throwable { in testUpdateAppWidgetViaComponentName()
993 public Void answer(InvocationOnMock invocation) throws Throwable { in testUpdateAppWidgetViaWidgetId()
1080 public Void answer(InvocationOnMock invocation) throws Throwable { in testUpdateAppWidgetViaWidgetIds()
1159 public Void answer(InvocationOnMock invocation) throws Throwable { in testPartiallyUpdateAppWidgetViaWidgetId()
1237 public Void answer(InvocationOnMock invocation) throws Throwable { in testPartiallyUpdateAppWidgetViaWidgetIds()
1261 public Void answer(InvocationOnMock invocation) throws Throwable { in testPartiallyUpdateAppWidgetViaWidgetIds()
1329 public Void answer(InvocationOnMock invocation) throws Throwable { in testCollectionWidgets()
1370 public Integer answer(InvocationOnMock invocation) throws Throwable { in testCollectionWidgets()
1376 public RemoteViews answer(InvocationOnMock invocation) throws Throwable { in testCollectionWidgets()
1388 public Integer answer(InvocationOnMock invocation) throws Throwable { in testCollectionWidgets()
[all …]
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/
DUtils.kt32 "toString" -> return@Answer Answers.CALLS_REAL_METHODS.answer(it) in <lambda>()
/cts/tests/tests/graphics/src/android/graphics/cts/utils/
DCam.java397 Cam answer = null; in getInt()
423 answer = possibleAnswer; in getInt()
435 if (answer == null) { in getInt()
439 return answer.viewed(frame); in getInt()
/cts/tests/tests/telecom/src/android/telecom/cts/
DAdhocConferenceTest.java115 call.answer(VideoProfile.STATE_RX_ENABLED); in testAddNewIncomingConference_onAnswer()
174 call.answer(VideoProfile.STATE_AUDIO_ONLY); in testConferenceCallAddConferenceParticipants()
DIncomingCallTest.java352 call.answer(VideoProfile.STATE_AUDIO_ONLY); in testConnectionOnAnswerForAudioCall()
443 call.answer(VideoProfile.STATE_AUDIO_ONLY); in testConnectionOnAnswerForVideoCallAnsweredAsAudio()
471 call.answer(VideoProfile.STATE_BIDIRECTIONAL); in testConnectionOnAnswerIntForVideoCallAnsweredAsVideo()
DExtendedInCallServiceTest.java249 call.answer(VideoProfile.STATE_AUDIO_ONLY); in testAnswerIncomingCallAudioOnly()
338 call1.answer(VideoProfile.STATE_AUDIO_ONLY); in testAcceptRingingCallTwoCalls()
370 call1.answer(VideoProfile.STATE_AUDIO_ONLY); in testAcceptRingingCallTwoCallsCarMode()
603 call.answer(VideoProfile.STATE_BIDIRECTIONAL); in testAnswerIncomingCallAsVideo_SendsCorrectVideoState()
DBackgroundCallAudioTest.java527 call.answer(VideoProfile.STATE_AUDIO_ONLY); in testLowerApiLevelCompatibility1()
604 call.answer(VideoProfile.STATE_AUDIO_ONLY); in verifySimulateRingAndUserPickup()
DMockConnection.java84 mRemoteConnection.answer(); in onAnswer()
DTransactionalApisTest.java754 call.answer(VideoProfile.STATE_AUDIO_ONLY); in testAddIncomingCallOnAnswer()
789 call.answer(VideoProfile.STATE_AUDIO_ONLY); in testAddIncomingCallOnAnswer_RejectCallback()
1318 call.mCallControl.answer(videoState, Runnable::run, outcome); in callControlAction()
/cts/tests/tests/slice/src/android/slice/cts/
DLocalSliceProvider.java53 return s.answer(invocation); in attachInfo()
/cts/tests/tests/telecom/src/android/telecom/cts/carmodetestapp/
DCtsCarModeInCallServiceControl.java169 CtsCarModeInCallService.getInstance().getLastCall().answer(videoState);
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/
DTransactionalCall.java94 mCallControl.answer(videoState, Runnable::run, outcome); in setActive()
/cts/tests/searchui/src/android/searchuiservice/cts/
DSearchUiManagerTest.java216 doAnswer(answer -> { in testQuery_mockCallback()
218 = (Consumer<List<SearchTarget>>) answer.getArgument(2); in testQuery_mockCallback()
/cts/tests/tests/instantapp/src/android/cts/instantapp/resolver/
DResolverServiceMethodFallbackTest.kt125 @field:Mock(answer = Answers.CALLS_REAL_METHODS) in <lambda>()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsCallingTest.java293 call.answer(0); in testIncomingCall()
325 call.answer(0); in testIncomingCallReturnListener()
631 mtCall.answer(0); in testOutGoingIncomingMultiCall()
706 mtCall.answer(0); in testOutGoingIncomingMultiCallAcceptTerminate()
772 mtCall.answer(0); in testOutGoingIncomingMultiCallHoldFailedTerminateByRemote()
784 mtCall.answer(0); in testOutGoingIncomingMultiCallHoldFailedTerminateByRemote()
1507 mtCall.answer(VideoProfile.STATE_AUDIO_ONLY); in testMultipleVideoCallAcceptTerminate()
/cts/tests/tests/widget/src/android/widget/cts/
DMultiAutoCompleteTextViewTest.java155 public CharSequence answer(InvocationOnMock invocation) throws Throwable { in testPerformValidation()

12