Java 类com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener 实例源码

项目:QuizUpWinner    文件:dx.java   
public final void registerConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  eg.f(paramOnConnectionFailedListener);
  synchronized (this.pw)
  {
    if (this.pw.contains(paramOnConnectionFailedListener))
    {
      new StringBuilder("registerConnectionFailedListener(): listener ").append(paramOnConnectionFailedListener).append(" is already registered");
    }
    else
    {
      if (this.px)
        this.pw = new ArrayList(this.pw);
      this.pw.add(paramOnConnectionFailedListener);
    }
    return;
  }
}
项目:QuizUpWinner    文件:PlusClient.java   
public Builder(Context paramContext, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.mContext = paramContext;
  this.Dz = paramConnectionCallbacks;
  this.jE = paramOnConnectionFailedListener;
  this.DA = new hv(this.mContext);
}
项目:QuizUpWinner    文件:GamesClient.java   
public Builder(Context paramContext, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.mContext = paramContext;
  this.tx = paramContext.getPackageName();
  this.jD = paramConnectionCallbacks;
  this.jE = paramOnConnectionFailedListener;
}
项目:QuizUpWinner    文件:dx.java   
public final void a(ConnectionResult paramConnectionResult)
{
  this.mHandler.removeMessages(1);
  while (true)
  {
    int i;
    synchronized (this.pw)
    {
      this.px = true;
      ArrayList localArrayList2 = this.pw;
      i = 0;
      int j = localArrayList2.size();
      if (i < j)
      {
        if (!this.ps.bp())
          return;
        if (this.pw.contains(localArrayList2.get(i)))
          ((GooglePlayServicesClient.OnConnectionFailedListener)localArrayList2.get(i)).onConnectionFailed(paramConnectionResult);
      }
      else
      {
        this.px = false;
        return;
      }
    }
    i++;
  }
}
项目:QuizUpWinner    文件:dx.java   
public final boolean isConnectionFailedListenerRegistered(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  eg.f(paramOnConnectionFailedListener);
  synchronized (this.pw)
  {
    boolean bool = this.pw.contains(paramOnConnectionFailedListener);
    return bool;
  }
}
项目:QuizUpWinner    文件:dx.java   
public final void unregisterConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  eg.f(paramOnConnectionFailedListener);
  synchronized (this.pw)
  {
    if (this.pw != null)
    {
      if (this.px)
        this.pw = new ArrayList(this.pw);
      if (!this.pw.remove(paramOnConnectionFailedListener))
        new StringBuilder("unregisterConnectionFailedListener(): listener ").append(paramOnConnectionFailedListener).append(" not found");
    }
    return;
  }
}
项目:QuizUpWinner    文件:AppStateClient.java   
public Builder(Context paramContext, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.mContext = paramContext;
  this.jD = paramConnectionCallbacks;
  this.jE = paramOnConnectionFailedListener;
  this.jF = jC;
  this.jG = "<<default account>>";
}
项目:QuizUpWinner    文件:GoogleApiClient.java   
private GoogleApiClient(Context paramContext, dt paramdt, Map<Api, ApiOptions> paramMap, Set<ConnectionCallbacks> paramSet, Set<OnConnectionFailedListener> paramSet1)
{
  Iterator localIterator1 = paramSet.iterator();
  while (localIterator1.hasNext())
  {
    ConnectionCallbacks localConnectionCallbacks = (ConnectionCallbacks)localIterator1.next();
    this.ne.registerConnectionCallbacks(localConnectionCallbacks);
  }
  Iterator localIterator2 = paramSet1.iterator();
  while (localIterator2.hasNext())
  {
    OnConnectionFailedListener localOnConnectionFailedListener = (OnConnectionFailedListener)localIterator2.next();
    this.ne.registerConnectionFailedListener(localOnConnectionFailedListener);
  }
  Iterator localIterator3 = paramMap.keySet().iterator();
  while (localIterator3.hasNext())
  {
    Api localApi = (Api)localIterator3.next();
    final Api.b localb = localApi.bj();
    ApiOptions localApiOptions = (ApiOptions)paramMap.get(localApi);
    this.nl.put(localb, localb.b(paramContext, paramdt, localApiOptions, this.no, new OnConnectionFailedListener()
    {
      public void onConnectionFailed(ConnectionResult paramAnonymousConnectionResult)
      {
        synchronized (GoogleApiClient.c(GoogleApiClient.this))
        {
          if ((GoogleApiClient.h(GoogleApiClient.this) == null) || (localb.getPriority() < GoogleApiClient.i(GoogleApiClient.this)))
          {
            GoogleApiClient.a(GoogleApiClient.this, paramAnonymousConnectionResult);
            GoogleApiClient.b(GoogleApiClient.this, localb.getPriority());
          }
          GoogleApiClient.f(GoogleApiClient.this);
          return;
        }
      }
    }));
  }
}
项目:QuizUpWinner    文件:GoogleApiClient.java   
public Builder(Context paramContext, GoogleApiClient.ConnectionCallbacks paramConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this(paramContext);
  eg.b(paramConnectionCallbacks, "Must provide a connected listener");
  this.nx.add(paramConnectionCallbacks);
  eg.b(paramOnConnectionFailedListener, "Must provide a connection failed listener");
  this.ny.add(paramOnConnectionFailedListener);
}
项目:chickenalerts    文件:MainActivity.java   
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    locationClient = new LocationClient(this, new ConnectionCallbacks() {
        @Override
        public void onConnected(Bundle connectionHint) {
            if (BuildConfig.DEBUG)
                Log.i(TAG, "Location onConnected");
            MainActivity.this.locationClientConnected = true;
        }

        @Override
        public void onDisconnected() {
            if (BuildConfig.DEBUG)
                Log.i(TAG, "Location onDisconnected");
            MainActivity.this.locationClientConnected = false;
        }
    }, new OnConnectionFailedListener() {
        @Override
        public void onConnectionFailed(ConnectionResult result) {
            if (BuildConfig.DEBUG)
                Log.i(TAG, "Location onConnectionFailed");
            MainActivity.this.locationClientConnected = false;
        }
    });
}
项目:QuizUpWinner    文件:PlusClient.java   
@Deprecated
public boolean isConnectionFailedListenerRegistered(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  return this.Du.isConnectionFailedListenerRegistered(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:PlusClient.java   
@Deprecated
public void registerConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.Du.registerConnectionFailedListener(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:PlusClient.java   
@Deprecated
public void unregisterConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.Du.unregisterConnectionFailedListener(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:GamesClient.java   
private GamesClient(Context paramContext, String paramString1, String paramString2, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener, String[] paramArrayOfString, int paramInt1, View paramView, boolean paramBoolean, int paramInt2)
{
  this.te = new fl(paramContext, paramString1, paramString2, paramConnectionCallbacks, paramOnConnectionFailedListener, paramArrayOfString, paramInt1, paramView, false, paramBoolean, paramInt2);
}
项目:QuizUpWinner    文件:GamesClient.java   
@Deprecated
public final boolean isConnectionFailedListenerRegistered(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  return this.te.isConnectionFailedListenerRegistered(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:GamesClient.java   
@Deprecated
public final void registerConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.te.registerConnectionFailedListener(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:GamesClient.java   
@Deprecated
public final void unregisterConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.te.unregisterConnectionFailedListener(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:gn.java   
public gn(Context paramContext, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener, String paramString)
{
  super(paramContext, paramConnectionCallbacks, paramOnConnectionFailedListener, new String[0]);
  this.xX = paramString;
  this.jG = null;
}
项目:QuizUpWinner    文件:by.java   
public by(Context paramContext, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener, int paramInt)
{
  super(paramContext, paramConnectionCallbacks, paramOnConnectionFailedListener, new String[0]);
  this.hp = paramInt;
}
项目:QuizUpWinner    文件:ActivityRecognitionClient.java   
public ActivityRecognitionClient(Context paramContext, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.xl = new gn(paramContext, paramConnectionCallbacks, paramOnConnectionFailedListener, "activity_recognition");
}
项目:QuizUpWinner    文件:ActivityRecognitionClient.java   
public boolean isConnectionFailedListenerRegistered(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  return this.xl.isConnectionFailedListenerRegistered(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:ActivityRecognitionClient.java   
public void registerConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.xl.registerConnectionFailedListener(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:ActivityRecognitionClient.java   
public void unregisterConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.xl.unregisterConnectionFailedListener(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:LocationClient.java   
public LocationClient(Context paramContext, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.xl = new gn(paramContext, paramConnectionCallbacks, paramOnConnectionFailedListener, "location");
}
项目:QuizUpWinner    文件:LocationClient.java   
public boolean isConnectionFailedListenerRegistered(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  return this.xl.isConnectionFailedListenerRegistered(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:LocationClient.java   
public void registerConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.xl.registerConnectionFailedListener(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:LocationClient.java   
public void unregisterConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.xl.unregisterConnectionFailedListener(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:AppStateClient.java   
private AppStateClient(Context paramContext, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener, String paramString, String[] paramArrayOfString)
{
  this.jx = new dc(paramContext, paramConnectionCallbacks, paramOnConnectionFailedListener, paramString, paramArrayOfString);
}
项目:QuizUpWinner    文件:AppStateClient.java   
@Deprecated
public final boolean isConnectionFailedListenerRegistered(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  return this.jx.isConnectionFailedListenerRegistered(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:AppStateClient.java   
@Deprecated
public final void registerConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.jx.registerConnectionFailedListener(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:AppStateClient.java   
@Deprecated
public final void unregisterConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.jx.unregisterConnectionFailedListener(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:PanoramaClient.java   
public PanoramaClient(Context paramContext, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.Di = new hm(paramContext, paramConnectionCallbacks, paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:PanoramaClient.java   
public boolean isConnectionFailedListenerRegistered(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  return this.Di.isConnectionFailedListenerRegistered(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:PanoramaClient.java   
public void registerConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.Di.registerConnectionFailedListener(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:PanoramaClient.java   
public void unregisterConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.Di.unregisterConnectionFailedListener(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:WalletClient.java   
public WalletClient(Activity paramActivity, int paramInt1, String paramString, int paramInt2, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.Hj = new iu(paramActivity, paramConnectionCallbacks, paramOnConnectionFailedListener, paramInt1, paramString, paramInt2);
}
项目:QuizUpWinner    文件:WalletClient.java   
public WalletClient(Activity paramActivity, int paramInt, String paramString, GooglePlayServicesClient.ConnectionCallbacks paramConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this(paramActivity, paramInt, paramString, 0, paramConnectionCallbacks, paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:WalletClient.java   
public boolean isConnectionFailedListenerRegistered(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  return this.Hj.isConnectionFailedListenerRegistered(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:WalletClient.java   
public void registerConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.Hj.registerConnectionFailedListener(paramOnConnectionFailedListener);
}
项目:QuizUpWinner    文件:WalletClient.java   
public void unregisterConnectionFailedListener(GooglePlayServicesClient.OnConnectionFailedListener paramOnConnectionFailedListener)
{
  this.Hj.unregisterConnectionFailedListener(paramOnConnectionFailedListener);
}