Home
last modified time | relevance | path

Searched refs:rcode (Results 1 – 4 of 4) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DConnectivityBackgroundTestActivity.java568 if (result.rcode != 204) {
580 if (result.rcode != 200) {
613 public final int rcode;
616 public HttpResult(int rcode, String msg) {
617 this.rcode = rcode;
624 int rcode = -1;
633 rcode = conn.getResponseCode();
634 if (rcode >= 200 && rcode <= 299) {
642 return new HttpResult(rcode, msg);
/cts/tests/tests/net/native/dns/
DNativeDnsAsyncTest.cpp37 int getAsyncResponse(int fd, int timeoutMs, int* rcode, uint8_t* buf, size_t bufLen) { in getAsyncResponse() argument
46 int n = android_res_nresult(fd, rcode, buf, bufLen); in getAsyncResponse()
79 int rcode = -1; in expectAnswersValid() local
81 int res = getAsyncResponse(fd, TIMEOUT_MS, &rcode, buf, MAXPACKET); in expectAnswersValid()
83 EXPECT_EQ(rcode, expectedRcode); in expectAnswersValid()
96 int rcode = -1; in expectAnswersNotValid() local
98 int res = getAsyncResponse(fd, TIMEOUT_MS, &rcode, buf, MAXPACKET); in expectAnswersNotValid()
/cts/tests/tests/net/jni/
DNativeMultinetworkJni.cpp80 int getAsyncResponse(JNIEnv* env, int fd, int timeoutMs, int* rcode, uint8_t* buf, size_t bufLen) { in getAsyncResponse() argument
85 int n = android_res_nresult(fd, rcode, buf, bufLen); in getAsyncResponse()
124 int rcode = -1; in expectAnswersValid() local
126 int res = getAsyncResponse(env, fd, TIMEOUT_MS, &rcode, buf, MAXPACKET); in expectAnswersValid()
131 EXPECT_EQ(env, expectedRcode, rcode, "rcode is not expected"); in expectAnswersValid()
140 int rcode = -1; in expectAnswersNotValid() local
142 int res = getAsyncResponse(env, fd, TIMEOUT_MS, &rcode, buf, MAXPACKET); in expectAnswersNotValid()
/cts/tests/tests/net/src/android/net/cts/
DDnsResolverTest.java171 return mHeader.rcode; in getRcode()
218 public void onAnswer(@NonNull byte[] answer, int rcode) { in onAnswer() argument
225 mRcode = rcode; in onAnswer()
540 public void onAnswer(@NonNull List<InetAddress> answerList, int rcode) { in onAnswer() argument
686 public void onAnswer(@NonNull List<InetAddress> answerList, int rcode) { in testPrivateDnsBypass()