first commit
[bylock.git] / sources / com / google / android / gms / location / DetectedActivity.java
blob7e5835f907b831afe520d2c76ffdbefe24d85208
1 package com.google.android.gms.location;
3 import android.os.Parcel;
4 import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
6 public class DetectedActivity implements SafeParcelable {
7 public static final c a = new c();
8 int b;
9 int c;
10 private final int d;
12 public DetectedActivity(int i, int i2, int i3) {
13 this.d = i;
14 this.b = i2;
15 this.c = i3;
18 private int a(int i) {
19 if (i > 8) {
20 return 4;
22 return i;
25 public int a() {
26 return a(this.b);
29 public int b() {
30 return this.d;
33 public int describeContents() {
34 return 0;
37 public String toString() {
38 return "DetectedActivity [type=" + a() + ", confidence=" + this.c + "]";
41 public void writeToParcel(Parcel parcel, int i) {
42 c.a(this, parcel, i);