From 87cefd4f28454150442890bb08f10125dfac8238 Mon Sep 17 00:00:00 2001 From: Raff Tsai Date: Tue, 7 Apr 2020 14:25:02 +0800 Subject: 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 --- proto/src/typed_features.proto | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 proto/src/typed_features.proto (limited to 'proto') 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 -- cgit v1.2.3