blob: b383c618247391f0cc0bd7cd51ce9319e198b4d7 [file] [log] [blame]
Fred Quintanaa698f422009-04-08 19:14:54 -07001/*
2 * Copyright (C) 2009 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 */
16package android.accounts;
17
18public class Constants {
19 // this should never be instantiated
20 private Constants() {}
21
22 public static final int ERROR_CODE_REMOTE_EXCEPTION = 1;
23 public static final int ERROR_CODE_NETWORK_ERROR = 3;
24 public static final int ERROR_CODE_CANCELED = 4;
25 public static final int ERROR_CODE_INVALID_RESPONSE = 5;
26 public static final int ERROR_CODE_UNSUPPORTED_OPERATION = 6;
Fred Quintana33269202009-04-20 16:05:10 -070027 public static final int ERROR_CODE_BAD_ARGUMENTS = 7;
Fred Quintanaa698f422009-04-08 19:14:54 -070028
29 public static final String ACCOUNTS_KEY = "accounts";
30 public static final String AUTHENTICATOR_TYPES_KEY = "authenticator_types";
31 public static final String PASSWORD_KEY = "password";
32 public static final String USERDATA_KEY = "userdata";
33 public static final String AUTHTOKEN_KEY = "authtoken";
34 public static final String ACCOUNT_NAME_KEY = "authAccount";
35 public static final String ACCOUNT_TYPE_KEY = "accountType";
36 public static final String ERROR_CODE_KEY = "errorCode";
37 public static final String ERROR_MESSAGE_KEY = "errorMessage";
38 public static final String INTENT_KEY = "intent";
39 public static final String BOOLEAN_RESULT_KEY = "booleanResult";
40 public static final String ACCOUNT_AUTHENTICATOR_RESPONSE_KEY = "accountAuthenticatorResponse";
Fred Quintana33269202009-04-20 16:05:10 -070041 public static final String ACCOUNT_MANAGER_RESPONSE_KEY = "accountManagerResponse";
Fred Quintanaa698f422009-04-08 19:14:54 -070042 public static final String AUTH_FAILED_MESSAGE_KEY = "authFailedMessage";
43 /**
44 * Action sent as a broadcast Intent by the AccountsService
45 * when accounts are added to and/or removed from the device's
46 * database, or when the primary account is changed.
47 */
48 public static final String LOGIN_ACCOUNTS_CHANGED_ACTION =
49 "android.accounts.LOGIN_ACCOUNTS_CHANGED";
50}