Example #1
0
 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;
   }
 }
Example #2
0
 static byte[] a(c cVar) {
   byte[] bArr = new byte[64];
   cn.com.smartdevices.bracelet.gps.h.b.a(bArr, cVar.p, 0);
   cn.com.smartdevices.bracelet.gps.h.b.a(bArr, cVar.q, 8);
   cn.com.smartdevices.bracelet.gps.h.b.a(bArr, cVar.o, 16);
   cn.com.smartdevices.bracelet.gps.h.b.a(bArr, cVar.r, 24);
   try {
     JSONObject c = cVar.c();
     cn.com.smartdevices.bracelet.gps.h.b.a(bArr, c.getInt(c.a), 32);
     cn.com.smartdevices.bracelet.gps.h.b.a(
         bArr, Float.valueOf(c.getString(GroupItemBaseInfo.KEY_START_TIME)).floatValue(), 36);
     cn.com.smartdevices.bracelet.gps.h.b.a(
         bArr, Float.valueOf(c.getString(c.b)).floatValue(), 40);
     cn.com.smartdevices.bracelet.gps.h.b.a(
         bArr, Float.valueOf(c.getString(c.d)).floatValue(), 44);
     cn.com.smartdevices.bracelet.gps.h.b.a(bArr, c.getInt(C0454m.c), 48);
   } catch (JSONException e) {
     C0596r.a("Sync", e.getMessage());
   }
   return bArr;
 }