/*
 * Copyright 2013-2015 microG Project Team
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.microg.gms.icing;

import android.os.Parcel;
import android.os.RemoteException;
import android.util.Log;

import com.google.android.gms.search.global.internal.IGlobalSearchAdminService;

public class GlobalSearchAdminImpl extends IGlobalSearchAdminService.Stub {
    private static final String TAG = "GmsIcingGlobalImpl";

    @Override
    public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {
        if (super.onTransact(code, data, reply, flags)) return true;
        Log.d(TAG, "onTransact [unknown]: " + code + ", " + data + ", " + flags);
        return false;
    }
}

@@ -659,16 +659,46 @@
 Parcel;%0A
+import android.os.Parcelable;%0A
 import a
@@ -784,194 +784,2734 @@
 gms.
-search.global.internal.IGlobalSearchAdminService;%0A%0Apublic class GlobalSearchAdminImpl extends IGlobalSearchAdminService.Stub %7B%0A    private static final String TAG = %22GmsIcingGlobalImpl%22;
+common.api.Status;%0Aimport com.google.android.gms.search.global.GetCurrentExperimentIdsRequest;%0Aimport com.google.android.gms.search.global.GetCurrentExperimentIdsResponse;%0Aimport com.google.android.gms.search.global.GetGlobalSearchSourcesRequest;%0Aimport com.google.android.gms.search.global.GetGlobalSearchSourcesResponse;%0Aimport com.google.android.gms.search.global.GetPendingExperimentIdsRequest;%0Aimport com.google.android.gms.search.global.GetPendingExperimentIdsResponse;%0Aimport com.google.android.gms.search.global.SetExperimentIdsRequest;%0Aimport com.google.android.gms.search.global.SetExperimentIdsResponse;%0Aimport com.google.android.gms.search.global.SetIncludeInGlobalSearchRequest;%0Aimport com.google.android.gms.search.global.SetIncludeInGlobalSearchResponse;%0Aimport com.google.android.gms.search.global.internal.IGlobalSearchAdminCallbacks;%0Aimport com.google.android.gms.search.global.internal.IGlobalSearchAdminService;%0A%0Apublic class GlobalSearchAdminImpl extends IGlobalSearchAdminService.Stub %7B%0A    private static final String TAG = %22GmsIcingGlobalImpl%22;%0A%0A    @Override%0A    public void getGlobalSearchSources(GetGlobalSearchSourcesRequest request, IGlobalSearchAdminCallbacks callbacks) throws RemoteException %7B%0A        Log.d(TAG, %22getGlobalSearchSources: %22 + request);%0A        callbacks.onGetGlobalSearchSourcesResponse(new GetGlobalSearchSourcesResponse(Status.SUCCESS, new Parcelable%5B0%5D));%0A    %7D%0A%0A    @Override%0A    public void setExperimentIds(SetExperimentIdsRequest request, IGlobalSearchAdminCallbacks callbacks) throws RemoteException %7B%0A        Log.d(TAG, %22setExperimentIds: %22 + request);%0A        callbacks.onSetExperimentIdsResponse(new SetExperimentIdsResponse(Status.SUCCESS));%0A    %7D%0A%0A    @Override%0A    public void getCurrentExperimentIds(GetCurrentExperimentIdsRequest request, IGlobalSearchAdminCallbacks callbacks) throws RemoteException %7B%0A        Log.d(TAG, %22getCurrentExperimentIds: %22 + request);%0A        callbacks.onGetCurrentExperimentIdsResponse(new GetCurrentExperimentIdsResponse(Status.SUCCESS, new int%5B0%5D));%0A    %7D%0A%0A    @Override%0A    public void getPendingExperimentIds(GetPendingExperimentIdsRequest request, IGlobalSearchAdminCallbacks callbacks) throws RemoteException %7B%0A        Log.d(TAG, %22getPendingExperimentIds: %22 + request);%0A        callbacks.onGetPendingExperimentIdsResponse(new GetPendingExperimentIdsResponse(Status.SUCCESS, new int%5B0%5D));%0A    %7D%0A%0A    @Override%0A    public void setIncludeInGlobalSearch(SetIncludeInGlobalSearchRequest request, IGlobalSearchAdminCallbacks callbacks) throws RemoteException %7B%0A        Log.d(TAG, %22setIncludeInGlobalSearch: %22 + request);%0A        callbacks.onSetIncludeInGlobalSearchResponse(new SetIncludeInGlobalSearchResponse(Status.SUCCESS));%0A    %7D
 %0A%0A  

Add dummy implementation for Global Search API