Home
last modified time | relevance | path

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

1234567891011

/packages/modules/DnsResolver/
Dresolv_cache_unit_test.cpp55 std::vector<char> answer; member
97 char answer[MAXPACKET] = {}; in makeAnswer() local
98 char* answer_end = header.write(answer, answer + sizeof(answer)); in makeAnswer()
99 return std::vector<char>(answer, answer_end); in makeAnswer()
160 std::vector<char> answer(MAXPACKET); in cacheLookup() local
162 answer.data(), answer.size(), &anslen, flags); in cacheLookup()
170 answer.resize(anslen); in cacheLookup()
171 if (answer != ce.answer) { in cacheLookup()
188 return resolv_cache_add(netId, ce.query.data(), ce.query.size(), ce.answer.data(), in cacheAdd()
189 ce.answer.size()); in cacheAdd()
[all …]
Dres_query.cpp104 uint8_t* answer, // buffer to put answer in res_nquery() argument
110 HEADER* hp = (HEADER*) (void*) answer; in res_nquery()
132 n = res_nsend(statp, buf, n, answer, anslen, &rcode, 0); in res_nquery()
206 uint8_t* answer, /* buffer to put answer */ in res_nsearch() argument
212 HEADER* hp = (HEADER*) (void*) answer; in res_nsearch()
232 ret = res_nquerydomain(statp, name, NULL, cl, type, answer, anslen, herrno); in res_nsearch()
258 ret = res_nquerydomain(statp, name, domain.c_str(), cl, type, answer, anslen, herrno); in res_nsearch()
304 ret = res_nquerydomain(statp, name, NULL, cl, type, answer, anslen, herrno); in res_nsearch()
330 uint8_t* answer, /* buffer to put answer */ in res_nquerydomain() argument
365 return res_nquery(statp, longname, cl, type, answer, anslen, herrno); in res_nquerydomain()
Dgethnamaddr.cpp128 static struct hostent* getanswer(const querybuf* answer, int anslen, const char* qname, int qtype, in getanswer() argument
144 _DIAGASSERT(answer != NULL); in getanswer()
149 eom = answer->buf + anslen; in getanswer()
168 hp = &answer->hdr; in getanswer()
173 cp = answer->buf; in getanswer()
177 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
198 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
219 n = dn_expand(answer->buf, eom, cp, tbuf, (int) sizeof tbuf); in getanswer()
246 n = dn_expand(answer->buf, eom, cp, tbuf, (int) sizeof tbuf); in getanswer()
279 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
Dgetaddrinfo.cpp123 std::vector<uint8_t> answer = std::vector<uint8_t>(MAXPACKET, 0); // buffer to put answer member
841 static struct addrinfo* getanswer(const std::vector<uint8_t>& answer, int anslen, const char* qname, in getanswer() argument
864 eom = answer.data() + anslen; in getanswer()
879 hp = reinterpret_cast<const HEADER*>(answer.data()); in getanswer()
884 cp = answer.data(); in getanswer()
890 n = dn_expand(answer.data(), eom, cp, bp, ep - bp); in getanswer()
914 n = dn_expand(answer.data(), eom, cp, bp, ep - bp); in getanswer()
934 n = dn_expand(answer.data(), eom, cp, tbuf, sizeof tbuf); in getanswer()
1452 addrinfo* ai = getanswer(q.answer, q.n, q.name, q.qtype, pai, &he); in dns_getaddrinfo()
1458 ai = getanswer(q2.answer, q2.n, q2.name, q2.qtype, pai, &he); in dns_getaddrinfo()
[all …]
Dres_cache.cpp690 const uint8_t* answer; member
755 static uint32_t answer_getTTL(const void* answer, int answerlen) { in answer_getTTL() argument
762 if (ns_initparse((const uint8_t*) answer, answerlen, &handle) >= 0) { in answer_getTTL()
837 static Entry* entry_alloc(const Entry* init, const void* answer, int answerlen) { in entry_alloc() argument
851 e->answer = e->query + e->querylen; in entry_alloc()
854 memcpy((char*) e->answer, answer, e->answerlen); in entry_alloc()
1188 ResolvCacheStatus resolv_cache_lookup(unsigned netid, const void* query, int querylen, void* answer, in resolv_cache_lookup() argument
1276 memcpy(answer, e->answer, e->answerlen); in resolv_cache_lookup()
1288 int resolv_cache_add(unsigned netid, const void* query, int querylen, const void* answer, in resolv_cache_add() argument
1335 ttl = answer_getTTL(answer, answerlen); in resolv_cache_add()
[all …]
/packages/modules/NetworkStack/tests/lib/src/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?.addresses.isNullOrEmpty()) { in mockAnswer()
86 callback.onAnswer(answer?.addresses, 0); }) }) in mockAnswer()
/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;
DAnswerFragment.java17 package com.android.incallui.answer.impl;
67 import com.android.incallui.answer.impl.CreateCustomSmsDialogFragment.CreateCustomSmsHolder;
68 import com.android.incallui.answer.impl.SmsBottomSheetFragment.SmsSheetHolder;
69 import com.android.incallui.answer.impl.affordance.SwipeButtonHelper.Callback;
70 import com.android.incallui.answer.impl.affordance.SwipeButtonView;
71 import com.android.incallui.answer.impl.answermethod.AnswerMethod;
72 import com.android.incallui.answer.impl.answermethod.AnswerMethodFactory;
73 import com.android.incallui.answer.impl.answermethod.AnswerMethodHolder;
74 import com.android.incallui.answer.impl.utils.Interpolators;
75 import com.android.incallui.answer.protocol.AnswerScreen;
[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/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/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/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/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceControllerTest.java72 @Mock(answer = RETURNS_DEEP_STUBS)
74 @Mock(answer = RETURNS_DEEP_STUBS)
76 @Mock(answer = RETURNS_DEEP_STUBS)
78 @Mock(answer = RETURNS_DEEP_STUBS)
DApplicationListPreferenceControllerTest.java74 @Mock(answer = RETURNS_DEEP_STUBS)
76 @Mock(answer = RETURNS_DEEP_STUBS)
78 @Mock(answer = RETURNS_DEEP_STUBS)
/packages/apps/Dialer/
Dpackages.mk86 com.android.incallui.answer.impl.affordance \
87 com.android.incallui.answer.impl \
88 com.android.incallui.answer.impl.answermethod \
89 com.android.incallui.answer.impl.hint \
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DAutoSyncPersonalDataPreferenceControllerTest.java47 @Mock(answer = RETURNS_DEEP_STUBS)
49 @Mock(answer = RETURNS_DEEP_STUBS)
51 @Mock(answer = RETURNS_DEEP_STUBS)
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DRecommendationUtils.java44 public Integer answer(InvocationOnMock invocation) throws Throwable { in createMockRecommendationDataManager()
53 public Collection<ChannelRecord> answer(InvocationOnMock invocation) in createMockRecommendationDataManager()
63 public ChannelRecord answer(InvocationOnMock invocation) throws Throwable { in createMockRecommendationDataManager()
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DGesturePreferenceControllerTest.java46 @Mock(answer = Answers.RETURNS_DEEP_STUBS)
48 @Mock(answer = Answers.RETURNS_DEEP_STUBS)
50 @Mock(answer = Answers.RETURNS_DEEP_STUBS)
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallsManagerTest.java644 }).when(incomingCall).answer(anyInt()); in testDuplicateAnswerCall()
651 verify(incomingCall, times(2)).answer(anyInt()); in testDuplicateAnswerCall()
672 verify(incomingCall).answer(VideoProfile.STATE_AUDIO_ONLY); in testAnswerCallWhenOngoingCallCanBeHeld()
691 verify(incomingCall).answer(VideoProfile.STATE_AUDIO_ONLY); in testAnswerCallWhenOngoingHasSameConnectionService()
712 verify(incomingCall).answer(VideoProfile.STATE_AUDIO_ONLY); in testAnswerCallWhenOngoingHasDifferentConnectionService()
733 verify(incomingCall, never()).answer(VideoProfile.STATE_AUDIO_ONLY); in testAnswerCallWhenOngoingHasDifferentConnectionServiceButIsEmerg()
773 verify(incomingCall).answer(VideoProfile.STATE_AUDIO_ONLY); in testAnswerCallWhenMultipleHeldCallsExisted()
789 verify(incomingCall).answer(VideoProfile.STATE_AUDIO_ONLY); in testAnswerCallWhenNoOngoingCallExisted()
805 verify(incomingCall).answer(VideoProfile.STATE_AUDIO_ONLY); in testAnswerAlreadyActiveCall()
948 verify(incomingCall).answer(VideoProfile.STATE_AUDIO_ONLY); in testAcceptIncomingCallWhenHeadsetMediaButtonShortPress()
[all …]
DComponentContextFixture.java503 public List<ResolveInfo> answer(InvocationOnMock invocation) throws Throwable {
512 public List<ResolveInfo> answer(InvocationOnMock invocation) throws Throwable {
521 public List<ResolveInfo> answer(InvocationOnMock invocation) throws Throwable {
530 public List<ResolveInfo> answer(InvocationOnMock invocation) throws Throwable {
554 public Void answer(InvocationOnMock invocation) throws Throwable {
628 public String answer(InvocationOnMock invocation) {
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java354 .map(answer -> answer.mAddresses).findFirst().orElse(null); in getAnswer()
358 private synchronized void setAnswer(String hostname, String[] answer, int type) in setAnswer() argument
360 DnsEntry record = new DnsEntry(hostname, type, generateAnswer(answer)); in setAnswer()
367 private List<InetAddress> generateAnswer(String[] answer) { in generateAnswer() argument
368 if (answer == null) return new ArrayList<>(); in generateAnswer()
369 return Arrays.stream(answer).map(addr -> InetAddress.parseNumericAddress(addr)) in generateAnswer()
376 List<InetAddress> answer = queryAllTypes(mock, hostname); in getAllByName() local
377 if (answer == null || answer.size() == 0) { in getAllByName()
380 return answer.toArray(new InetAddress[0]); in getAllByName()
385 List<InetAddress> answer = new ArrayList<>(); in queryAllTypes() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DEmergencyInfoPreferenceControllerTest.java60 @Mock(answer = RETURNS_DEEP_STUBS)
62 @Mock(answer = RETURNS_DEEP_STUBS)
64 @Mock(answer = RETURNS_DEEP_STUBS)
/packages/apps/Messaging/tests/src/com/android/messaging/
DFakeFactory.java91 public String answer(final InvocationOnMock invocation) throws Throwable { in registerWithFakeContext()
100 public String answer(final InvocationOnMock invocation) throws Throwable { in registerWithFakeContext()
109 public String answer(final InvocationOnMock invocation) throws Throwable { in registerWithFakeContext()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/
DPawImageLoaderImpl.java17 package com.android.incallui.answer.impl.hint;
27 import com.android.incallui.answer.impl.hint.PawSecretCodeListener.PawType;

1234567891011