private Uri b(Uri object, String string, String string2) { String string3 = object.toString(); int n = string3.indexOf(";adurl"); if (n != -1) { return Uri.parse( string3.substring(0, n + 1) + string + "=" + string2 + ";" + string3.substring(n + 1)); } object = object.getEncodedPath(); n = string3.indexOf((String) object); return Uri.parse( string3.substring(0, object.length() + n) + ";" + string + "=" + string2 + ";" + string3.substring(object.length() + n)); }
private Set parseQueryParameterNames(Uri uri) { uri = uri.getEncodedQuery(); if (uri == null) { return Collections.emptySet(); } LinkedHashSet linkedhashset = new LinkedHashSet(); int j = 0; do { int i; int k; label0: { i = uri.indexOf('&', j); if (i == -1) { i = uri.length(); } int l = uri.indexOf('=', j); if (l <= i) { k = l; if (l != -1) { break label0; } } k = i; } linkedhashset.add(Uri.decode(uri.substring(j, k))); i++; j = i; if (i >= uri.length()) { return linkedhashset; } } while (true); }