Home
last modified time | relevance | path

Searched refs:paramMap (Results 1 – 3 of 3) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/util/net/
DHttpHelperTest.java70 MultiMap<String, String> paramMap = new MultiMap<String, String>(); in testBuildParams() local
71 paramMap.put("key", "value"); in testBuildParams()
72 assertEquals("key=value", mHelper.buildParameters(paramMap)); in testBuildParams()
74 paramMap.clear(); in testBuildParams()
75 paramMap.put("key1", "value1"); in testBuildParams()
76 paramMap.put("key2", "value2"); in testBuildParams()
77 String params = mHelper.buildParameters(paramMap); in testBuildParams()
82 paramMap.clear(); in testBuildParams()
83 paramMap.put("key", "value1"); in testBuildParams()
84 paramMap.put("key", "value2"); in testBuildParams()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/net/
DHttpHelper.java58 public String buildUrl(String baseUrl, MultiMap<String, String> paramMap) { in buildUrl() argument
60 if (paramMap != null && !paramMap.isEmpty()) { in buildUrl()
62 urlBuilder.append(buildParameters(paramMap)); in buildUrl()
71 public String buildParameters(MultiMap<String, String> paramMap) { in buildParameters() argument
74 for (String key : paramMap.keySet()) { in buildParameters()
75 for (String value : paramMap.get(key)) { in buildParameters()
DIHttpHelper.java49 public String buildUrl(String url, MultiMap<String, String> paramMap); in buildUrl() argument
58 public String buildParameters(MultiMap<String, String> paramMap); in buildParameters() argument