Home
last modified time | relevance | path

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

12345678910>>...16

/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.java1368 public void answer(byte[] ssid) throws RemoteException { in setupISupplicantNetworkMock()
1373 public byte[] answer() throws RemoteException { in setupISupplicantNetworkMock()
1380 public int answer() throws RemoteException { in setupISupplicantNetworkMock()
1387 public void answer(byte[] bssid) throws RemoteException { in setupISupplicantNetworkMock()
1392 public byte[] answer() throws RemoteException { in setupISupplicantNetworkMock()
1399 public void answer(boolean enable) throws RemoteException { in setupISupplicantNetworkMock()
1404 public boolean answer() throws RemoteException { in setupISupplicantNetworkMock()
1411 public void answer(boolean enable) throws RemoteException { in setupISupplicantNetworkMock()
1416 public boolean answer() throws RemoteException { in setupISupplicantNetworkMock()
1423 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()
DSupplicantStaIfaceHalHidlImplTest.java297 public void answer(ISupplicantStaIface.getMacAddressCallback cb) { in setUp()
591 public void answer(ISupplicantStaIface.addNetworkCallback cb) throws RemoteException { in testConnectFailureDueToNetworkAddFailure()
704 public void answer(ISupplicantStaIface.listNetworksCallback cb) { in testUpdateLinkedNetworks()
714 public void answer(ISupplicantStaIface.listNetworksCallback cb) { in testUpdateLinkedNetworks()
726 public void answer(ISupplicantStaIface.listNetworksCallback cb) { in testUpdateLinkedNetworks()
747 public void answer(ISupplicantStaIface.listNetworksCallback cb) { in testUpdateLinkedNetworks()
753 public SupplicantStatus answer(int id) { in testUpdateLinkedNetworks()
787 public void answer(ISupplicantStaIface.listNetworksCallback cb) { in testRemoveAllNetworks()
793 public SupplicantStatus answer(int id) { in testRemoveAllNetworks()
836 public SupplicantStatus answer() throws RemoteException { in testRoamFailureDueToReassociate()
[all …]
/packages/modules/AdServices/adservices/tests/endtoends/src/com/android/adservices/measurement/
DMeasurementManagerTest.java138 Answer<Void> answer = in testRegisterSource_callingApp_expectedAttributionSource() local
143 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_callingApp_expectedAttributionSource()
180 Answer<Void> answer = in testRegisterSource_adIdEnabled_register() local
185 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_adIdEnabled_register()
218 Answer<Void> answer = in testRegisterSource_adIdZeroOut_register() local
223 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_adIdZeroOut_register()
255 Answer<Void> answer = in testRegisterSource_adIdDisabled_register() local
260 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_adIdDisabled_register()
293 Answer<Void> answer = in testRegisterSource_adIdTimeOut_register() local
298 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_adIdTimeOut_register()
[all …]
/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, {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, 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()
Dres_cache.cpp708 const uint8_t* answer; member
773 static uint32_t answer_getTTL(span<const uint8_t> answer) { in answer_getTTL() argument
780 if (ns_initparse(answer.data(), answer.size(), &handle) >= 0) { in answer_getTTL()
855 static Entry* entry_alloc(const Entry* init, span<const uint8_t> answer) { in entry_alloc() argument
859 size = sizeof(*e) + init->querylen + answer.size(); in entry_alloc()
869 e->answer = e->query + e->querylen; in entry_alloc()
870 e->answerlen = answer.size(); in entry_alloc()
872 memcpy((char*)e->answer, answer.data(), e->answerlen); in entry_alloc()
1246 span<uint8_t> answer, int* answerlen, uint32_t flags) { in resolv_cache_lookup() argument
1326 if (e->answerlen > answer.size()) { in resolv_cache_lookup()
[all …]
Dres_send.cpp170 static int res_private_dns_send(ResState*, const Slice query, const Slice answer, int* rcode,
173 const Slice answer, int* rcode, PrivateDnsMode mode);
174 static ssize_t res_doh_send(ResState*, const Slice query, const Slice answer, int* rcode);
1300 static int res_private_dns_send(ResState* statp, const Slice query, const Slice answer, int* rcode, in res_private_dns_send() argument
1318 result = res_doh_send(statp, query, answer, rcode); in res_private_dns_send()
1321 return res_tls_send(privateDnsStatus.validatedServers(), statp, query, answer, rcode, in res_private_dns_send()
1327 result = res_doh_send(statp, query, answer, rcode); in res_private_dns_send()
1353 result = res_doh_send(statp, query, answer, rcode); in res_private_dns_send()
1363 return res_tls_send(privateDnsStatus.validatedServers(), statp, query, answer, rcode, in res_private_dns_send()
1371 ssize_t res_doh_send(ResState* statp, const Slice query, const Slice answer, int* rcode) { in res_doh_send() argument
[all …]
/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.cpp59 std::vector<uint8_t> answer; member
100 char answer[MAXPACKET] = {}; in makeAnswer() local
101 char* answer_end = header.write(answer, answer + sizeof(answer)); in makeAnswer()
102 return std::vector<uint8_t>(answer, answer_end); in makeAnswer()
163 std::vector<uint8_t> answer(MAXPACKET); in cacheLookup() local
164 const auto cacheStatus = resolv_cache_lookup(netId, ce.query, answer, &anslen, flags); in cacheLookup()
172 answer.resize(anslen); in cacheLookup()
173 if (answer != ce.answer) { in cacheLookup()
190 return resolv_cache_add(netId, ce.query, ce.answer); in cacheAdd()
194 const std::vector<uint8_t>& answer) { in cacheAdd() argument
[all …]
Ddoh_ffi_test.cpp123 uint8_t answer[8192]; in TEST_F() local
125 len = doh_query(doh, dnsNetId, buf.data(), len, answer, sizeof answer, TIMEOUT_MS); in TEST_F()
/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/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/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/services/Iwlan/test/com/google/android/iwlan/epdg/
DEpdgSelectorTest.java971 .map(answer -> answer.mAddresses) in getAnswer()
977 private synchronized void setAnswer(String hostname, String[] answer, int type) in setAnswer() argument
979 DnsEntry record = new DnsEntry(hostname, type, generateAnswer(answer)); in setAnswer()
986 private List<InetAddress> generateAnswer(String[] answer) { in generateAnswer() argument
987 if (answer == null) return new ArrayList<>(); in generateAnswer()
988 return Arrays.stream(answer) in generateAnswer()
1005 List<InetAddress> answer = new ArrayList<>(); in queryAllTypes() local
1006 answer.addAll(queryIpv4(hostname)); in queryAllTypes()
1007 answer.addAll(queryIpv6(hostname)); in queryAllTypes()
1008 return answer; in queryAllTypes()
[all …]
/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/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/com/android/pandora/
DSecurity.kt230 .map { answer -> in <lambda>() method
235 val device = answer.event.address.toBluetoothDevice(bluetoothAdapter) in <lambda>()
236 when (answer.answerCase!!) { in <lambda>()
237 PairingEventAnswer.AnswerCase.CONFIRM -> device.setPairingConfirmation(answer.confirm) in <lambda>()
239 device.setPin(answer.passkey.toString().padStart(6, '0')) in <lambda>()
240 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.rs293 Response::Success { answer } => { in doh_query()
294 if answer.len() > response_len || answer.len() > isize::MAX as usize { in doh_query()
297 let response = slice::from_raw_parts_mut(response, answer.len()); in doh_query()
298 response.copy_from_slice(&answer); in doh_query()
299 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/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/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/route/
DExerciseRouteViewModelTest.kt147 val answer = { args: InvocationOnMock -> in <lambda>() constant
152 return answer in <lambda>()
156 val answer = { args: InvocationOnMock -> in <lambda>() constant
161 return answer in <lambda>()

12345678910>>...16