Loading core/java/android/provider/Im.java +55 −25 Original line number Original line Diff line number Diff line Loading @@ -2101,17 +2101,60 @@ public class Im { } } /** * Columns for IM branding resource map cache table. This table caches the result of * loading the branding resources to speed up IM landing page start. */ public interface BrandingResourceMapCacheColumns { /** * The provider ID * <P>Type: INTEGER</P> */ String PROVIDER_ID = "provider_id"; /** * The application resource ID * <P>Type: INTEGER</P> */ String APP_RES_ID = "app_res_id"; /** * The plugin resource ID * <P>Type: INTEGER</P> */ String PLUGIN_RES_ID = "plugin_res_id"; } /** * The table for caching the result of loading IM branding resources. */ public static final class BrandingResourceMapCache implements BaseColumns, BrandingResourceMapCacheColumns { /** * The content:// style URL for this table. */ public static final Uri CONTENT_URI = Uri.parse("content://im/brandingResMapCache"); } /** * //TODO: move these to MCS specific provider. * The following are MCS stuff, and should really live in a separate provider specific to * MCS code. */ /** /** * Columns from OutgoingRmq table * Columns from OutgoingRmq table */ */ public interface OutgoingRmqColumns { public interface OutgoingRmqColumns { String RMQ_ID = "rmq_id"; String RMQ_ID = "rmq_id"; String TYPE = "type"; String TIMESTAMP = "ts"; String TIMESTAMP = "ts"; String DATA = "data"; String DATA = "data"; String PROTOBUF_TAG = "type"; } } /** /** * //TODO: we should really move these to their own provider and database. * The table for storing outgoing rmq packets. * The table for storing outgoing rmq packets. */ */ public static final class OutgoingRmq implements BaseColumns, OutgoingRmqColumns { public static final class OutgoingRmq implements BaseColumns, OutgoingRmqColumns { Loading Loading @@ -2174,6 +2217,7 @@ public class Im { } } /** /** * //TODO: move these out into their own provider and database * The table for storing the last client rmq id sent to the server. * The table for storing the last client rmq id sent to the server. */ */ public static final class LastRmqId implements BaseColumns, LastRmqIdColumns { public static final class LastRmqId implements BaseColumns, LastRmqIdColumns { Loading Loading @@ -2234,35 +2278,21 @@ public class Im { } } /** /** * Columns for IM branding resource map cache table. This table caches the result of * Columns for the s2dRmqIds table, which stores the server-to-device message * loading the branding resources to speed up IM landing page start. * persistent ids. These are used in the RMQ2 protocol, where in the login request, the * client selective acks these s2d ids to the server. */ */ public interface BrandingResourceMapCacheColumns { public interface ServerToDeviceRmqIdsColumn { /** String RMQ_ID = "rmq_id"; * The provider ID * <P>Type: INTEGER</P> */ String PROVIDER_ID = "provider_id"; /** * The application resource ID * <P>Type: INTEGER</P> */ String APP_RES_ID = "app_res_id"; /** * The plugin resource ID * <P>Type: INTEGER</P> */ String PLUGIN_RES_ID = "plugin_res_id"; } } /** public static final class ServerToDeviceRmqIds implements BaseColumns, * The table for caching the result of loading IM branding resources. ServerToDeviceRmqIdsColumn { */ public static final class BrandingResourceMapCache implements BaseColumns, BrandingResourceMapCacheColumns { /** /** * The content:// style URL for this table. * The content:// style URL for this table. */ */ public static final Uri CONTENT_URI = Uri.parse("content://im/brandingResMapCache"); public static final Uri CONTENT_URI = Uri.parse("content://im/s2dids"); } } } } core/java/android/provider/Settings.java +26 −12 Original line number Original line Diff line number Diff line Loading @@ -2911,10 +2911,25 @@ public final class Settings { "gtalk_max_retries_for_auth_expired"; "gtalk_max_retries_for_auth_expired"; /** /** * This is the url for getting the app token for server-to-device push messaging. * a boolean setting indicating whether the GTalkService should use RMQ2 protocol or not. */ */ public static final String PUSH_MESSAGING_REGISTRATION_URL = public static final String GTALK_USE_RMQ2_PROTOCOL = "push_messaging_registration_url"; "gtalk_use_rmq2"; /** * a boolean setting indicating whether the GTalkService should support both RMQ and * RMQ2 protocols. This setting is true for the transitional period when we need to * support both protocols. */ public static final String GTALK_SUPPORT_RMQ_AND_RMQ2_PROTOCOLS = "gtalk_support_rmq_and_rmq2"; /** * a boolean setting controlling whether the rmq2 protocol will include stream ids in * the protobufs. This is used for debugging. */ public static final String GTALK_RMQ2_INCLUDE_STREAM_ID = "gtalk_rmq2_include_stream_id"; /** /** * This is gdata url to lookup album and picture info from picasa web. * This is gdata url to lookup album and picture info from picasa web. Loading @@ -2940,12 +2955,11 @@ public final class Settings { public static final String GTALK_YOUTUBE_VIDEO_URL = public static final String GTALK_YOUTUBE_VIDEO_URL = "gtalk_youtube_video_url"; "gtalk_youtube_video_url"; /** /** * This is the url for getting the app token for server-to-device data messaging. * This is the url for getting the app token for server-to-device push messaging. */ */ public static final String DATA_MESSAGE_GET_APP_TOKEN_URL = public static final String PUSH_MESSAGING_REGISTRATION_URL = "data_messaging_get_app_token_url"; "push_messaging_registration_url"; /** /** * Use android://<it> routing infos for Google Sync Server subcriptions. * Use android://<it> routing infos for Google Sync Server subcriptions. Loading Loading
core/java/android/provider/Im.java +55 −25 Original line number Original line Diff line number Diff line Loading @@ -2101,17 +2101,60 @@ public class Im { } } /** * Columns for IM branding resource map cache table. This table caches the result of * loading the branding resources to speed up IM landing page start. */ public interface BrandingResourceMapCacheColumns { /** * The provider ID * <P>Type: INTEGER</P> */ String PROVIDER_ID = "provider_id"; /** * The application resource ID * <P>Type: INTEGER</P> */ String APP_RES_ID = "app_res_id"; /** * The plugin resource ID * <P>Type: INTEGER</P> */ String PLUGIN_RES_ID = "plugin_res_id"; } /** * The table for caching the result of loading IM branding resources. */ public static final class BrandingResourceMapCache implements BaseColumns, BrandingResourceMapCacheColumns { /** * The content:// style URL for this table. */ public static final Uri CONTENT_URI = Uri.parse("content://im/brandingResMapCache"); } /** * //TODO: move these to MCS specific provider. * The following are MCS stuff, and should really live in a separate provider specific to * MCS code. */ /** /** * Columns from OutgoingRmq table * Columns from OutgoingRmq table */ */ public interface OutgoingRmqColumns { public interface OutgoingRmqColumns { String RMQ_ID = "rmq_id"; String RMQ_ID = "rmq_id"; String TYPE = "type"; String TIMESTAMP = "ts"; String TIMESTAMP = "ts"; String DATA = "data"; String DATA = "data"; String PROTOBUF_TAG = "type"; } } /** /** * //TODO: we should really move these to their own provider and database. * The table for storing outgoing rmq packets. * The table for storing outgoing rmq packets. */ */ public static final class OutgoingRmq implements BaseColumns, OutgoingRmqColumns { public static final class OutgoingRmq implements BaseColumns, OutgoingRmqColumns { Loading Loading @@ -2174,6 +2217,7 @@ public class Im { } } /** /** * //TODO: move these out into their own provider and database * The table for storing the last client rmq id sent to the server. * The table for storing the last client rmq id sent to the server. */ */ public static final class LastRmqId implements BaseColumns, LastRmqIdColumns { public static final class LastRmqId implements BaseColumns, LastRmqIdColumns { Loading Loading @@ -2234,35 +2278,21 @@ public class Im { } } /** /** * Columns for IM branding resource map cache table. This table caches the result of * Columns for the s2dRmqIds table, which stores the server-to-device message * loading the branding resources to speed up IM landing page start. * persistent ids. These are used in the RMQ2 protocol, where in the login request, the * client selective acks these s2d ids to the server. */ */ public interface BrandingResourceMapCacheColumns { public interface ServerToDeviceRmqIdsColumn { /** String RMQ_ID = "rmq_id"; * The provider ID * <P>Type: INTEGER</P> */ String PROVIDER_ID = "provider_id"; /** * The application resource ID * <P>Type: INTEGER</P> */ String APP_RES_ID = "app_res_id"; /** * The plugin resource ID * <P>Type: INTEGER</P> */ String PLUGIN_RES_ID = "plugin_res_id"; } } /** public static final class ServerToDeviceRmqIds implements BaseColumns, * The table for caching the result of loading IM branding resources. ServerToDeviceRmqIdsColumn { */ public static final class BrandingResourceMapCache implements BaseColumns, BrandingResourceMapCacheColumns { /** /** * The content:// style URL for this table. * The content:// style URL for this table. */ */ public static final Uri CONTENT_URI = Uri.parse("content://im/brandingResMapCache"); public static final Uri CONTENT_URI = Uri.parse("content://im/s2dids"); } } } }
core/java/android/provider/Settings.java +26 −12 Original line number Original line Diff line number Diff line Loading @@ -2911,10 +2911,25 @@ public final class Settings { "gtalk_max_retries_for_auth_expired"; "gtalk_max_retries_for_auth_expired"; /** /** * This is the url for getting the app token for server-to-device push messaging. * a boolean setting indicating whether the GTalkService should use RMQ2 protocol or not. */ */ public static final String PUSH_MESSAGING_REGISTRATION_URL = public static final String GTALK_USE_RMQ2_PROTOCOL = "push_messaging_registration_url"; "gtalk_use_rmq2"; /** * a boolean setting indicating whether the GTalkService should support both RMQ and * RMQ2 protocols. This setting is true for the transitional period when we need to * support both protocols. */ public static final String GTALK_SUPPORT_RMQ_AND_RMQ2_PROTOCOLS = "gtalk_support_rmq_and_rmq2"; /** * a boolean setting controlling whether the rmq2 protocol will include stream ids in * the protobufs. This is used for debugging. */ public static final String GTALK_RMQ2_INCLUDE_STREAM_ID = "gtalk_rmq2_include_stream_id"; /** /** * This is gdata url to lookup album and picture info from picasa web. * This is gdata url to lookup album and picture info from picasa web. Loading @@ -2940,12 +2955,11 @@ public final class Settings { public static final String GTALK_YOUTUBE_VIDEO_URL = public static final String GTALK_YOUTUBE_VIDEO_URL = "gtalk_youtube_video_url"; "gtalk_youtube_video_url"; /** /** * This is the url for getting the app token for server-to-device data messaging. * This is the url for getting the app token for server-to-device push messaging. */ */ public static final String DATA_MESSAGE_GET_APP_TOKEN_URL = public static final String PUSH_MESSAGING_REGISTRATION_URL = "data_messaging_get_app_token_url"; "push_messaging_registration_url"; /** /** * Use android://<it> routing infos for Google Sync Server subcriptions. * Use android://<it> routing infos for Google Sync Server subcriptions. Loading