Exemplo n.º 1
0
 @Override
 public boolean equals(Object other) {
   if (other == this) return true;
   if (!(other instanceof More)) return false;
   More o = (More) other;
   return WireInternal.equals(unknownFields(), o.unknownFields())
       && WireInternal.equals(serial, o.serial);
 }
Exemplo n.º 2
0
 public boolean shouldOverrideUrlLoading(WebView webview, String s)
 {
     if (s.startsWith("market://"))
     {
         s.substring(s.indexOf("?id=") + 4, s.lastIndexOf("http://"));
         a.go(s);
     } else
     if (n.a(a, "com.android.vending") && s.contains("play.google"))
     {
         a.b(s);
     } else
     {
         a.a(s);
     }
     return true;
 }
Exemplo n.º 3
0
 @Override
 public More redact(More value) {
   Builder builder = value.newBuilder();
   builder.clearUnknownFields();
   return builder.build();
 }
Exemplo n.º 4
0
 @Override
 public void encode(ProtoWriter writer, More value) throws IOException {
   if (value.serial != null)
     ProtoAdapter.INT32.asRepeated().encodeWithTag(writer, 1, value.serial);
   writer.writeBytes(value.unknownFields());
 }
Exemplo n.º 5
0
 @Override
 public int encodedSize(More value) {
   return ProtoAdapter.INT32.asRepeated().encodedSizeWithTag(1, value.serial)
       + value.unknownFields().size();
 }