mobile/android/base/background/common/GlobalConstants.java.in

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 #filter substitution
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 package org.mozilla.gecko.background.common;
michael@0 7
michael@0 8 /**
michael@0 9 * Preprocessed class for storing preprocessed values common to all
michael@0 10 * Android services.
michael@0 11 */
michael@0 12 public class GlobalConstants {
michael@0 13 public static final String ANDROID_CPU_ARCH = "@ANDROID_CPU_ARCH@";
michael@0 14
michael@0 15 // One of 'beta', 'aurora', 'nightly', 'default'.
michael@0 16 // If this is an official build, 'default' means 'release'.
michael@0 17 // Otherwise, it means 'dev'.
michael@0 18 public static final String MOZ_UPDATE_CHANNEL = "@MOZ_UPDATE_CHANNEL@";
michael@0 19 #ifdef MOZ_OFFICIAL_BRANDING
michael@0 20 public static final boolean MOZ_OFFICIAL_BRANDING = true;
michael@0 21 #else
michael@0 22 public static final boolean MOZ_OFFICIAL_BRANDING = false;
michael@0 23 #endif
michael@0 24
michael@0 25 public static final long BUILD_TIMESTAMP_SECONDS = @MOZ_BUILD_TIMESTAMP@L;
michael@0 26 public static final long BUILD_TIMESTAMP_MSEC = 1000L * @MOZ_BUILD_TIMESTAMP@L;
michael@0 27
michael@0 28 public static final String MOZ_APP_DISPLAYNAME = "@MOZ_APP_DISPLAYNAME@";
michael@0 29 public static final String MOZ_APP_VERSION = "@MOZ_APP_VERSION@";
michael@0 30 public static final String BROWSER_INTENT_PACKAGE = "@ANDROID_PACKAGE_NAME@";
michael@0 31 public static final String BROWSER_INTENT_CLASS = BROWSER_INTENT_PACKAGE + ".App";
michael@0 32
michael@0 33 /**
michael@0 34 * Bug 800244: this signing-level permission protects broadcast intents that
michael@0 35 * should be received only by the Firefox versions with the given Android
michael@0 36 * package name.
michael@0 37 */
michael@0 38 public static final String PER_ANDROID_PACKAGE_PERMISSION = "@ANDROID_PACKAGE_NAME@.permission.PER_ANDROID_PACKAGE";
michael@0 39
michael@0 40 public static final int SHARED_PREFERENCES_MODE = 0;
michael@0 41
michael@0 42 // These are used to ask Fennec (via reflection) to send
michael@0 43 // us a pref notification. This avoids us having to guess
michael@0 44 // Fennec's prefs branch and pref name.
michael@0 45 // Eventually Fennec might listen to startup notifications and
michael@0 46 // do this automatically, but this will do for now. See Bug 800244.
michael@0 47 public static String GECKO_PREFERENCES_CLASS = "org.mozilla.gecko.preferences.GeckoPreferences";
michael@0 48 public static String GECKO_BROADCAST_ANNOUNCEMENTS_PREF_METHOD = "broadcastAnnouncementsPref";
michael@0 49 public static String GECKO_BROADCAST_HEALTHREPORT_UPLOAD_PREF_METHOD = "broadcastHealthReportUploadPref";
michael@0 50 public static String GECKO_BROADCAST_HEALTHREPORT_PRUNE_METHOD = "broadcastHealthReportPrune";
michael@0 51
michael@0 52 // Common time values.
michael@0 53 public static final long MILLISECONDS_PER_DAY = 24 * 60 * 60 * 1000;
michael@0 54 public static final long MILLISECONDS_PER_SIX_MONTHS = 180 * MILLISECONDS_PER_DAY;
michael@0 55 }

mercurial