Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29ee0a48 authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Make AbstractRemoteService available outside of system server

The handler of the services now runs on Looper.getMainLooper()

Test: Built
Bug: 117779333
Change-Id: Ie2fee4ce19d6e6181537d8adc196a4ceab7eb0f8
parent bee3e334
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package com.android.server.infra;
package com.android.internal.infra;

import android.annotation.NonNull;
import android.content.ComponentName;
+3 −3
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package com.android.server.infra;
package com.android.internal.infra;

import static com.android.internal.util.function.pooled.PooledLambda.obtainMessage;

@@ -27,13 +27,13 @@ import android.os.Handler;
import android.os.IBinder;
import android.os.IBinder.DeathRecipient;
import android.os.IInterface;
import android.os.Looper;
import android.os.RemoteException;
import android.os.SystemClock;
import android.os.UserHandle;
import android.util.Slog;

import com.android.internal.annotations.GuardedBy;
import com.android.server.FgThread;

import java.io.PrintWriter;
import java.lang.ref.WeakReference;
@@ -109,7 +109,7 @@ public abstract class AbstractRemoteService<S extends AbstractRemoteService<S, I
        mComponentName = componentName;
        mIntent = new Intent(serviceInterface).setComponent(mComponentName);
        mUserId = userId;
        mHandler = new Handler(FgThread.getHandler().getLooper());
        mHandler = new Handler(Looper.getMainLooper());
        mBindInstantServiceAllowed = bindInstantServiceAllowed;
    }

+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package com.android.server.infra;
package com.android.internal.infra;

import android.annotation.NonNull;
import android.content.ComponentName;
+1 −1
Original line number Diff line number Diff line
@@ -38,8 +38,8 @@ import android.view.autofill.AutofillManager;
import android.view.autofill.AutofillValue;
import android.view.autofill.IAutoFillManagerClient;

import com.android.internal.infra.AbstractSinglePendingRequestRemoteService;
import com.android.internal.os.IResultReceiver;
import com.android.server.infra.AbstractSinglePendingRequestRemoteService;

final class RemoteAugmentedAutofillService
        extends AbstractSinglePendingRequestRemoteService<RemoteAugmentedAutofillService,
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ import android.service.autofill.SaveRequest;
import android.text.format.DateUtils;
import android.util.Slog;

import com.android.server.infra.AbstractSinglePendingRequestRemoteService;
import com.android.internal.infra.AbstractSinglePendingRequestRemoteService;

final class RemoteFillService
        extends AbstractSinglePendingRequestRemoteService<RemoteFillService, IAutoFillService> {
Loading