Home
last modified time | relevance | path

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

/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.java41 Answer<?> answer) { in getWrapper() argument
58 doAnswer(answer).when(spy).getCpuUsages(); in getWrapper()
59 doAnswer(answer).when(spy).getDeviceTemperatures(anyInt(), anyInt()); in getWrapper()
60 doAnswer(answer).when(spy).getFanSpeeds(); in getWrapper()
DUserManagerWrapper.java39 UserManager getWrapper(Context context, UserManager manager, Answer<?> answer) { in getWrapper() argument
56 doAnswer(answer).when(spy).getApplicationRestrictions(any()); in getWrapper()
DTestAppSystemServiceFactory.java199 Answer<?> answer = (inv) -> { in getSystemService() local
286 T spy = wrapper.getWrapper(context, manager, answer); in getSystemService()
346 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.java892 public Void answer(InvocationOnMock invocation) throws Throwable { in testUpdateAppWidgetViaComponentName()
969 public Void answer(InvocationOnMock invocation) throws Throwable { in testUpdateAppWidgetViaWidgetId()
1056 public Void answer(InvocationOnMock invocation) throws Throwable { in testUpdateAppWidgetViaWidgetIds()
1135 public Void answer(InvocationOnMock invocation) throws Throwable { in testPartiallyUpdateAppWidgetViaWidgetId()
1213 public Void answer(InvocationOnMock invocation) throws Throwable { in testPartiallyUpdateAppWidgetViaWidgetIds()
1237 public Void answer(InvocationOnMock invocation) throws Throwable { in testPartiallyUpdateAppWidgetViaWidgetIds()
1305 public Void answer(InvocationOnMock invocation) throws Throwable { in testCollectionWidgets()
1346 public Integer answer(InvocationOnMock invocation) throws Throwable { in testCollectionWidgets()
1352 public RemoteViews answer(InvocationOnMock invocation) throws Throwable { in testCollectionWidgets()
1364 public Integer answer(InvocationOnMock invocation) throws Throwable { in testCollectionWidgets()
[all …]
DCollectionAppWidgetTest.java159 public RemoteViews answer(InvocationOnMock invocation) throws Throwable { in setup()
/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/
DIncomingCallTest.java293 call.answer(VideoProfile.STATE_AUDIO_ONLY); in testConnectionOnAnswerForAudioCall()
321 call.answer(VideoProfile.STATE_AUDIO_ONLY); in testConnectionOnAnswerForVideoCallAnsweredAsAudio()
349 call.answer(VideoProfile.STATE_BIDIRECTIONAL); in testConnectionOnAnswerIntForVideoCallAnsweredAsVideo()
DAdhocConferenceTest.java105 call.answer(VideoProfile.STATE_RX_ENABLED); in testAddNewIncomingConference_onAnswer()
164 call.answer(VideoProfile.STATE_AUDIO_ONLY); in testConferenceCallAddConferenceParticipants()
DExtendedInCallServiceTest.java232 call.answer(VideoProfile.STATE_AUDIO_ONLY); in testAnswerIncomingCallAudioOnly()
321 call1.answer(VideoProfile.STATE_AUDIO_ONLY); in testAcceptRingingCallTwoCalls()
353 call1.answer(VideoProfile.STATE_AUDIO_ONLY); in testAcceptRingingCallTwoCallsCarMode()
492 call.answer(VideoProfile.STATE_BIDIRECTIONAL); in testAnswerIncomingCallAsVideo_SendsCorrectVideoState()
DMockConnection.java80 mRemoteConnection.answer(); in onAnswer()
DBackgroundCallAudioTest.java523 call.answer(VideoProfile.STATE_AUDIO_ONLY); in testLowerApiLevelCompatibility1()
600 call.answer(VideoProfile.STATE_AUDIO_ONLY); in verifySimulateRingAndUserPickup()
DSelfManagedConnectionServiceTest.java283 call.answer(VideoProfile.STATE_AUDIO_ONLY); in testDisallowOutgoingCallWhileOngoingManagedCallCanNotBeHeld()
DRemoteConnectionTest.java113 call.answer(VideoProfile.STATE_AUDIO_ONLY); in testRemoteConnectionIncomingCallAccept()
/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/uwb/src/android/uwb/cts/
DRangingSessionTest.java341 public Object answer(InvocationOnMock invocation) { in answer() method in RangingSessionTest.StartAnswer
353 public Object answer(InvocationOnMock invocation) { in answer() method in RangingSessionTest.ReconfigureAnswer
365 public Object answer(InvocationOnMock invocation) { in answer() method in RangingSessionTest.StopAnswer
377 public Object answer(InvocationOnMock invocation) { in answer() method in RangingSessionTest.CloseAnswer
/cts/tests/tests/slice/src/android/slice/cts/
DLocalSliceProvider.java53 return s.answer(invocation); in attachInfo()
/cts/tests/searchui/src/android/searchuiservice/cts/
DSearchUiManagerTest.java214 doAnswer(answer -> { in testQuery_mockCallback()
216 = (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/widget/src/android/widget/cts/
DMultiAutoCompleteTextViewTest.java146 public CharSequence answer(InvocationOnMock invocation) throws Throwable { in testPerformValidation()