Merge "Switch ServiceWatcher clients to fg thread"
This commit is contained in:
committed by
Android (Google) Code Review
commit
69789f9545
@@ -24,7 +24,7 @@ import android.os.IBinder;
|
||||
import android.os.RemoteException;
|
||||
import android.util.Log;
|
||||
|
||||
import com.android.internal.os.BackgroundThread;
|
||||
import com.android.server.FgThread;
|
||||
import com.android.server.ServiceWatcher;
|
||||
|
||||
/**
|
||||
@@ -84,7 +84,7 @@ public class ActivityRecognitionProxy {
|
||||
overlaySwitchResId,
|
||||
defaultServicePackageNameResId,
|
||||
initialPackageNameResId,
|
||||
BackgroundThread.getHandler()) {
|
||||
FgThread.getHandler()) {
|
||||
@Override
|
||||
protected void onBind() {
|
||||
runOnBinder(ActivityRecognitionProxy.this::initializeService);
|
||||
|
||||
@@ -21,7 +21,7 @@ import android.location.Address;
|
||||
import android.location.GeocoderParams;
|
||||
import android.location.IGeocodeProvider;
|
||||
|
||||
import com.android.internal.os.BackgroundThread;
|
||||
import com.android.server.FgThread;
|
||||
import com.android.server.ServiceWatcher;
|
||||
|
||||
import java.util.List;
|
||||
@@ -53,7 +53,7 @@ public class GeocoderProxy {
|
||||
int initialPackageNamesResId) {
|
||||
mServiceWatcher = new ServiceWatcher(context, TAG, SERVICE_ACTION, overlaySwitchResId,
|
||||
defaultServicePackageNameResId, initialPackageNamesResId,
|
||||
BackgroundThread.getHandler());
|
||||
FgThread.getHandler());
|
||||
}
|
||||
|
||||
private boolean bind() {
|
||||
|
||||
@@ -30,7 +30,7 @@ import android.os.RemoteException;
|
||||
import android.os.UserHandle;
|
||||
import android.util.Log;
|
||||
|
||||
import com.android.internal.os.BackgroundThread;
|
||||
import com.android.server.FgThread;
|
||||
import com.android.server.ServiceWatcher;
|
||||
|
||||
/**
|
||||
@@ -82,7 +82,7 @@ public final class GeofenceProxy {
|
||||
mContext = context;
|
||||
mServiceWatcher = new ServiceWatcher(context, TAG, SERVICE_ACTION, overlaySwitchResId,
|
||||
defaultServicePackageNameResId, initialPackageNamesResId,
|
||||
BackgroundThread.getHandler()) {
|
||||
FgThread.getHandler()) {
|
||||
@Override
|
||||
protected void onBind() {
|
||||
runOnBinder(mUpdateGeofenceHardware);
|
||||
|
||||
@@ -31,8 +31,8 @@ import com.android.internal.location.ILocationProvider;
|
||||
import com.android.internal.location.ILocationProviderManager;
|
||||
import com.android.internal.location.ProviderProperties;
|
||||
import com.android.internal.location.ProviderRequest;
|
||||
import com.android.internal.os.BackgroundThread;
|
||||
import com.android.internal.os.TransferPipe;
|
||||
import com.android.server.FgThread;
|
||||
import com.android.server.LocationManagerService;
|
||||
import com.android.server.ServiceWatcher;
|
||||
|
||||
@@ -105,7 +105,7 @@ public class LocationProviderProxy extends AbstractLocationProvider {
|
||||
|
||||
mServiceWatcher = new ServiceWatcher(context, TAG, action, overlaySwitchResId,
|
||||
defaultServicePackageNameResId, initialPackageNamesResId,
|
||||
BackgroundThread.getHandler()) {
|
||||
FgThread.getHandler()) {
|
||||
|
||||
@Override
|
||||
protected void onBind() {
|
||||
|
||||
Reference in New Issue
Block a user