mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-11-19 02:29:25 +01:00
Add dummy implementation for Global Search API
This commit is contained in:
parent
40835c3618
commit
b732ef8b29
@ -17,14 +17,57 @@
|
||||
package org.microg.gms.icing;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.os.RemoteException;
|
||||
import android.util.Log;
|
||||
|
||||
import com.google.android.gms.common.api.Status;
|
||||
import com.google.android.gms.search.global.GetCurrentExperimentIdsRequest;
|
||||
import com.google.android.gms.search.global.GetCurrentExperimentIdsResponse;
|
||||
import com.google.android.gms.search.global.GetGlobalSearchSourcesRequest;
|
||||
import com.google.android.gms.search.global.GetGlobalSearchSourcesResponse;
|
||||
import com.google.android.gms.search.global.GetPendingExperimentIdsRequest;
|
||||
import com.google.android.gms.search.global.GetPendingExperimentIdsResponse;
|
||||
import com.google.android.gms.search.global.SetExperimentIdsRequest;
|
||||
import com.google.android.gms.search.global.SetExperimentIdsResponse;
|
||||
import com.google.android.gms.search.global.SetIncludeInGlobalSearchRequest;
|
||||
import com.google.android.gms.search.global.SetIncludeInGlobalSearchResponse;
|
||||
import com.google.android.gms.search.global.internal.IGlobalSearchAdminCallbacks;
|
||||
import com.google.android.gms.search.global.internal.IGlobalSearchAdminService;
|
||||
|
||||
public class GlobalSearchAdminImpl extends IGlobalSearchAdminService.Stub {
|
||||
private static final String TAG = "GmsIcingGlobalImpl";
|
||||
|
||||
@Override
|
||||
public void getGlobalSearchSources(GetGlobalSearchSourcesRequest request, IGlobalSearchAdminCallbacks callbacks) throws RemoteException {
|
||||
Log.d(TAG, "getGlobalSearchSources: " + request);
|
||||
callbacks.onGetGlobalSearchSourcesResponse(new GetGlobalSearchSourcesResponse(Status.SUCCESS, new Parcelable[0]));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setExperimentIds(SetExperimentIdsRequest request, IGlobalSearchAdminCallbacks callbacks) throws RemoteException {
|
||||
Log.d(TAG, "setExperimentIds: " + request);
|
||||
callbacks.onSetExperimentIdsResponse(new SetExperimentIdsResponse(Status.SUCCESS));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getCurrentExperimentIds(GetCurrentExperimentIdsRequest request, IGlobalSearchAdminCallbacks callbacks) throws RemoteException {
|
||||
Log.d(TAG, "getCurrentExperimentIds: " + request);
|
||||
callbacks.onGetCurrentExperimentIdsResponse(new GetCurrentExperimentIdsResponse(Status.SUCCESS, new int[0]));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getPendingExperimentIds(GetPendingExperimentIdsRequest request, IGlobalSearchAdminCallbacks callbacks) throws RemoteException {
|
||||
Log.d(TAG, "getPendingExperimentIds: " + request);
|
||||
callbacks.onGetPendingExperimentIdsResponse(new GetPendingExperimentIdsResponse(Status.SUCCESS, new int[0]));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setIncludeInGlobalSearch(SetIncludeInGlobalSearchRequest request, IGlobalSearchAdminCallbacks callbacks) throws RemoteException {
|
||||
Log.d(TAG, "setIncludeInGlobalSearch: " + request);
|
||||
callbacks.onSetIncludeInGlobalSearchResponse(new SetIncludeInGlobalSearchResponse(Status.SUCCESS));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {
|
||||
if (super.onTransact(code, data, reply, flags)) return true;
|
||||
|
Loading…
Reference in New Issue
Block a user