private String getDataUriMimeType(Uri paramUri) {
   paramUri = paramUri.getSchemeSpecificPart();
   int i = paramUri.indexOf(',');
   if (i == -1) {}
   do {
     return null;
     paramUri = paramUri.substring(0, i).split(";");
   } while (paramUri.length <= 0);
   return paramUri[0];
 }
Beispiel #2
0
 public static String getLocaleNameFromUri(Uri uri)
 {
     if (uri != null)
     {
         if (!Util.isEmpty(uri = uri.getHost()))
         {
             uri = uri.toLowerCase();
             uri = uri.substring(uri.indexOf("amazon.") + "amazon.".length());
             return (String)sLocaleMapping.get(uri);
         }
     }
     return null;
 }
Beispiel #3
0
    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);
    }