Methods Summary |
---|
private static synchronized void | bindServices(android.content.Context context)
if (mStarted) return;
context.bindService(new Intent(IBordeauxService.class.getName()),
mConnection, Context.BIND_AUTO_CREATE);
mStarted = true;
|
public static synchronized IAggregatorManager | getAggregatorManager(android.content.Context context)
if (mService == null) {
bindServices(context);
return null;
}
try {
mAggregatorManager = IAggregatorManager.Stub.asInterface(
mService.getAggregatorManager());
} catch (RemoteException e) {
mAggregatorManager = null;
}
return mAggregatorManager;
|
public static synchronized ILearning_MulticlassPA | getClassifier(android.content.Context context, java.lang.String name)
if (mService == null) {
bindServices(context);
return null;
}
try {
mClassifier =
ILearning_MulticlassPA.Stub.asInterface(mService.getClassifier(name));
} catch (RemoteException e) {
mClassifier = null;
}
return mClassifier;
|
public static synchronized IPredictor | getPredictor(android.content.Context context, java.lang.String name)
if (mService == null) {
bindServices(context);
return null;
}
try {
mPredictor = IPredictor.Stub.asInterface(mService.getPredictor(name));
} catch (RemoteException e) {
mPredictor = null;
}
return mPredictor;
|
public static synchronized ILearning_StochasticLinearRanker | getRanker(android.content.Context context, java.lang.String name)
if (mService == null) {
bindServices(context);
return null;
}
try {
mRanker =
ILearning_StochasticLinearRanker.Stub.asInterface(
mService.getRanker(name));
} catch (RemoteException e) {
mRanker = null;
}
return mRanker;
|
public static synchronized IBordeauxService | getService(android.content.Context context)
if (mService == null) bindServices(context);
return mService;
|
public static synchronized void | release(android.content.Context context)
if (mStarted && mConnection != null) {
context.unbindService(mConnection);
mService = null;
mStarted = false;
}
|