diff options
| author | Dan Egnor <egnor@google.com> | 2010-03-17 19:47:30 -0700 |
|---|---|---|
| committer | Dan Egnor <egnor@google.com> | 2010-03-18 08:51:36 -0700 |
| commit | 30c08a5f8867ccb2ce38c51b6d2db76e7abf9e7a (patch) | |
| tree | f1b9738b6345fa7f84b5c28d1beb23e62f8d9f49 /common | |
| parent | d246ca811575eee9122070648e93b7484f6edd81 (diff) | |
| download | frameworks_base-30c08a5f8867ccb2ce38c51b6d2db76e7abf9e7a.zip frameworks_base-30c08a5f8867ccb2ce38c51b6d2db76e7abf9e7a.tar.gz frameworks_base-30c08a5f8867ccb2ce38c51b6d2db76e7abf9e7a.tar.bz2 | |
Add GoogleLogTags that includes event log tags used by Google apps
Bug: 2523742
Change-Id: I0e61127ac58cbc954240b30c1f55c2518d833aaa
Diffstat (limited to 'common')
| -rw-r--r-- | common/Android.mk | 6 | ||||
| -rw-r--r-- | common/java/com/android/common/GoogleLogTags.logtags | 100 |
2 files changed, 104 insertions, 2 deletions
diff --git a/common/Android.mk b/common/Android.mk index 5c5b01b..1f78840 100644 --- a/common/Android.mk +++ b/common/Android.mk @@ -20,11 +20,13 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := android-common LOCAL_SDK_VERSION := current -LOCAL_SRC_FILES := $(call all-java-files-under, java) +LOCAL_SRC_FILES := \ + $(call all-java-files-under, java) \ + $(call all-logtags-files-under, java) include $(BUILD_STATIC_JAVA_LIBRARY) # Include this library in the build server's output directory $(call dist-for-goals, droid, $(LOCAL_BUILT_MODULE):android-common.jar) # Build the test package -include $(call all-makefiles-under,$(LOCAL_PATH)) +include $(call all-makefiles-under, $(LOCAL_PATH)) diff --git a/common/java/com/android/common/GoogleLogTags.logtags b/common/java/com/android/common/GoogleLogTags.logtags new file mode 100644 index 0000000..a5c9bb0 --- /dev/null +++ b/common/java/com/android/common/GoogleLogTags.logtags @@ -0,0 +1,100 @@ +# Copyright (C) 2010 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. + +option java_package com.android.common + +##### +# This file contains definitions for event log (android.util.EventLog) tags +# used by Google Mobile Services applications. These definitions are part of +# the platform even when the Google applications are not. +# +# See system/core/logcat/event.logtags for a description of the file format. +# +# These event log tags must be assigned specific numbers (no "?") in the range +# 200000-300000. If new tags are added, be aware that older platforms will be +# missing the tag definitions, and may not be able to show them in their logs. + +##### +# System Update (OTA) + +# System update status bits +# [31- 9] Reserved for future use +# [ 8- 7] package verified (0=not attempted, 1=succeeded, 2=failed) +# [ 6] install approved +# [ 5] download approved +# [ 4- 0] status +201001 system_update (status|1|5),(download_result|1|5),(bytes|2|2),(url|3) +201002 system_update_user (action|3) + +##### +# Android Market + +# @param changes Number of changes made to database in reconstruct +202001 vending_reconstruct (changes|1) + +##### +# Google Services Framework + +203001 sync_details (authority|3),(send|1|2),(recv|1|2),(details|3) + +203002 google_http_request (elapsed|2|3),(status|1),(appname|3),(reused|1) + +##### +# Google Talk Service + +# This event is logged when GTalkService encounters important events +204001 gtalkservice (eventType|1) +# This event is logged for GTalk connection state changes. The status field is an int, but +# it really contains 4 separate values, each taking up a byte +# (eventType << 24) + (connection state << 16) + (connection error << 8) + network state +204002 gtalk_connection (status|1) + +# This event is logged when GTalk connection is closed. +# The status field is an int, but contains 2 different values, it's represented as +# +# (networkType << 8) + connection error +# +# the possible error values are +# +# no_error=0, no_network=1, connection_failed=2, unknown_host=3, auth_failed=4, +# auth_expired=5, heart_beat_timeout=6, server_error=7, server_reject_rate_limiting=8, unknown=10 +# +# duration is the connection duration. +204003 gtalk_conn_close (status|1),(duration|1) + +# This event is logged for GTalk heartbeat resets +# interval_and_nt contains both the heartbeat interval and the network type, It's represented as +# (networkType << 16) + interval +# interval is in seconds; network type can be 0 (mobile) or 1 (wifi); ip is the host ip addr. +204004 gtalk_heartbeat_reset (interval_and_nt|1),(ip|3) + +# This event is logged when an Rmq v2 packet is sent or received. +204005 push_messaging (packet_type|1),(persistent_id|3),(stream_id|1),(last_stream_id|1) + +##### +# Google Login Service and Setup Wizard + +# This event is for when communicating to the server times out during account setup +205001 setup_server_timeout +205002 setup_required_captcha (action|3) +205003 setup_io_error (status|3) +205004 setup_server_error +205005 setup_retries_exhausted +205006 setup_no_data_network +205007 setup_completed + +205008 gls_account_tried (status|1) +205009 gls_account_saved (status|1) +205010 gls_authenticate (status|1),(service|3) +205011 google_mail_switch (direction|1) |
