1 /*
2  * Copyright (C) 2023 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 
17 package android.adservices.ondevicepersonalization;
18 
19 import android.annotation.FlaggedApi;
20 import android.annotation.NonNull;
21 
22 import com.android.adservices.ondevicepersonalization.flags.Flags;
23 import com.android.internal.annotations.VisibleForTesting;
24 
25 /**
26  * An opaque reference to content that can be displayed in a {@link android.view.SurfaceView}. This
27  * maps to a {@link RenderingConfig} returned by an {@link IsolatedService}.
28  *
29  */
30 @FlaggedApi(Flags.FLAG_ON_DEVICE_PERSONALIZATION_APIS_ENABLED)
31 public class SurfacePackageToken {
32     @NonNull private final String mTokenString;
33 
SurfacePackageToken(@onNull String tokenString)34     SurfacePackageToken(@NonNull String tokenString) {
35         mTokenString = tokenString;
36     }
37 
38     /** @hide */
39     @VisibleForTesting
getTokenString()40     @NonNull public String getTokenString() {
41         return mTokenString;
42     }
43 }
44