Android (Google) Code Review | a3fcb44 | 2009-05-01 18:32:46 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2006 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 16 | |
| 17 | package android.util; |
| 18 | |
| 19 | /** |
| 20 | * Build configuration. The constants in this class vary depending |
Android (Google) Code Review | a3fcb44 | 2009-05-01 18:32:46 -0700 | [diff] [blame] | 21 | * on release vs. debug build. |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 22 | * {@more} |
| 23 | */ |
Jesse Wilson | a0f8bc5 | 2011-02-24 10:44:33 -0800 | [diff] [blame] | 24 | public final class Config { |
| 25 | /** @hide */ public Config() {} |
| 26 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 27 | /** |
Android (Google) Code Review | a3fcb44 | 2009-05-01 18:32:46 -0700 | [diff] [blame] | 28 | * If this is a debug build, this field will be true. |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 29 | */ |
Android (Google) Code Review | a3fcb44 | 2009-05-01 18:32:46 -0700 | [diff] [blame] | 30 | public static final boolean DEBUG = ConfigBuildFlags.DEBUG; |
| 31 | |
| 32 | /* |
| 33 | * Deprecated fields |
| 34 | * TODO: Remove platform references to these and @hide them. |
| 35 | */ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 36 | |
| 37 | /** |
Dianne Hackborn | 4a51c20 | 2009-08-21 15:14:02 -0700 | [diff] [blame] | 38 | * @deprecated Use {@link #DEBUG} instead. |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 39 | */ |
Android (Google) Code Review | a3fcb44 | 2009-05-01 18:32:46 -0700 | [diff] [blame] | 40 | @Deprecated |
| 41 | public static final boolean RELEASE = !DEBUG; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 42 | |
| 43 | /** |
Dianne Hackborn | 4a51c20 | 2009-08-21 15:14:02 -0700 | [diff] [blame] | 44 | * @deprecated Always false. |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 45 | */ |
Android (Google) Code Review | a3fcb44 | 2009-05-01 18:32:46 -0700 | [diff] [blame] | 46 | @Deprecated |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 47 | public static final boolean PROFILE = false; |
Android (Google) Code Review | a3fcb44 | 2009-05-01 18:32:46 -0700 | [diff] [blame] | 48 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 49 | /** |
Dianne Hackborn | 4a51c20 | 2009-08-21 15:14:02 -0700 | [diff] [blame] | 50 | * @deprecated Always false. |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 51 | */ |
Android (Google) Code Review | a3fcb44 | 2009-05-01 18:32:46 -0700 | [diff] [blame] | 52 | @Deprecated |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 53 | public static final boolean LOGV = false; |
| 54 | |
| 55 | /** |
Dianne Hackborn | 4a51c20 | 2009-08-21 15:14:02 -0700 | [diff] [blame] | 56 | * @deprecated Always true. |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 57 | */ |
Android (Google) Code Review | a3fcb44 | 2009-05-01 18:32:46 -0700 | [diff] [blame] | 58 | @Deprecated |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 59 | public static final boolean LOGD = true; |
| 60 | } |