summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorTej Singh <singhtejinder@google.com>2018-03-01 18:22:55 -0800
committerTej Singh <singhtejinder@google.com>2018-03-02 13:34:37 -0800
commitf800220ac803df7cabdbaa396969bbf895cd3a37 (patch)
tree1aab4d2ec56ab5a16bb41462cdcb3fba61d58dec /core/java/android
parentfc5d8c8f31f78de703f0a8d038ba0dafebca4510 (diff)
DO NOT MERGE Dummy StatsLog class
This is a dummy class that provides StatsLog.write methods and appropriate constants to log atoms in aosp. Test: build success on Marlin Change-Id: I606bc8a96337ced842eb7a2bcba8c4969c9d4748
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/util/StatsLog.java43
1 files changed, 43 insertions, 0 deletions
diff --git a/core/java/android/util/StatsLog.java b/core/java/android/util/StatsLog.java
new file mode 100644
index 000000000000..6965dc0a88f3
--- /dev/null
+++ b/core/java/android/util/StatsLog.java
@@ -0,0 +1,43 @@
+/*
+ * 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 android.util;
+
+/**
+ * @hide
+ * Temporary dummy class for StatsLog. Will be removed.
+ */
+public final class StatsLog {
+ private static final String TAG = "StatsManager";
+
+ public static final int BLUETOOTH_ENABLED = 0;
+
+ public static final int BLUETOOTH_CONNECTION_STATE_CHANGED = 1;
+
+ public static final int BLUETOOTH_A2DP_AUDIO_STATE_CHANGED = 2;
+ public static final int BLUETOOTH_A2DP_AUDIO_STATE_CHANGED__STATE__UNKNOWN = 0;
+ public static final int BLUETOOTH_A2DP_AUDIO_STATE_CHANGED__STATE__START = 1;
+ public static final int BLUETOOTH_A2DP_AUDIO_STATE_CHANGED__STATE__STOP = 2;
+
+ private StatsLog() {}
+
+ public static void write(int id, int field1) {}
+
+ public static void write(int id, int field1, int field2) {}
+
+ public static void write_non_chained(int id, int uid, String tag,
+ boolean field1, int field2, String field3) {}
+}