aboutsummaryrefslogtreecommitdiff
path: root/car-lib/src_feature_current
diff options
context:
space:
mode:
authorAntonio Cortes <antoniocortes@google.com>2017-02-06 08:47:38 -0800
committerAntonio Cortes <antoniocortes@google.com>2017-02-08 19:18:12 -0800
commitc52d5f9f6190cf9a44dd6dfd3bc92386fbf023b3 (patch)
treefcfadbc13e77c8882d9ba80879ef302c0d00c88b /car-lib/src_feature_current
parent09c655aa3570e10f7bbec574708db70e3ce35963 (diff)
downloadCar-c52d5f9f6190cf9a44dd6dfd3bc92386fbf023b3.tar.gz
Protecting VmsSubscriberManager with the future annotation and future flag.
Needed to move the FeatureConfiguration.java from service to car-lib because it is used in Car.java This is a post-O feature. Bug: b/34976096 Test: Build with TARGET_USES_CAR_FUTURE_FEATURES set to true and to false. Change-Id: I25848a0bfe6a6d59181dde48399fd2e1e8f10e4c
Diffstat (limited to 'car-lib/src_feature_current')
-rw-r--r--car-lib/src_feature_current/com/android/car/internal/FeatureConfiguration.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/car-lib/src_feature_current/com/android/car/internal/FeatureConfiguration.java b/car-lib/src_feature_current/com/android/car/internal/FeatureConfiguration.java
new file mode 100644
index 0000000000..55da8707dc
--- /dev/null
+++ b/car-lib/src_feature_current/com/android/car/internal/FeatureConfiguration.java
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2017 The Android Open Source Project
+ *
+ * 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 com.android.car.internal;
+
+/**
+ * Class to hold static boolean flag for enabling / disabling features.
+ *
+ * @hide
+ */
+public class FeatureConfiguration {
+ /** Disable future feature by default. */
+ public static final boolean DEFAULT = false;
+ /** product configuration in CarInfoManager */
+ public static final boolean ENABLE_PRODUCT_CONFIGURATION_INFO = DEFAULT;
+ public static final boolean ENABLE_VEHICLE_MAP_SERVICE = DEFAULT;
+}