• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2025 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.os;
18 
19 import android.os.PerfettoTrackEventExtra.CounterDouble;
20 import android.os.PerfettoTrackEventExtra.CounterInt64;
21 import android.os.PerfettoTrackEventExtra.Flow;
22 import android.os.PerfettoTrackEventExtra.Proto;
23 
24 import com.android.layoutlib.bridge.impl.DelegateManager;
25 import com.android.tools.layoutlib.annotations.LayoutlibDelegate;
26 import libcore.util.NativeAllocationRegistry_Delegate;
27 
28 public class PerfettoTrackEventExtra_Delegate {
29     // ---- delegate manager ----
30     private static final DelegateManager<PerfettoTrackEventExtra_Delegate> sManager =
31             new DelegateManager<>(PerfettoTrackEventExtra_Delegate.class);
32     private static long sFinalizer = -1;
33 
34     @LayoutlibDelegate
native_init()35     /*package*/ static long native_init() {
36         return sManager.addNewDelegate(new PerfettoTrackEventExtra_Delegate());
37     }
38 
39     @LayoutlibDelegate
native_delete()40     /*package*/ static long native_delete() {
41         synchronized (PerfettoTrackEventExtra_Delegate.class) {
42             if (sFinalizer == -1) {
43                 sFinalizer = NativeAllocationRegistry_Delegate.createFinalizer(sManager::removeJavaReferenceFor);
44             }
45         }
46         return sFinalizer;
47     }
48 
49     @LayoutlibDelegate
getCounterInt64(PerfettoTrackEventExtra thiz)50     /*package*/ static CounterInt64 getCounterInt64(PerfettoTrackEventExtra thiz) {
51         return null;
52     }
53 
54     @LayoutlibDelegate
getCounterDouble(PerfettoTrackEventExtra thiz)55     /*package*/ static CounterDouble getCounterDouble(PerfettoTrackEventExtra thiz) {
56         return null;
57     }
58 
59     @LayoutlibDelegate
getProto(PerfettoTrackEventExtra thiz)60     /*package*/ static Proto getProto(PerfettoTrackEventExtra thiz) {
61         return null;
62     }
63 
64     @LayoutlibDelegate
getFlow(PerfettoTrackEventExtra thiz)65     /*package*/ static Flow getFlow(PerfettoTrackEventExtra thiz) {
66         return null;
67     }
68 
69     @LayoutlibDelegate
getTerminatingFlow(PerfettoTrackEventExtra thiz)70     /*package*/ static Flow getTerminatingFlow(PerfettoTrackEventExtra thiz) {
71         return null;
72     }
73 }
74