|
|
@ -18,7 +18,7 @@ package androidx.car.app.connection;
|
|
|
|
|
|
|
|
|
|
|
|
import static androidx.car.app.connection.CarConnection.ACTION_CAR_CONNECTION_UPDATED;
|
|
|
|
import static androidx.car.app.connection.CarConnection.ACTION_CAR_CONNECTION_UPDATED;
|
|
|
|
import static androidx.car.app.connection.CarConnection.CAR_CONNECTION_STATE;
|
|
|
|
import static androidx.car.app.connection.CarConnection.CAR_CONNECTION_STATE;
|
|
|
|
import static androidx.car.app.utils.LogTags.TAG_CONNECTION_TO_CAR;
|
|
|
|
//import static androidx.car.app.utils.LogTags.TAG_CONNECTION_TO_CAR;
|
|
|
|
|
|
|
|
|
|
|
|
import android.content.AsyncQueryHandler;
|
|
|
|
import android.content.AsyncQueryHandler;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
|
@ -45,6 +45,7 @@ final class CarConnectionTypeLiveData extends LiveData<@ConnectionType Integer>
|
|
|
|
@VisibleForTesting
|
|
|
|
@VisibleForTesting
|
|
|
|
static final String CAR_CONNECTION_AUTHORITY = "androidx.car.app.connection";
|
|
|
|
static final String CAR_CONNECTION_AUTHORITY = "androidx.car.app.connection";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final String TAG_CONNECTION_TO_CAR = "fairemail";
|
|
|
|
private static final int QUERY_TOKEN = 42;
|
|
|
|
private static final int QUERY_TOKEN = 42;
|
|
|
|
private static final Uri PROJECTION_HOST_URI = new Uri.Builder().scheme("content").authority(
|
|
|
|
private static final Uri PROJECTION_HOST_URI = new Uri.Builder().scheme("content").authority(
|
|
|
|
CAR_CONNECTION_AUTHORITY).build();
|
|
|
|
CAR_CONNECTION_AUTHORITY).build();
|
|
|
|