Bertrand SIMONNET | bd3505e | 2015-08-04 14:04:51 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2015 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
| 17 | #ifndef METRICS_CONSTANTS_H_ |
| 18 | #define METRICS_CONSTANTS_H_ |
| 19 | |
| 20 | namespace metrics { |
| 21 | static const char kMetricsDirectory[] = "/data/misc/metrics/"; |
| 22 | static const char kMetricsEventsFilePath[] = "/data/misc/metrics/uma-events"; |
| 23 | static const char kMetricsGUIDFilePath[] = "/data/misc/metrics/Sysinfo.GUID"; |
Bertrand SIMONNET | 10fe60d | 2015-08-20 10:40:55 -0700 | [diff] [blame] | 24 | static const char kMetricsServer[] = "https://clients4.google.com/uma/v2"; |
Bertrand SIMONNET | bd3505e | 2015-08-04 14:04:51 -0700 | [diff] [blame] | 25 | static const char kConsentFilePath[] = "/data/misc/metrics/enabled"; |
Bertrand SIMONNET | bae5dcc | 2015-08-04 14:12:10 -0700 | [diff] [blame] | 26 | static const char kDefaultVersion[] = "0.0.0.0"; |
Bertrand SIMONNET | 2699362 | 2015-08-20 14:08:41 -0700 | [diff] [blame] | 27 | |
| 28 | // System properties used. |
| 29 | static const char kBuildTargetIdProperty[] = "ro.product.build_target_id"; |
| 30 | static const char kChannelProperty[] = "ro.product.channel"; |
| 31 | static const char kProductVersionProperty[] = "ro.product.version"; |
Bertrand SIMONNET | bd3505e | 2015-08-04 14:04:51 -0700 | [diff] [blame] | 32 | } // namespace metrics |
| 33 | |
| 34 | #endif // METRICS_CONSTANTS_H_ |