Home
last modified time | relevance | path

Searched refs:CarTelemetryManager (Results 1 – 25 of 27) sorted by relevance

12

/packages/services/Car/tests/carservice_test/src/com/android/car/telemetry/
DCarTelemetryManagerTest.java19 import static android.car.telemetry.CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_ALREADY_EXISTS;
20 import static android.car.telemetry.CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_PARSE_FAILED;
21 import static android.car.telemetry.CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_SUCCEEDED;
22 import static android.car.telemetry.CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_VERSION_TOO_OLD;
23 import static android.car.telemetry.CarTelemetryManager.STATUS_GET_METRICS_CONFIG_DOES_NOT_EXIST;
39 import android.car.telemetry.CarTelemetryManager;
78 private CarTelemetryManager mCarTelemetryManager;
85 mCarTelemetryManager = (CarTelemetryManager) getCar().getCarManager( in setUp()
157 CarTelemetryManager.ReportReadyListener listener = metricsConfigName -> { }; in testSetClearListener()
174 CarTelemetryManager.MetricsReportCallback callback = mock( in testGetFinishedReport_noSuchConfig()
[all …]
DCarTelemetryManagerSpyServiceTest.java19 import static android.car.telemetry.CarTelemetryManager.STATUS_GET_METRICS_CONFIG_FINISHED;
20 import static android.car.telemetry.CarTelemetryManager.STATUS_GET_METRICS_CONFIG_RUNTIME_ERROR;
38 import android.car.telemetry.CarTelemetryManager;
68 private CarTelemetryManager mManager; // subject
73 private CarTelemetryManager.MetricsReportCallback mMockMetricsReportCallback;
80 mManager = (CarTelemetryManager) getCar().getCarManager( in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/
DCarTelemetryServiceTest.java19 import static android.car.telemetry.CarTelemetryManager.STATUS_GET_METRICS_CONFIG_DOES_NOT_EXIST;
20 import static android.car.telemetry.CarTelemetryManager.STATUS_GET_METRICS_CONFIG_FINISHED;
21 import static android.car.telemetry.CarTelemetryManager.STATUS_GET_METRICS_CONFIG_INTERIM_RESULTS;
22 import static android.car.telemetry.CarTelemetryManager.STATUS_GET_METRICS_CONFIG_PENDING;
23 import static android.car.telemetry.CarTelemetryManager.STATUS_GET_METRICS_CONFIG_RUNTIME_ERROR;
44 import android.car.telemetry.CarTelemetryManager;
181 eq(CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_SUCCEEDED), isNull()); in testAddMetricsConfig_newMetricsConfig_shouldSucceed()
190 eq(CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_SUCCEEDED), isNull()); in testAddMetricsConfig_duplicateMetricsConfig_shouldFail()
197 eq(CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_ALREADY_EXISTS), isNull()); in testAddMetricsConfig_duplicateMetricsConfig_shouldFail()
207 eq(CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_PARSE_FAILED), isNull()); in testAddMetricsConfig_invalidMetricsConfig_shouldFail()
[all …]
DMetricsConfigStoreTest.java19 import static android.car.telemetry.CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_SUCCEEDED;
23 import android.car.telemetry.CarTelemetryManager;
72 assertThat(status).isEqualTo(CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_SUCCEEDED); in testAddMetricsConfig_shouldWriteConfigToDisk()
83 assertThat(status).isEqualTo(CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_VERSION_TOO_OLD); in testAddMetricsConfig_whenInvalidVersion_shouldNotWriteToDisk()
/packages/services/Car/tests/CarTelemetryApp/src/com/android/car/cartelemetryapp/
DCarMetricsCollectorService.java22 import android.car.telemetry.CarTelemetryManager;
23 import android.car.telemetry.CarTelemetryManager.AddMetricsConfigCallback;
53 private CarTelemetryManager mCarTelemetryManager;
65 (CarTelemetryManager) car.getCarManager(Car.CAR_TELEMETRY_SERVICE);
224 private class ReportListener implements CarTelemetryManager.ReportReadyListener {
232 private class ReportCallback implements CarTelemetryManager.MetricsReportCallback {
287 if (statusCode == CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_SUCCEEDED in onAddMetricsConfigStatus()
288 || statusCode == CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_ALREADY_EXISTS) { in onAddMetricsConfigStatus()
/packages/services/Car/service/src/com/android/car/telemetry/
DMetricsConfigStore.java19 import static android.car.telemetry.CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_ALREADY_EXISTS;
20 import static android.car.telemetry.CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_SUCCEEDED;
21 import static android.car.telemetry.CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_UNKNOWN;
22 import static android.car.telemetry.CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_VERSION_TOO_OLD;
DCarTelemetryService.java18 import static android.car.telemetry.CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_PARSE_FAILED;
19 import static android.car.telemetry.CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_SUCCEEDED;
20 import static android.car.telemetry.CarTelemetryManager.STATUS_GET_METRICS_CONFIG_DOES_NOT_EXIST;
21 import static android.car.telemetry.CarTelemetryManager.STATUS_GET_METRICS_CONFIG_FINISHED;
22 import static android.car.telemetry.CarTelemetryManager.STATUS_GET_METRICS_CONFIG_INTERIM_RESULTS;
23 import static android.car.telemetry.CarTelemetryManager.STATUS_GET_METRICS_CONFIG_PENDING;
24 import static android.car.telemetry.CarTelemetryManager.STATUS_GET_METRICS_CONFIG_RUNTIME_ERROR;
35 import android.car.telemetry.CarTelemetryManager;
628 @CarTelemetryManager.MetricsReportStatus int status) { in sendResult()
/packages/services/Car/car-lib/src/android/car/telemetry/
DCarTelemetryManager.java58 public final class CarTelemetryManager extends CarManagerBase { class
61 private static final String TAG = CarTelemetryManager.class.getSimpleName();
222 public CarTelemetryManager(Car car, IBinder service) { in CarTelemetryManager() method in CarTelemetryManager
421 private final WeakReference<CarTelemetryManager> mManager;
423 private CarTelemetryReportReadyListenerImpl(CarTelemetryManager manager) { in CarTelemetryReportReadyListenerImpl()
429 CarTelemetryManager manager = mManager.get(); in onReady()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/telemetry/
DCarTelemetryTestFragment.java34 import android.car.telemetry.CarTelemetryManager;
527 private CarTelemetryManager mCarTelemetryManager;
1114 implements CarTelemetryManager.AddMetricsConfigCallback {
1124 case CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_SUCCEEDED: in statusCodeToString()
1126 case CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_ALREADY_EXISTS: in statusCodeToString()
1128 case CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_VERSION_TOO_OLD: in statusCodeToString()
1130 case CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_PARSE_FAILED: in statusCodeToString()
1132 case CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_SIGNATURE_VERIFICATION_FAILED: in statusCodeToString()
1146 CarTelemetryManager.MetricsReportCallback {
1153 @CarTelemetryManager.MetricsReportStatus int status) { in onResult()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DKitchenSinkHelperImpl.java27 import android.car.telemetry.CarTelemetryManager;
58 private CarTelemetryManager mCarTelemetryManager;
159 public CarTelemetryManager getCarTelemetryManager() { in getCarTelemetryManager()
163 (CarTelemetryManager) mCarApi.getCarManager(Car.CAR_TELEMETRY_SERVICE); in getCarTelemetryManager()
DKitchenSinkHelper.java27 import android.car.telemetry.CarTelemetryManager;
79 CarTelemetryManager getCarTelemetryManager(); in getCarTelemetryManager()
DKitchenSink2Activity.java30 import android.car.telemetry.CarTelemetryManager;
143 public CarTelemetryManager getCarTelemetryManager() { in getCarTelemetryManager()
DKitchenSinkActivity.java29 import android.car.telemetry.CarTelemetryManager;
191 public CarTelemetryManager getCarTelemetryManager() { in getCarTelemetryManager()
/packages/services/Car/tests/CarTelemetryApp/
DREADME.md5 The application uses CarTelemetryManager APIs to add metrics configurations and collect telemetry.
35 CarTelemetryManager APIs are protected with a
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarGetCarManagerTest.java51 import android.car.telemetry.CarTelemetryManager;
115 {CarTelemetryManager.class, Car.CAR_TELEMETRY_SERVICE}, in inputParameters()
/packages/services/Car/car-lib/src/android/car/
DCar.java68 import android.car.telemetry.CarTelemetryManager;
1744 CAR_SERVICE_NAMES.put(CarTelemetryManager.class, CAR_TELEMETRY_SERVICE); in CAR_SERVICE_NAMES.put()
2719 manager = new CarTelemetryManager(this, binder); in createCarManagerLocked()
/packages/services/Car/car-lib/api/
Dsystem-lint-baseline.txt740 NullableCollection: android.car.telemetry.CarTelemetryManager.MetricsReportCallback#onResult(String…
741 …Type of parameter report in android.car.telemetry.CarTelemetryManager.MetricsReportCallback.onResu…
4244 UnflaggedApi: android.car.telemetry.CarTelemetryManager:
4245 New API must be flagged with @FlaggedApi: class android.car.telemetry.CarTelemetryManager
4246 UnflaggedApi: android.car.telemetry.CarTelemetryManager#STATUS_ADD_METRICS_CONFIG_ALREADY_EXISTS:
4247 …New API must be flagged with @FlaggedApi: field android.car.telemetry.CarTelemetryManager.STATUS_A…
4248 UnflaggedApi: android.car.telemetry.CarTelemetryManager#STATUS_ADD_METRICS_CONFIG_PARSE_FAILED:
4249 …New API must be flagged with @FlaggedApi: field android.car.telemetry.CarTelemetryManager.STATUS_A…
4250 UnflaggedApi: android.car.telemetry.CarTelemetryManager#STATUS_ADD_METRICS_CONFIG_SIGNATURE_VERIFIC…
4251 …New API must be flagged with @FlaggedApi: field android.car.telemetry.CarTelemetryManager.STATUS_A…
[all …]
Dsystem-current.txt2417 public final class CarTelemetryManager {
2418 …Null java.util.concurrent.Executor, @NonNull android.car.telemetry.CarTelemetryManager.AddMetricsC…
2420 …Null java.util.concurrent.Executor, @NonNull android.car.telemetry.CarTelemetryManager.MetricsRepo…
2421 …Null java.util.concurrent.Executor, @NonNull android.car.telemetry.CarTelemetryManager.MetricsRepo…
2424 …Null java.util.concurrent.Executor, @NonNull android.car.telemetry.CarTelemetryManager.ReportReady…
2438 public static interface CarTelemetryManager.AddMetricsConfigCallback {
2442 public static interface CarTelemetryManager.MetricsReportCallback {
2446 public static interface CarTelemetryManager.ReportReadyListener {
Dtest-current.txt2498 public final class CarTelemetryManager {
2499 …Null java.util.concurrent.Executor, @NonNull android.car.telemetry.CarTelemetryManager.AddMetricsC…
2501 …Null java.util.concurrent.Executor, @NonNull android.car.telemetry.CarTelemetryManager.MetricsRepo…
2502 …Null java.util.concurrent.Executor, @NonNull android.car.telemetry.CarTelemetryManager.MetricsRepo…
2505 …Null java.util.concurrent.Executor, @NonNull android.car.telemetry.CarTelemetryManager.ReportReady…
2519 public static interface CarTelemetryManager.AddMetricsConfigCallback {
2523 public static interface CarTelemetryManager.MetricsReportCallback {
2527 public static interface CarTelemetryManager.ReportReadyListener {
/packages/services/Car/car-lib/
DAndroid.bp29 // Public protos for CarTelemetryManager clients.
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java26 import static android.car.telemetry.CarTelemetryManager.STATUS_ADD_METRICS_CONFIG_SUCCEEDED;
69 import android.car.telemetry.CarTelemetryManager;
3707 CarTelemetryManager carTelemetryManager =
3708 (CarTelemetryManager) car.getCarManager(Car.CAR_TELEMETRY_SERVICE);
3861 CarTelemetryManager.MetricsReportCallback callback =
/packages/services/Car/tests/carservice_unit_test/res/raw/
Dcar_hidden_apis_release_33.3.txt631 android.car.telemetry CarTelemetryManager CarTelemetryManager CarTelemetryManager(Car car, IBinder …
632 android.car.telemetry CarTelemetryManager void onCarDisconnected()
Dcar_hidden_apis_release_33.2.txt565 android.car.telemetry CarTelemetryManager void onCarDisconnected()
/packages/services/Car/car-lib-module/api/
Dsystem-current.txt2417 public final class CarTelemetryManager {
2418 …Null java.util.concurrent.Executor, @NonNull android.car.telemetry.CarTelemetryManager.AddMetricsC…
2420 …Null java.util.concurrent.Executor, @NonNull android.car.telemetry.CarTelemetryManager.MetricsRepo…
2421 …Null java.util.concurrent.Executor, @NonNull android.car.telemetry.CarTelemetryManager.MetricsRepo…
2424 …Null java.util.concurrent.Executor, @NonNull android.car.telemetry.CarTelemetryManager.ReportReady…
2438 public static interface CarTelemetryManager.AddMetricsConfigCallback {
2442 public static interface CarTelemetryManager.MetricsReportCallback {
2446 public static interface CarTelemetryManager.ReportReadyListener {
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt1908 class @hide @SystemApi CarTelemetryManager package android.car.telemetry
1928 interface @hide @SystemApi CarTelemetryManager.AddMetricsConfigCallback package android.car.telemet…
1930 interface @hide @SystemApi CarTelemetryManager.MetricsReportCallback package android.car.telemetry
1932 interface @hide @SystemApi CarTelemetryManager.ReportReadyListener package android.car.telemetry

12