File: fresnel_pref_names.cc

package info (click to toggle)
chromium 138.0.7204.183-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,071,908 kB
  • sloc: cpp: 34,937,088; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,953; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,806; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (50 lines) | stat: -rw-r--r-- 2,272 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chromeos/ash/components/report/prefs/fresnel_pref_names.h"

namespace ash::report::prefs {

// Pacific adjusted timestamp of last known 1-day-active ping to Fresnel, stored
// as UTC.
const char kDeviceActiveLastKnown1DayActivePingTimestamp[] =
    "device_active.last_known_daily_ping_timestamp";

// Pacific adjusted timestamp of last known 28-day-active ping to Fresnel,
// stored as UTC.
const char kDeviceActiveLastKnown28DayActivePingTimestamp[] =
    "device_active.last_known_28day_active_ping_timestamp";

// Pacific adjusted timestamp of last known monthly churn cohort ping to
// Fresnel, stored as UTC.
const char kDeviceActiveChurnCohortMonthlyPingTimestamp[] =
    "device_active.last_known_churn_cohort_monthly_ping_timestamp";

// Pacific adjusted timestamp of last known monthly churn observation ping to
// Fresnel, stored as UTC.
const char kDeviceActiveChurnObservationMonthlyPingTimestamp[] =
    "device_active.last_known_churn_observation_monthly_ping_timestamp";

// Int representing the 28 bit Active Status used for the churn use case.
// The first 10 bits represent number months from 01/01/2000 to current month.
// Remaining 18 bits represents past 18 months when device was active from
// current month.
const char kDeviceActiveLastKnownChurnActiveStatus[] =
    "device_active.last_known_churn_active_status";

// The observation status for the past three periods from the current date.
// The current date is determined based on the first 10 bits of
// |kDeviceActiveLastKnownChurnActiveStatus|.
const char kDeviceActiveLastKnownIsActiveCurrentPeriodMinus0[] =
    "device_active.last_known_is_active_current_period_minus_0";
const char kDeviceActiveLastKnownIsActiveCurrentPeriodMinus1[] =
    "device_active.last_known_is_active_current_period_minus_1";
const char kDeviceActiveLastKnownIsActiveCurrentPeriodMinus2[] =
    "device_active.last_known_is_active_current_period_minus_2";

// Dictionary storing 28 day rolling history of device active pings.
const char kDeviceActive28DayActivePingCache[] =
    "device_active.28day_active_ping_cache";

}  // namespace ash::report::prefs