Home
last modified time | relevance | path

Searched refs:readErrorFromConnection (Results 1 – 2 of 2) sorted by relevance

/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DServerInterfaceTest.java280 assertThat(ServerInterface.readErrorFromConnection(connection)) in testReadErrorInvalidContentType()
293 assertThat(ServerInterface.readErrorFromConnection(connection)).isEqualTo(expectedError); in testReadTextErrorFromErrorStreamNoErrorData()
306 assertThat(ServerInterface.readErrorFromConnection(connection)).isEqualTo(error); in testReadTextErrorFromErrorStream()
329 .isEqualTo(ServerInterface.readErrorFromConnection(connection)); in testReadTextError()
342 assertThat(ServerInterface.readErrorFromConnection(connection)).isEqualTo(error); in testReadJsonError()
354 final String error = ServerInterface.readErrorFromConnection(connection); in testReadErrorStreamThrowsException()
366 assertThat(ServerInterface.readErrorFromConnection(connection)) in testReadErrorEmptyStream()
384 assertThat(ServerInterface.readErrorFromConnection(connection)).isEqualTo(sb.toString()); in testReadErrorStreamTooLarge()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/interfaces/
DServerInterface.java331 public static String readErrorFromConnection(HttpURLConnection con) { in readErrorFromConnection() method in ServerInterface
486 Log.e(TAG, readErrorFromConnection(con)); in requestData()