public final class

htcCheckin

extends Object
java.lang.Object
   ↳ android.provider.htcCheckin

Class Overview

Contract class for checkin provider. Describes the exposed database schema, and offers methods to add events and statistics to be uploaded.

Summary

Nested Classes
interface htcCheckin.Crashes The crashes table is a log of crash reports, kept separate from the general event log because crashes are large, important, and bursty. 
interface htcCheckin.Events The events table is a log of important timestamped occurrences. 
interface htcCheckin.IntentAction Intents with this action cause a checkin attempt. 
interface htcCheckin.Message  
interface htcCheckin.Properties The properties table is a set of tagged values sent with every checkin. 
interface htcCheckin.Stats The stats table is a list of counter values indexed by a tag name. 
Constants
String AUTHORITY Note: Using the same AUTHORITY with C's provider to avoid many change to framework.
Public Constructors
htcCheckin()
Public Methods
static boolean isEnableCheckin()
static boolean isEnableFOTA()
static boolean isEnableReport()
static Uri logEvent(ContentResolver resolver, htcCheckin.Events.Tag tag, String value)
Helper function to log an event to the database.
static Uri logEvent(ContentResolver resolver, Checkin.Events.Tag tag, String value)
static Uri reportCrash(ContentResolver resolver, CrashData crash)
Report a crash in CrashData format.
static Uri reportCrash(ContentResolver resolver, byte[] crash)
Helper function to report a crash.
static Uri saveMessage(ContentResolver resolver, String link, String version, String feature, String size)
static void setReport(boolean flag)
static Uri updateStats(ContentResolver resolver, Checkin.Stats.Tag tag, int count, double sum)
static Uri updateStats(ContentResolver resolver, htcCheckin.Stats.Tag tag, int count, double sum)
Helper function to update statistics in the database.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String AUTHORITY

Note: Using the same AUTHORITY with C's provider to avoid many change to framework. For HEP w/o GMS, this provider will replace C's to make framework operating property.

Constant Value: "android.server.htcCheckin"

Public Constructors

public htcCheckin ()

Public Methods

public static boolean isEnableCheckin ()

public static boolean isEnableFOTA ()

public static boolean isEnableReport ()

public static Uri logEvent (ContentResolver resolver, htcCheckin.Events.Tag tag, String value)

Helper function to log an event to the database.

Parameters
resolver from getContentResolver()
tag identifying the type of event being recorded
value associated with event, if any
Returns
  • URI of the event that was added

public static Uri logEvent (ContentResolver resolver, Checkin.Events.Tag tag, String value)

public static Uri reportCrash (ContentResolver resolver, CrashData crash)

Report a crash in CrashData format.

Parameters
resolver from getContentResolver()
crash data to report
Returns
  • URI of the crash report that was added

public static Uri reportCrash (ContentResolver resolver, byte[] crash)

Helper function to report a crash.

Parameters
resolver from getContentResolver()
crash data from CrashData
Returns
  • URI of the crash report that was added

public static Uri saveMessage (ContentResolver resolver, String link, String version, String feature, String size)

public static void setReport (boolean flag)

public static Uri updateStats (ContentResolver resolver, Checkin.Stats.Tag tag, int count, double sum)

public static Uri updateStats (ContentResolver resolver, htcCheckin.Stats.Tag tag, int count, double sum)

Helper function to update statistics in the database. Note that multiple updates to the same tag will be combined.

Parameters
tag identifying what is being observed
count of occurrences
sum of some value over these occurrences
Returns
  • URI of the statistic that was returned