summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorRaff Tsai <rafftsai@google.com>2020-04-07 14:25:02 +0800
committerRaff Tsai <rafftsai@google.com>2020-04-10 08:37:17 +0800
commit87cefd4f28454150442890bb08f10125dfac8238 (patch)
tree5d5ad172ca130f2533fbb2842ebb7ebbf22c2ead /proto
parent2de79fb6fdfe421dfa6d55bed37da746e7cc6137 (diff)
Add SettingsStats puller in StatsPullAtomService
1. Add typed_features.proto contain StringListParam proto 2. Add SettingsStatsUtil to parse DeviceConfig whitelist and create log 3. Add test case in SettingsStatsUtilTest Test: atest FrameworksServicesTests:SettingsStatsUtilTest adb shell cmd stats pull-source 10080 Bug: 142941011 Change-Id: I5a161cf12dd6d52ae80813e6d1fe10ecbc5d05cd
Diffstat (limited to 'proto')
-rw-r--r--proto/src/typed_features.proto25
1 files changed, 25 insertions, 0 deletions
diff --git a/proto/src/typed_features.proto b/proto/src/typed_features.proto
new file mode 100644
index 000000000000..c2b3b18ea7c8
--- /dev/null
+++ b/proto/src/typed_features.proto
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2020 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.
+ */
+
+syntax = "proto2";
+
+package com.android.service;
+option java_multiple_files = true;
+
+// This message is to specify feature params that are a list of strings.
+message StringListParamProto {
+ repeated string element = 1;
+} \ No newline at end of file