public void onSuccess(int i, Header[] headerArr, byte[] bArr) { ArrayList arrayList = new ArrayList(); if (C0476i.b(this.c, new String(bArr), arrayList).c()) { Iterator it = arrayList.iterator(); boolean z = true; while (it.hasNext()) { n nVar = (n) it.next(); if (nVar.d() != null) { z = p.a(this.c, new d(nVar.g(), new String(nVar.d()))); if (z) { z = p.h(this.c, nVar.g()) & z; } } } this.a.a = z; if (!this.a.a) { C0596r.e( "Sync", "syncSportConfigFromServer onSuccess statusCode = " + i + ",content = " + ",type = " + this.b + " ,isSucceeded = " + z); } } }
static boolean a(Context context, long j, List<n> list) { if (context == null) { throw new IllegalArgumentException(); } else if (list == null || list.size() <= 0) { return true; } else { boolean z = true; for (n d : list) { byte[] d2 = d.d(); int length = d2.length / 64; List arrayList = new ArrayList(length); int i = 0; for (int i2 = 0; i2 < length; i2++) { c cVar = new c(); cVar.p = cn.com.smartdevices.bracelet.gps.h.b.a(d2, i); i += 8; cVar.q = cn.com.smartdevices.bracelet.gps.h.b.a(d2, i); i += 8; cVar.o = cn.com.smartdevices.bracelet.gps.h.b.a(d2, i); i += 8; cVar.r = cn.com.smartdevices.bracelet.gps.h.b.d(d2, i); i += 8; cVar.t = cn.com.smartdevices.bracelet.gps.h.b.c(d2, i); i += 4; cVar.s = cn.com.smartdevices.bracelet.gps.h.b.b(d2, i); i += 4; cVar.v = cn.com.smartdevices.bracelet.gps.h.b.b(d2, i); i += 4; cVar.u = cn.com.smartdevices.bracelet.gps.h.b.b(d2, i); i += 4; cVar.b(cn.com.smartdevices.bracelet.gps.h.b.c(d2, i)); i = (i + 4) + 12; arrayList.add(cVar); } z = p.a(context, arrayList, j) | z; } return z; } }