1 /*
2  * Copyright 2020 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  */
16 package android.app.blob;
17 
18 /** @hide */
19 public final class XmlTags {
20     public static final String ATTR_VERSION = "v";
21 
22     public static final String TAG_SESSIONS = "ss";
23     public static final String TAG_BLOBS = "bs";
24 
25     // For BlobStoreSession
26     public static final String TAG_SESSION = "s";
27     public static final String ATTR_ID = "id";
28     public static final String ATTR_PACKAGE = "p";
29     public static final String ATTR_UID = "u";
30     public static final String ATTR_CREATION_TIME_MS = "crt";
31 
32     // For BlobMetadata
33     public static final String TAG_BLOB = "b";
34     public static final String ATTR_USER_ID = "us";
35 
36     // For BlobAccessMode
37     public static final String TAG_ACCESS_MODE = "am";
38     public static final String ATTR_TYPE = "t";
39     public static final String TAG_ALLOWED_PACKAGE = "wl";
40     public static final String ATTR_CERTIFICATE = "ct";
41 
42     // For BlobHandle
43     public static final String TAG_BLOB_HANDLE = "bh";
44     public static final String ATTR_ALGO = "al";
45     public static final String ATTR_DIGEST = "dg";
46     public static final String ATTR_LABEL = "lbl";
47     public static final String ATTR_EXPIRY_TIME = "ex";
48     public static final String ATTR_TAG = "tg";
49 
50     // For committer
51     public static final String TAG_COMMITTER = "c";
52     public static final String ATTR_COMMIT_TIME_MS = "cmt";
53 
54     // For leasee
55     public static final String TAG_LEASEE = "l";
56     public static final String ATTR_DESCRIPTION_RES_NAME = "rn";
57     public static final String ATTR_DESCRIPTION = "d";
58 }
59