Home
last modified time | relevance | path

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

12345678910>>...18

/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/
DAnswerSyncCallback.java41 private AnswerSyncCallback(T answer, Throwable failure, int numberOfExpectedCalls) { in AnswerSyncCallback() argument
43 answer, in AnswerSyncCallback()
50 private AnswerSyncCallback(T answer, Throwable failure, SyncCallbackSettings settings) { in AnswerSyncCallback() argument
52 mAnswer = answer; in AnswerSyncCallback()
69 public static <A> AnswerSyncCallback<A> forSingleAnswer(A answer) { in forSingleAnswer() argument
71 answer, /* failure= */ null, /* numberOfExpectedCalls= */ 1); in forSingleAnswer()
88 A answer, int numberOfExpectedCalls) { in forMultipleAnswers() argument
89 return new AnswerSyncCallback<A>(answer, /* failure= */ null, numberOfExpectedCalls); in forMultipleAnswers()
101 public static <A> AnswerSyncCallback<A> forAnswers(A answer, SyncCallbackSettings settings) { in forAnswers() argument
102 return new AnswerSyncCallback<A>(answer, /* failure= */ null, settings); in forAnswers()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaNetworkHalHidlImplTest.java516 public SupplicantStatus answer(ArrayList<Byte> ssid) throws RemoteException { in testSsidSaveFailure()
560 public SupplicantStatus answer( in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
595 public SupplicantStatus answer( in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair()
628 public SupplicantStatus answer( in testSendInvalidKcSresLenNetworkEapSimGsmAuthResponse()
650 public SupplicantStatus answer( in testSendInvalidKcSresPairNumNetworkEapSimGsmAuthResponse()
675 public SupplicantStatus answer( in testSendNetworkEapSimUmtsAuthResponse()
708 public SupplicantStatus answer( in testSendInvalidNetworkEapSimUmtsAuthResponse()
729 public SupplicantStatus answer(byte[] params) in testSendNetworkEapSimUmtsAutsResponse()
748 public SupplicantStatus answer(byte[] params) in testSendInvalidNetworkEapSimUmtsAutsResponse()
766 public SupplicantStatus answer(ArrayList<Byte> identity) in testSendNetworkEapIdentityResponse()
[all …]
DSupplicantStaNetworkHalAidlImplTest.java1399 public void answer(byte[] ssid) throws RemoteException { in setupISupplicantNetworkMock()
1404 public byte[] answer() throws RemoteException { in setupISupplicantNetworkMock()
1411 public int answer() throws RemoteException { in setupISupplicantNetworkMock()
1418 public void answer(byte[] bssid) throws RemoteException { in setupISupplicantNetworkMock()
1423 public byte[] answer() throws RemoteException { in setupISupplicantNetworkMock()
1430 public void answer(boolean enable) throws RemoteException { in setupISupplicantNetworkMock()
1435 public boolean answer() throws RemoteException { in setupISupplicantNetworkMock()
1442 public void answer(boolean enable) throws RemoteException { in setupISupplicantNetworkMock()
1447 public boolean answer() throws RemoteException { in setupISupplicantNetworkMock()
1454 public void answer(String saePassword) throws RemoteException { in setupISupplicantNetworkMock()
[all …]
DWifiNetworkSelectorTestUtil.java315 public WifiConfiguration answer(ScanDetail scanDetail) { in prepareConfigStore()
327 public WifiConfiguration answer(int netId) { in prepareConfigStore()
338 public WifiConfiguration answer(int netId) { in prepareConfigStore()
349 public WifiConfiguration answer(String configKey) { in prepareConfigStore()
360 public List<WifiConfiguration> answer() { in prepareConfigStore()
370 public boolean answer(int netId) { in prepareConfigStore()
388 public boolean answer(int netId, ScanResult scanResult, int score, in prepareConfigStore()
468 public WifiConfiguration answer(int netId) { in setupEphemeralNetwork()
475 public boolean answer(int netId, ScanResult scanResult, int score, in setupEphemeralNetwork()
489 public boolean answer(int netId, int status) { in setupEphemeralNetwork()
/packages/modules/DnsResolver/
Dres_query.cpp104 std::span<uint8_t> answer, // buffer to put answer in res_nquery() argument
109 HEADER* hp = reinterpret_cast<HEADER*>(answer.data()); in res_nquery()
123 n = res_nopt(statp, n, buf, answer.size()); in res_nquery()
129 n = res_nsend(statp, std::span(buf, n), answer, &rcode, 0); in res_nquery()
203 std::span<uint8_t> answer, /* buffer to put answer */ in res_nsearch() argument
208 HEADER* hp = reinterpret_cast<HEADER*>(answer.data()); in res_nsearch()
228 ret = res_nquerydomain(statp, name, NULL, cl, type, answer, herrno); in res_nsearch()
252 ret = res_nquerydomain(statp, name, domain.c_str(), cl, type, answer, herrno); in res_nsearch()
294 ret = res_nquerydomain(statp, name, NULL, cl, type, answer, herrno); in res_nsearch()
320 std::span<uint8_t> answer, /* buffer to put answer */ in res_nquerydomain() argument
[all …]
DDnsTlsTransport.cpp75 base::Result<void> checkDnsResponse(const std::span<const uint8_t> answer) { in checkDnsResponse() argument
76 if (answer.size() < NS_HFIXEDSZ) { in checkDnsResponse()
77 return Errorf("short response: {}", answer.size()); in checkDnsResponse()
80 const int qdcount = (answer[4] << 8) | answer[5]; in checkDnsResponse()
85 const int ancount = (answer[6] << 8) | answer[7]; in checkDnsResponse()
Dgethnamaddr.cpp112 static struct hostent* getanswer(const querybuf* _Nonnull answer, int anslen, const char* qname, in getanswer() argument
131 eom = answer->buf + anslen; in getanswer()
150 hp = &answer->hdr; in getanswer()
155 cp = answer->buf; in getanswer()
159 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
180 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
201 n = dn_expand(answer->buf, eom, cp, tbuf, (int) sizeof tbuf); in getanswer()
228 n = dn_expand(answer->buf, eom, cp, tbuf, (int) sizeof tbuf); in getanswer()
261 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
/packages/modules/AdServices/adservices/tests/endtoends/src/com/android/adservices/measurement/
DMeasurementCompatibleManagerTest.java130 Answer<Void> answer = in testRegisterSource_callingApp_expectedAttributionSource() local
135 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_callingApp_expectedAttributionSource()
173 Answer<Void> answer = in testRegisterSource_adIdEnabled_register() local
178 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_adIdEnabled_register()
212 Answer<Void> answer = in testRegisterSource_adIdZeroOut_register() local
217 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_adIdZeroOut_register()
250 Answer<Void> answer = in testRegisterSource_adIdDisabled_register() local
255 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_adIdDisabled_register()
289 Answer<Void> answer = in testRegisterSource_adIdTimeOut_register() local
294 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_adIdTimeOut_register()
[all …]
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DFakeDns.kt45 fun setAnswer(hostname: String, answer: Array<String>, type: Int) = synchronized(answers) { in <lambda>()
46 val ans = DnsEntry(hostname, type, generateAnswer(answer)) in <lambda>()
54 private fun generateAnswer(answer: Array<String>) = in generateAnswer()
55 answer.filterNotNull().map { InetAddresses.parseNumericAddress(it) } in generateAnswer()
82 val answer = getAnswer(hostname, type) in mockAnswer() constant
84 if (answer != null && !answer.addresses.isNullOrEmpty()) { in mockAnswer()
86 callback.onAnswer(answer.addresses, 0); }) }) in mockAnswer()
/packages/modules/Connectivity/tests/cts/net/jni/
DNativeDnsJni.c38 struct addrinfo *answer; in Java_android_net_cts_DnsTest_testNativeDns() local
40 int res = getaddrinfo(node, service, NULL, &answer); in Java_android_net_cts_DnsTest_testNativeDns()
48 struct addrinfo *current = answer; in Java_android_net_cts_DnsTest_testNativeDns()
65 freeaddrinfo(answer); in Java_android_net_cts_DnsTest_testNativeDns()
66 answer = NULL; in Java_android_net_cts_DnsTest_testNativeDns()
74 res = getaddrinfo(node, service, NULL, &answer); in Java_android_net_cts_DnsTest_testNativeDns()
81 struct addrinfo *current = answer; in Java_android_net_cts_DnsTest_testNativeDns()
98 freeaddrinfo(answer); in Java_android_net_cts_DnsTest_testNativeDns()
99 answer = NULL; in Java_android_net_cts_DnsTest_testNativeDns()
/packages/modules/DnsResolver/tests/
Dresolv_cache_unit_test.cpp60 std::vector<uint8_t> answer; member
102 char answer[MAXPACKET] = {}; in makeAnswer() local
103 char* answer_end = header.write(answer, answer + sizeof(answer)); in makeAnswer()
104 return std::vector<uint8_t>(answer, answer_end); in makeAnswer()
165 std::vector<uint8_t> answer(MAXPACKET); in cacheLookup() local
166 const auto cacheStatus = resolv_cache_lookup(netId, ce.query, answer, &anslen, flags); in cacheLookup()
174 answer.resize(anslen); in cacheLookup()
175 if (answer != ce.answer) { in cacheLookup()
192 return resolv_cache_add(netId, ce.query, ce.answer); in cacheAdd()
196 const std::vector<uint8_t>& answer) { in cacheAdd() argument
[all …]
Ddoh_ffi_test.cpp125 uint8_t answer[8192]; in TEST_F() local
127 len = doh_query(doh, dnsNetId, buf.data(), len, answer, sizeof answer, TIMEOUT_MS); in TEST_F()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/api/
DLoadDataAggregationsUseCaseTest.kt174 val answer = { args: InvocationOnMock -> in <lambda>() constant
179 return answer in <lambda>()
184 val answer = { args: InvocationOnMock -> in <lambda>() constant
189 return answer in <lambda>()
194 val answer = { args: InvocationOnMock -> in <lambda>() constant
199 return answer in <lambda>()
204 val answer = { args: InvocationOnMock -> in <lambda>() constant
209 return answer in <lambda>()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalHidlImplTest.java358 public boolean answer(IHwBinder.DeathRecipient cb, long cookie) throws RemoteException { in testMisorderSupplicantDeathHandlingV1_1()
377 public void answer(ISupplicantIface.getNameCallback cb) throws RemoteException { in testGetName_success()
396 public void answer(ISupplicantIface.getNameCallback cb) throws RemoteException { in testGetName_failure()
413 public void answer(ISupplicantIface.getNameCallback cb) throws RemoteException { in testGetName_exception()
721 public void answer(byte[] peer, int method, String pin, boolean joinExisting, in testConnect_success()
776 public void answer(byte[] peer, int method, String pin, boolean joinExisting, in testConnect_invalidArguments()
820 public void answer(byte[] peer, int method, String pin, boolean joinExisting, in testConnect_failure()
1101 public void answer(ISupplicantP2pIface.getDeviceAddressCallback cb) { in testGetDeviceAddress_success()
1124 public void answer(ISupplicantP2pIface.getDeviceAddressCallback cb) { in testGetDeviceAddress_invalidResult()
1145 public void answer(ISupplicantP2pIface.getDeviceAddressCallback cb) { in testGetDeviceAddress_failure()
[all …]
/packages/apps/Dialer/java/com/android/incallui/answer/bindings/
DAnswerBindings.java17 package com.android.incallui.answer.bindings;
19 import com.android.incallui.answer.impl.AnswerFragment;
20 import com.android.incallui.answer.protocol.AnswerScreen;
/packages/modules/Bluetooth/system/gd/cert/
Dset_up_and_run_device_cert.sh22 answer=0
43 read answer
46 if [ $answer -ge $LEN ]; then
53 SERIAL=${SERIALS[$answer]}
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DAffordanceHolderLayout.java17 package com.android.incallui.answer.impl;
26 import com.android.incallui.answer.impl.affordance.SwipeButtonHelper;
27 import com.android.incallui.answer.impl.affordance.SwipeButtonHelper.Callback;
28 import com.android.incallui.answer.impl.affordance.SwipeButtonView;
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DSyncAnswer.java48 private SyncAnswer(T answer, Throwable exception) { in SyncAnswer() argument
49 mAnswer = answer; in SyncAnswer()
77 public T answer(InvocationOnMock invocation) throws Throwable { in answer() method in SyncAnswer
/packages/modules/Bluetooth/android/pandora/server/src/
DSecurity.kt239 it.map { answer -> in <lambda>() method
244 val device = answer.event.address.toBluetoothDevice(bluetoothAdapter) in <lambda>()
245 when (answer.answerCase!!) { in <lambda>()
247 device.setPairingConfirmation(answer.confirm) in <lambda>()
249 device.setPin(answer.passkey.toString().padStart(6, '0')) in <lambda>()
250 PairingEventAnswer.AnswerCase.PIN -> device.setPin(answer.pin.toByteArray()) in <lambda>()
/packages/apps/Dialer/java/com/android/incallui/
DAnswerScreenPresenter.java31 import com.android.incallui.answer.protocol.AnswerScreen;
32 import com.android.incallui.answer.protocol.AnswerScreenDelegate;
148 call.answer(VideoProfile.STATE_AUDIO_ONLY); in onAnswerCallback()
150 call.answer(); in onAnswerCallback()
239 call.answer(); in onDialerCallDisconnect()
/packages/modules/DnsResolver/doh/
Dffi.rs310 Response::Success { answer } => { in doh_query()
311 if answer.len() > response_len || answer.len() > isize::MAX as usize { in doh_query()
317 let response = unsafe { slice::from_raw_parts_mut(response, answer.len()) }; in doh_query()
318 response.copy_from_slice(&answer); in doh_query()
319 answer.len() as ssize_t in doh_query()
/packages/modules/NetworkStack/src/com/android/networkstack/util/
DDnsUtils.java108 public void onAnswer(List<InetAddress> answer, int rcode) { in getAllByName()
109 if (rcode == 0 && answer != null && answer.size() != 0) { in getAllByName()
110 resultRef.complete(answer); in getAllByName()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissiontypes/api/
DLoadContributingAppsUseCaseTest.kt99 val answer = { args: InvocationOnMock -> in <lambda>() constant
105 return answer in <lambda>()
109 val answer = { _: InvocationOnMock -> null } in <lambda>() constant
110 return answer in <lambda>()
/packages/apps/TV/tests/unit/src/com/android/tv/util/
DTvInputManagerHelperTest.java225 public Boolean answer(InvocationOnMock invocation) throws Throwable { in createMockTvInputManager()
235 public String answer(InvocationOnMock invocation) throws Throwable { in createMockTvInputManager()
245 public String answer(InvocationOnMock invocation) throws Throwable { in createMockTvInputManager()
255 public TvInputInfo answer(InvocationOnMock invocation) in createMockTvInputManager()
/packages/services/Iwlan/test/com/google/android/iwlan/epdg/
DEpdgSelectorTest.java1198 .map(answer -> answer.mAddresses) in getAnswer()
1204 private synchronized void setAnswer(String hostname, String[] answer, int type) in setAnswer() argument
1206 DnsEntry record = new DnsEntry(hostname, type, generateAnswer(answer)); in setAnswer()
1213 private List<InetAddress> generateAnswer(String[] answer) { in generateAnswer() argument
1214 if (answer == null) return new ArrayList<>(); in generateAnswer()
1215 return Arrays.stream(answer) in generateAnswer()
1232 List<InetAddress> answer = new ArrayList<>(); in queryAllTypes() local
1233 answer.addAll(queryIpv4(hostname)); in queryAllTypes()
1234 answer.addAll(queryIpv6(hostname)); in queryAllTypes()
1235 return answer; in queryAllTypes()
[all …]

12345678910>>...18